---
title: "Exchange an authorization code or refresh token"
method: POST
path: "/oauth/token"
---

# Exchange an authorization code or refresh token

`POST /oauth/token`

## Request

- Base URL: `https://workers.miniurl.com`
- URL: `https://workers.miniurl.com/oauth/token`
- Auth: none required

## Response `200`

Short-lived Agent access and refresh tokens

## Other responses

- `400`: Invalid input or malformed JSON

---

[API](https://skmtc.dev/miniurl/apis/miniurl-agent-first-api.md) · [All operations](https://skmtc.dev/miniurl/apis/miniurl-agent-first-api/llms.txt) · [OpenAPI document](https://skmtc.dev/miniurl/apis/miniurl-agent-first-api/revisions/1d12196927db?raw)
