Authentication

Authentication

cellbunq uses Bearer Authentication to authenticate requests. You will need to include Authorization: Bearer API Access Token in the header for all requests.

Before you get started, you will need to generate an API Access Token on our dashboard.

How to Get an API Access Token

Sample Request

Curl Request


curl --location 'https://staging.api.cellbunq.com/api/v1/generate-access-token/' \
--header 'api-key: 8c1ea947-ac53-43db-9d9a-e9c34e9d182a'

Success Response

 
{
    "status_code": 200,
    "message": "Success",
    "data": {
        "access_token": "eyJhbGciOiJIUzI1NiIsInR5cxNTM3LCJpYXQiOjE2ODYyMzY2OTFlIiwidXNlcmqyfuJgE",
        "expires_in": 3600
    }
}
 

Invalid Api Key Response

 
{
    "status_code": 401,
    "message": "Invalid API key.",
    "data": null
}