API reference
Every public operation of the Abazi API, one page each, generated from the OpenAPI contract, with the rules that apply to all of them.
Base URL
Every path in this reference is relative to the base URL https://api.52-28-238-205.sslip.io. Environments lists the MCP endpoint and the networks the current environment settles on. Abazi refuses to start against a network that is not configured for its environment.
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: create one in the Console under Agents > New agent (shown once). See Credentials.
Authentication
Each operation states the credentials it accepts.
| Credential | Who holds it | How it is sent |
|---|---|---|
| Agent credential | An agent | Authorization: Bearer agk_test_... |
| API key | An organization's or a merchant's backend | Authorization: Bearer sk_test_... |
| Console session | A person in the web apps | A session cookie |
An agent credential identifies an agent and carries no spending power of its own: the owner's mandate decides what it may buy. Sensitive Console actions also need a recent passkey step-up. See Authentication.
Rules for every call
Authentication
Agent credentials, API keys and console sessions, and which call accepts which.
Idempotency
Retry a purchase safely without paying twice.
Errors and reason codes
One error shape for every failure, and the codes a policy decision carries.
Amounts and currencies
Integer base units carried as strings, assets and networks.
Pagination and filtering
Cursors, page sizes and filters on list operations.
Versioning
How the contract changes and what stays compatible.
Resources
Operations are grouped by resource in the sidebar, each with its HTTP method. A few to start with:
- POSTCreate payment intent, the purchase an agent makes, and GETGet payment intent to follow it.
- GETList approvals and POSTApprove payment for the person in the loop.
- GETGet receipt and the public GETVerify receipt publicly to prove what happened.
Clients
The reference is generated from the OpenAPI contract, so any OpenAPI tool can build a client from it.
Plain HTTP
Call the Abazi API with curl or any HTTP client.
TypeScript
A client typed from the OpenAPI contract.
Agents usually call the same actions through MCP tools, and integrations receive webhooks and events instead of polling.