Machine-readable spec: /openapi.json. Agent guide: /AGENTS.md.
| Method | Path | What it does | Auth |
|---|---|---|---|
GET | /api/health | Liveness and database check | no |
GET | /api/revision | Deployed git revision | no |
POST | /api/v1/auth/register | Create a person with email + password | no |
POST | /api/v1/auth/login | Sign in with email + password | no |
POST | /api/v1/auth/logout | Revoke the current session | yes |
GET | /api/v1/me | Current person, sign-in methods and businesses | yes |
POST | /api/v1/businesses | Create a business or agency (caller becomes owner) | yes |
GET | /api/v1/businesses | Businesses the caller belongs to or manages via an agency | yes |
GET | /api/v1/businesses/{id} | Business detail and the caller's effective access | yes |
GET | /api/v1/businesses/{id}/members | List members | yes |
PATCH | /api/v1/businesses/{id}/members/{personId} | Change a member role (last owner protected) | yes |
DELETE | /api/v1/businesses/{id}/members/{personId} | Remove a member or leave | yes |
POST | /api/v1/businesses/{id}/invitations | Invite by email or E.164 phone; returns a one-time share link | yes |
GET | /api/v1/businesses/{id}/invitations | List invitations | yes |
DELETE | /api/v1/businesses/{id}/invitations/{invitationId} | Revoke a pending invitation | yes |
POST | /api/v1/invitations/accept | Accept an invitation (recipient must be verified) | yes |
GET | /api/v1/businesses/{id}/activity | Append-only activity log, newest first | yes |
POST | /api/v1/auth/passkeys/register/options | Start adding a passkey to the signed-in person | yes |
POST | /api/v1/auth/passkeys/register/verify | Finish adding a passkey (WebAuthn attestation) | yes |
GET | /api/v1/auth/passkeys | List the caller's passkeys | yes |
DELETE | /api/v1/auth/passkeys/{credentialId} | Remove a passkey (the last sign-in method is kept) | yes |
POST | /api/v1/auth/passkeys/login/options | Start a passkey sign-in | no |
POST | /api/v1/auth/passkeys/login/verify | Finish a passkey sign-in (WebAuthn assertion) | no |
POST | /api/v1/auth/apple/nonce | Single-use nonce for native Sign in with Apple | no |
POST | /api/v1/auth/apple | Sign in with Apple identity token (iOS app) | no |
DELETE | /api/v1/me | Delete the caller's account (fresh sign-in; sole owners must transfer or close first) | yes |
GET | /api/v1/integrations | Apps OpenAccount can connect and their readiness | no |
GET | /api/v1/businesses/{id}/connections | Connected apps and their state | yes |
POST | /api/v1/businesses/{id}/connections | Connect an app (409 integration_unavailable until its adapter is live) | yes |
PATCH | /api/v1/businesses/{id}/connections/{connectionId} | Pause, resume (needs sign-in again) or disconnect | yes |
POST | /api/v1/businesses/{id}/agency-invitations | Invite an agency with a Read, Prepare or Run preset; returns a one-time link | yes |
GET | /api/v1/businesses/{id}/agency-invitations | List agency invitations | yes |
DELETE | /api/v1/businesses/{id}/agency-invitations/{invitationId} | Revoke a pending agency invitation | yes |
POST | /api/v1/agency-invitations/accept | Accept an agency invitation for one of your agencies (plan limits apply) | yes |
PATCH | /api/v1/businesses/{id}/agencies/{relationshipId} | Pause, resume or remove an agency (agency-owned connections pause) | yes |
GET | /api/v1/businesses/{id}/team | People, agencies, clients and agents of a business | yes |
GET | /api/v1/businesses/{id}/usage | Budgets and job counts for a month (?period=YYYY-MM) | yes |
GET | /api/v1/businesses/{id}/plan | Effective plan, limits and checkout availability | yes |
POST | /api/v1/businesses/{id}/plan/checkout | Start a paid plan (503 billing_unavailable until a provider is live) | yes |
GET | /api/v1/businesses/{id}/handover-report | Ownership, access, connections and open work, without credentials | yes |
POST | /api/v1/businesses/{id}/close | Close a business: ends agency access and disconnects apps | yes |
GET | /api/v1/admin/overview | Aggregate counts for internal operators only | yes |
GET | /api/v1/businesses/{id}/blueprints | Agency onboarding templates (?status=active|archived); no personal data or credentials | yes |
POST | /api/v1/businesses/{id}/blueprints | Create a versioned onboarding template (agency owners/admins) | yes |
GET | /api/v1/businesses/{id}/blueprints/{bid} | A template with its versions | yes |
POST | /api/v1/businesses/{id}/blueprints/{bid}/versions | Add a new version; earlier approvals are never widened | yes |
POST | /api/v1/businesses/{id}/blueprints/{bid}/clone | Clone a template | yes |
POST | /api/v1/businesses/{id}/blueprints/{bid}/archive | Archive a template | yes |
POST | /api/v1/businesses/{id}/blueprints/{bid}/unarchive | Restore an archived template | yes |
POST | /api/v1/blueprints/validate | Validate template content without saving it | yes |
POST | /api/v1/businesses/{id}/onboarding/plan | Turn an intent into a typed plan from your templates (deterministic, no model call) | yes |
POST | /api/v1/businesses/{id}/blueprints/{bid}/preview | Permission diff for one client: added, unchanged, narrowed, removed, unavailable | yes |
POST | /api/v1/businesses/{id}/onboarding-runs | Start an idempotent onboarding run for one client | yes |
GET | /api/v1/businesses/{id}/onboarding-runs | Onboarding runs (?side=agency|client) | yes |
GET | /api/v1/businesses/{id}/onboarding-metrics | Onboarding counts and durations | yes |
GET | /api/v1/onboarding-runs/{rid} | A run with its steps, diff and blockers | yes |
POST | /api/v1/onboarding-runs/{rid}/bindings | Bind client resources to template slots | yes |
POST | /api/v1/onboarding-runs/{rid}/approve | Client owner/admin approves this exact diff (covers only this client) | yes |
POST | /api/v1/onboarding-runs/{rid}/advance | Advance a run; finished steps are never repeated | yes |
POST | /api/v1/onboarding-runs/{rid}/pause | Pause a run | yes |
POST | /api/v1/onboarding-runs/{rid}/resume | Resume a paused run | yes |
POST | /api/v1/onboarding-runs/{rid}/cancel | Cancel a run | yes |
GET | /api/v1/businesses/{id}/health | Access health; sources that can't be checked are reported as cant_check, never ok | yes |
GET | /api/v1/accounts/health | Needs-attention summary for every account the caller can see | yes |
POST | /api/v1/businesses/{id}/repairs | Dry-run a narrowing repair; returns a revision that expires | yes |
POST | /api/v1/repairs/{pid}/apply | Apply a previewed repair (recent sign-in required; 409 if the state changed) | yes |
POST | /api/v1/repairs/{pid}/discard | Discard a previewed repair | yes |
GET | /api/v1/businesses/{id}/reports | Monthly client reports (?period=YYYY-MM) | yes |
POST | /api/v1/businesses/{id}/reports | Generate a monthly report (idempotent per period and facts) | yes |
GET | /api/v1/reports/{rid} | A report: final, reserved, estimated and refunded kept apart, exact minor units | yes |
GET | /api/v1/reports/{rid}/csv | Report as CSV with source and freshness per figure | yes |
GET | /api/v1/reports/{rid}/html | Report as printable HTML | yes |
GET | /api/v1/businesses/{id}/report-schedule | Monthly report schedule and recipients | yes |
PUT | /api/v1/businesses/{id}/report-schedule | Set recipients (current members only; removed people get nothing) | yes |
GET | /api/v1/me/reports | Reports delivered to the caller in the app | yes |
POST | /api/v1/businesses/{id}/assistant | Ask about one business; answers cite only records you can see (deterministic) | yes |
POST | /mcp | MCP (Streamable HTTP, JSON-RPC 2.0), read-only tools, bearer token | yes |