Skip to main content
Every Dojah API request is authenticated with two headers — your AppId and your secret key. Keys are created per app in your dashboard.

Your keys

Each app has two keys for two different jobs: Find both under Developers → Configuration in the dashboard, where you can also regenerate them.

Authorizing a request

Send your secret key in the Authorization header raw — not as Bearer — alongside your AppId. POST /api/v1/messaging/otp
Common mistake. Prefixing the key with Bearer causes a 401. Send the key on its own.

Keep your secret key safe

  • Call the API only from your backend — never from browser or mobile code.
  • Store keys in environment variables or a secrets manager, not in source control.
  • Use sandbox keys while developing; swap to live keys only in production.
  • If a key leaks, regenerate it from the dashboard immediately.

Authentication errors