<!-- Generated from the reviewed public OpenAPI contract. Do not edit this file. -->

# API reference

The customer-facing operations in ORDan's reviewed OpenAPI 3.1.0 contract (API version ` 0.1.0 `).

Base URL: ` https://api.ordan.io `. **132 operations** and **40 named schemas**.

[API conventions](../api.md) · [Authentication](../authentication.md) · [Schema catalog](schemas/index.md) · [Download this contract](openapi.json)

Examples are static templates. Credentials are kept in your own environment; this site does not send API requests. Feature availability, authority and billing rules still apply. The reference preserves open-ended schemas and response status ranges rather than inventing undocumented fields.

## Auth

| Method | Endpoint | Operation |
| --- | --- | --- |
| **POST** | ` /v1/auth/accept-invite ` | [Accept an org invite while signed in.](post-v1-auth-accept-invite.md) |
| **POST** | ` /v1/auth/change-password ` | [Change the password; signs out other sessions.](post-v1-auth-change-password.md) |
| **POST** | ` /v1/auth/forgot-password ` | [Start a password reset (never leaks existence).](post-v1-auth-forgot-password.md) |
| **POST** | ` /v1/auth/login ` | [Sign in; sets the ordan_session cookie.](post-v1-auth-login.md) |
| **POST** | ` /v1/auth/logout ` | [End the current session.](post-v1-auth-logout.md) |
| **GET** | ` /v1/auth/me ` | [The signed-in user and their organizations.](get-v1-auth-me.md) |
| **POST** | ` /v1/auth/resend-verification ` | [Resend the verification email.](post-v1-auth-resend-verification.md) |
| **POST** | ` /v1/auth/reset-password ` | [Complete a password reset with a one-shot token.](post-v1-auth-reset-password.md) |
| **GET** | ` /v1/auth/sessions ` | [Active sessions (devices).](get-v1-auth-sessions.md) |
| **POST** | ` /v1/auth/sessions/{id}/revoke ` | [Revoke one session.](post-v1-auth-sessions-id-revoke.md) |
| **POST** | ` /v1/auth/sessions/revoke-all ` | [Revoke all other sessions.](post-v1-auth-sessions-revoke-all.md) |
| **POST** | ` /v1/auth/signup ` | [Create an account; sends a verification email.](post-v1-auth-signup.md) |
| **POST** | ` /v1/auth/verify-email ` | [Verify an email address with a token.](post-v1-auth-verify-email.md) |

