# API reference

Every route under `/api`, `/mcp`, `/oauth` and `/.well-known`, generated from the running application: 361 routes on this request. Authenticate with `Authorization: Bearer <token>` — a session token (`ses_…`) or a workspace API token (`plt_…`) with scopes `read ⊂ write ⊂ publish`. Tenant routes live under `/api/v1/workspaces/{ws}`; a workspace you cannot see is a 404. Errors are JSON `{error, detail}`; plan limits answer 402 with `detail.code = plan_limit`. Changes and the deprecation policy: [API changelog](/docs/changelog).

```
https://staging.a1lane.ai
```

The first call most clients make: `GET /api/v1/status` (no token). Then [schedule a post and prove it landed →](/docs/schedule-and-prove)

## Workspace · accounts

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/accounts` | list accounts |
| `POST` | `/api/v1/workspaces/{ws}/accounts` | connect account |
| `DELETE` | `/api/v1/workspaces/{ws}/accounts/{id}` | disconnect account |
| `GET` | `/api/v1/workspaces/{ws}/accounts/{id}` | get account |
| `GET` | `/api/v1/workspaces/{ws}/accounts/{id}/audio` | Instagram audio discovery for one connected Instagram account — |
| `GET` | `/api/v1/workspaces/{ws}/accounts/{id}/best-times` | Best-time-to-post suggestions from this connection's own history (or not enough data). |
| `GET` | `/api/v1/workspaces/{ws}/accounts/{id}/choices` | Option values the platform enumerates for this account (e.g. Pinterest boards). |
| `POST` | `/api/v1/workspaces/{ws}/accounts/{id}/pause` | pause account |
| `POST` | `/api/v1/workspaces/{ws}/accounts/{id}/probe` | probe account |
| `GET` | `/api/v1/workspaces/{ws}/accounts/{id}/queue` | account queue |
| `POST` | `/api/v1/workspaces/{ws}/accounts/{id}/reconnect` | reconnect account |
| `POST` | `/api/v1/workspaces/{ws}/accounts/{id}/resume` | resume account |
| `PUT` | `/api/v1/workspaces/{ws}/accounts/{id}/settings` | account settings |

## Workspace · ai

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/ai/assist` | GET …/ai/assist: whether AI assist is available here, which provider answers (hosted |
| `POST` | `/api/v1/workspaces/{ws}/ai/assist` | POST {action, brief?, caption?, platforms?, count?, tone?} (ai-assist-1114): write a |

## Workspace · analytics

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/analytics` | workspace analytics |
| `GET` | `/api/v1/workspaces/{ws}/analytics/drill` | Exactly the receipts composing one number (term × channel × bucket × window). |
| `GET` | `/api/v1/workspaces/{ws}/analytics/view` | The delivery dashboard's numbers: window, totals, per-connection buckets, the chart series. |

## Workspace · attention

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/attention` | attention |

## Workspace · attention-view

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/attention-view` |  attention view |

## Workspace · batches

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/batches` | list batches |
| `GET` | `/api/v1/workspaces/{ws}/batches/{id}` | get batch |
| `GET` | `/api/v1/workspaces/{ws}/batches/{id}/receipt-links` | list receipt links |
| `POST` | `/api/v1/workspaces/{ws}/batches/{id}/receipt-links` | create receipt link |

## Workspace · benchmarks

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/benchmarks` | Tracked public profiles (official routes only) with their latest numbers. |
| `POST` | `/api/v1/workspaces/{ws}/benchmarks` | Track a public profile; refused with the reason where no official route exists. |
| `DELETE` | `/api/v1/workspaces/{ws}/benchmarks/{id}` | Stop tracking a profile (its stored numbers go with it). |

## Workspace · billing

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/billing` | workspace billing |
| `POST` | `/api/v1/workspaces/{ws}/billing/checkout` | billing checkout |
| `POST` | `/api/v1/workspaces/{ws}/billing/portal` | billing portal |
| `POST` | `/api/v1/workspaces/{ws}/billing/reconcile` | billing reconcile |

## Workspace · billing-view

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/billing-view` | billing view |

## Workspace · brand-instructions

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/brand-instructions` | The workspace's stored brand instructions — readable by anyone who can read the |
| `PUT` | `/api/v1/workspaces/{ws}/brand-instructions` | Replace the named fields (owners and admins — the same 'manage' permission as the |

## Workspace · calendar

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/calendar` | calendar |
| `GET` | `/api/v1/workspaces/{ws}/calendar/view` | GET …/calendar/view?month=YYYY-MM — C.240: the workspace's posts as a month (read-only). |

## Workspace · captions

| Method | Path | Summary |
| `POST` | `/api/v1/workspaces/{ws}/captions/suggest` | POST {caption?, destinations?: [account_id], media_id?}: caption suggestions from the |

## Workspace · compose

| Method | Path | Summary |
| `POST` | `/api/v1/workspaces/{ws}/compose/captions` | POST …/compose/captions — the AI panel's one call (read-only; a suggestion enters the |
| `POST` | `/api/v1/workspaces/{ws}/compose/preflight` | POST …/compose/preflight — read-only: the create path's own validation over the form as |
| `GET` | `/api/v1/workspaces/{ws}/compose/sections` | GET …/compose/sections?dest=<card key>&board=<board id> — G11: the chosen board's |
| `POST` | `/api/v1/workspaces/{ws}/compose/submit` | POST …/compose/submit — the composer's submit decision (web_compose.submit_outcome): |
| `GET` | `/api/v1/workspaces/{ws}/compose/view` | GET …/compose/view — everything the server composer renders, as data (same query |

## Workspace · connect

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/connect` | GET …/connect — everything the SSR Connect page renders, as data. |
| `POST` | `/api/v1/workspaces/{ws}/connect/accounts/{id}/disconnect` | ``scope`` = ``here`` (remove from this workspace — the default, and exactly the old |
| `GET` | `/api/v1/workspaces/{ws}/connect/accounts/{id}/disconnect-preview` | What disconnecting this account would meet — the active deliveries that block |
| `POST` | `/api/v1/workspaces/{ws}/connect/accounts/{id}/probe` | account probe |
| `POST` | `/api/v1/workspaces/{ws}/connect/bluesky/authorize` | Bluesky consent connect (``web_connect.bluesky_authorize``): handle → identity resolution, |
| `POST` | `/api/v1/workspaces/{ws}/connect/discord/authorize` | Discord bot invite (2026-11-03): the code-grant authorize URL for our one bot. The webhook |
| `PUT` | `/api/v1/workspaces/{ws}/connect/discord/{id}/thread` | B13/R5: saving the thread reconnects the same webhook with it (checked with Discord again). |
| `GET` | `/api/v1/workspaces/{ws}/connect/health` | health |
| `GET` | `/api/v1/workspaces/{ws}/connect/health/batch` | health batch |
| `POST` | `/api/v1/workspaces/{ws}/connect/mastodon/authorize` | Consent conversion step 2 (PR #94): the confirmed server → its authorize screen. Pixelfed |
| `GET` | `/api/v1/workspaces/{ws}/connect/mastodon/reach` | mastodon reach |
| `POST` | `/api/v1/workspaces/{ws}/connect/mastodon/server` | Step 1: handle (or the server field) → one confirmed, reachable server (``mastodon_server``). |
| `POST` | `/api/v1/workspaces/{ws}/connect/notify` | "Tell me if one opens" — interest for not-yet-available platforms; collects no email. |
| `GET` | `/api/v1/workspaces/{ws}/connect/threads/before-view` | before view |
| `POST` | `/api/v1/workspaces/{ws}/connect/threads/email` | email link |
| `POST` | `/api/v1/workspaces/{ws}/connect/threads/resume` | The confirming tap: the token is claimed atomically (a second open loses), then the normal |
| `GET` | `/api/v1/workspaces/{ws}/connect/threads/resume-view` | Whether the emailed link is still valid for this reader — read only, never spends it. |
| `POST` | `/api/v1/workspaces/{ws}/connect/{platform}/back` | back |
| `POST` | `/api/v1/workspaces/{ws}/connect/{platform}/check` | Stage 1 (R1): who is this credential and what may it do — posts nothing, connects |
| `GET` | `/api/v1/workspaces/{ws}/connect/{platform}/choices` | choices |
| `POST` | `/api/v1/workspaces/{ws}/connect/{platform}/choose` | choose |
| `POST` | `/api/v1/workspaces/{ws}/connect/{platform}/commit` | Stage 2: the provider-named commit through the engine's verify-before-persist connect. |
| `POST` | `/api/v1/workspaces/{ws}/connect/{platform}/discard` | draft discard |
| `POST` | `/api/v1/workspaces/{ws}/connect/{platform}/draft` | B5 autosave: non-secret fields, ticks, step; the secret only into the encrypted draft. |
| `POST` | `/api/v1/workspaces/{ws}/connect/{platform}/paste` | ``web.connect_paste`` as JSON: the operator token paste and the Connection-health token |
| `GET` | `/api/v1/workspaces/{ws}/connect/{platform}/reuse` | reuse view |
| `POST` | `/api/v1/workspaces/{ws}/connect/{platform}/reuse` | Accept the offer: this workspace's row references the existing record. NO OAuth round |
| `POST` | `/api/v1/workspaces/{ws}/connect/{platform}/start` | The OAuth start (``web.connect_start``): a URL to navigate to by document, never a 302. |

## Workspace · connections

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/connections` | Item 8: connection health (``?account=`` narrows to one account). |
| `GET` | `/api/v1/workspaces/{ws}/connections/reconnect` | connections batch |

## Workspace · desk-pulse

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/desk-pulse` | The pulse cue's counts (docs/api/openapi.yaml getDeskPulse; postlane/desk_summary.py). |

## Workspace · desk-summary

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/desk-summary` | Workspace home in one read (docs/api/openapi.yaml getDeskSummary; postlane/desk_summary.py). |

## Workspace · digest

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/digest` | The digest computed live for [since, until) (default: the last 24 hours) — |

## Workspace · digests

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/digests` | digest runs |
| `POST` | `/api/v1/workspaces/{ws}/digests/run` | Run the last complete period of a cadence now (owner/admin): idempotent per period. |

## Workspace · duplicates

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/duplicates` | The workspace's duplicate count (open and resolved). |

## Workspace · engagement

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/engagement` | Engagement rollups per connection / platform over the window (unavailable excluded, counted). |
| `GET` | `/api/v1/workspaces/{ws}/engagement/view` | The platform-metrics view: summary strip + table with per-cell availability, coverage on |

## Workspace · events

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/events` | events |

## Workspace · export

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/export` | export |

## Workspace · feedback

| Method | Path | Summary |
| `POST` | `/api/v1/workspaces/{ws}/feedback` | The signed-in app's Help & feedback door (mature-product E1; support intake 2026-11-02): |

## Workspace · feeds

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/feeds` | feed list |
| `POST` | `/api/v1/workspaces/{ws}/feeds` | feed add |
| `DELETE` | `/api/v1/workspaces/{ws}/feeds/{id}` | feed delete |
| `POST` | `/api/v1/workspaces/{ws}/feeds/{id}` | feed update |
| `GET` | `/api/v1/workspaces/{ws}/feeds/{id}/items` | feed items |
| `POST` | `/api/v1/workspaces/{ws}/feeds/{id}/poll` | feed poll |

## Workspace · held-posts

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/held-posts` | The posts a billing pause held (missed-window destinations tagged billing_hold). |
| `POST` | `/api/v1/workspaces/{ws}/held-posts/release` | The post-payment release — every billing-held destination re-enters the normal |

## Workspace · imports

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/imports` | import list |
| `POST` | `/api/v1/workspaces/{ws}/imports/preview` | Dry-run an export (hootsuite | generic | buffer_analytics); nothing is posted. |
| `GET` | `/api/v1/workspaces/{ws}/imports/{id}` | import view |
| `POST` | `/api/v1/workspaces/{ws}/imports/{id}/commit` | import commit |
| `GET` | `/api/v1/workspaces/{ws}/imports/{id}/rejected.csv` | import rejected csv |

## Workspace · inbox

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/inbox` | The Notifications stream: alerts only (digest entries left the stream in the |
| `POST` | `/api/v1/workspaces/{ws}/inbox/read` | Advance the caller's read watermark to the newest stream entry: everything currently |

## Workspace · insights

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/insights/artefacts` | Every report artefact the workspace has generated — scheduled exports and proof packets — |
| `GET` | `/api/v1/workspaces/{ws}/insights/envelope` | Analytics build phase 1 (adjudication 2026-11-13 ruling 2): THE engagement envelope behind |
| `GET` | `/api/v1/workspaces/{ws}/insights/posts` | posts |
| `GET` | `/api/v1/workspaces/{ws}/insights/summary` | summary |

## Workspace · ledger

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/ledger` | Ledger-first home: the newest receipts with their post + destination context. |

## Workspace · link-page

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/link-page` | get page |
| `PUT` | `/api/v1/workspaces/{ws}/link-page` | put page |
| `GET` | `/api/v1/workspaces/{ws}/link-page/counts` | counts |
| `POST` | `/api/v1/workspaces/{ws}/link-page/items` | add item |
| `POST` | `/api/v1/workspaces/{ws}/link-page/items/order` | order items |
| `DELETE` | `/api/v1/workspaces/{ws}/link-page/items/{id}` | delete item |
| `PATCH` | `/api/v1/workspaces/{ws}/link-page/items/{id}` | patch item |

## Workspace · mcp

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/mcp/idempotency/{tool}/{key}` | The durable idempotency record the stdio MCP server reads and writes |
| `PUT` | `/api/v1/workspaces/{ws}/mcp/idempotency/{tool}/{key}` | The durable idempotency record the stdio MCP server reads and writes |

## Workspace · media

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/media` | Media library (leg 3, L2): filter by tag / kind / search; archived assets on request. |
| `POST` | `/api/v1/workspaces/{ws}/media` | add media |
| `POST` | `/api/v1/workspaces/{ws}/media/bulk` | The Library's multi-select. One action over up to BULK_MEDIA_MAX assets, each |
| `DELETE` | `/api/v1/workspaces/{ws}/media/{id}` | delete media |
| `GET` | `/api/v1/workspaces/{ws}/media/{id}` | get media |
| `PUT` | `/api/v1/workspaces/{ws}/media/{id}` | update media |
| `POST` | `/api/v1/workspaces/{ws}/media/{id}/edits` | create edit |
| `POST` | `/api/v1/workspaces/{ws}/media/{id}/edits/check` | check edit |
| `GET` | `/api/v1/workspaces/{ws}/media/{id}/edits/{job}` | get edit |
| `GET` | `/api/v1/workspaces/{ws}/media/{id}/file` | media file |
| `GET` | `/api/v1/workspaces/{ws}/media/{id}/frame` | Row 590 (Q-W6-12b follow-up from PR #868): the frame of a stored video at a given time, |
| `GET` | `/api/v1/workspaces/{ws}/media/{id}/poster` | media poster |

## Workspace · members

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/members` | list members |
| `POST` | `/api/v1/workspaces/{ws}/members` | invite member |
| `DELETE` | `/api/v1/workspaces/{ws}/members/{id}` | remove member |
| `PUT` | `/api/v1/workspaces/{ws}/members/{id}` | change member |
| `POST` | `/api/v1/workspaces/{ws}/members/{id}/resend` | resend invite |

## Workspace · oauth

| Method | Path | Summary |
| `POST` | `/api/v1/workspaces/{ws}/oauth/{platform}/choose` | oauth choose |
| `GET` | `/api/v1/workspaces/{ws}/oauth/{platform}/start` | oauth start |

## Workspace · pause

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/pause` | The workspace's durable pause state (workspace-wide + per-account). |
| `POST` | `/api/v1/workspaces/{ws}/pause` | pause workspace |

## Workspace · posts

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/posts` | list posts |
| `POST` | `/api/v1/workspaces/{ws}/posts` | Create a post. Send an ``Idempotency-Key`` header (any printable string up to 255 |
| `POST` | `/api/v1/workspaces/{ws}/posts/batch` | create batch |
| `POST` | `/api/v1/workspaces/{ws}/posts/import` | Bulk CSV import (leg 3, L2): multipart 'file', text/csv body, or JSON {csv, mapping}. |
| `POST` | `/api/v1/workspaces/{ws}/posts/price-check` | Item 9(a): the composer's live X pricing — the same pass create_post's warnings use. |
| `DELETE` | `/api/v1/workspaces/{ws}/posts/{id}` | delete post |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}` | get post |
| `PUT` | `/api/v1/workspaces/{ws}/posts/{id}` | update post |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/approval` | post approval |
| `*` | `/api/v1/workspaces/{ws}/posts/{id}/autosave` | Item 7a: PUT {revision, draft} saves the composer state against the draft's revision; |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/cancel` | cancel post |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/comments` | The post's discussion thread. Any principal that can read the post can read the |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/comments` | Commenting takes a person: an API token has no name to attribute, so writes need a |
| `DELETE` | `/api/v1/workspaces/{ws}/posts/{id}/comments/{cid}` | The author deletes their own comment (the engine enforces authorship). |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/acknowledge-divergence` | acknowledge divergence |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/confirm-deleted` | Confirm a manual delete no probe can settle (READBACK = False) — |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/continue-parts` | continue parts |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/decline-finish` | decline finish |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/delete-check` | Row 647: the REST twin of the Attention item's "I deleted it — check now" (PR #880, |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/finish` | finish view |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/finish-check` | Run the destination's finish-check now and return the finish view. |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/finish-view` | The phone-first finish page for one destination waiting for a human finish. |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/mark-resolved` | Accept an unverifiable send as delivered — |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/missed-window` | Decide a held missed window (publish_now | next_slot | reschedule | cancel). |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/observations` | The append-only observation records of one destination. |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/parts` | The destination's parts (thread parts, first comment, playlist add). |
| `PUT` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/privacy` | Change one unsent destination's privacy in place (validated as compose validates); |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/removal` | Record a platform removal event for one destination (no webhook receiver |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/reoffer` | reoffer finish |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/resolve` | resolve destination |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/resolve-duplicate` | Keep one native copy (the others route through unpublish) or keep both. |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/support-bundles` | A destination's redacted support bundles (newest last). |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/destinations/{dest}/unpublish` | Start the unpublish chain for one live destination. |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/detail-view` | The post page (was web.post_page) as data. The page's own query (``confirm``, ``landing``, |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/duplicate` | duplicate post |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/engagement` | One post's engagement per destination — latest values with asOf, reasons, series. |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/handoff` | handoff |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/handoff-view` | The handoff pack: one pack per destination waiting for a human finish (``?all=`` lists |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/platform-comments` | comments |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/platform-comments/replies` | reply |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/platform-comments/replies/{reply_id}/check` | check |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/platform-comments/replies/{reply_id}/resend` | resend |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/publish` | publish post |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/receipt-links` | list receipt links |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/receipt-links` | create receipt link |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/recycle` | create recycle |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/release` | release post |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/reschedule` | reschedule post |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/retry` | retry post |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/review-links` | list review links |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/review-links` | create review link |
| `DELETE` | `/api/v1/workspaces/{ws}/posts/{id}/review-links/{nonce}` | revoke review link |
| `GET` | `/api/v1/workspaces/{ws}/posts/{id}/revisions` | Item 7a: the append-only revision history of a post. |
| `POST` | `/api/v1/workspaces/{ws}/posts/{id}/revisions/{n}/restore` | Item 7a: restore revision N as a NEW revision (body may carry ``revision`` = the |

## Workspace · proof-packets

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/proof-packets` | list route |
| `POST` | `/api/v1/workspaces/{ws}/proof-packets` | generate route |
| `GET` | `/api/v1/workspaces/{ws}/proof-packets/{id}` | The frozen JSON payload: the whole packet when it is one part; when split, the cover, |
| `GET` | `/api/v1/workspaces/{ws}/proof-packets/{id}/download` | download route |
| `GET` | `/api/v1/workspaces/{ws}/proof-packets/{id}/share-links` | list links route |
| `POST` | `/api/v1/workspaces/{ws}/proof-packets/{id}/share-links` | create link route |
| `POST` | `/api/v1/workspaces/{ws}/proof-packets/{id}/share-links/{lid}/revoke` | revoke link route |

## Workspace · queue

| Method | Path | Summary |
| `POST` | `/api/v1/workspaces/{ws}/queue/posts/{id}/time` | POST …/queue/posts/{id}/time — Change time / Remove (web_queue.time_change): the shipped |
| `POST` | `/api/v1/workspaces/{ws}/queue/schedules/{key}` | POST …/queue/schedules/{key} — the schedule editor's steps (web_queue.schedule_step): |
| `GET` | `/api/v1/workspaces/{ws}/queue/view` | GET …/queue/view — the server Queue's week as data (query: account, week, post). |

## Workspace · quota

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/quota/fit` | Does a publish to ``account_id`` fit at ``at`` (default now), and if not, |

## Workspace · receipt-links

| Method | Path | Summary |
| `POST` | `/api/v1/workspaces/{ws}/receipt-links/{lid}/revoke` | revoke receipt link |

## Workspace · recycles

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/recycles` | list recycles |
| `DELETE` | `/api/v1/workspaces/{ws}/recycles/{id}` | stop recycle |
| `GET` | `/api/v1/workspaces/{ws}/recycles/{id}` | One series with its next occurrences (``?upcoming=`` 1–20, default 5). |
| `POST` | `/api/v1/workspaces/{ws}/recycles/{id}/pause` | pause recycle |
| `POST` | `/api/v1/workspaces/{ws}/recycles/{id}/resume` | resume recycle |

## Workspace · reports

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/reports` | A composed report (delivery + engagement per connection, chosen window) as JSON or CSV. |
| `GET` | `/api/v1/workspaces/{ws}/reports/exports/{id}` | Download one produced export (sign-in / token required; never mailed as an attachment). |
| `GET` | `/api/v1/workspaces/{ws}/reports/schedules` | Scheduled exports (weekly/monthly) and the exports they produced, with their state. |
| `POST` | `/api/v1/workspaces/{ws}/reports/schedules` | Schedule a weekly/monthly export mailed as a download link to workspace members. |
| `DELETE` | `/api/v1/workspaces/{ws}/reports/schedules/{id}` | Stop a scheduled export (exports already produced stay downloadable). |

## Workspace · resume

| Method | Path | Summary |
| `POST` | `/api/v1/workspaces/{ws}/resume` | resume workspace |

## Workspace · settings

| Method | Path | Summary |
| `PUT` | `/api/v1/workspaces/{ws}/settings` | workspace settings |
| `PUT` | `/api/v1/workspaces/{ws}/settings/ai` | PUT {endpoint?, model?, key?}: the key goes to the vault, never to settings/export. |
| `GET` | `/api/v1/workspaces/{ws}/settings/billing-notification-preferences` | The billing account holder's own email switches for the money kinds (2026-11-01 |
| `PUT` | `/api/v1/workspaces/{ws}/settings/billing-notification-preferences` | The billing account holder's own email switches for the money kinds (2026-11-01 |
| `PUT` | `/api/v1/workspaces/{ws}/settings/digest` | digest settings |
| `GET` | `/api/v1/workspaces/{ws}/settings/notification-preferences` | Amendment 3a, as amended 2026-11-01: the caller's own per-type EMAIL preferences for |
| `PUT` | `/api/v1/workspaces/{ws}/settings/notification-preferences` | Amendment 3a, as amended 2026-11-01: the caller's own per-type EMAIL preferences for |
| `PUT` | `/api/v1/workspaces/{ws}/settings/notifications` | Update notification targets ({emails, webhook_url, webhook_secret?, events}); the secret goes to the vault. |
| `PUT` | `/api/v1/workspaces/{ws}/settings/onboarding` | PUT {step: done|skipped|pending}: resumable, skippable onboarding steps (L5). |
| `PUT` | `/api/v1/workspaces/{ws}/settings/shortener` | PUT {provider, domain?, token?}: the token goes to the vault, never to settings/export. |
| `PUT` | `/api/v1/workspaces/{ws}/settings/x-caps` | Item 9(c): owner/admin edit the workspace's soft/hard X caps (the 5b breaker enforces). |

## Workspace · settings-actions

| Method | Path | Summary |
| `POST` | `/api/v1/workspaces/{ws}/settings-actions/{action}` | POST /api/v1/workspaces/{ws}/settings-actions/{action} — each branch runs the SSR |

## Workspace · settings-view

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/settings-view` | settings view |

## Workspace · sso-actions

| Method | Path | Summary |
| `POST` | `/api/v1/workspaces/{ws}/sso-actions/{action}` | ``POST /api/v1/workspaces/{ws}/sso-actions/{action}`` — each step of the page, with the |

## Workspace · sso-view

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/sso-view` | ``GET /api/v1/workspaces/{ws}/sso-view`` — the page's data: ``sso.status`` as is, plus the |

## Workspace · text-assets

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/text-assets` | The workspace's hashtag sets + caption snippets (bodies included — |
| `POST` | `/api/v1/workspaces/{ws}/text-assets` | Save a named hashtag set or caption snippet in this workspace. |
| `DELETE` | `/api/v1/workspaces/{ws}/text-assets/{id}` | Delete a saved set/snippet from this workspace. |
| `PUT` | `/api/v1/workspaces/{ws}/text-assets/{id}` | Rename a saved set/snippet or replace its text. |

## Workspace · tokens

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/tokens` | list tokens |
| `POST` | `/api/v1/workspaces/{ws}/tokens` | create token |
| `DELETE` | `/api/v1/workspaces/{ws}/tokens/{id}` | revoke token |
| `GET` | `/api/v1/workspaces/{ws}/tokens/{id}/usage` | One token's MCP usage — the operator endpoint's own numbers. |

## Workspace · upload-links

| Method | Path | Summary |
| `POST` | `/api/v1/workspaces/{ws}/upload-links` | create upload link |
| `GET` | `/api/v1/workspaces/{ws}/upload-links/{id}` | upload link status |

## Workspace · uploads

| Method | Path | Summary |
| `POST` | `/api/v1/workspaces/{ws}/uploads` | create upload |
| `GET` | `/api/v1/workspaces/{ws}/uploads/{id}` | upload status |
| `PUT` | `/api/v1/workspaces/{ws}/uploads/{id}/chunks/{n}` | upload chunk |
| `POST` | `/api/v1/workspaces/{ws}/uploads/{id}/complete` | complete upload |

## Workspace · usage

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/usage/x` | Item 9(b): the month's X spend — confirmed vs estimated, never blended — with pace and caps. |

## Workspace · webhooks

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/webhooks/deliveries` | The webhook delivery ledger (bar-review 1030 §3.1): newest first, filterable by state |
| `GET` | `/api/v1/workspaces/{ws}/webhooks/deliveries/{id}` | One delivery with every attempt and the stored payload it re-sends on retry/replay. |
| `POST` | `/api/v1/workspaces/{ws}/webhooks/deliveries/{id}/replay` | Re-send a failed or retry-pending delivery now: stored body, same event id, fresh |
| `POST` | `/api/v1/workspaces/{ws}/webhooks/endpoint/enable` | Turn a disabled webhook endpoint back on — owners and admins only. |
| `GET` | `/api/v1/workspaces/{ws}/webhooks/event-types` | List the event types a subscription can name, with one sample each. |
| `GET` | `/api/v1/workspaces/{ws}/webhooks/samples` | Return up to three real recent events of one type, as full envelopes. |
| `GET` | `/api/v1/workspaces/{ws}/webhooks/subscriptions` | List the webhook subscriptions this credential may see. |
| `POST` | `/api/v1/workspaces/{ws}/webhooks/subscriptions` | Subscribe a receiver address to workspace events; the signing secret is shown once. |
| `DELETE` | `/api/v1/workspaces/{ws}/webhooks/subscriptions/{id}` | Remove a webhook subscription; an already-removed id answers 204 again. |
| `GET` | `/api/v1/workspaces/{ws}/webhooks/subscriptions/{id}` | Read one webhook subscription. |
| `PATCH` | `/api/v1/workspaces/{ws}/webhooks/subscriptions/{id}` | Change a subscription's events, description or state (active or paused). |
| `GET` | `/api/v1/workspaces/{ws}/webhooks/subscriptions/{id}/deliveries` | List one subscription's deliveries, newest first. |
| `GET` | `/api/v1/workspaces/{ws}/webhooks/subscriptions/{id}/deliveries/{did}` | Read one delivery with every attempt and the stored payload. |
| `POST` | `/api/v1/workspaces/{ws}/webhooks/subscriptions/{id}/deliveries/{did}/replay` | Re-send a failed or retrying delivery now: same body, same event id, fresh signature. |
| `POST` | `/api/v1/workspaces/{ws}/webhooks/subscriptions/{id}/enable` | Turn a disabled subscription back on; nothing is replayed. |
| `POST` | `/api/v1/workspaces/{ws}/webhooks/subscriptions/{id}/rotate-secret` | Mint a new signing secret, shown once; the old one signs alongside for 24 hours. |
| `POST` | `/api/v1/workspaces/{ws}/webhooks/subscriptions/{id}/test` | Send one test event to a subscription now and report the outcome. |

## Workspace · {kind}

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces/{ws}/{kind}/{id}/proof-packet` | ``GET /api/v1/workspaces/{ws}/{posts|batches}/{id}/proof-packet`` — the packet page's data. |

## admin

| Method | Path | Summary |
| `GET` | `/api/v1/admin/analytics` | admin analytics |
| `GET` | `/api/v1/admin/billing` | admin billing |
| `GET` | `/api/v1/admin/cohorts` | Mature-product A4: weekly signup cohorts tracked through the funnel steps, with |
| `GET` | `/api/v1/admin/engagement` | Engagement pipeline counts across workspaces (counts only, no tenant data). |
| `GET` | `/api/v1/admin/feedback` | Mature-product E1: the operator read over in-app feedback — counts, the daily queue |
| `POST` | `/api/v1/admin/feedback/{id}/state` | Support hub (2026-11-02): move one feedback entry through new → needs_reply → done |
| `GET` | `/api/v1/admin/funnel` | Product-truth PT-2: the activation funnel (signup → verified → first connect → first |
| `GET` | `/api/v1/admin/mcp` | Per-tool call volume, error rate and latency across the deployment (?token= for one token). |
| `GET` | `/api/v1/admin/mcp/funnel` | The assistant journey funnel from durable grant rows — by execution client (OAuth |
| `GET` | `/api/v1/admin/metrics/digest` | The standing weekly metrics digest (data only; ?week=YYYY-Www, newest by default). |
| `GET` | `/api/v1/admin/quota` | Every ledger bucket with its current-window usage. |
| `PUT` | `/api/v1/admin/quota/{key}` | PUT {capacity, source?}: a verified number (e.g. the Cloud Console allocation) drops in |
| `GET` | `/api/v1/admin/scheduler` | The tick gauge alone (fleet p95 + per-workspace, with its trip lines). |
| `GET` | `/api/v1/admin/stats` | admin stats |
| `GET` | `/api/v1/admin/support` | Support S1: the operator's Support view as JSON (admin token) — ?filter=open|due_soon| |
| `POST` | `/api/v1/admin/support/{id}/action` | Support S1: one auditable operator action on a support record (admin token): |
| `GET` | `/api/v1/admin/suspensions` | Every suspension record — active first; ``?all=1`` adds lifted ones |
| `GET` | `/api/v1/admin/throttles` | Durable throttle state (hits per kind / hashed key). |
| `POST` | `/api/v1/admin/users/{id}/suspend` | admin user suspend |
| `POST` | `/api/v1/admin/users/{id}/unsuspend` | admin user unsuspend |
| `POST` | `/api/v1/admin/workspaces/{id}/suspend` | admin workspace suspend |
| `POST` | `/api/v1/admin/workspaces/{id}/unsuspend` | admin workspace unsuspend |
| `POST` | `/api/v1/admin/workspaces/{ws}/destinations/{id}/retire` | Retire one queued destination with a stored reason; POST {operator, reason, note?}. |

## auth

| Method | Path | Summary |
| `POST` | `/api/v1/auth/login` | auth login |
| `POST` | `/api/v1/auth/logout` | auth logout |
| `POST` | `/api/v1/auth/reset/confirm` | auth reset confirm |
| `POST` | `/api/v1/auth/reset/request` | auth reset request |
| `POST` | `/api/v1/auth/reset/revoke-all` | The completion screen's one-click opt-in (OWASP ask-the-user): revoke every API token |
| `POST` | `/api/v1/auth/signup` | auth signup |
| `POST` | `/api/v1/auth/verify-email` | auth verify email |

## billing

| Method | Path | Summary |
| `POST` | `/api/v1/billing/webhook` | Stripe → us. Public route; the signature is the only credential. Raw body, no parsing |

## client errors

| Method | Path | Summary |
| `POST` | `/api/v1/client-errors` | The signed-in app's browser-error reporter |

## data deletion

| Method | Path | Summary |
| `POST` | `/api/v1/data-deletion/callback` | Meta → us (Facebook Login / Instagram / Threads). Public; the signature is the only |

## engagement

| Method | Path | Summary |
| `GET` | `/api/v1/engagement/coverage` | The public per-platform × metric coverage/freshness matrix, generated from code. |

## health

| Method | Path | Summary |
| `GET` | `/api/v1/health` | Liveness, public (row 549): the ALB target-group check and the off-box Route 53 probe |

## invites

| Method | Path | Summary |
| `GET` | `/api/v1/invites/{token}` | invite preview |
| `POST` | `/api/v1/invites/{token}/accept` | invite accept |

## link page

| Method | Path | Summary |
| `GET` | `/api/v1/link-page/handle` | handle check |

## mcp

| Method | Path | Summary |
| `GET` | `/mcp/listing.json` | Directory listing metadata (name, description, icon, categories) from one place. |
| `*` | `/mcp/v1` | POST /mcp/v1 — JSON-RPC over HTTP with a Bearer workspace token (OAuth-issued or pasted). |

## me

| Method | Path | Summary |
| `DELETE` | `/api/v1/me` | me delete |
| `GET` | `/api/v1/me` | me |
| `GET` | `/api/v1/me/2fa` | me 2fa |
| `POST` | `/api/v1/me/2fa/codes-saved` | POST /api/v1/me/2fa/codes-saved — the SSR ``security_codes_saved`` call (after the box is ticked). |
| `POST` | `/api/v1/me/2fa/disable` | me 2fa disable |
| `POST` | `/api/v1/me/2fa/enroll` | me 2fa enroll |
| `POST` | `/api/v1/me/2fa/recovery-codes` | me 2fa recovery |
| `POST` | `/api/v1/me/2fa/verify` | me 2fa verify |
| `GET` | `/api/v1/me/account-view` | account view |
| `POST` | `/api/v1/me/credentials/revoke-all` | The signed-in twin, offered on the password-change confirmation (reset-token brief). |
| `DELETE` | `/api/v1/me/email` | DELETE /api/v1/me/email — the SSR ``account_email_cancel`` call. |
| `POST` | `/api/v1/me/email` | POST /api/v1/me/email — the SSR ``account_email`` call: ``product.request_email_change``. |
| `GET` | `/api/v1/me/export` | me export |
| `PUT` | `/api/v1/me/password` | me password |
| `GET` | `/api/v1/me/preferences` | Amendment 8a: the user's own display defaults (timezone, locale). |
| `PUT` | `/api/v1/me/preferences` | Amendment 8a: the user's own display defaults (timezone, locale). |
| `PUT` | `/api/v1/me/profile` | PUT /api/v1/me/profile — the SSR ``account_profile`` call: ``product.update_name``. |
| `GET` | `/api/v1/me/sessions` | me sessions |
| `POST` | `/api/v1/me/sessions/revoke-all` | me sessions revoke all |
| `DELETE` | `/api/v1/me/sessions/{id}` | me session revoke |
| `GET` | `/api/v1/me/sign-in-methods` | ``GET /api/v1/me/sign-in-methods`` — Settings → Security's sign-in methods panel (C.298: |
| `POST` | `/api/v1/me/sign-in-methods/{provider}/unlink` | ``POST /api/v1/me/sign-in-methods/{provider}/unlink`` — never the last way to sign in. |
| `POST` | `/api/v1/me/terms-notice/dismiss` | Q-TERM: record that this user saw the current terms version; the banner stops. |
| `POST` | `/api/v1/me/verify-email/resend` | me verify resend |
| `GET` | `/api/v1/me/workspaces-view` | ``GET /api/v1/me/workspaces-view`` — the picker's cards (founder, 2026-11-01): each |

## meta

| Method | Path | Summary |
| `POST` | `/api/v1/meta/deauthorize` | Meta → us when a person removes the app: Facebook Login / Instagram "Deauthorize Callback |

## notice

| Method | Path | Summary |
| `GET` | `/api/v1/notice` | The sealed answer, or 404 when there is none (expired, absent, or not ours). |

## oauth

| Method | Path | Summary |
| `GET` | `/oauth/bluesky/client-metadata.json` | ``GET /oauth/bluesky/client-metadata.json`` — 200 application/json, no redirect; 404 when |
| `GET` | `/oauth/{platform}/callback` | Platform redirect target (no login needed: the one-time state binds workspace + user). |

## oauth2

| Method | Path | Summary |
| `GET` | `/oauth2/authorize` | Consent page: login (or sign-up) → choose workspace + scopes → Allow. |
| `POST` | `/oauth2/authorize` | authorize submit |
| `POST` | `/oauth2/register` | Register a public OAuth client (assistants register themselves on first connect). |
| `POST` | `/oauth2/revoke` | RFC 7009: revoke an access or refresh token. Always 200 (no token enumeration) for |
| `POST` | `/oauth2/token` | Authorization-code (PKCE) and refresh-token grants; refresh rotates both tokens. |

## plans

| Method | Path | Summary |
| `GET` | `/api/v1/plans` | Public: the plan configuration the pricing page renders (one source of truth). |

## platforms

| Method | Path | Summary |
| `GET` | `/api/v1/platforms` | platforms |

## ready

| Method | Path | Summary |
| `GET` | `/api/v1/ready` | Readiness, public (ops-signals-1114): 200 or 503 with reason codes only |

## receipts

| Method | Path | Summary |
| `GET` | `/api/v1/receipts/{token}` | receipt link public |
| `GET` | `/api/v1/receipts/{token}/media/{index}` | Row 302: one item of a public receipt's media, by position, streamed from the store |

## review

| Method | Path | Summary |
| `GET` | `/api/v1/review/{token}` | review view |
| `POST` | `/api/v1/review/{token}/decision` | review decide |
| `GET` | `/api/v1/review/{token}/media` | review media |

## status

| Method | Path | Summary |
| `GET` | `/api/v1/status` | Public status page data: rolling delivery-verification rates, aggregated across all |

## support

| Method | Path | Summary |
| `POST` | `/api/v1/support` | Support S1 (row 687): the public support intake — anonymous and session-aware, one |

## tiktok

| Method | Path | Summary |
| `POST` | `/api/v1/tiktok/webhook` | TikTok → us (the app's Webhook URL in the TikTok developer portal; audit A14). Public; the |

## upload links

| Method | Path | Summary |
| `GET` | `/api/v1/upload-links/{token}` | upload link public status |
| `PUT` | `/api/v1/upload-links/{token}/chunks/{n}` | upload link chunk |
| `POST` | `/api/v1/upload-links/{token}/complete` | upload link complete |
| `POST` | `/api/v1/upload-links/{token}/session` | upload link session |

## well-known

| Method | Path | Summary |
| `GET` | `/.well-known/mcp-registry-auth` | MCP Registry namespace-ownership proof — the token comes from config only. |
| `GET` | `/.well-known/mcp/server-card.json` | SEP-1649 server card (MCP v1.7 T8): the static discovery document MCP clients |
| `GET` | `/.well-known/mcptry-claim.txt` | mcptry listing-claim proof — the token comes from config only. |
| `GET` | `/.well-known/mcptry-verify.txt` | mcptry listing-claim proof — the token comes from config only. |
| `GET` | `/.well-known/oauth-authorization-server` | RFC 8414 discovery for the product's own OAuth 2.0 authorization server. |
| `GET` | `/.well-known/oauth-protected-resource` | RFC 9728: tells MCP clients which authorization server protects /mcp/v1. |
| `GET` | `/.well-known/oauth-protected-resource/mcp/v1` | RFC 9728: tells MCP clients which authorization server protects /mcp/v1. |
| `GET` | `/.well-known/openai-apps-challenge` | ChatGPT apps domain-verification challenge — the token comes from config only. |
| `GET` | `/.well-known/security.txt` | RFC 9116 security.txt, served verbatim from the package data file. |

## workspaces

| Method | Path | Summary |
| `GET` | `/api/v1/workspaces` | list workspaces |
| `POST` | `/api/v1/workspaces` | create workspace |
| `DELETE` | `/api/v1/workspaces/{ws}` | delete workspace |
| `GET` | `/api/v1/workspaces/{ws}` | get workspace |
| `PUT` | `/api/v1/workspaces/{ws}` | rename workspace |

## Account health is a dated reading

An account read (`GET /api/v1/workspaces/{ws}/accounts`) returns the result of the last check, not a live check: reading an account never contacts the platform. Its `health` object says when that check ran (`checkedAt`) and what it exercised (`basis`: `grant`, `credential` or `session`). `credentialCheckedAt` is set only when the check exercised the credential itself. So `ok` means “ok at `checkedAt`”: a platform can revoke access a minute later, and the next read still says `ok` until the next check or the next publish finds out.

For a current reading before something that matters, run one check now with `POST /api/v1/workspaces/{ws}/accounts/{id}/probe` (a token with account access); it returns the account with a new `checkedAt`. Whether a post went out is answered by its delivery receipt, never by the health reading: a credential the platform refuses at publish settles that destination as not published, with the reconnect step on the account.

## Webhook signing — verifying that an event came from A1 Lane STAGING

Every notification webhook is a JSON `POST` carrying two headers: `X-A1Lane-Event` (the alert kind) and `X-A1Lane-Signature` (the signature). Until 1 December 2026, each webhook also carries the legacy header names `X-PostLane-Event` and `X-PostLane-Signature` with identical values, so a verifier written against the old names keeps working; the legacy names stop being sent on 1 December 2026. The signature header reads `t=<unix seconds>,v1=<hex>` where `v1` is `HMAC-SHA256(secret, "<t>.<raw request body>")` — the same scheme Stripe documents for its receivers. To verify: read `t` and `v1` from the `X-A1Lane-Signature` header (until the cutover date the legacy `X-PostLane-Signature` header carries the same value), compute the HMAC of the string `t` + `"."` + the exact bytes of the body with the signing secret you saved in Settings → API & Webhooks, compare it to `v1` in constant time, and reject anything whose `t` is more than five minutes old. Payloads carry codes and ids only, never platform text. The "Send test event" control on the webhook card posts one event of kind `test` so you can prove the verifier end to end.

## Webhook delivery — event ids, retries and replay

Every alert payload carries an `id` field (also sent as the `X-A1Lane-Id` header) that identifies the event. The same `id` is sent on every attempt to deliver that event, including a retry and a replay, so your endpoint can treat a repeated `id` as a duplicate and ignore it. Any 2xx answer counts as delivered. Any other answer, or no answer within 10 seconds, is a failed attempt, and the event is sent again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours, each delay counted from the failed attempt. That is seven attempts across about 20.6 hours. After the seventh failure the delivery is marked `failed` and no further attempt is made on its own. Retries survive a restart: the schedule is kept in the workspace's store, so an attempt that came due while the service was down is made when it is back. Each attempt is signed afresh with the current secret and timestamp, and goes to the endpoint URL saved at that moment.

Owners and admins see the deliveries in Settings → API & Webhooks, under the webhook card. The API lists them at `GET /api/v1/workspaces/{ws}/webhooks/deliveries` (newest first; filter with `?state=pending|retrying|delivered|failed` and `?kind=`; page with `limit` and `offset`). `GET …/webhooks/deliveries/{id}` returns one delivery with each attempt (time, trigger, HTTP status, latency, error code) and the stored payload. `POST …/webhooks/deliveries/{id}/replay` sends a failed or retrying delivery again now, with the same body and `id`. Replaying a delivery that already succeeded is refused with `409` (`already_delivered`), so a delivered event is never re-sent by replay. Settled deliveries are kept for 30 days. Test events from "Send test event" are not entered in the delivery list; their outcome shows on the webhook card.

The header names above are the wire names in force today; a rename, if one is made, will be announced on the [changelog](/docs/changelog) with a dual-accept window and a dated cutover — nothing changes silently.

## Webhook subscriptions — many receivers, each made and removed over the API

The webhook in Settings is one address for alerts. Subscriptions are separate: a workspace can hold up to 50, each with its own address, event list, signing secret and delivery list. Zapier, Make and n8n use them to register themselves, and your own code can too. The settings webhook is unchanged.

`POST /api/v1/workspaces/{ws}/webhooks/subscriptions` with `{"url": "https://…", "events": ["post.delivered"], "description": "…"}` answers `201` with the subscription and its `secret`. The secret is shown once; save it, because no read returns it. The address must be `https`, at most 2,048 characters, without a user name or password, and must resolve to a public address that is not ours (`400` with `invalid_endpoint` or `private_address`). An unknown type is `400` with `unknown_event_type` and the valid names. `["*"]` means every type, including types added later. Subscribing again to an address you already hold replaces that subscription in place, with a new secret (`200`); an address another credential holds is `409` (`url_in_use`); the 51st subscription is `409` (`subscription_limit`). A token with `read` scope can subscribe and manages its own subscriptions; owners and admins see and manage all of them. Subscription writes are limited to 60 per 10 minutes per workspace; over that, `429` with `Retry-After`.

| Event type | Sent when |

| `post.delivered` | A post finishes and every account it went to is delivered. |

| `destination.verified` | One account's post was checked on the platform. |

| `destination.failed` | One account failed; the post did not go out there. |

| `destination.uncertain` | One send may have landed. It is never retried on its own. |

| `attention.raised` | Something now needs a person. A failure sends this as well as its own failed event, as two events. |

`GET …/webhooks/event-types` lists the types with a sample of each, and `GET …/webhooks/samples?type=…` returns up to three recent real events of one type, built the same way as live ones; automation platforms use it to show example data. New types and new fields can appear at any time, so a receiver must ignore what it does not know. Each body carries `id`, `type`, `version`, `createdAt`, `sequence`, `workspaceId`, `subscriptionId` and `data`. Order by `sequence` when order matters; deliveries can arrive out of order. Payloads carry codes, ids, our own words and a link, never platform text.

Each request carries `X-A1Lane-Event`, `X-A1Lane-Id`, `X-A1Lane-Subscription`, `X-A1Lane-Delivery`, `X-A1Lane-Attempt`, `X-A1Lane-Webhook-Version` and `X-A1Lane-Signature`, signed exactly as in the signing section above with the subscription's own secret. Subscription requests do not carry the legacy `X-PostLane-Event` and `X-PostLane-Signature` names. After `POST …/rotate-secret` the old secret keeps signing for 24 hours and the header holds two `v1` entries: accept the request when any one matches. Delivery follows the retry schedule above, with each wait varying by up to 20 percent, so the times are approximate, and a `Retry-After` on `429` or `503` is honoured within limits. A subscription that fails continuously for 5 days is set to `disabled` and the owners are told; `POST …/enable` turns it back on and replays nothing. A `410` from your receiver ends the subscription at once, with no email.

Also: `GET`, `PATCH` (events, description, or state `active` or `paused`) and `DELETE` on `…/webhooks/subscriptions/{id}`; `DELETE` answers `204` again for an id already removed. `POST …/{id}/test` sends one `webhook.ping` and answers with the status code and failure class (10 per 10 minutes per subscription). `GET …/{id}/deliveries`, `GET …/{id}/deliveries/{did}` and `POST …/{id}/deliveries/{did}/replay` work as on the delivery list above; replaying a delivered event is `409`. A subscription you cannot see is a `404`.

## Counting token usage

Settings → API & Webhooks shows each token's calls this calendar month (UTC), counted durably on every authenticated call and reset on the first of the next month. The same figure, with per-tool detail for the assistant surface, is available to owners and admins at `GET /api/v1/workspaces/{ws}/tokens/{id}/usage`.

---
HTML version: https://staging.a1lane.ai/docs/api
Tool surface: v1.12, generated from the running server
