HomeGuidesChangelog
Guides

API-Key

🚧

This API-key authentication method will be deprecated by the end of 2026. Plan to migrate to the advanced token based authentication method.

❗️

IP whitelisting is a must for partners onboarding on API Key Authentication

Every request must include an Authorization Header with your siteid and apikey, separated by a colon. This must match the siteid and apikey in the request body. The Authorization header is mandatory for all API requests

Authorization Header Format:

Authorization: <Site-ID>:<API-Key>

Example Authorization header:

Authorization: 123456:00000000-0000-0000-0000-000000000000

Your account manager will share the API Key with you.

Example Request

curl --location --request POST 'https://{BASE_URL}/{path}' \
--header 'Authorization: 123456:00000000-0000-0000-0000-000000000000' \
--header 'Content-Type: application/json' \
--data-raw '{}'

Successful response with Authorization header to maintain same structure as shared in API references.

Sample Failed Response

  1. Missing Headers
{
    "error": {
        "id": 108,
        "message": "Site ID or API key is invalid or missing in the header"
    }
}
  1. Incorrect Site ID
{
    "error": {
        "id": 101,
        "message": "Site ID 123456 is invalid"
    }
}
  1. Incorrect API Key
{
    "error": {
        "id": 102,
        "message": "API key *****d11eb is invalid"
    }
}