# Exchange authorization code or refresh token for tokens (/developer/api-reference/oauth/OAuthPublicController_token)

## POST /oauth/token
```json
{
  "operationId": "OAuthPublicController_token",
  "parameters": [],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/TokenArgs"
        }
      }
    }
  },
  "responses": {
    "201": {
      "description": ""
    }
  },
  "summary": "Exchange authorization code or refresh token for tokens",
  "tags": [
    "OAuth"
  ]
}
```