Token

The token endpoint is used to generate a token. Tokens are only valid for 24 hours.

POSTv1/auth/token

Get Token

Use this endpoint to generate a token. Tokens are only valid for 24 hours.

Request Body

ParameterDescriptionTypeInput
apiKey
API Key for the correspondentStringRequired

cURL Request

POST
/v1/auth/token
curl -X POST 'https://api.sandbox.gravity.markets/v1/auth/token' \
-H 'Content-Type: application/json' \
-d '{"apiKey": "YOUR-API-KEY"}'

Success Response

JSON
200 OK
{
    "token": "eyJhbG"
}