Get JWT Token
Exchange API Key credentials for JWT tokens.
Authorizations
X-Ledger-API-KeystringRequired
If you've set up your API Key when initializing your LAM, you'll need to include it as a header along with the api user header. For more details, see step 5 of the get started documentation.
X-Ledger-API-UserstringRequired
(required) Username of a registered API User
Body
api_key_idstringRequiredExample:
The API Key ID of your API user
2khK02ZRc_TE9nYJyGIfIQapi_key_secretstringRequiredExample:
The API Key Secret of your API user
jI0X2n55EHnNaZasmzfOL36wXx6b4D7Wmw-riZCeGWEResponses
200
JWT tokens
application/json
access_tokenstringRequired
The JWT required to authenticate against our API
expires_inintegerRequiredExample:
The number of seconds this token is valid for
300refresh_tokenstringRequired
The JWT used to get another access_token
session_statestringRequired
The session ID related to this token
token_typestringRequiredExample:
The type of authentication scheme
Bearer401
Unauthorized
application/json
post/auth/token
POST /auth/token HTTP/1.1
X-Ledger-API-Key: YOUR_API_KEY
X-Ledger-API-User: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 102
{
"api_key_id": "2khK02ZRc_TE9nYJyGIfIQ",
"api_key_secret": "jI0X2n55EHnNaZasmzfOL36wXx6b4D7Wmw-riZCeGWE"
}{
"access_token": "text",
"expires_in": 300,
"refresh_token": "text",
"session_state": "text",
"token_type": "Bearer"
}