Authorization header. There are no sessions, cookies, or OAuth flows — just a static token you copy from your dashboard and attach to each call.
Get your API token
Log in to your dashboard
Go to app.sling.com.ng and sign in to your account.
Open the API token page
Navigate to Account → API in your dashboard.
Copy your token
Copy the API token displayed on that page. Treat it like a password — do not share it or commit it to source control.
Add the token to a request
Pass your token as a bearer credential in theAuthorization header alongside Accept: application/json.
URL-based authentication
For environments where setting HTTP headers is not possible — such as webhooks, redirects, or simple URL requests — you can pass your token as a query parameter instead:Prefer header-based authentication wherever possible. URL query parameters can appear in server logs and browser history, which increases exposure risk.
Authentication errors
If your token is missing or invalid, the API returns an error response. Common scenarios:| Situation | Result |
|---|---|
No Authorization header and no api_token query param | 401 Unauthorized — request rejected |
| Token is present but invalid or revoked | 401 Unauthorized — request rejected |
| Token is valid but account has no credit | 400 Bad Request — "details": "insufficient credit" |
Bearer prefix (note the space between Bearer and the token value).