Create a bearer token
FlatPeak API uses bearer authentication (also called token authentication) to authorize access to API endpoints. To create a bearer token, use this /login
endpoint with basic auth:
username | Your FlatPeak Account ID. |
password | Any of your FlatPeak API Keys. |
Authorizations
Pass your account_id
as username and secret_key
as password via basic auth.
Response
The bearer security token.
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50X2lkIjoiYWNjXzQwODQzYzgwNThlMzRiM2E5OGZkMGY1Yjc1MmE2OTFiIiwibGl2ZV9tb2RlIjpmYWxzZSwiaXNzIjoiRmxhdFBlYWtBUEkiLCJzdWIiOiJhY2NfNDA4NDNjODA1OGUzNGIzYTk4ZmQwZjViNzUyYTY5MWIiLCJleHAiOjE2NjYwOTg4NjgsIm5iZiI6MTY2NjAxMjQ2OCwiaWF0IjoxNjY2MDEyNDY4fQ.GVfkaouHm4nBoj5gSaAaEBaoS9tPNhALgrMu0-TIrWQ"
Exipiration time in seconds.
3600
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
true
Was this page helpful?