GET
/
login
curl --request GET \
  --url https://api.flatpeak.com/login \
  --header 'Authorization: Basic <encoded-value>'
{
  "bearer_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50X2lkIjoiYWNjXzQwODQzYzgwNThlMzRiM2E5OGZkMGY1Yjc1MmE2OTFiIiwibGl2ZV9tb2RlIjpmYWxzZSwiaXNzIjoiRmxhdFBlYWtBUEkiLCJzdWIiOiJhY2NfNDA4NDNjODA1OGUzNGIzYTk4ZmQwZjViNzUyYTY5MWIiLCJleHAiOjE2NjYwOTg4NjgsIm5iZiI6MTY2NjAxMjQ2OCwiaWF0IjoxNjY2MDEyNDY4fQ.GVfkaouHm4nBoj5gSaAaEBaoS9tPNhALgrMu0-TIrWQ",
  "expires_in": 3600,
  "live_mode": true
}

Authorizations

Authorization
string
headerrequired

Pass your account_id as username and secret_key as password via basic auth.

Response

200 - application/json
bearer_token
string
required

The bearer security token.

expires_in
integer
required

Exipiration time in seconds.

live_mode
boolean
required

Has the value true if the object exists in live mode or the value false if the object exists in test mode.