API

# Endpoint reference

The public HTTP surface. The full schemas are in [/openapi.json](https://inference.dagon.so/openapi.json).

**On this page**

- [Inference](https://inference.dagon.so/docs/endpoints#inference)
- [Catalog and identity](https://inference.dagon.so/docs/endpoints#catalog-and-identity)
- [Keys and credits](https://inference.dagon.so/docs/endpoints#keys-and-credits)
- [Receipts](https://inference.dagon.so/docs/endpoints#receipts)
- [Passkeys and sessions](https://inference.dagon.so/docs/endpoints#passkeys-and-sessions)
- [Other](https://inference.dagon.so/docs/endpoints#other)

## Inference

| Endpoint | Auth | Purpose |
| --- | --- | --- |
| `POST /v1/chat/completions` | key or x402 | [OpenAI Chat Completions](https://inference.dagon.so/docs/chat-completions) |
| `POST /v1/responses` | key or x402 | [OpenAI Responses](https://inference.dagon.so/docs/responses) |
| `POST /v1/messages` | key or x402 | [Anthropic Messages](https://inference.dagon.so/docs/messages) |
| `POST /v1/messages/count_tokens` | key with credit | Free token count |

## Catalog and identity

| Endpoint | Auth | Purpose |
| --- | --- | --- |
| `GET /v1/models` | none | Live models, prices and endpoints |
| `GET /v1/identity` | none | The receipt signing key |
| `GET /v1/payment-methods` | none | Which payment rails are enabled, top-up bounds |

## Keys and credits

| Endpoint | Auth | Purpose |
| --- | --- | --- |
| `POST /v1/keys` | none (rate limited) | Create a key |
| `GET /v1/key`, `DELETE /v1/key` | key (GET also a session) | Read or revoke the key |
| `GET /v1/credits`, `GET /v1/credits/history` | key or session | Balance and credit history |
| `POST /v1/keys/children`, `GET /v1/keys/children`, `…/:id/fund`, `…/:id/reclaim`, `DELETE /v1/keys/children/:id` | root key or session | [Child keys](https://inference.dagon.so/docs/child-keys) |
| `POST /v1/credits/checkout`, `POST /v1/credits/reconcile` | key or session | [USDC checkout](https://inference.dagon.so/docs/payments) |
| `POST /v1/credits/purchase`, `…/purchase/confirm`, `GET /v1/credits/purchase/:id` | key | [Wallet purchase](https://inference.dagon.so/docs/wallet-purchase) |
| `GET /v1/credits/near-intents/assets`, `POST /v1/credits/near-intents`, `GET /v1/credits/near-intents`, `GET …/near-intents/:deposit_address`, `POST …/:deposit_address/check` | key or session | [Pay with any coin](https://inference.dagon.so/docs/payments#pay-with-any-coin-near-intents), when enabled |

## Receipts

| Endpoint | Auth | Purpose |
| --- | --- | --- |
| `GET /v1/receipts`, `GET /v1/receipts/:id` | key or session | List and fetch |
| `POST /v1/receipts/verify` | none | Verify a receipt |

## Passkeys and sessions

| Endpoint | Auth | Purpose |
| --- | --- | --- |
| `POST /v1/passkeys/register/options`, `…/register/verify`, `…/login/options`, `…/login/verify` | none, or a session to add a device | [Passkey login](https://inference.dagon.so/docs/passkeys) |
| `GET /v1/passkeys`, `DELETE /v1/passkeys/:id`, `POST /v1/session/logout`, `POST /v1/session/logout-all` | session | Manage passkeys and sessions |

## Other

| Endpoint | Auth | Purpose |
| --- | --- | --- |
| `POST /v1/provider-applications`, `POST /v1/provider-applications/:id/verify`, `POST /v1/provider-applications/:id/resend-code`, `GET /v1/provider-applications/:id` | none / status token | Inference providers applying to be routed: [become a provider](https://inference.dagon.so/become-a-provider) |
| `GET /healthz` | none | `{"ok": true}` |

Last updated 2026-11-10

[Previous **Receipts**](https://inference.dagon.so/docs/receipts) [Next **Payments and USDC checkout**](https://inference.dagon.so/docs/payments)
