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
Parameter | Description | Type | Input |
---|---|---|---|
apiKey | API Key for the correspondent | String | Required |
cURL Request
POST
/v1/auth/tokencurl -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"
}