Exchange a handoff code for the token
post
/v1/token/exchange

Exchanges the one-time handoff code from the frontend URL (?code=) for the token. A code can only be exchanged once and expires after a short time (2 minutes by default). Limited to 20 requests per minute per IP. Used by the fetchdocs frontend, so the token itself never has to be part of a URL.

📤 Request

Content Type: application/json
code string required

The handoff code from the frontend URL.

Example: u0Q8m3dXJ2a9...
Request Example
📥 Response
200 Success
Content Type:
401 Unknown, expired or already used code
Content Type:
422 Unprocessable Entity
Content Type:
Response Examples