Skip to main content
POST
/
auth
/
admin
/
token
/
exchange
Exchange admin auth code for tokens
curl --request POST \
  --url https://api.agg.market/auth/admin/token/exchange \
  --header 'Content-Type: application/json' \
  --header 'x-app-id: <api-key>' \
  --data '
{
  "code": "<string>"
}
'
{
  "accessToken": "<string>",
  "refreshToken": "<string>",
  "principal": {
    "id": "<string>"
  }
}

Authorizations

x-app-id
string
header
required

Your application ID. Required for all app-tier and user-tier routes.

Body

application/json

Body

code
string
required

Response

200

accessToken
string
required
refreshToken
string
required
principal
object
required