Endpoints
Token
POST Generate authentication token Account
GET Get account collection by ID GET Get account by identity GET Get account transactions GET Get account balances Checksum
GET Get data checksum Request body clientIdstring required
Your Turnqey client ID.
clientSecretstring required
Your Turnqey client secret.
Response result.tokenstring
JWT bearer token.
result.expiresInnumber
Token lifetime in seconds.
Error responses 400 Bad Request Malformed request or missing/invalid parameter.
401 Unauthorized Token missing, expired, or invalid - request a new token.
403 Forbidden Access denied or partner not authorized for this resource.
404 Not Found Resource not found - check the ID, collection, or identity.
422 Unprocessable Entity Request understood but cannot be processed.
429 Too Many Requests Rate limited - back off and retry with jitter.
500 Server Error Upstream or server failure - retry with backoff, then fail gracefully.
All errors share a standard envelope:
{
"isError": true ,
"responseException": {
"exceptionMessage": "Request denied. Unauthorized access."
},
"statusCode": 401
}Request body (JSON) Send POST request cURL JavaScript Python
curl --request POST \ --url 'https://api.turnqey.xyz/v1/api/token' \
--header 'Content-Type: application/json' \
--data ''Example response 200
{
"isError": false ,
"message": "Success" ,
"result": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." ,
"expiresIn": 3600
},
"statusCode": 200
}