Overview

Exchange token

POST/v1/auth/exchange
Features

Exchange an API key for an access token.

Input1
Authorizationheader
Sent from your browser straight to the API — never to Docsbook, never stored.
personalTokenstring · bodyrequired
Output1
accessTokenstring
Responses
200Default Response
400Bad request
401No auth
403Forbidden
404Not found
422Invalid payload
500Uncaught error
Example input
curl -X POST 'https://access.scalar.com/v1/auth/exchange' \
  -H 'Content-Type: application/json' \
  -d '{"personalToken":"<personalToken>"}'
Example output
{
  "accessToken": "<accessToken>"
}

Updated

Was this page helpful?