---
title: "Exchange a PKCE authorization code or rotate a refresh token."
method: POST
path: "/oauth/token"
tags: ["MCP OAuth"]
---

# Exchange a PKCE authorization code or rotate a refresh token.

`POST /oauth/token`

## Request

- Base URL: `https://api.scrapeatlas.com`
- URL: `https://api.scrapeatlas.com/oauth/token`
- Auth: none required

## Response `200`

OAuth response

- OauthTokenResponseSchema
  - `access_token` string, required
  - `refresh_token` string
  - `token_type` 'Bearer', required
  - `expires_in` 3600, required
  - `scope` 'scrapeatlas', required

## Other responses

- `default`: OAuth error

---

[API](https://skmtc.dev/scrapeatlas/apis/scrapeatlas-api.md) · [All operations](https://skmtc.dev/scrapeatlas/apis/scrapeatlas-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scrapeatlas/apis/scrapeatlas-api/revisions/9ba049316894?raw)
