Authentication

The three credentials the Abazi API accepts, who holds each, how to send it, and the passkey step-up for sensitive actions.

View as .mdUpdated
Each operation lists the credentials it accepts. An agent credential identifies an agent and carries no spending power of its own; what it may buy is decided by the owner's mandate.
CredentialWho holds itHow it is sentWhere it comes from
Agent credentialAn agentAuthorization: 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 keyAn organization's or a merchant's backendAuthorization: Bearer sk_test_...Created in the Console with scopes; shown once. Scopes act as permissions.
Console sessionA person in the web appsA session cookieSigning 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.

Agent call
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).

On this page