Skip to main content
POST
/
api
/
v1
/
token
User Authentication
curl --request POST \
  --url https://api-auth.trade.rails.xyz/api/v1/token \
  --header 'X-Api-Key: <x-api-key>' \
  --header 'X-Api-Secret: <x-api-secret>'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50VHlwZSI6InJldGFpbCIsImlzcyI6InN0YWdpbmcuZnVuZ2libGUueHl6Iiwic3ViIjoiNDcwMGYyODItMGFkNC00ZjU1LWIxNDItZGUzZTYwZDVkMTFlIiwiYXVkIjpbInN0YWdpbmctYXBwLmZ1bmdpYmxlLnh5eiJdLCJleHAiOjE3MTA4ODIxNzAsImlhdCI6MTcxMDg4MDM3MH0.Vgh_zKUgPSOPbVQ7nTHVg6jCYZ59nSJwqx6pfSDfGss",
  "token_type": "Bearer",
  "expires_in": 1800
}

Headers

X-Api-Key
string
required

The API key for the user

X-Api-Secret
string
required

The API secret for the user

Response

access_token
string
required

The access token used for API authentication

token_type
string
required

The type of token returned, typically Bearer

expires_in
integer
required

The number of seconds until the token expires