Skip to main content
GET
/
login
Create a bearer token
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
header
required

Response

bearer_token
string
required
Example:
expires_in
integer
required
Example:
live_mode
boolean
required
Example: