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 · Authentication · Schema catalog · Download this contract
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/change-password | Change the password; signs out other sessions. |
| POST | /v1/auth/forgot-password | Start a password reset (never leaks existence). |
| POST | /v1/auth/login | Sign in; sets the ordan_session cookie. |
| POST | /v1/auth/logout | End the current session. |
| GET | /v1/auth/me | The signed-in user and their organizations. |
| POST | /v1/auth/resend-verification | Resend the verification email. |
| POST | /v1/auth/reset-password | Complete a password reset with a one-shot token. |
| GET | /v1/auth/sessions | Active sessions (devices). |
| POST | /v1/auth/sessions/{id}/revoke | Revoke one session. |
| POST | /v1/auth/sessions/revoke-all | Revoke all other sessions. |
| POST | /v1/auth/signup | Create an account; sends a verification email. |
| POST | /v1/auth/verify-email | Verify an email address with a token. |
Organizations
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/orgs | List the caller's organizations. |
| POST | /v1/orgs | Create an organization (default project + policy). |
| GET | /v1/orgs/{orgId} | Retrieve an organization. |
| PATCH | /v1/orgs/{orgId} | Update name or media retention. |
Members
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/orgs/{orgId}/invites | List pending invites. |
| POST | /v1/orgs/{orgId}/invites | Invite an email to the organization. |
| DELETE | /v1/orgs/{orgId}/invites/{id} | Revoke a pending invite. |
| GET | /v1/orgs/{orgId}/members | List members. |
| POST | /v1/orgs/{orgId}/members | Add an existing user by email. |
| PATCH | /v1/orgs/{orgId}/members/{userId} | Change a member's role. |
| DELETE | /v1/orgs/{orgId}/members/{userId} | Remove a member. |
Projects
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/orgs/{orgId}/projects | List projects. |
| POST | /v1/orgs/{orgId}/projects | Create a project. |
API keys
| Method | Endpoint | Operation |
|---|---|---|
| POST | /v1/api-keys/{id}/revoke | Revoke an API key. |
| POST | /v1/api-keys/{id}/rotate | Rotate an API key's secret. |
| GET | /v1/projects/{projectId}/api-keys | List project API keys. |
| POST | /v1/projects/{projectId}/api-keys | Create a project API key (secret shown once). |
Agents
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/agents | List agents (scoped to the principal). |
| POST | /v1/agents | Create an agent (a project key may also grant defaults). |
| GET | /v1/agents/{id} | Retrieve an agent with its grants and credentials. |
| PATCH | /v1/agents/{id} | Rename or suspend an agent. |
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). |
| POST | /v1/agents/{id}/grants | Grant capabilities, pinned to a policy version. |
| GET | /v1/grants/{id} | Retrieve a grant, with its bound Lines (its own agent, or a key with grants:read). |
| DELETE | /v1/grants/{id}/capabilities/{capability} | Withdraw one capability. |
| GET | /v1/grants/{id}/lines | List a grant's Line bindings. |
| POST | /v1/grants/{id}/lines | Bind an active Line to a grant (an owner, or a key with grants:write); audited. |
| DELETE | /v1/grants/{id}/lines/{lineId} | Unbind a Line from a grant (an owner, or a key with grants:write); ends its live calls. |
| POST | /v1/grants/{id}/revoke | Revoke a grant; ends its calls and approvals. |
Credentials
| Method | Endpoint | Operation |
|---|---|---|
| POST | /v1/credentials/{id}/revoke | Revoke a credential. |
| POST | /v1/grants/{id}/credentials | Issue an agent credential (secret shown once). |
| POST | /v1/grants/{id}/rotate-credential | Rotate every active credential for a grant. |
Device flow
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/oauth/device/{userCode} | Preview a device request for the owner. |
| POST | /v1/oauth/device/approve | Approve a device request. |
| POST | /v1/oauth/device/authorize | Start RFC 8628 device authorization. |
| POST | /v1/oauth/device/deny | Deny a device request. |
| POST | /v1/oauth/token | Poll for the agent credential. |
Approvals
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/approvals | List approval requests. |
| GET | /v1/approvals/{id} | Retrieve an approval request. |
| POST | /v1/approvals/{id}/approve | Approve a request. |
| POST | /v1/approvals/{id}/deny | Deny a request. |
Policies
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/policies | List policies. |
| POST | /v1/policies | Create a policy. |
| GET | /v1/policies/{id} | Retrieve a policy with its versions. |
| GET | /v1/policies/{id}/versions | List policy versions. |
| POST | /v1/policies/{id}/versions | Add an immutable policy version. |
| POST | /v1/policies/check | Dry-run the policy gate for an action. |
| GET | /v1/policies/pinned | The policy version a new grant in an org would pin, summarized. |
Calls
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/calls | List calls. |
| POST | /v1/calls | Place an outbound call through the gate. |
| GET | /v1/calls/{id} | Retrieve a call with events, records and seal. |
| POST | /v1/calls/{id}/answer | Answer a ringing inbound call. |
| POST | /v1/calls/{id}/dtmf | Press keys on a connected call. |
| POST | /v1/calls/{id}/hangup | Hang up a call. |
| POST | /v1/calls/{id}/outcome | Report the structured outcome (append-only). |
| POST | /v1/calls/{id}/recording/start | Start recording a connected call. |
| POST | /v1/calls/{id}/recording/stop | Stop recording. |
| POST | /v1/calls/{id}/speak | ORDan voice: speak the agent's text on a connected call. |
| POST | /v1/calls/{id}/speak/stop | ORDan voice: stop what is being said, and everything queued. |
| GET | /v1/calls/{id}/transcript | ORDan voice: the call's live transcript after a seq, long-polling up to 25 s. |
| POST | /v1/calls/{id}/transcript | Report the call transcript (append-only). |
| POST | /v1/calls/{id}/transfer | Transfer a connected call. |
| GET | /v1/recordings/{id} | A short-lived media link to a recording (owner). |
Lines
Messaging registration
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/orgs/{orgId}/messaging | Customer-scoped brand/campaign/profile readiness. |
| POST | /v1/orgs/{orgId}/messaging/brand | Reserve fees and register the customer's brand. |
| POST | /v1/orgs/{orgId}/messaging/campaign | Reserve initial fees and submit a campaign; auto-renewal is disabled. |
| POST | /v1/orgs/{orgId}/messaging/otp/request | Trigger a quoted brand SMS OTP (human verification). |
| POST | /v1/orgs/{orgId}/messaging/otp/verify | Verify a human-supplied OTP without storing it. |
| GET | /v1/orgs/{orgId}/messaging/quote | Quote carrier campaign use-case costs before submission. |
Messages
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/messages | List messages; `with` returns a conversation. |
| POST | /v1/messages | Send a text through the gate. |
| GET | /v1/messages/{id} | Retrieve a message. |
Purchases
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/purchases | List purchases. |
| POST | /v1/purchases | Authorize an agent purchase (policy-gated). |
| GET | /v1/purchases/{id} | Retrieve a purchase. |
| POST | /v1/purchases/{id}/cancel | Give back an unused authorization. |
| POST | /v1/purchases/{id}/complete | Record what was actually charged (≤ authorized). |
Billing
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/orgs/{orgId}/billing | The org's billing: preview trial, or plan, wallet, recharge and suspension (any member). |
| PATCH | /v1/orgs/{orgId}/billing | Set the automatic recharge, or cancel at the end of the paid month (OWNER, ADMIN or BILLING). |
| 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/portal | Where to manage the card and subscription. |
| POST | /v1/orgs/{orgId}/billing/retry | Pay the latest failed invoice, which reactivates a suspended org. |
| GET | /v1/orgs/{orgId}/billing/wallet | Money into and out of the wallet, newest first. |
| GET | /v1/prices | The published customer prices (public). |
Usage
| Method | Endpoint | Operation |
|---|---|---|
| GET | /v1/audit | The audit trail. |
| GET | /v1/events | The canonical event stream. |
| GET | /v1/ledger/verify | Verify the sealed ledger for an org. |
| GET | /v1/usage | Usage summary for the period. |
| GET | /v1/usage/adjustments | Append-only provider corrections with original booking periods and evidence bases. |
| GET | /v1/usage/ledger | The append-only usage ledger: provider cost on the preview, a paying org's sealed charges once it pays. |
Webhooks
| Method | Endpoint | Operation |
|---|---|---|
| POST | /v1/webhook-deliveries/{id}/replay | Re-send a past delivery. |
| GET | /v1/webhook-endpoints | List webhook endpoints. |
| POST | /v1/webhook-endpoints | Register a webhook endpoint. |
| PATCH | /v1/webhook-endpoints/{id} | Update a webhook endpoint. |
| DELETE | /v1/webhook-endpoints/{id} | Disable a webhook endpoint. |
| GET | /v1/webhook-endpoints/{id}/deliveries | Recent deliveries for an endpoint. |
| DELETE | /v1/webhook-endpoints/{id}/purge | Delete a webhook endpoint and its deliveries. |
| POST | /v1/webhook-endpoints/{id}/rotate-secret | Rotate an endpoint's signing secret. |
| POST | /v1/webhook-endpoints/{id}/test | Send a signed webhook.test event. |