x-api-key header on every
request. There is no OAuth flow, no token exchange, and no per-user
authentication — the key identifies your business, and everything you do is
scoped to it.
What the key determines
Which business owns the accounts you register
Which business owns the accounts you register
Bank accounts created through
POST /pub/v2/bank-account are attributed to
the business behind the key. This is what ties deposits and payouts back to
you.The rates you are quoted
The rates you are quoted
GET /pub/v2/rate returns rates with your business’s fee already applied, so
two businesses calling the same endpoint at the same moment can legitimately
see different numbers.Getting a key
Keys are issued per business from the Paj dashboard. A business can hold several keys — give each integration or environment its own so one can be rotated without taking the others down.Keeping it secret
The key is a bearer credential: anyone holding it can register bank accounts as your business. Treat it accordingly. Store it in your server’s environment or secret manager, keep it out of version control and logs, and rotate it if it is ever exposed.When authentication fails
A missing or unrecognised key returns401 Unauthorized:
"Invalid API key" when a key was sent but did not match a
business. Both cases are permanent failures — retrying will not help, so fix the
credential rather than backing off.