Skip to main content
POST
/
api
/
authentication
/
login
curl --location 'https://stg.api.fire.rest/api/authentication/login' \
  --header 'x-api-key: <your_api_key>' \
  --header 'x-client-channel: integration' \
  --header 'account: <your_account_id>' \
  --header 'Content-Type: application/json' \
  --data '{
    "client_id": "<your_client_id>",
    "client_secret": "<your_client_secret>",
    "grant_type": "client_credentials"
  }'
{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
x-api-key
string
required
Your Fire API key. Issued from the Fire dashboard under Settings → API Keys.
x-client-channel
string
required
Must be integration. Identifies the request as coming from an external integration.
account
string
required
Account identifier the request belongs to.
Content-Type
string
default:"application/json"
required
Must be application/json for the JSON body.
client_id
string
required
Client identifier issued by Fire.
client_secret
string
required
Client secret issued by Fire.
grant_type
string
default:"client_credentials"
required
OAuth 2.0 grant type. Must be client_credentials.
accessToken
string
Access token. Include this in the Authorization: Bearer <accessToken> header for all API requests.
curl --location 'https://stg.api.fire.rest/api/authentication/login' \
  --header 'x-api-key: <your_api_key>' \
  --header 'x-client-channel: integration' \
  --header 'account: <your_account_id>' \
  --header 'Content-Type: application/json' \
  --data '{
    "client_id": "<your_client_id>",
    "client_secret": "<your_client_secret>",
    "grant_type": "client_credentials"
  }'
{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}