Authentication
The three credentials the Abazi API accepts, who holds each, how to send it, and the passkey step-up for sensitive actions.
| Credential | Who holds it | How it is sent | Where it comes from |
|---|---|---|---|
| Agent credential | An agent | Authorization: Bearer agk_test_... | Created with the agent in the Console; shown once, stored only as a hash. Rotation can keep the old one valid for 0, 1 or 24 hours. |
| API key | An organization's or a merchant's backend | Authorization: Bearer sk_test_... | Created in the Console with scopes; shown once. Scopes act as permissions. |
| Console session | A person in the web apps | A session cookie | Signing in with a one-time link or a passkey. |
Some operations need no credential: the public receipt check, public merchant profiles, the one-time approval link, consumer consent and public checkout. They are grouped under Public endpoints in the sidebar, for example GETVerify receipt publicly.
Permissions
Operations that need a permission show it in a Requires permission card, with the roles that hold it. A caller without it gets 403 FORBIDDEN.
Passkey step-up
Sensitive actions from the Console (for example revoking an agent, pausing all payments, rotating a key) need a passkey step-up within the last five minutes. Without it the API answers 403 PASSKEY_REQUIRED with details.step_up = true; the app runs the passkey step and retries.
curl "https://api.52-28-238-205.sslip.io/v1/spending" -H "Authorization: Bearer YOUR_AGENT_KEY"Replace YOUR_AGENT_KEY with an agent credential from the Console (Agents > New agent).