API Authorization
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. |
Account ID and API Keys can be found on API Keys page of Dashboard.
GET
/
login
Authorizations
Authorization
string
headerrequiredPass your account_id
as username and secret_key
as password via basic auth.
Response
200 - application/json
bearer_token
string
requiredThe bearer security token.
expires_in
integer
requiredExipiration time in seconds.
live_mode
boolean
requiredHas the value true
if the object exists in live mode or the value false
if the object exists in test mode.
Was this page helpful?