AGG is currently in alpha. APIs, components, and docs may change.
Agg.market — Prediction Market Aggregator logo

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.

POSThttps://api.agg.market/auth/token/exchange

Exchanges a one-time auth code for an access + refresh token pair. Auth codes are returned by OAuth/magic-link callback redirects.

Loading code example
Loading code example

Authorizations

appIdstringheaderrequired

API key passed in the header.

Body

codestringrequired

Response

application/json

200

accessTokenstringrequired
refreshTokenstring
userobjectrequired
user.idstringrequired