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..."
}
{
"error": {
"code": "unauthorized",
"message": "Invalid credentials"
}
}
API
Login
Exchange your client credentials for an access token. Use the returned token as a Bearer token in all subsequent API requests.
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..."
}
{
"error": {
"code": "unauthorized",
"message": "Invalid credentials"
}
}
string
required
Your Fire API key. Issued from the Fire dashboard under Developers → API Management.
string
required
Must be
integration. Identifies the request as coming from an external integration.string
required
Account identifier the request belongs to.
string
default:"application/json"
required
Must be
application/json for the JSON body.string
required
Client identifier issued by Fire.
string
required
Client secret issued by Fire.
string
default:"client_credentials"
required
OAuth 2.0 grant type. Must be
client_credentials.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..."
}
{
"error": {
"code": "unauthorized",
"message": "Invalid credentials"
}
}

