Exchange auth code for tokens
curl --request POST \
--url https://api.agg.market/auth/token/exchange \
--header 'Content-Type: application/json' \
--header 'x-app-id: <api-key>' \
--data '
{
"code": "<string>"
}
'{
"accessToken": "<string>",
"user": {
"id": "<string>"
},
"refreshToken": "<string>"
}Authentication
Exchange auth code for tokens
Exchanges a one-time auth code for an access + refresh token pair. Auth codes are returned by OAuth/magic-link callback redirects.
POST
/
auth
/
token
/
exchange
Exchange auth code for tokens
curl --request POST \
--url https://api.agg.market/auth/token/exchange \
--header 'Content-Type: application/json' \
--header 'x-app-id: <api-key>' \
--data '
{
"code": "<string>"
}
'{
"accessToken": "<string>",
"user": {
"id": "<string>"
},
"refreshToken": "<string>"
}⌘I