Skip to content

Getting started

Authentication

Authenticate every request with an API key sent as a Bearer token. Each account has one test key and one live key.

Test and live keys

KeyPrefixSpends fromReaches providers
Testabk_test_Your test walletNo. Outcomes are simulated.
Liveabk_live_Your real Aboki Data walletYes

A key is the prefix followed by 48 hexadecimal characters. Aboki Data stores only a hash of it, so the full key is shown once, when you generate it. If you lose it, generate a new one.

Generate a key

  1. Open Profile → Developer in the web app (sign in if asked) or the same screen in the Android app.
  2. Choose test or live and confirm with your transaction PIN.
  3. Copy the key into your secret store or environment variables straight away.

Generating a key replaces the previous key for that environment immediately, so the old key stops working. You can also revoke a key at any time without generating a new one.

The Developer screen has a Test / Live mode switch. It changes what the screen shows (that mode's key, webhook URL and deliveries), not what works: both keys keep working whatever mode is selected.

Send the key

Put the key in the Authorization header of every request. There is no separate API-key header and no request signing.

curl "https://api.abokidata.com/api/v1/wallets/me" \
  -H "Authorization: Bearer $ABOKI_API_KEY"

Keep keys on your server

Never put an API key in a mobile app, browser JavaScript or a public repository. Anyone with your live key can spend your wallet balance. Call the API from your backend and use the IP allowlist.

What a key can call

API keys can call the catalogue, wallet balance, transaction history, purchase, validation and order endpoints listed in the API reference. Requests made with a key do not need your transaction PIN.

Account settings (generating keys, webhook URLs, IP allowlist, test wallet reset) can only be changed while signed in to the Aboki Data app. Calling those endpoints with an API key returns 403 FORBIDDEN.

Account types and prices

Any active account can generate keys and integrate. Prices follow your account type: Customer accounts pay standard prices and are held to the daily spend limit for their verification level. When Aboki Data upgrades your account to an API Partner account, List products and every purchase use wholesale API prices, and the daily limit no longer applies. Ask for an upgrade at partners@abokidata.com.

Authentication errors

HTTPerror_codeWhat it means
401UNAUTHORIZEDThe key is missing, malformed, revoked or replaced. The header must start with Bearer followed by a space.
403FORBIDDENThe key is valid but this endpoint does not accept API keys.
403IP_NOT_WHITELISTEDThe request came from an IP address outside your allowlist. The message includes the address Aboki Data saw.
403ACCOUNT_SUSPENDED, ACCOUNT_FROZEN, ACCOUNT_CLOSEDYour Aboki Data account is not active. Contact support.