Platrium Docs

Exchange Code for Token

POST
/auth/token

Redeems the single-use code from /authorize together with the PKCE code_verifier and returns a bearer token. Rate limited.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/auth/token" \  -H "Content-Type: application/json" \  -d '{    "code": "string",    "code_verifier": "string"  }'
{  "token": "string",  "id": "string",  "device_id": "string",  "expires_at": "2019-08-24T14:15:22Z"}