## Organizations

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/orgs ` | [List the caller's organizations.](get-v1-orgs.md) |
| **POST** | ` /v1/orgs ` | [Create an organization (default project + policy).](post-v1-orgs.md) |
| **GET** | ` /v1/orgs/{orgId} ` | [Retrieve an organization.](get-v1-orgs-orgid.md) |
| **PATCH** | ` /v1/orgs/{orgId} ` | [Update name or media retention.](patch-v1-orgs-orgid.md) |

## Members

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/orgs/{orgId}/invites ` | [List pending invites.](get-v1-orgs-orgid-invites.md) |
| **POST** | ` /v1/orgs/{orgId}/invites ` | [Invite an email to the organization.](post-v1-orgs-orgid-invites.md) |
| **DELETE** | ` /v1/orgs/{orgId}/invites/{id} ` | [Revoke a pending invite.](delete-v1-orgs-orgid-invites-id.md) |
| **GET** | ` /v1/orgs/{orgId}/members ` | [List members.](get-v1-orgs-orgid-members.md) |
| **POST** | ` /v1/orgs/{orgId}/members ` | [Add an existing user by email.](post-v1-orgs-orgid-members.md) |
| **PATCH** | ` /v1/orgs/{orgId}/members/{userId} ` | [Change a member's role.](patch-v1-orgs-orgid-members-userid.md) |
| **DELETE** | ` /v1/orgs/{orgId}/members/{userId} ` | [Remove a member.](delete-v1-orgs-orgid-members-userid.md) |

## Projects

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/orgs/{orgId}/projects ` | [List projects.](get-v1-orgs-orgid-projects.md) |
| **POST** | ` /v1/orgs/{orgId}/projects ` | [Create a project.](post-v1-orgs-orgid-projects.md) |

## API keys

| Method | Endpoint | Operation |
| --- | --- | --- |
| **POST** | ` /v1/api-keys/{id}/revoke ` | [Revoke an API key.](post-v1-api-keys-id-revoke.md) |
| **POST** | ` /v1/api-keys/{id}/rotate ` | [Rotate an API key's secret.](post-v1-api-keys-id-rotate.md) |
| **GET** | ` /v1/projects/{projectId}/api-keys ` | [List project API keys.](get-v1-projects-projectid-api-keys.md) |
| **POST** | ` /v1/projects/{projectId}/api-keys ` | [Create a project API key (secret shown once).](post-v1-projects-projectid-api-keys.md) |

## Agents

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/agents ` | [List agents (scoped to the principal).](get-v1-agents.md) |
| **POST** | ` /v1/agents ` | [Create an agent (a project key may also grant defaults).](post-v1-agents.md) |
| **GET** | ` /v1/agents/{id} ` | [Retrieve an agent with its grants and credentials.](get-v1-agents-id.md) |
| **PATCH** | ` /v1/agents/{id} ` | [Rename or suspend an agent.](patch-v1-agents-id.md) |

## Grants

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/agents/{id}/grants ` | [List an agent's grants, each with its bound Lines (its own agent, or a key with grants:read).](get-v1-agents-id-grants.md) |
| **POST** | ` /v1/agents/{id}/grants ` | [Grant capabilities, pinned to a policy version.](post-v1-agents-id-grants.md) |
| **GET** | ` /v1/grants/{id} ` | [Retrieve a grant, with its bound Lines (its own agent, or a key with grants:read).](get-v1-grants-id.md) |
| **DELETE** | ` /v1/grants/{id}/capabilities/{capability} ` | [Withdraw one capability.](delete-v1-grants-id-capabilities-capability.md) |
| **GET** | ` /v1/grants/{id}/lines ` | [List a grant's Line bindings.](get-v1-grants-id-lines.md) |
| **POST** | ` /v1/grants/{id}/lines ` | [Bind an active Line to a grant (an owner, or a key with grants:write); audited.](post-v1-grants-id-lines.md) |
| **DELETE** | ` /v1/grants/{id}/lines/{lineId} ` | [Unbind a Line from a grant (an owner, or a key with grants:write); ends its live calls.](delete-v1-grants-id-lines-lineid.md) |
| **POST** | ` /v1/grants/{id}/revoke ` | [Revoke a grant; ends its calls and approvals.](post-v1-grants-id-revoke.md) |

## Credentials

| Method | Endpoint | Operation |
| --- | --- | --- |
| **POST** | ` /v1/credentials/{id}/revoke ` | [Revoke a credential.](post-v1-credentials-id-revoke.md) |
| **POST** | ` /v1/grants/{id}/credentials ` | [Issue an agent credential (secret shown once).](post-v1-grants-id-credentials.md) |
| **POST** | ` /v1/grants/{id}/rotate-credential ` | [Rotate every active credential for a grant.](post-v1-grants-id-rotate-credential.md) |

## Device flow

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/oauth/device/{userCode} ` | [Preview a device request for the owner.](get-v1-oauth-device-usercode.md) |
| **POST** | ` /v1/oauth/device/approve ` | [Approve a device request.](post-v1-oauth-device-approve.md) |
| **POST** | ` /v1/oauth/device/authorize ` | [Start RFC 8628 device authorization.](post-v1-oauth-device-authorize.md) |
| **POST** | ` /v1/oauth/device/deny ` | [Deny a device request.](post-v1-oauth-device-deny.md) |
| **POST** | ` /v1/oauth/token ` | [Poll for the agent credential.](post-v1-oauth-token.md) |

## Approvals

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/approvals ` | [List approval requests.](get-v1-approvals.md) |
| **GET** | ` /v1/approvals/{id} ` | [Retrieve an approval request.](get-v1-approvals-id.md) |
| **POST** | ` /v1/approvals/{id}/approve ` | [Approve a request.](post-v1-approvals-id-approve.md) |
| **POST** | ` /v1/approvals/{id}/deny ` | [Deny a request.](post-v1-approvals-id-deny.md) |

## Policies

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/policies ` | [List policies.](get-v1-policies.md) |
| **POST** | ` /v1/policies ` | [Create a policy.](post-v1-policies.md) |
| **GET** | ` /v1/policies/{id} ` | [Retrieve a policy with its versions.](get-v1-policies-id.md) |
| **GET** | ` /v1/policies/{id}/versions ` | [List policy versions.](get-v1-policies-id-versions.md) |
| **POST** | ` /v1/policies/{id}/versions ` | [Add an immutable policy version.](post-v1-policies-id-versions.md) |
| **POST** | ` /v1/policies/check ` | [Dry-run the policy gate for an action.](post-v1-policies-check.md) |
| **GET** | ` /v1/policies/pinned ` | [The policy version a new grant in an org would pin, summarized.](get-v1-policies-pinned.md) |

## Calls

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/calls ` | [List calls.](get-v1-calls.md) |
| **POST** | ` /v1/calls ` | [Place an outbound call through the gate.](post-v1-calls.md) |
| **GET** | ` /v1/calls/{id} ` | [Retrieve a call with events, records and seal.](get-v1-calls-id.md) |
| **POST** | ` /v1/calls/{id}/answer ` | [Answer a ringing inbound call.](post-v1-calls-id-answer.md) |
| **POST** | ` /v1/calls/{id}/dtmf ` | [Press keys on a connected call.](post-v1-calls-id-dtmf.md) |
| **POST** | ` /v1/calls/{id}/hangup ` | [Hang up a call.](post-v1-calls-id-hangup.md) |
| **POST** | ` /v1/calls/{id}/outcome ` | [Report the structured outcome (append-only).](post-v1-calls-id-outcome.md) |
| **POST** | ` /v1/calls/{id}/recording/start ` | [Start recording a connected call.](post-v1-calls-id-recording-start.md) |
| **POST** | ` /v1/calls/{id}/recording/stop ` | [Stop recording.](post-v1-calls-id-recording-stop.md) |
| **POST** | ` /v1/calls/{id}/speak ` | [ORDan voice: speak the agent's text on a connected call.](post-v1-calls-id-speak.md) |
| **POST** | ` /v1/calls/{id}/speak/stop ` | [ORDan voice: stop what is being said, and everything queued.](post-v1-calls-id-speak-stop.md) |
| **GET** | ` /v1/calls/{id}/transcript ` | [ORDan voice: the call's live transcript after a seq, long-polling up to 25 s.](get-v1-calls-id-transcript.md) |
| **POST** | ` /v1/calls/{id}/transcript ` | [Report the call transcript (append-only).](post-v1-calls-id-transcript.md) |
| **POST** | ` /v1/calls/{id}/transfer ` | [Transfer a connected call.](post-v1-calls-id-transfer.md) |
| **GET** | ` /v1/recordings/{id} ` | [A short-lived media link to a recording (owner).](get-v1-recordings-id.md) |

## Lines

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/available-numbers ` | [Search carrier number inventory.](get-v1-available-numbers.md) |
| **GET** | ` /v1/lines ` | [List Lines.](get-v1-lines.md) |
| **POST** | ` /v1/lines ` | [Provision a Line (agent, key, or owner).](post-v1-lines.md) |
| **GET** | ` /v1/lines/{id} ` | [Retrieve a Line and its spend.](get-v1-lines-id.md) |
| **PATCH** | ` /v1/lines/{id} ` | [Rename a Line or set its spend ceiling.](patch-v1-lines-id.md) |
| **DELETE** | ` /v1/lines/{id} ` | [Release a Line's number.](delete-v1-lines-id.md) |
| **POST** | ` /v1/lines/{id}/reactivate ` | [Reactivate a suspended Line.](post-v1-lines-id-reactivate.md) |
| **POST** | ` /v1/lines/{id}/revoke ` | [Suspend a Line; hold its number 30 days.](post-v1-lines-id-revoke.md) |
| **GET** | ` /v1/numbers ` | [List owned/pending numbers and their Line attachments. An agent (numbers.provision or numbers.release) sees its own: those on its Lines and those it bought.](get-v1-numbers.md) |
| **POST** | ` /v1/numbers/{id}/release ` | [Release an unattached number; carrier unassignment/deletion is asynchronous. An agent needs numbers.release and may release only a number it can list.](post-v1-numbers-id-release.md) |
| **GET** | ` /v1/numbers/reservations ` | [List active number holds.](get-v1-numbers-reservations.md) |
| **POST** | ` /v1/numbers/reserve ` | [Reserve an inventory number until the returned expires_at time.](post-v1-numbers-reserve.md) |
| **GET** | ` /v1/ports ` | [List port requests.](get-v1-ports.md) |
| **POST** | ` /v1/ports ` | [Submit a port-in request.](post-v1-ports.md) |
| **GET** | ` /v1/ports/{id} ` | [Retrieve a port request.](get-v1-ports-id.md) |
| **PATCH** | ` /v1/ports/{id} ` | [Configure end-user/activation details and fulfill document requirements.](patch-v1-ports-id.md) |
| **POST** | ` /v1/ports/{id}/cancel ` | [Cancel a port request.](post-v1-ports-id-cancel.md) |
| **POST** | ` /v1/ports/{id}/confirm ` | [Explicitly confirm complete drafts after required details/documents.](post-v1-ports-id-confirm.md) |
| **POST** | ` /v1/ports/{id}/documents ` | [Upload a signed LOA or recent invoice (base64, up to 8 MiB decoded).](post-v1-ports-id-documents.md) |
| **GET** | ` /v1/ports/{id}/requirements ` | [Retrieve requirements for every split carrier order.](get-v1-ports-id-requirements.md) |

## Messaging registration

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/orgs/{orgId}/messaging ` | [Customer-scoped brand/campaign/profile readiness.](get-v1-orgs-orgid-messaging.md) |
| **POST** | ` /v1/orgs/{orgId}/messaging/brand ` | [Reserve fees and register the customer's brand.](post-v1-orgs-orgid-messaging-brand.md) |
| **POST** | ` /v1/orgs/{orgId}/messaging/campaign ` | [Reserve initial fees and submit a campaign; auto-renewal is disabled.](post-v1-orgs-orgid-messaging-campaign.md) |
| **POST** | ` /v1/orgs/{orgId}/messaging/otp/request ` | [Trigger a quoted brand SMS OTP (human verification).](post-v1-orgs-orgid-messaging-otp-request.md) |
| **POST** | ` /v1/orgs/{orgId}/messaging/otp/verify ` | [Verify a human-supplied OTP without storing it.](post-v1-orgs-orgid-messaging-otp-verify.md) |
| **GET** | ` /v1/orgs/{orgId}/messaging/quote ` | [Quote carrier campaign use-case costs before submission.](get-v1-orgs-orgid-messaging-quote.md) |

## Messages

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/messages ` | [List messages; &#96;with&#96; returns a conversation.](get-v1-messages.md) |
| **POST** | ` /v1/messages ` | [Send a text through the gate.](post-v1-messages.md) |
| **GET** | ` /v1/messages/{id} ` | [Retrieve a message.](get-v1-messages-id.md) |

## Purchases

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/purchases ` | [List purchases.](get-v1-purchases.md) |
| **POST** | ` /v1/purchases ` | [Authorize an agent purchase (policy-gated).](post-v1-purchases.md) |
| **GET** | ` /v1/purchases/{id} ` | [Retrieve a purchase.](get-v1-purchases-id.md) |
| **POST** | ` /v1/purchases/{id}/cancel ` | [Give back an unused authorization.](post-v1-purchases-id-cancel.md) |
| **POST** | ` /v1/purchases/{id}/complete ` | [Record what was actually charged (≤ authorized).](post-v1-purchases-id-complete.md) |

## Billing

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/orgs/{orgId}/billing ` | [The org's billing: preview trial, or plan, wallet, recharge and suspension (any member).](get-v1-orgs-orgid-billing.md) |
| **PATCH** | ` /v1/orgs/{orgId}/billing ` | [Set the automatic recharge, or cancel at the end of the paid month (OWNER, ADMIN or BILLING).](patch-v1-orgs-orgid-billing.md) |
| **POST** | ` /v1/orgs/{orgId}/billing/checkout ` | [Subscribe: the plan's monthly fee and the wallet's first top-up, paid at the processor.](post-v1-orgs-orgid-billing-checkout.md) |
| **POST** | ` /v1/orgs/{orgId}/billing/portal ` | [Where to manage the card and subscription.](post-v1-orgs-orgid-billing-portal.md) |
| **POST** | ` /v1/orgs/{orgId}/billing/retry ` | [Pay the latest failed invoice, which reactivates a suspended org.](post-v1-orgs-orgid-billing-retry.md) |
| **GET** | ` /v1/orgs/{orgId}/billing/wallet ` | [Money into and out of the wallet, newest first.](get-v1-orgs-orgid-billing-wallet.md) |
| **GET** | ` /v1/prices ` | [The published customer prices (public).](get-v1-prices.md) |

## Usage

| Method | Endpoint | Operation |
| --- | --- | --- |
| **GET** | ` /v1/audit ` | [The audit trail.](get-v1-audit.md) |
| **GET** | ` /v1/events ` | [The canonical event stream.](get-v1-events.md) |
| **GET** | ` /v1/ledger/verify ` | [Verify the sealed ledger for an org.](get-v1-ledger-verify.md) |
| **GET** | ` /v1/usage ` | [Usage summary for the period.](get-v1-usage.md) |
| **GET** | ` /v1/usage/adjustments ` | [Append-only provider corrections with original booking periods and evidence bases.](get-v1-usage-adjustments.md) |
| **GET** | ` /v1/usage/ledger ` | [The append-only usage ledger: provider cost on the preview, a paying org's sealed charges once it pays.](get-v1-usage-ledger.md) |

## Webhooks

| Method | Endpoint | Operation |
| --- | --- | --- |
| **POST** | ` /v1/webhook-deliveries/{id}/replay ` | [Re-send a past delivery.](post-v1-webhook-deliveries-id-replay.md) |
| **GET** | ` /v1/webhook-endpoints ` | [List webhook endpoints.](get-v1-webhook-endpoints.md) |
| **POST** | ` /v1/webhook-endpoints ` | [Register a webhook endpoint.](post-v1-webhook-endpoints.md) |
| **PATCH** | ` /v1/webhook-endpoints/{id} ` | [Update a webhook endpoint.](patch-v1-webhook-endpoints-id.md) |
| **DELETE** | ` /v1/webhook-endpoints/{id} ` | [Disable a webhook endpoint.](delete-v1-webhook-endpoints-id.md) |
| **GET** | ` /v1/webhook-endpoints/{id}/deliveries ` | [Recent deliveries for an endpoint.](get-v1-webhook-endpoints-id-deliveries.md) |
| **DELETE** | ` /v1/webhook-endpoints/{id}/purge ` | [Delete a webhook endpoint and its deliveries.](delete-v1-webhook-endpoints-id-purge.md) |
| **POST** | ` /v1/webhook-endpoints/{id}/rotate-secret ` | [Rotate an endpoint's signing secret.](post-v1-webhook-endpoints-id-rotate-secret.md) |
| **POST** | ` /v1/webhook-endpoints/{id}/test ` | [Send a signed webhook.test event.](post-v1-webhook-endpoints-id-test.md) |
