Get Access Token
Get Access Token
POSThttps://exchange.gemini.com/auth/token
Once you have received an authorization code from the Authorization Request, you can exchange it for access and refresh tokens. Access tokens are short-lived (24 hour expiration) and are used as authentication against Gemini APIs, while refresh tokens never expire and are used to regenerate access tokens.
POST
curl --request POST \
--url https://exchange.gemini.com/auth/token \
--header 'Content-Type: application/json' \
--data '
{
"client_id": "my_id",
"client_secret": "my_secret",
"code": "90123465-86ee-44ef-b4e3-835cc89bc8a3",
"redirect_uri": "www.example.com/redirect",
"grant_type": "authorization_code"
}
'Request Body
Responses
Access and refresh tokens successfully issued
Last modified on