Every API request (except the public payment-return redirect) is authenticated with one of your business’s API keys.

Getting a key

In the merchant portal, open Developers → API keys and create a key. Give it a name that says where it is used (“production server”, “staging”). The plaintext key is shown exactly once — only its hash is stored, so it cannot be retrieved later. A business can hold several named keys, so one can be revoked without breaking the others. Revoke a key from the same page; revoked keys stay listed so a log line can still be traced to them.

Sending the key

Pass it on every request using either header:
A missing, unknown, or revoked key returns 401 Unauthorized. All data you access is automatically scoped to your business.

Rotating every key at once

If a key may have leaked and you do not know which, rotate them all with the self-service endpoint. Every live key of your business stops working immediately and one replacement is returned, once:
See Managing your business.
Treat an API key like a password. Never embed it in client-side code or commit it to source control. Use it only from your server.