Preview API
Symbol's current API version, what it covers, and how it will change.
Symbol's HTTP API is currently in preview. The preview namespace is the
current version of the API, not a beta branch that runs alongside a stable
release. There is no v1 yet. When Symbol promotes the surface to v1, the
preview routes will continue to exist for a deprecation window so that
integrations can migrate at their own pace.
Here are the API docs: https://symbol.chat/docs/api
What "preview" means
- Preview is the current version. Every public, in-scope resource
endpoint is served under
/api/preview/*. - Preview is free. Users on the preview tier self-select as early adopters who accept aggressive iteration in exchange for shaping the contract.
- Schemas, error shapes, and field semantics may change during the preview window, but never silently. Breaking changes are announced through the API stability policy (see Stability & promotion below) before they ship.
- The URL prefix is the loudest possible signal that the contract
is still moving. Once a route is promoted to
/api/v1/*, breaking changes there require a 12-month deprecation window. - No SLA yet. Symbol does not yet publish uptime or latency commitments for preview.
Versioning model
/api/preview/* ← current version (this is where you integrate)
/api/v1/* ← future stable contract
/api/v2/* ← later stable contractVersions coexist under different namespaces. We never replace a route in
place. When v1 lands, a /api/preview/capsules/:id route is copied to
/api/v1/capsules/:id and the two are allowed to diverge. Preview may keep
receiving fixes during the deprecation window.
The architecture is intentionally low-magic:
- URL == file location. The route file's path on disk matches the URL
served: no
next.config.tsrewrite layer, no version-aware middleware. - Thin handlers, shared services. Route handlers stay tiny and delegate to a shared service layer. Two version routes can share one service function.
- Promotion is a copy. Promoting preview → v1 is a physical file copy plus a registered code change in the OpenAPI spec, not a rename.
What's in the preview namespace
The preview namespace covers Symbol's resource endpoints, the routes that represent the Symbol data model and account operations. They fall into two groups.
Published areas. These are in the OpenAPI document and are the public contract:
/api/preview/capsules/*,/api/preview/types/*,/api/preview/projects/*,/api/preview/collections/*/api/preview/attachments/*,/api/preview/mentions/*,/api/preview/tags/*/api/preview/search/*,/api/preview/workspaces/*/api/preview/sync/*(the change feed and snapshot a local store refreshes from)/api/preview/share/*: share links, and visibility throughGETandPUT /api/preview/share/visibility,GETandPUT /api/preview/capsules/{id}/permissions, andGETandPUT /api/preview/types/{id}/permissions/api/preview/grants/*and/api/preview/shared-with-me(sharing with people)/api/preview/public/discoverand/api/preview/public/follow(Discover and following), and/api/preview/user/profile,/user/timezone,/user/followingand/user/likes(your profile, follows and likes)/api/preview/user/read-usage,/api/preview/user/read-usage/detail,/api/preview/read-usage/localand/api/preview/read-usage/local/detail(your hourly read counts and what made them; see Read usage below)/api/preview/export,/api/preview/import/*and/api/preview/snapshots/{id}/restore
The OpenAPI document is the authoritative inventory of the public preview surface. Endpoints not listed there are not part of the public contract and may move, change, or disappear without notice, including any URLs discoverable by inspecting the application but not advertised in the spec.
App-internal routes. These exist under the namespace and are used by Symbol's own web and mobile apps, but they are outside the contract and may change without notice:
/api/preview/organizations/*and/api/preview/invitations/*/api/preview/protected-changes/*and/api/preview/types/{id}/protection(see Protected Types)- the visitor actions on a share page:
/api/preview/share/actions/save,/like,/copy,/visitand/report, which take the share token in the request body, and the app's/api/preview/share/{tokenId}/save /api/preview/shares/{id}/related/api/preview/billing/*/api/preview/library/*,/api/preview/gdpr/*and/api/preview/support/*- the rest of
/api/preview/public/*(liking, saving and reporting from a public page) and of/api/preview/user/*(API keys, sign-in security, sessions and encryption keys), and/api/preview/users/{id}/public-key(see Encryption key pairs)
Visibility
Visibility has five levels. The API reads and writes each by its stored value:
| Level | Stored value |
|---|---|
| Private | self |
| Anyone with link | link |
| Public | public |
| Organization (View only) | org_view |
| Organization (Edit) | org_edit |
Two routes write it:
PUT /api/preview/share/visibilitysets Private, Anyone with link or Public. It acceptsself,linkandpublic. The older wordsprivateandunlistedare still accepted as deprecated aliases ofselfandlink, until a breaking entry in the API changelog announces their removal at least 14 days ahead. Responses always use the stored values.PUT /api/preview/capsules/{id}/permissionsandPUT /api/preview/types/{id}/permissionsset the organization levels. They acceptself,org_viewandorg_edit, and an organization level needsorganizationId, which must be the resource's own organization.
From the effective date of the breaking change in the API changelog, all three writes refuse a body key their schema does not declare with a 400. Until then such a key is ignored.
The share and permissions routes take camelCase body fields (resourceType,
resourceId, organizationId), while most other routes take snake_case. The
organization role shown as Admin in the app is editor in the API.
Owned logs
A capsule whose Type is bound to a log Type owns a log capsule. The two keep their own visibility, so each reply names the other only to a caller who may read it:
- On a log,
log.owner_refis the owning capsule's ref andowner_capsule_idits id. Both arenullfor a log with no owner, or when the caller may not read the owner. Create and update responses always carryowner_capsule_id: null; the archive and restore replies carry the vetted id, as a read does. - On an owner,
log.owned_log_ref,owned_logand the embeddedlog_entriesare present only when the caller may read the log. Otherwise the owner reads like one whose log has not started:owned_log: null,log_entries: [],log_entries_total: 0, andGET /api/preview/capsules/{id}/entriesand its export return no entries. - Deleting an owner never names or deletes a log the caller may not read: it
is detached and kept, with no
owned_log_present409 and noownedLog. Recently deleted and recover leave such a log out as well.
Workspace scoping (?ws=)
List/read endpoints accept an optional ws query parameter that selects
which workspace to read from:
- omitted: the caller's personal workspace, for session and personal
API-key auth (the default). For an organization API key, an omitted
wsresolves to the key's bound organization workspace instead. An org key never reaches the personal workspace. ws=<organization-id>: a single organization workspace the caller belongs to.ws=all, cross-workspace discovery: the union of every workspace the caller can reach (personal plus each accessible organization), reported in one response.
ws=all is accepted only on the discovery routes:
GET /api/preview/typesGET /api/preview/capsulesGET /api/preview/searchGET /api/preview/projectsGET /api/preview/sync/snapshot(whereallis the default)
On every other route ws=all is rejected with 404 Workspace not found,
exactly like an unknown workspace id. The widened mode is contained to the
five routes above. For an organization API key, ws=all collapses to the
key's bound organization (it never widens beyond it), and a credential bound
to a subset of workspaces (per-key workspace binding) only ever discovers
inside that binding.
Types changed since a time
GET /api/preview/types lists only the Types that changed in a window you
give, so a sweep for changed guidance is one small call per workspace (or one
with ws=all) instead of reading every Type's guidance:
guidance_updated_*narrows on the last change to a Type's guidance. A Type whose guidance was never set is never in such a window.updated_*narrows on the Type's last change of any kind: a setting, its name, or its guidance.
Each takes one form: _within (a relative window such as 7d or 12h),
_period (a named period such as this_week, resolved in tz, else your
stored timezone, else UTC), or _after (inclusive) and _before (exclusive)
bounds. Two forms for one window, or a value the route cannot read, is a 400.
The window only narrows what you could already list. Every row carries
guidance_updated_at (null when the Type has no guidance), and detail=summary
rows also carry updated_at.
Authentication
Most preview routes accept three kinds of credential. A few account-security routes, such as two-factor setup and account deletion, accept only a signed-in browser session.
- An API key, personal or organization, sent as
Authorization: Bearer <api-key>. Create one in Settings, API Keys. - A browser session, the cookie set when a person signs in to Symbol. It works only for requests from a signed-in browser on the same origin.
- An OAuth access token, which a third-party app gets when a person signs
in to it with Symbol and approves it. It is sent as
Authorization: Bearer <token>, like an API key, and is limited to the scopes and workspaces the person approved. See Sign in with Symbol.
Credentials limited to workspaces
A personal API key, a mobile key, or an OAuth or MCP connection can be limited to some of your workspaces. The limit holds for every read and write, not only for listings:
- Reading, editing, deleting, archiving, moving or sharing a capsule, Type,
Collection or project outside the limit answers the same
404a nonexistent id gets. Batch routes give that item the same per-item result a random id gets, and in-limit items in the same request still succeed. Listing or revoking the share links of an out-of-limit resource answers the empty list, or the404, that a random id gets. - Account routes that act on one fixed workspace refuse a credential whose
limit leaves that workspace out, with
403andreasoncredential_workspace_bound. That covers snapshots (personal only), the account export (GET /api/preview/export?scope=account), and the GDPR data export, which any limited credential is refused because it covers the whole account. The organization export (scope=org) answers an organization outside the limit with the404a non-member gets. Sign in, or use an unrestricted key, for these. - Administering an organization outside the limit answers as a non-member.
Its members, invitations, activity, governance, settings, organization API
keys, encryption, marketplace, ownership transfer and deletion under
/api/preview/organizations/{id}/all answer exactly as they would for someone who is not a member of that organization (404 Organization not found, or403 Not a member of this organizationon the encryption routes), whatever role the key's owner holds there.GET /api/preview/organizationsandGET /api/preview/user/organization-managementlist only the organizations inside the limit. Invitations addressed to you stay readable and answerable with any key. - Saving a shared capsule copies it into your personal library, so a key
whose limit leaves out personal gets
unsupported_caller. - Opening a share link works the same for any holder of the link, whatever the credential's limit: the link, not the key, authorizes that read.
The database applies the same limit on its own, from the credential that made the request.
Asking for one workspace
An app that signs people in with Symbol can ask, in its authorization request,
for access to a single workspace. Add a workspace parameter to the
authorization URL:
| Value | What the consent screen opens with |
|---|---|
workspace=personal | The person's personal workspace selected |
workspace=choose | No workspace selected, and Allow stays off until the person picks one. A person with only one workspace finds it already selected |
Either value makes the grant exactly one workspace. The person picks it on a single-choice list, and can pick a different one than the app asked for before approving. The grant stays limited to that one workspace, so an organization the person joins later is never reached. Without the parameter, the consent screen works as it always has.
Send workspace once, with one of the two values. Sending it more than once,
empty, or with any other value is refused: the consent screen shows Invalid
Request instead of the approval form.
To learn which workspace the person granted, call GET /api/preview/workspaces
with the access token. It lists only the workspaces the token can reach: the
personal entry (its id is null), or one organization entry with that
organization's id. MCP clients get the same answer from the list_workspaces
tool.
Asking for one Type
An app can ask for access to a single Type instead of a whole workspace. Add a
type:<slug> token to the authorization request's scope, beside the actions
it needs:
scope=read create update type:voice-guidesThe token names the Type's slug, not its display name. The consent screen shows
a Limited to one Type block: the Type's name when the person already has a
Type with that slug in the selected workspace, or "A new Type, voice-guides,
that the app will create" when they do not. The permission lines say what the
app may do in that Type only.
- One workspace. A Type limit always comes with exactly one workspace. With
no
workspaceparameter the consent screen starts on the person's personal workspace, and they can pick another.workspace=chooseworks as described above: Allow stays off until they pick one. - The Type can be created later. The person can approve a Type that does
not exist yet. The app then creates it with
POST /api/preview/typesand"slug": "voice-guides"(any name, the slug must match), in the granted workspace. From then on the grant is tied to that Type. - Only the person's own Type is picked up after consent. If a teammate
creates a Type with the same slug in a shared workspace after the person
approved, the app does not get it: its create answers
409. The person disconnects the app and connects it again, and the consent screen then names the teammate's Type for them to approve. A slug held by a Type the person cannot see answers409on the consent screen itself. - Renaming keeps access. The limit follows the Type, not its name, so renaming the Type keeps the app working. Deleting it ends the app's access until the person (or the app) creates a Type with that slug again.
- The token says what it got. The token response's
scopecarries the limit, for exampleread create update type:voice-guides, after the code exchange and after every refresh. Check it: a token without thetype:token is not limited to a Type. A refresh that names a different Type is refused withinvalid_scope. - No sharing. A Type-limited app is never granted
share: asharein the request is dropped, and the token'sscopedoes not list it. A request that asks forshareand nothing else is refused. - What the app can do. It can list its workspace and its one Type, read,
create and update that Type, and read, list, search, create, update and
(with the
deletescope) delete capsules in it. References and mentions resolve only inside the Type. - What is refused.
- A capsule or Type outside the limit, by id, answers the same
404a nonexistent id gets. - A request that names another Type (creating a capsule in it, creating a
Type with another slug, changing the Type's slug, creating a capsule with
no Type) answers
403withreasoncredential_type_bound. - Every other endpoint (projects, collections, tags, attachments, share links,
log entries, imports, batch routes, account routes) answers
403withreasoncredential_type_bound. - The app cannot delete the Type itself.
- A capsule or Type outside the limit, by id, answers the same
- Guidance from other Types. When the Type's guidance includes a capsule from another Type, the app sees that part as unavailable.
- Asking twice or wrongly. One
type:token per request. Two of them, or one whose slug is not lowercase letters, digits and hyphens, is refused: the consent screen shows Invalid Request, and atype:token with no action beside it is refused the same way. The device sign-in flow and token exchange from a key do not accept atype:token.
The database applies the Type limit on its own too, from the credential that made the request.
Creating keys
A new key lasts longer than the sign-in that made it, so creating one asks the
person to confirm it is them. Creating or rotating a personal key
(POST /api/preview/user/api-keys, POST /api/preview/user/api-keys/{id}/rotate),
creating an organization key (POST /api/preview/organizations/{id}/keys) and
approving a key request (POST /api/preview/user/api-key-requests/{code}/approve)
work only from a signed-in browser session that has confirmed who it is in the
last 10 minutes:
- A personal or mobile key, or an OAuth or MCP connection, cannot create or
rotate a personal key:
403,reasoncredential_cannot_mint_keys, even for a key weaker than itself. Ask for the key from the terminal instead and approve it in your browser (symbol key createdoes this for you, see the CLI docs). An organization API key calling the personal key routes gets403,reasonorganization_key_not_permitted(see "Organization API keys" below). - An OAuth or MCP connection cannot create an organization key either
(
credential_cannot_mint_keys). A personal or mobile key asking for one is still held to its own scopes (403 insufficient_scope), workspace limit and expiry (400 expiry_exceeds_credential, and400 expiry_requiredwithout one), and is then refused with403,reasonsession_required. Approving a key request is refused to every credential. - A browser session that has not confirmed it is the person in the last 10
minutes gets
403,reasonproof_required, withproof_moderecentand themethodto confirm with (totp,passwordoremail_code). Nothing is created. Confirming once in the web app covers these actions on that browser for 10 minutes; it is never extended, works for no other browser or device, and ends early when the password or a sign-in factor changes or the session signs out. - Only a personal key can be the key that gets rotated: asking to rotate a
mobile key or a connection's id answers
404, whoever asks.
The database also keeps its own ceiling on keys created under a credential: a
request it refuses on those grounds answers 403, reason
credential_ceiling_exceeded.
Connections made from a key
Symbol Bridge tokens obtained from a key (POST /api/preview/oauth/desktop-token)
follow that key. They carry its workspace limit and never outlive it, and they
end when the key is revoked, expires, is deleted, or is replaced by name. After
a rotation they end when the old key's 24-hour grace period does. Each one shows
in Connected Apps as its own entry, named after the key, apart from any browser
sign-in, and revoking one never signs the other out.
Bridge connections made before this rule existed could not be told apart from a browser sign-in, so all of them were signed out once when it shipped. Reconnecting gives a connection that follows its key, or a browser sign-in.
Organization API keys
An organization API key acts for its organization, not for the person who created it. It reads and writes the content of its own organization's workspace within its scopes, and nothing else. It is refused on every endpoint that acts for a person or administers an organization:
- the personal account: profile, credentials, API keys, OAuth grants, encryption settings, the data export, snapshots and the audit log;
- billing;
- the inbox and messages;
- creating, listing and revoking share links;
- accepting or declining invitations;
- organization administration: members, invitations, API keys, ownership transfer, governance, renaming and deletion.
Owners and Admins manage organization keys (list, create, hand over with
PATCH /api/preview/organizations/{id}/keys/{keyId}, and revoke); members and
viewers get 403 with reason insufficient_role. Each key has a holder, one
member of its organization, and content the key creates is attributed to them.
What the key may do comes from its organization and its scopes, not from the
holder's role. When the holder leaves the organization or deletes their
account, the key is revoked and answers 401 with code key_revoked, and
re-adding them does not bring it back. A key whose holder left before keys ended
with their holder answers creator_not_member instead. Hand a key to another
owner or Admin before its holder leaves to keep it working with the same secret.
The delete and share scopes let a key delete, or change the visibility of,
content in its organization that members can see, the same content an owner or
Admin manages. A member's Private content, and content shared only by
link, stay out of reach. Publishing skills and agents stays a person's act.
A refused call on the key's own organization, or on an endpoint with no
organization in its path, answers 403 with the problem reason
organization_key_not_permitted. A call on any other organization's endpoints
answers 404, the same response a non-member gets. Use a personal credential
(a session or a personal API key) for these endpoints.
Over MCP, an organization API key connection works on its organization's
content, and get_account_info describes the organization rather than a
person: principal is organization_api_key, organization names the
organization, and email and member_since are null.
Read usage
GET /api/preview/user/read-usage reports how many reads your account made, per
UTC hour, per client, and whether a local copy or the server answered them. It
reports only the account you authenticate as: no parameter names another one.
Pass either ?window=24h or ?window=7d, which end at the current partial hour
and include it, or ?from=<hour>&to=<hour> with UTC hours such as
2026-11-09T13:00:00Z. to is exclusive and a range can span at most 31 days.
The response carries the resolved window, hours (one row per hour, oldest
first, zero-filled) and totals, each split by_client and by source, with
local, server, all and local_share (local / all, or null when all
is zero). bridge_local is the part of local the Symbol Bridge answered.
What one read is. One successful foreground read of your content: one capsule, list, search, resolve or context request, or one server-rendered capsule, Type, Project or shared library page. A list that returns no rows is one read. A read is not a returned row, a database query, an image or file download, or a whole assistant tool call: a tool that answers one part locally and another from the server is one local read and one server read.
What is left out. Sign-in and token refresh, sync and backfill, health and reachability checks, writes, previews of a write, account and settings pages, typeahead, messages and the inbox, reviews of protected changes, this report and the upload below. Reads with no personal account behind them are not attributed to anyone: public pages read without signing in, and organization API keys.
Clients. bridge, hosted-mcp, web, flutter, cli and unknown-api. A
browser session is web. Other clients declare themselves with the
x-symbol-read-client header, and a client that does not, or that an earlier
version of Symbol built, is unknown-api. A declaration only labels the count.
It is never used for identity or access, and it is not proof of which program
made the request, so do not use these numbers for billing or security.
Limits of the numbers.
- A server read means the server produced a successful response, not that the response reached the caller. A request that timed out on the client after the server finished counts once as a server read, and a later local answer counts once as a local read: those are two completed operations.
- Failed attempts count nothing, and a retry counts only if it succeeds.
- Local counts are reported by your own clients. They are not an independent check that anything was read.
- A client that has not reported since being offline is unknown, not zero.
coverage.producersshows when each local copy last reported. coverage.started_atis when measuring began. Hours before it havemeasured: falseand are unavailable, not zero, and nothing is reconstructed for them. The hour named bywindow.current_partial_houris still filling.- If a count cannot be stored the read still succeeds and that read goes uncounted, so a period with an outage can read low.
A personal key, a mobile key or a grant that reaches your personal account can
read the report with the read scope. Organization API keys, credentials limited
to one Type and credentials limited to organization workspaces are refused.
POST /api/preview/read-usage/local is how the Symbol Bridge and the Symbol app
report their local reads. The body is
{ "producer_id": "<uuid>", "account_id": "<your account id>", "buckets": [{ "hour": "...", "client": "bridge", "count": 3 }] }
with up to 500 buckets. account_id is optional: when you send it and the
credential belongs to a different account, the upload is refused with a 409 and
nothing is stored. Each count is that bucket's running total from that
local copy, and the server keeps the larger of what it has and what you send, so
repeating or reordering an upload never changes the result. The account is always
the credential's. Each bucket comes back in accepted, or in rejected with the
reason future_hour (more than five minutes ahead of the server) or
invalid_client. Anything else malformed is a 400, and no server count can be
uploaded.
What made each read
GET /api/preview/user/read-usage/detail breaks the same counts down by what
made them: per UTC hour, source and client, the operation (which kind of read
the server answered, such as capsule.get or search), the assistant app,
the MCP tool that started it, its origin, the Bridge's reason for asking
the server, the caller's runtime and its credential_family and
credential_slot. It takes the same ?window= or ?from=&to= as the summary
and the same credentials, and reading it is not a read.
Rows. Each row has a section:
foregroundrows are the reads in the summary's totals, broken down.auxiliaryrows are extra round trips an assistant client made for a read. Today they come from the Symbol Bridge's guidance checks and dependency review receipts. They are not reads and are not in the totals. Skill file and attachment bytes the Bridge fetches from the server are reads, so they appear asforegroundserver rows, with the reasonskill_bytesorattachment_bytes.unattributedrows are, for each hour, source and client, the total minus the foreground rows: reads made before breakdowns were recorded, or by a client that does not send them. The number is never adjusted to hide a difference: if a local copy reported more breakdown than total, the row is negative.
Foreground plus unattributed rows add up to the summary's totals for the same window, hour by hour.
Origin, app and tool. requested is a read the assistant asked for;
automatic is one made for it, such as fetching the capsules a capsule links
to, so one request that expands five links is one requested read and five
automatic ones. app, tool, origin and reason are declarations made by
the Symbol Bridge and the hosted MCP server, recorded from a fixed list and
unknown or none otherwise. Like the client name, they only label the count:
they are never used for identity, access or billing. runtime is read from the
request's user agent and is a hint only: two programs on the same runtime look
the same.
Which credential. A read made with an API key or a grant carries a
credential_slot from 0 to 255, a hash of that credential's record that names
nothing. credential_leads lists, for each slot in the report, the credentials
you hold now whose slot matches, with their name, kind and creation time, looked
up at looked_up_at. A slot is shared by many possible credentials, so
historical_identity is always unresolved: a current match is a lead to
check, not proof of which credential made a past read, and no match does not
mean the credential was deleted.
Paging. The first request freezes the report as of snapshot.as_of and
returns up to 500 rows. When next_cursor is not null, pass it as
?cursor= (without a window) for the next page. Later activity never changes a
report you are paging through. A cursor works only for your account and expires
at snapshot.expires_at, 15 minutes after the report was made, and starting a
sixth report at once ends your oldest; an expired or unknown cursor gets a 410
with code: "report_expired", and you start again with a window. Starting a
report (a request with a window) is limited to 30 an hour per account, with a 429
past that; following a cursor is not limited this way. Expired reports are
deleted soon after they expire.
snapshot.attributed_since is the first hour in the report with any breakdown.
POST /api/preview/read-usage/local/detail is how the Symbol Bridge reports the
breakdown of its local reads. The body is
{ "producer_id": "<uuid>", "account_id": "<your account id>", "pages": [{ "hour": "...", "client": "bridge", "aggregate": 5, "tuples": [{ "operation": "capsule.get", "app": "claude-code", "tool": "get_capsule", "origin": "requested", "count": 3 }] }] }
with up to 50 pages of up to 200 tuples. Each page is one hour and client of one
local copy, with that copy's running total for the hour as aggregate. An hour
with more than 200 tuples is sent as several pages with the same hour, client
and aggregate, each applied in turn. Counts
are running totals and the server keeps the larger of what it has and what you
send. A page is applied whole or not at all: when its tuples would add up to
more than the larger of the stored total and aggregate, it is refused with the
reason conflict and nothing of it is stored. Other refusals are
future_hour, invalid_client and invalid_dimension (a value outside the
fixed lists). Only pages in accepted were stored.
Preview signals
Beyond the URL prefix, preview is signalled in several places so it's hard to miss:
- The OpenAPI document marks every preview operation with an
x-preview: trueextension (see emission convention) - The hosted API reference shows a banner: "Preview API: subject to breaking change without notice"
- Generated TypeScript and Dart clients carry a banner in the file header
- The Postman collection name is suffixed
(preview) - MCP tool descriptions note the preview surface
x-preview OpenAPI extension
Every operation served under /api/preview/* emits x-preview: true at
the operation level in the generated OpenAPI document. Tooling consumes it
to render banners, gate generated-client release channels, and drive the
public changelog.
Example:
paths:
/api/preview/capsules/{id}:
get:
summary: Get capsule
x-preview: true
responses:
"200": { ... }Stable (/api/v1/*) operations do not emit this extension. The
emission rule is path-derived: the OpenAPI generator inspects each
operation's URL prefix and stamps x-preview: true on every operation
served from /api/preview/*. No per-route annotation is required, so the
flag cannot drift from the URL. A unit test asserts the invariant against
the generated artifact.
Error envelope
All error responses use RFC 9457 Problem Details.
The body is JSON with a Content-Type: application/problem+json header and
the following canonical members:
| Member | Type | Notes |
|---|---|---|
type | string | URI identifying the problem type (e.g. https://symbol.chat/problems/not-found). Stable and machine-readable. |
title | string | Short human-readable summary, suitable as a UI fallback. Stable per type. |
status | integer | Mirrors the HTTP status code. |
detail | string | Human-readable explanation specific to this occurrence. |
Endpoints may include extension members at the top level alongside the canonical fields. Common extensions:
| Extension | Where used | Description |
|---|---|---|
errors | 422 from request schema validation | Array of { path, rawPath, message, code } describing each Zod validation issue. path is a dotted string (items.0.name); rawPath preserves segment types so clients can disambiguate indices from numeric keys (["items", 0, "name"]). |
unknown_field | 422 from rejectUnknownFields | Name of the field that wasn't accepted. |
suggestion | 422 from rejectUnknownFields | Suggested correct field name when one is known. |
capsule_count | 409 when deleting a Type that has capsules | How many capsules block the delete. |
code | 409 from DELETE /api/preview/types/{id} or batch move | Machine-readable conflict cause. From the Type delete: strategy_required (a non-empty Type needs ?strategy=cascade or ?migrateTo=<id>), impact_confirmation_required (the delete affects references, other Types' field constraints, collections, or share links; retry with ?confirm=true), exposure_requires_confirm (retry the migrate with ?confirmExposure=true), has_capsules or other_users_capsules (capsules remain that the delete cannot remove), or type_is_log_target. From the Type delete's migrate: log_capsule_source (a log Type's capsules cannot be migrated), owned_log_type_mismatch (capsules keep logs in a different log Type than the target is bound to), or type_delete_conflict (another request is changing the source or the target Type, such as a delete that migrates the other way between the same two Types; this request moved and deleted nothing, so refresh and retry). From batch move: exposure_requires_confirm or log_type_target (capsules can't be moved into a log Type, because a log holds dated entries; convert_via names POST /api/preview/capsules/batch/convert-to-entries, see Converting notes into a log). impact_confirmation_required, and the 409 (rather than 400) for other_users_capsules, apply to every caller from the effective date of the breaking change in the API changelog. Until then they apply only to a caller that sends confirm=true or confirm=false, so sending ?confirm=false opts in now. |
code | 422 from POST /api/preview/capsules or PUT /api/preview/capsules/{id} | Machine-readable cause of a refused body write. empty_body_on_templated_type: content_md is "" on a capsule whose Type has an output_template. Send content_md: null (update) or omit it (create) to use the template, send body text, or send the boolean authored_blank: true alongside "" to keep an empty authored body. The refusal applies to every caller from the effective date of the breaking change in the API changelog; until then such a write is accepted and the response's warnings carries an entry beginning empty_body_on_templated_type: that names the date, and sending authored_blank: false opts into the refusal now. attachment_credential_in_body: the body introduces an attachment access link (/api/preview/attachments/public/<key>?cat=...) for a file that is not this capsule's; nothing is written. Upload the file to this capsule and embed it by file name, or paste the embed_markdown from the upload reply. A link of that kind already stored in the body is left as it is and reported in warnings instead. On PUT this refusal arrives in the { error: { code, message, details } } envelope with details.reason set to attachment_credential_in_body, as embedded_capsule_body does. |
code | 409 from PUT /api/preview/types/{id} | rollover_requires_confirm: the update changes rollover on a log Type that already holds dated buckets. Existing buckets keep their names and entries and only entries appended from now on follow the new policy, so the period in progress is split between two buckets. The body carries bucket_count, current_rollover, new_rollover, current_period_key (the bucket an entry appended now lands in under the current policy) and next_entry_period_key (under the new policy, null for manual, where every append must name a log capsule). Retry with confirm_rollover: true to apply the change. The refusal applies to every caller from the effective date of the breaking change in the API changelog. Until then it applies only to a caller that sends confirm_rollover: true or confirm_rollover: false, so sending confirm_rollover: false opts in now. |
code | 422 from PUT /api/preview/types/{id} | structure_is_fixed: the body sets structure. A Type's structure is set when it is created; convert_via names POST /api/preview/types/{id}/convert-to-log, which turns a standard Type into a log (see Converting notes into a log). Nothing is written. |
code | 403, 404, 409, 413 or 422 from the two conversion routes | See Converting notes into a log: conversion_has_refusals, preview_stale and target_log_invalid (409, each with preview), preview_token_required (422), type_not_found or capsule_not_found (404), forbidden (403), and content_quota_exceeded (413, with storage) or the read-only organization refusal (413). |
code | 422 from POST /api/preview/types or PUT /api/preview/types/{id} | Machine-readable cause of a refused output template. Both routes run the same check and return the same code and detail. output_template_dangling_tokens: a {{token}} or {{#section}} names a field the Type does not declare; dangling_tokens lists those names. output_template_malformed_sections: a section is never closed, a closing tag has no opening tag, or two sections overlap; malformed_sections lists each as { name, tag, problem }, where problem is unclosed, unopened or crossing. Nothing is written. Declare the field, or edit or clear output_template in the same request. See output templates. |
capsules_migrated | 409 type_delete_conflict from DELETE /api/preview/types/{id}?migrateTo=<id> | Always 0. A delete that migrates moves the capsules and removes the Type together or not at all, so a refused one has moved nothing, whatever another request did meanwhile. |
code | 409 from DELETE /api/preview/capsules/{id} or POST /api/preview/capsules/batch/delete | citations_confirmation_required: other capsules cite the capsule (or one in the batch), and their mentions of it would stop pointing anywhere. Nothing was deleted. Retry with ?confirm_citations=true (single delete) or "confirm_citations": true in the body (batch delete). POST /api/preview/capsules/batch/delete-impact reports the same count and sample before you delete. The refusal applies to every caller from the effective date of the breaking change in the API changelog. Until then it applies only to a caller that sends confirm_citations (true or false), so sending confirm_citations=false opts in now. |
citing_count, citing_sample | 409 citations_confirmation_required | How many live capsules cite the capsules being deleted, and up to five of them as { id, title, ref }. Only capsules you can read are counted or named. |
impact | 409 strategy_required / impact_confirmation_required | What the delete would affect beyond the Type's own capsules, as returned by GET /api/preview/types/{id}/delete-impact: inbound references and mentions, other Types' reference-field constraints, collections, and usable Type/collection share links, each a count plus a small sample. On a migrate it also carries migrate_effects (as GET /api/preview/types/{id}/delete-impact?migrateTo=<id> returns it): capsules that leave a required field of the target unmet and will be marked incomplete, template bodies that change, go blank or render as fields, and owned logs that detach. Any of these needs ?confirm=true. |
affected | 409 exposure_requires_confirm from batch move and delete-migrate | Array of { kind, id, name, slug, visibility } public share sources at the target Type through which the move would publish the capsules. Retry with confirm_exposure: true (batch move) or ?confirmExposure=true (delete-migrate) to proceed. |
will_publish_count | 409 exposure_requires_confirm (as above) | How many plaintext capsules the move would publish through those share sources. |
audience, live_link_count, dropped_collections, unlisted_count, message | 409 exposure_requires_confirm from the move-to-workspace routes | Who in the organization will see the content ({ kind: "organization", name, member_count, access: "edit" | "view" | "none" }), how many live share links on it keep working, the collections a move leaves (per capsule), how many publicly listed capsules stop being listed, and the same facts as one sentence. will_publish_count is also present. Retry with confirm_exposure: true. The project route adds type_map (the proposed per-Type mapping) and skipped (capsules that stay behind). |
field_effects, field_effects_digest | POST /api/preview/capsules/batch/move-impact, and 409 exposure_requires_confirm from POST /api/preview/capsules/batch/move-to-workspace | What a move or copy into the target Type does to each stored field. See Mapping fields on a move. The move-to-workspace 409 also carries field_map_refusals ({ capsule_id, code } per capsule the map refuses). |
code | 400 or 409 from the move routes when field_map is sent | 400 field_map_too_large, field_map_duplicate_destination (with destination), field_map_unsafe_key (with key), field_map_undeclared_destination or field_map_derived_destination (with destination): the whole request is refused and nothing changes. 409 field_preview_stale: the field_effects_digest sent no longer matches the capsules, the target Type or the map, so nothing changes. See Mapping fields on a move. |
actions | 409 already_has_access from the save routes | [{ kind: "personal_copy", capsule_id }] when the saver can read the capsule in the app: POST /api/preview/capsules/{capsule_id}/duplicate with { "target": "personal" } makes the copy instead. |
reason | Member-visible 403 Problem Details denial (see below) | Machine-readable denial cause: insufficient_role, owner_only, or visibility_denied. The legacy { "error": "…" } 403s (MCP-access and managed-account, below) carry no reason. |
code | 403 API key scope denial (see below) | insufficient_scope: the API key lacks the scope the action needs. |
code | 409 from POST /api/preview/share or PUT /api/preview/share/visibility | encrypted: encrypted content (a capsule, a capsule in an encrypted Type, an encrypted Type, or a collection of one) can't be shared by link or made public, because link holders and visitors have no key to read it. Every share route answers this one status and message. |
error_id | 400 or 500 from an unexpected failure | Correlation id to quote to support. A 400 carrying error_id means a value in the request was not in the expected format and was caught after validation rather than before it. |
Example (validation failure):
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/problem+json
{
"type": "https://symbol.chat/problems/unprocessable-entity",
"title": "Unprocessable Entity",
"status": 422,
"detail": "Validation error: title required at \"title\"; expected number, received string at \"age\"",
"errors": [
{ "path": "title", "rawPath": ["title"], "message": "title required", "code": "too_small" },
{ "path": "age", "rawPath": ["age"], "message": "expected number", "code": "invalid_type" }
]
}Example (unknown field):
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/problem+json
{
"type": "https://symbol.chat/problems/unprocessable-entity",
"title": "Unprocessable Entity",
"status": 422,
"detail": "Field 'content' is not accepted on this endpoint; did you mean 'content_md'?",
"unknown_field": "content",
"suggestion": "content_md"
}Example (unknown query parameter). List and search endpoints refuse a query parameter they do not read, instead of ignoring it and answering as if the filter had applied:
HTTP/1.1 400 Bad Request
Content-Type: application/problem+json
{
"type": "https://symbol.chat/problems/bad-request",
"title": "Bad Request",
"status": 400,
"detail": "Unknown query parameter 'tag'; did you mean 'tags'?",
"unknown_param": "tag",
"suggestion": "tags"
}Standard problem types
| Status | type URI | title |
|---|---|---|
| 400 | https://symbol.chat/problems/bad-request | Bad Request |
| 401 | https://symbol.chat/problems/unauthorized | Unauthorized |
| 403 | https://symbol.chat/problems/forbidden | Forbidden |
| 404 | https://symbol.chat/problems/not-found | Not Found |
| 409 | https://symbol.chat/problems/conflict | Conflict |
| 422 | https://symbol.chat/problems/unprocessable-entity | Unprocessable Entity |
| 500 | https://symbol.chat/problems/internal-server-error | Internal Server Error |
The type URIs are stable identifiers. They don't have to resolve to
documentation, but they are unique and won't be repurposed. Clients should
prefer matching on type over parsing detail.
Permission denials
When a request is refused for authorization reasons, the status distinguishes who is being refused, so a client can tell a permission problem apart from a missing object:
- A verified organization member (or a matching bound organization API key)
who is refused an action on a resource they can already see (by role,
visibility, or ownership) receives
403https://symbol.chat/problems/forbiddenwith an actionabledetailand a machine-readablereasonextension member (insufficient_role,owner_only, orvisibility_denied). - A non-member, an organization API key bound to a different organization,
an owner-only action against someone else's personal resource, and an
unauthenticated caller all receive the uniform
404https://symbol.chat/problems/not-found. This is deliberate: the 404 never discloses whether the resource or organization exists, so it cannot be used to enumerate private content.
The boundary is verified membership: a denial is a 403 only when the caller's membership of the resource's organization has been established. The policy is fail-closed. Anything not proven member-visible stays a 404.
HTTP/1.1 403 Forbidden
Content-Type: application/problem+json
{
"type": "https://symbol.chat/problems/forbidden",
"title": "Forbidden",
"status": 403,
"detail": "You don't have permission to modify this capsule. Ask an organization admin if you need access.",
"reason": "insufficient_role"
}An API key that lacks the scope an action needs (for example a read key
updating, archiving, or deleting a capsule) receives 403
https://symbol.chat/problems/forbidden with code: "insufficient_scope",
but only on a resource that same key can read. Asking for a resource the key
cannot read, or an id that names nothing, still gives the uniform 404, so the
scope answer never discloses that something exists.
Some operations need more scopes than the edit they look like. Deleting a
capsule or Type version is open to whoever may restore that version, but a key
must hold delete as well as update, because the version is gone for good. A
snapshot restore with {"dryRun": true} writes nothing and needs only read; a
real restore removes, overwrites and re-adds content, so a key must hold
delete, update and create as well as read. A key missing one gets the 403
insufficient_scope answer naming it before the snapshot is looked up, so the
answer is the same for every snapshot id and no restore allowance is spent.
Deleting a log entry changes its log, so a key needs update as well as
delete. Duplicating a capsule writes a new one from a capsule the caller may
edit, so a key needs read, create and update.
HTTP/1.1 403 Forbidden
Content-Type: application/problem+json
{
"type": "https://symbol.chat/problems/forbidden",
"title": "Forbidden",
"status": 403,
"detail": "This API key lacks the update scope.",
"code": "insufficient_scope"
}On the resource routes, a path or query id that is not a well-formed UUID is
refused with 400 before any lookup, so the answer is the same whether or
not a resource with a similar id exists.
Two 403 shapes predate this and are unchanged: an organization member without
MCP access enabled, and a member of an organization that requires a managed
account, each receive a legacy { "error": "…" } 403 with actionable copy.
A fourth reason, share_required, refuses a write that would publish a
capsule without the right to share it: adding it to a Collection that is shared
by link or listed publicly (POST /api/preview/collections/{id}/capsules), or
moving it into such a Type. The batch move reports it per item as the failure
code share_required. An API key without the share scope gets the existing
403 with code: "insufficient_scope" (and per-item insufficient_scope on
the batch move); a caller who cannot see the capsule at all gets the uniform
404. Nothing is added when any item in the request is refused.
Share links and publishing
-
The reusable link.
POST /api/preview/sharewith noexpiresAt, nomaxViewsand nonewreturns the resource's one reusable link, minting it only the first time;reusedistruewhen it already existed. Sendnew: true, an expiry or a view limit to mint a separate link. The reply is{ token, share_url, shareToken, reused }: sendshare_url;tokenis the raw value, shown so an integration can store it. -
Link rows. Rows from
GET /api/preview/share(andshareToken) carryprimary,share_url(the address to send, or null) and never the token hash or the creator's id.share_url_unavailable_reasonsays whyshare_urlis null:listing(the listing link of a Public item),withheld(you neither made the link nor own the item, or you are calling with an organization API key),legacy(made before links were reusable) orunreadable(the stored address could not be opened); it is null whenshare_urlis present. A caller who may not have the address is always toldwithheld, whether or not one was kept. The MCPget_sharingtool also reportssuspendedon a link whose organization has paused outside links, because it never hands out an address that does not open. A link on an organization's item readsstate: "suspended"withis_live: falsewhile the organization does not allow links outside it: it is not revoked, and it opens again if the policy is lifted. -
How many people.
GET /api/preview/share/visibilitycarriesshared_with_peoplefor a capsule, Type or Collection, andGET /api/preview/capsules/{id}/permissionscarriessharedWithPeople:count(distinct people it is shared with, directly or, for a capsule, through its Type or Collection; a pending invite counts),direct,archived, and whether you own it. Only a caller who may manage the item's people gets the numbers; anyone else getsnull, and the field is left out when the count could not be read.POST /api/preview/capsules/batch/archive-impactanswerspeopleCount,withPeopleSharesandpeopleHiddenCountover the capsules you would archive, since archiving cuts those people off until restore. A team capsule its whole organization reads (org_view,org_edit) is left out of all three: the people it is shared with are members, and members keep reading it while it is archived. -
Your links.
GET /api/preview/share/links?cursor&limit&state=live|allreturns{ links, next_cursor }: every link you created, newest first, withresource_titleandresource_path.live, the default, lists links that have not expired or run out of views, paused ones included so you can still revoke them;alladds the expired and used-up ones. It never lists anyone else's links. -
Reading a link as its recipient.
GET /api/preview/share/resolvewithpresentation=1addspresentationto a capsule link's answer: what the link's recipient may see, already neutralized.stateislive,withheld(the capsule stopped being readable during this read, with nothing else filled in) orlog. A link to an encrypted, archived or deleted capsule answers 404 instead.body_mdis the effective body, so a body borrowed from the Type's template arrives rendered;fieldslists the Type's fields in declared order, with units, computed values and each file or image joined to this capsule's own attachments;promptcarries the copyable text and any safety verdict when the capsule shares as a prompt. Leave the parameter off and the answer is unchanged. Verify-only and library reads never carry it. -
Browsing a library link.
GET /api/preview/share/resolveon a Type, Collection or project link answers its name and capsule count and spends nothing. To read its capsules, addlibrary:library=list(withpage, from 1 to 10000, default 1) answers one page of up to 60 capsules the link publishes, ascardsof{ id, title, summary }, withcapsule_countcounting every page.library=member&capsule_id=<id>answers one of those capsules in exactly the shape a capsule link's read has,presentation=1included. A capsule the link does not publish answers the same 404 as a link that no longer works, so the answer never says whether it exists.
Browsing a link is one visit, on a link with a view limit and one without. The first
libraryread spends one view and returnsvisit_grant({ value, expires_at }, an hour from then). Send itsvalueback in theX-Share-Visit-Grantheader on every laterlibraryread, and asvisit_grantin the body ofPOST /api/preview/share/{token}/savewith thecapsuleIdyou chose, and none of them spends anything more, even once the link's last view is gone. The grant never lasts past the time it states, and neither do the attachment links a read returns for a link with a view limit. A grant that has expired, is malformed or belongs to another link is refused with409code: "share_visit_restart_required"("This visit has ended. Open the link again."), and nothing is spent or saved: read again without the header to start a new visit. Never put the grant in a URL. The link's owner reads free and getsvisit_grant: null.librarywithverify,libraryon a capsule link,pagewithoutlibrary=list, andcapsule_idwithoutlibrary=member(or a malformed one) are each a400.Within one visit of a link with a view limit, each capsule can be saved once; on a link without one, a save inside a visit spends nothing, and
allow_duplicate: truestill makes another copy. -
Revoking one.
DELETE /api/preview/share/{tokenId}revokes a link by its id. To revoke by the rawshr_…token, send it in the body ofPOST /api/preview/share/links/revoke-tokenas{ token }, so it never sits in a request path, where it would be kept in request logs. Both answer{ success: true }, 409public_listing_tokenfor a Public item's listing link, and 404Share token not foundfor a link that does not exist, is already revoked or is not yours. A raw token in the DELETE path still works for older clients and is deprecated. -
Revoking many.
POST /api/preview/share/links/revoketakes exactly one of{ ids }(1 to 100),{ all: true }(up to 500 per call) or{ resourceType, resourceId }, and answers{ revoked, skipped_listing, not_found, has_more }. A link you cannot reach counts undernot_found, exactly like one that does not exist. A Public item's listing link is never revoked here: unpublish it withPUT /api/preview/share/visibility. With{ all: true }, listing links never take one of the 500 places, so calling again whilehas_moreis true always reaches the next links;skipped_listingcounts the ones left alone. -
Who can see it.
GET /api/preview/share/visibilityaddslive_link_countand, for the resource's owner,publishing:{ public_profile_enabled, has_username, eligible, blocked_reason }. It answers a key with either thereador thesharescope. -
Publishing.
PUT /api/preview/share/visibilitywithpublicacceptsenable_public_profile: trueto turn the owner's profile on in the same request. A refused publish names the missing step:
| Status | code | Extra fields | Meaning |
|---|---|---|---|
| 409 | username_required | next_step: "claim_username", claim_path | Claim a username first, in Settings (it needs a browser). |
| 422 | public_profile_required | next_step: "enable_public_profile" | The profile is off. Ask again with enable_public_profile: true. |
| 409 | publish_blocked | blocked_reason | email_unverified, account_flagged or org_policy. |
Library sharing
A Type or Collection shared by link, or listed publicly, publishes the capsules
its owner created in it that the workspace can already see: in an organization
a capsule whose own visibility is self is never published, and any capsule
whose owner kept it out of library links is excluded. Encrypted and archived
capsules are never published.
A project is a share kind too (resourceType: "project"). A project link
publishes, under the same rule, the capsules in the project that the project's
owner created, and its page groups them by Type. A project is shared by link
only:
-
POST /api/preview/shareacceptsresourceType: "project". The project's owner (while a non-viewer member of its organization) and an organization owner or Admin over a team-visible project may mint one; anyone else gets the uniform404. -
PUT /api/preview/share/visibilityacceptsprojectforselfandlink;publicanswers422withcode: "not_publishable". -
GET /api/preview/share,GET /api/preview/share/visibilityandGET /api/preview/share/resolve(resource_type: "project") accept and return the new kind. -
POST /api/preview/projects/{id}/capsules,POST /api/preview/capsules/batch/assign-to-projectand a capsule update that setsproject_id, into a project with a live link, need the right to share each capsule the link's owner created (share_required, as for a shared Collection); a teammate's capsule, which the link never publishes, needs nothing. Nothing is added when any item is refused. -
POST /api/preview/capsuleswith aproject_idthe caller shares by link needs thesharescope on an API key (insufficient_scope); a Type's default project the caller shares by link is not applied without it, and the capsule is created outside it. -
Minting a project or Collection link is refused in a read-only organization workspace, as for a capsule or Type.
-
Deleting a project revokes its links.
-
GET /api/preview/share/exposure?resourceType=type|collection|project&resourceId=<id>returns{ capsule_count, exposure, publishes_your_capsules }:capsule_countis how many capsules a link on the resource publishes (or would publish if the caller shared it now;0for anyone but the owner),exposureis the resource's live state (none,linkorpublic), andpublishes_your_capsulesistruewhen a link is live, the caller owns it, and a capsule the caller creates there would be published: it isfalseunder an organization Type that is Private or link-only, because a capsule created there starts Private. Requiresreadon the resource; anyone else gets the uniform404. -
POST /api/preview/sharefor atype,collectionorproject, andPUT /api/preview/share/visibilitytolinkorpublicon one, addexposes_capsules: the count the link publishes after the write. -
Collection reads (
GET /api/preview/types/{id}/collectionsand the single read) carryexposure:none,linkorpublic. -
PUT /api/preview/capsules/{id}/permissionsacceptsin_library_share(boolean) alongside or instead ofvisibility, under the sameshareauthorization;falsekeeps the capsule out of every library link. Sent together, both are written at once: a refused request changes neither. TheGET(and the PUT response) returnin_library_shareandshared_since: when the capsule last leftself(ISO 8601), ornull. Version history reads (GET /api/preview/capsules/{id}/versionsand/versions/{n}) show a caller other than the owner only versions changed at or aftershared_since; an earlier version answers404. The permissionsGETalso returnseffective: { can_update }: whether the caller may edit the capsule. It is the caller's own access, which can be narrower than the capsule's organization access level: a Viewer readsfalseon anorg_editcapsule.
Sharing with people
Per-person grants (issue #2267) share a capsule, Type or Collection with named
people by email, at view or edit.
GET /api/preview/grants?resourceType=capsule|type|collection&resourceId=<id>returns{ grants: [...] }, each withid,access,email,name,usernameandpending(trueuntil the person first opens Shared with me). Requiresshareon the resource, the same authority as minting a link; anyone else gets the uniform404.POST /api/preview/grantswith{ resourceType, resourceId, email, access }(accessdefaults toview) answers201 { status: "invited", grant }whether or not the address belongs to an account. Sharing again with someone who already has access changes their access instead. Refusals are422with acode:encrypted_not_shareable,not_org_member(organization content goes only to its members),role_ceiling(editfor a member who is a viewer),self_grant, orgrant_limit(50 people per item). Rate limited bygrant_create.PATCH /api/preview/grants/{id}with{ access }changes one person's access (owner side only).DELETE /api/preview/grants/{id}removes access. The owner side removes anyone; the person it was shared with removes themselves. Anyone else gets404.GET /api/preview/shared-with-melists the caller's own grants, newest first:{ items: [{ grant_id, resource_type, resource_id, title, owner_name, access, shared_at, url }], hasMore }. Page withbeforeandbefore_id(theshared_atandgrant_idof the last row).
A person a capsule is shared with reads it through the ordinary capsule routes
(GET /api/preview/capsules/{id} and its references, backlinks, graph, bundle,
versions and attachments). Versions are listed from the moment it was shared.
With edit, PUT /api/preview/capsules/{id} accepts title, summary,
content_md, authored_blank, field_values and client_updated_at only;
any other key answers 403 with code grant_edit_scope, and
PATCH /api/preview/capsules/{id}/versions/{n} keeps, labels or releases a
version they can see. With view, those two writes answer 403 with
reason: "grant_view_only". A Type shared with a person, at either access,
never lets them change the Type itself, so
PATCH /api/preview/types/{id}/versions/{n} also answers 403 with
reason: "grant_view_only". Every other write answers 404 for them. Shared content never appears in the caller's own
listings, search, counts or sync feed.
Liked items
GET /api/preview/user/likes?cursor&limitlists the caller's own likes, newest first, as{ items, next_cursor }. Each item is{ capsule_id, liked_at, state, title, url }, wherestateis the first that holds right now:public(urlis the public address),readable(the caller can read it in Symbol;urlis/capsules/<id>),link(the share link it was liked through still opens it;urlis/liked/<id>, which counts a view of that link when opened) orunavailable(titleandurlarenull, and nothing else about the item is returned). Passnext_cursorback ascursorfor the next page;limitis 1 to 50 (default 20). Requires thereadscope. An organization API key is refused: likes belong to a person.DELETE /api/preview/user/likes/{capsuleId}removes the caller's own like, including one whose page or link is gone, and answers{ capsule_id, liked: false }whether or not a like existed. Requires theupdatescope.
The web app's visitor report routes (POST /api/preview/public/reports, and a
share page's POST /api/preview/share/actions/report) are not part of the
public API.
Exempt routes
A small set of external-contract routes use a different error envelope and are out of scope for the Problem Details migration:
- OAuth 2.0 token / client routes (
/api/oauth/*) emit{ "error": "invalid_grant", "error_description": "..." }per RFC 6749 §5.2. - NextAuth callback URLs (
/api/auth/[...nextauth]) follow NextAuth's internal contract. - Stripe webhooks (
/api/billing/webhook) follow Stripe's required envelope.
First-party clients (Flutter, MCP) tolerate both shapes during the rollout
of the per-entity migration: they read detail first and fall back to
error_description / error when the body is from an exempt route.
Encryption key pairs
These are app-internal routes used by Symbol's own apps, outside the public contract. They hold the X25519 key pair end-to-end encrypted organizations use to share keys with a person, and they need a completed second factor on a session.
POST /api/preview/user/keysregisters or replaces the caller's own pair:{ public_key, encrypted_private_key, key_params }, wherekey_params.algorithmis"X25519".public_keymust be the standard base64 encoding of the 32 raw public-key bytes, with or without its trailing=. Anything else (the URL-safe alphabet, whitespace, another length, extra characters) is refused with400and nothing is stored, so a pair already stored is left as it was. Auser_idin the body is ignored.GET /api/preview/user/keysreturns the caller's own pair, including the encrypted private key, or{ has_key_pair: false }.GET /api/preview/users/{id}/public-keyreturns another person's{ has_key_pair, public_key }to any signed-in caller, so it can wrap a key for them. It never returns private material. A pair stored before the format check is returned as it was stored.
Moving and copying into a team
Personal content can be moved or copied into an organization the caller
belongs to with a role that adds content (not viewer).
POST /api/preview/capsules/batch/move-to-workspacewith{ capsuleIds, targetWorkspaceId, targetTypeId, mode?: "move" | "copy", confirm_exposure?, field_map?, field_effects_digest? }(at most 100 ids;field_mapis described in Mapping fields on a move). Each capsule must be one the caller created in their personal workspace, plaintext, not archived and not a log; others are reported per item infailed. A move keeps the capsule's id (its links, likes, saves, versions and attachments keep working), gives it a new ref in the target Type, joins it to the organization with the Type's visibility, and keeps its old@type/Nref and alias resolving for any reader who can read it there. Each item insucceedednames the sourceid, thecapsuleIdnow in the team (the copy's for a copy), its new ref and alias, anddroppedCollections. Encrypted capsules answerencrypted_not_movable.POST /api/preview/projects/{id}/move-to-workspacewith{ targetWorkspaceId, typeMap?: { "<sourceTypeId>": "<targetTypeId>" | "create" }, mode?, confirm_exposure? }moves (or copies) a personal project and its capsules in one step. A source Type left out oftypeMapmaps to an organization Type with the same slug and fields the caller can add to, otherwise to a new Type created with the same fields, template and guidance. The project becomesorg_view. Capsules that can't move stay personal and leave the project, listed inskipped.
Both answer 409 exposure_requires_confirm until confirm_exposure: true is
sent, and nothing changes before then. A non-member's target organization is
the uniform 404; a viewer gets the member-visible 403 with reason: "insufficient_role".
Duplicate to your personal workspace. POST /api/preview/capsules/{id}/duplicate
accepts an optional body { "target": "personal" }. The copy lands in the
caller's personal workspace, Private, in a Type of the source's shape; reading
the source is enough, so a view-only member can take an editable copy. Without
the body the copy lands beside its source and needs the write right, as before.
Encrypted sources answer 422 encrypted_not_copyable.
Saving into a workspace. The save routes (POST /api/preview/share/actions/save,
which takes the share token as token in its body, the app's
POST /api/preview/share/{token}/save, and POST /api/preview/public/save)
accept workspace_id: null or absent
saves into the personal workspace, as before; an organization id saves into
that workspace's General Type (or a Type of the same shape for content with
fields), for a member who can add content there. A non-member's id answers
404, a viewer's 403. 409 already_has_access applies to a member only when
the chosen workspace is the capsule's own, and carries actions naming the
personal copy the saver can make instead.
Mapping fields on a move
A capsule's field values are stored under its field names. When it moves (or
is copied into a team) into a Type that names its fields differently, the
values keep their names, so the target Type may not show them. An optional
field_map renames stored fields onto the target Type's fields as part of the
move. It is accepted by:
POST /api/preview/capsules/batch/move-impact(the preview),POST /api/preview/capsules/batch/move, andPOST /api/preview/capsules/batch/move-to-workspace, in bothmoveandcopymode.
field_map is { "<stored field>": "<target field>" }, at most 100 entries.
Every target field must be one the target Type declares and does not derive,
and no two stored fields may share one; otherwise the whole request is refused
with 400 and the matching code (field_map_undeclared_destination,
field_map_derived_destination, field_map_duplicate_destination,
field_map_unsafe_key or field_map_too_large). The map is checked only after
the caller is allowed to use the target Type. Absent or empty, a move stores
exactly what it stored before.
The rename happens all at once, so { "a": "b", "b": "a" } swaps two fields.
Values are never converted, dropped or invented: false, 0, list items and
choice values stay exactly as stored, and a stored field the map does not name
keeps its name. Per capsule:
- a capsule that does not hold a mapped field is simply not affected by that entry;
- a capsule that already holds a value under a target field that is not itself
mapped away is refused with
field_map_collision, and nothing about it changes. So is a capsule whose body uses the mapped field as{{source}}and already uses{{target}}for something that stays, since the two would merge into one; - an encrypted capsule holding a mapped field is refused with
field_map_encrypted, because the server cannot read its values.
These arrive per item in failed on the writes, and in refusals on the
move-impact preview.
Field effects. The move-impact preview, and the move-to-workspace
409 exposure_requires_confirm, report field_effects: per capsule that would
move, { capsule_id, fields, missing_required }, with one row per stored field
(at most 200; fields_truncated: true when there are more):
| Field | Meaning |
|---|---|
source_key | The field as stored on the capsule. |
effective_key | The field it is stored under after the move (the same unless mapped). |
disposition | kept (the target shows it), mapped (renamed onto a target field that takes the value), hidden (the target does not show this field; the value stays stored), incompatible (the target field does not take this kind of value, for example text in a list field; the value stays as stored), or unknown (an encrypted value the server cannot judge). |
expected_kind | The target field's type, when the target declares effective_key. |
actual_kind | The stored value's kind: string, number, boolean, list, object or null. Absent for unknown. |
missing_required names the target's required fields still empty after the
mapping. A move between Types, a copy into a team, and a move into a team with
a field_map that renames a field mark such a capsule incomplete. The preview's
required_fields is judged on the same mapped values. Values are never
included in a preview, only field names and kinds.
Stale previews. Both previews also return field_effects_digest. Send it
back as field_effects_digest on the batch move or move-to-workspace write
(with the same field_map) to make sure the move does what was reviewed: if
the capsules, the target Type or the map changed since the preview, the whole
request is refused with 409 field_preview_stale and nothing changes, and an
item that changes while the move runs is refused on its own with
field_preview_stale. Without the digest no such check runs.
A move held for approval by a protected Type keeps its field_map. Its
approval applies the same mapping, and refuses a change to the capsule or the
target Type since it was proposed instead of applying it.
Undo. A batch move with a field_map is undone like any other batch move
(POST /api/preview/history/batches/{batchId}/revert): each capsule goes back
to its source Type with its original field names, values and body, so its
{{tokens}} name the source Type's fields again. A capsule whose body was
edited after the move is skipped with changed_since, since putting the
earlier body back would lose that edit. A move into another workspace
(move-to-workspace) cannot be undone from history.
Each moved item in the batch move's succeeded carries fieldEffects
({ mapped, hidden, incompatible }, field names only) when anything other than
"every field kept" applies.
Converting notes into a log
Ordinary capsules can be turned into dated entries of a log Type. Two routes
share one request vocabulary and one response, the ConversionPreview:
POST /api/preview/types/{id}/convert-to-logwith{ rollover, log_timezone, date_source, field_map?, dry_run, preview_token? }converts a whole standard Type into a log Type, every capsule in it becoming one entry in the period bucket for its date.rolloverisdaily,weeklyormonthly;log_timezoneis an IANA zone. Needs permission to delete the Type and to update every capsule in it. At most 1,000 capsules per conversion.POST /api/preview/capsules/batch/convert-to-entrieswith{ capsuleIds, targetTypeId, target_log_capsule_id?, date_source, field_map?, dry_run, preview_token? }(1 to 50 ids) converts chosen capsules into entries of an existing log Type. Needs permission to update each capsule and the target Type.target_log_capsule_idis required for an owner-bound ormanual-rollover log Type (a log capsule of that Type, or an owner capsule whose log is created on first use) and refused for a dated one.
date_source is created_at, updated_at or field:<name> for a date or
datetime field; a capsule whose field is empty is filed by created_at and
counted in date_fallbacks. field_map overrides the default mapping: keys are
source field names plus @title, @body and @tags, each mapped to a field of
the log's entry schema or to null to leave it out.
dry_run: true writes nothing and answers 200 with the preview:
| Member | Description |
|---|---|
preview_token | Pass back with dry_run: false to convert exactly what this preview shows. |
summary | { capsules, entries, new_buckets, existing_buckets }. |
field_map | One row per source: { source, target, target_is_new, kind_from, kind_to }. |
unplaced | Sources with no target, as { source, capsules_with_value }. |
periods | Entries per bucket, oldest first: { key, entries, bucket: "new" | "existing", log_capsule_id }. |
date_fallbacks | Capsules filed by created_at because their date field is empty. |
effects | Share links withdrawn and people access removed (each listed), likes kept on the retired capsules, collection memberships and project assignments dropped, attachments moved to the log capsule, template_dropped, paragraph_rendering_change, body_renders_as_plain_text, widened_audience (per capsule, every reason that applies: private_draft for a Private or link-only capsule going into a log its workspace's members can read, type_share_link, bucket_share_link for an existing bucket with its own live link, bucket_public for a public one, bucket_grant for one shared with people by name) and added_bytes. |
refusals | { capsule_id?, code, message, field? }. Without capsule_id it refuses the whole request. |
type_changes | Convert-to-log only: { structure, rollover, log_timezone, fields_added, settings_reset }. |
dry_run: false with the preview_token converts, all or nothing, and answers
200 with the same preview plus result: { log_capsule_ids, entries }, each
entry { capsule_id, entry_id, entry_number, log_capsule_id }. A write answers
409 conversion_has_refusals while any refusal stands and 409 preview_stale
when the capsules, the Type or log, or their links changed since the preview,
and 409 target_log_invalid when the named owner's log can no longer be used;
each carries preview, and nothing is written. A write that would take the
workspace past its content storage answers 413 content_quota_exceeded with a
storage member. Without a token it answers
422 preview_token_required. The token is a digest of the request and the
state it would run against; it authorizes nothing on its own.
Each converted capsule is retired: it leaves every listing, search and read
route, its @type/N ref and alias resolve to its entry (GET /api/preview/capsules/by-ref answers the log capsule with converted_entry: { entry_number, entry_at, field_values }), its ref and alias are never reissued,
and its versions stay readable through the entry's source history (GET /api/preview/capsules/{id}/entries/{entryId}/source-versions, and
.../source-versions/{versionNum} for one version). Its share links and people
access are withdrawn and its attachments move to the log capsule.
A capsule the caller cannot read is refused as not_found without its title,
and a request in which none can be read answers 404 capsule_not_found. A
capsule whose date falls in an existing bucket the caller may not add entries
to is refused as bucket_not_permitted, naming the bucket only to a caller who
can read it. One whose attachments would take the log capsule it goes into past
20 attachments is refused as attachment_limit: a shorter rollover spreads them
over more buckets. A Type
in another workspace is the uniform 404; one the caller may read but not
delete is 403.
Discover
GET /api/preview/public/discover (listDiscover) searches, filters and
sorts what owners made Public, the same catalogue the Discover
page lists. It needs no credentials and returns only Public content: never
link-only, team or self content.
Query parameters, all optional. Anything else, or a value out of range, is a
400 naming the parameter:
q: search text, up to 200 characters, in web-search syntax ("exact phrase",-exclude). Withq, the best matches come first.category: a category slug. A facet group's slug matches every category under it.tag: a tag slug.sort:new(the default; first publication, newest first) orpopular(likes plus saves, then views, then first publication).page: 1 to 500, 24 entries a page.
The response is { entries, total, page, page_size, total_pages, query, facets }.
Each entry carries kind (type, collection or capsule), id, title,
description, url (its public page), creator (username, name: the
public name or null, and profile_url), published_at (the first time it was
made public, which a private and public toggle never moves), member_count
(null for a capsule), counts (likes, saves, views), categories and
tags. facets lists every category (slug, name, group) and the 30 tags
most used on public content (slug, name, count).
The route is limited to 60 requests a minute: per account for a signed-in caller (a session, an API key or an assistant), per IP address otherwise.
Retrying a capsule create
POST /api/preview/capsules accepts an optional Idempotency-Key header, any
string you choose of 1 to 128 characters, so a create whose answer never
arrived can be sent again without making a second capsule. Send the same key
with the same body. What the resend gets depends on where the first request
got to:
- It finished:
201withIdempotency-Replay: trueand the capsule asGET /api/preview/capsules/{id}shows it now, files included. If you can no longer read that capsule,404. - It is still running, including while its files are being attached:
409withcode: "IDEMPOTENT_REPLAY_IN_FLIGHT"and aRetry-Afterheader. Wait that many seconds and send it again. - It was refused or rolled back: the key is free again, so the resend creates the capsule.
- Its capsule was saved without its files and could not be removed:
422withcode: "draft_attachments_unresolved",rolled_back: falseand thecapsule_id, the same answer the first request gave. Add the files to that capsule.
The same key with a different body answers 422
IDEMPOTENCY_KEY_REUSED, and a blank or over-long key 400
IDEMPOTENCY_KEY_INVALID. Once a request that sent the header is signed in
and its body is valid, every answer carries Idempotency-Replay: true or
false. Keys belong to your account, so
another account's key never reaches your capsules, and they are kept for 24
hours. Without the header a create behaves as it always has.
When a Type derives each capsule's alias from a field, a create whose alias is
already taken answers 409 with code: "slug_source_conflict" and details:
the slug, the source_field, and a reason of taken_live (another capsule
has it), taken_deleted (a capsule in Recently deleted has it) or
taken_tombstone with reclaimable: true (a deleted capsule's old alias, which
reclaim_alias: true reuses).
Retrying an import
POST /api/preview/import creates its rows one at a time, and every answer
carries the import_key it ran under: the one you sent, or one derived from
the request (the same request always derives the same key). Send that key
again to retry, and the rows that already landed are skipped:
createdandcapsulescount only the capsules this call created. Each entry incapsulescarries theslugit was stored with (nullfor none) andalias_dropped, true when its row asked for an alias that was already taken, so it was created without one. A warning line names that row too.already_importedlists the rows an earlier call under the key imported, byrowandpath, with astatus:created(with theidandrefyou can read now),pending(waiting for approval aschange_id) orunavailable(imported, but you can no longer see it; no id is given and it is not created again).- Rows that failed write nothing, so a retry tries them again. Correct them
and send the same key. A retry that changes or removes a row that already
landed, or changes the destination, mapping or options, answers
409import_key_mismatchbefore anything is written. - While another request under the same key is running, a retry answers
409import_in_progress. Send it again once that request finishes. - A new key imports the same rows again as new copies, on purpose. Without one, the same request derives the same key, so sending the same import again, even much later, imports nothing twice.
Keys are 8 to 128 characters of A-Z a-z 0-9 . _ : -. Each call of a split
import, each chunk and each source Type of a Symbol export, has its own key.
A Symbol export's analysis also returns import_run_id. Pass it on every
execute call of the run. When the run's type_slugs_sig has expired (409
import_analysis_required), POST the export to
/api/preview/import/analyze with the same import_run_id: it returns the
same type_slugs with a fresh signature, and the run continues where it
stopped, its references resolving to the capsules it already created. When a
Type the run already imported into was deleted or is no longer yours to
write to, renewal answers 409 import_run_unavailable; start a new run.
Analyzing the same export into the same place again without an
import_run_id derives the same run id, so it renews the existing run
instead of starting another: its calls skip what already landed. To import
the export again as a separate copy, analyze it with a new import_run_id
of your own (32 lowercase hex digits). That run settles its own slugs (a new
Type for each source Type, next to the earlier copy), and its calls run
under their own keys.
A one-Type export imported without analyzing it first joins a run too: the
one its import_run_id names, or, without one, the run analyze would derive
for the export. A call whose create_type.slug differs from the slug the
export gives that Type gets a run of its own instead, derived from that
slug. So an intentional copy of a Symbol export always sends a new
import_run_id as well as a new import_key.
Snapshot restore
POST /api/preview/snapshots/{id}/restore answers { stats } for both a dry
run ({"dryRun": true}) and a real restore. Besides restored, removed and
not_restored, the stats carry:
resumes_exposure: what the restore brings back with live links, a public page or a published skill. Each entry hasresource_type(capsule,type,collectionorproject) andreturns_from:archivefor a capsule archived since the snapshot, whose links were only paused, anddeletionfor an item deleted since the snapshot, or removed by a restore you are now undoing, whose links the restore revives. A Type'srefis@<slug>; a collection or project has none.removed_files:{ attachments, capsule_images, type_images, bytes }, the files added since the snapshot that the restore removes, including those of items it removes. They stop counting against your storage once the restore completes.links_resumed(real restore only): one{ resource_type, id, links, visibility }per item whose links came back.
A deleted item's links come back only as its deletion left them: a link you
revoked before deleting, a link that has expired or used up its views, and an
item you made Private before deleting stay as they were. An item deleted before
deletions recorded their links comes back without them, and not_restored
names how many under share_links_not_resumed. Bringing links back is the same
re-exposure as restoring an archived capsule, so an API key without the share
scope gets 403 share_required with the resumes_exposure list, and nothing
is restored.
A dry run also returns confirmation_token and confirmation_expires_at, 15
minutes out. A real restore sends that token back as confirmation_token, from
a dry run of the same snapshot by the same account, so a restore is preceded by
its own dry run. Without a valid token the restore answers 409 with
code: "dry_run_required" before anything is read or the hourly allowance is
spent, and the answer is the same for every snapshot id. Who is refused, and
from when:
- A token that is sent but does not verify (expired, malformed, or minted for another snapshot or account) is refused now, from any key.
- Symbol's own assistant tools and CLI, which identify themselves with the
x-symbol-ai-clientheader, are refused now when they send no token. - Any other API key or organization key that sends no token is refused from the date in the API changelog, and keeps the old behaviour until then.
Restores in the Symbol web app are not asked for a token: the dialog shows the dry run and asks you to confirm.
Version history
GET /api/preview/capsules/{id}/versionsandGET /api/preview/types/{id}/versionslist versions newest first, as{ versions, next_cursor },limit1 to 100 (default 20). Sendcursor=(empty) on the first request, then pass eachnext_cursorback unchanged ascursoruntil it comes backnull.next_cursoris an opaque string: do not build or edit one.- With
cursorpresent (an emptycursor=counts), any parameter other thanlimit,cursor,before,keptandwsis refused with400(the problem body names it inunknown_param), as is a cursor that does not decode or that came from the other kind of version list (a capsule cursor sent to a Type's list, or the reverse), andcursortogether withbefore. before=<version_num>still pages instead ofcursor.- A request without
cursoris answered the old way until the date in the changelog entry:next_cursoris a{ "versionNum": n }object and unknown parameters are ignored. From that date every request gets the string cursor and the400s above, with or withoutcursor. - A version number always names the same version. It is never given to a second version of the same capsule or Type, even after a version is deleted, old versions are pruned, or encryption is turned on and off again, so numbers can skip.
GET /api/preview/capsules/{id}/versions/{n}andGET /api/preview/types/{id}/versions/{n}are servedCache-Control: private, no-cachewith anETag. SendIf-None-Matchto get a304while the version exists; a deleted version answers404.- An archived capsule's history is readable wherever the capsule is. Deleting
one of its versions is refused with
409capsule_archiveduntil the capsule is restored. - List and detail rows carry
edited_by, the account that made the version (nullfor versions written before Symbol recorded editors), andedited_by_name, that account's name when you made the version or belong to the workspace that owns the item, otherwisenull.created_byis the item's owner, not the editor. GET /api/preview/capsules/{id}/versions/compare?from=<n>&to=<n>andGET /api/preview/types/{id}/versions/compare?from=<n>&to=<n>report what changed from versionfromto versionto(todefaults to the newest version you can see). A capsule comparison coverstitle,summary,meta(each prompt detail and agent setting that changed, with its value before and after), the authoredbodyas a line diff, andfields, each changed value with its text before and after. A Type comparison coverssummary,guidanceandoutput_templateas line diffs, andschema: each field added, removed, renamed, retyped or changed, with its definition on both sides, plus changes to field order, field mode, freeform policies and structure; andidentity: each of the Type'sname,slug,iconandcolorthat changed, with its value before and after. A version written before Symbol captured Type schemas reports its schema asnot_captured, one written before Symbol recorded a Type's identity reports its identity the same way, and one written before Symbol recorded a capsule's prompt details and agent settings reportsmetathe same way. Eachnot_capturedsection carriessidesandmay_have_changed,truewhen the revisions between the two versions may have changed that part: for a Type, when only one version recorded it; for a capsule'smeta, when only one version recorded them and it holds some, or nothing else changed.unchangedis thenfalse. In a line diff, unchanged runs collapse to two lines of context around each change. A text that changed too much to compare line by line answers{ "status": "too_large", "before_line_count", "after_line_count" }and the rest of the comparison is still reported; read each version in full instead. A version you cannot see, on either side, answers404exactly as one that does not exist. Responses areCache-Control: private, no-store.POST /api/preview/capsules/{id}/versions/{n}/restoreandPOST /api/preview/types/{id}/versions/{n}/restorereturnnew_version_num, the version the restore created, ornullwhen it wrote none (for example when the restore matched the current state, or history was paused by its rate limits).PATCH /api/preview/capsules/{id}/versions/{n}andPATCH /api/preview/types/{id}/versions/{n}keep, label or release a version, with{ "kept": boolean, "label"?: string | null }. A kept version is not removed by the 50-version limit or the 30-day clean-up until it is released.labelis trimmed and must be 1 to 80 characters on one line;nullremoves it, and leaving it out keeps the current one. Sendinglabelwithkept: falseis a400: releasing a version always clears its label. The answer is the version's list row pluskept_count,kept_limitandretentionas it stands after the change (below). Keeping a version takes it out of the 50, so a full history's next save may then remove nothing. It needs the same access as a restore, and on a capsule a per-personeditgrant also admits it (restore and delete stay closed to a grant). A person a grant admits only to read the capsule or Type gets403withreason: "grant_view_only". It follows the same plan gate as reading the history.- You can keep a version of one capsule or Type only while fewer than 10 of
its kept versions are visible to you. Keeping another answers
409withcode: "kept_limit"; relabelling a version already kept never does. The count covers only the versions you can see, so a teammate whose history starts later than yours keeps their own 10, and you may see more than 10. DELETEon a kept version answers409withcode: "version_kept". Release it first. Keeping a version of an archived capsule answers409capsule_archived, as deleting one does.- List and detail rows carry
keptandlabel.kept=trueonGET .../versionslists only kept versions, on the same cursor. GET .../versionsalso answersretention:cap(50),kept_count(the kept versions you can see),kept_limit(10) andeviction_candidates, empty unless the history is full, otherwise every version the next saved change removes, oldest first, as{ version_num, changed_at }. That is one version at the cap, and more after releases leave the history over it. A restore never removes the version it restores from, so restoring a candidate removeseviction_afterinstead, the next version after the candidates, sent only when there is one. A version you cannot see is never named: the list stops before it.
Bulk edit refusals
POST /api/preview/capsules/batch/edit-fields and
POST /api/preview/capsules/batch/edit-tags answer 200 with one entry in
failed for each capsule they could not change, so one refusal never blocks the
rest. Each entry carries id, code and error. Two codes say where a capsule
is:
archived("Archived capsules cannot be edited"): your account can read the capsule, and it is archived. An API key with theupdatescope gets this answer for any capsule its account can read, even without thereadscope. Restore it from Archive, then edit it. This holds whether it was archived before the edit or while the edit ran.not_found("Capsule not found"): no capsule your account can read has this id. A capsule that does not exist, one in Recently deleted, and one you cannot read all answer the same, so the reply never says whether an id you cannot read exists or is archived.
permission_denied means your account can read the capsule but may not change
it.
Skills republished by an edit
When a write changes a capsule that is published as a skill, so that the
served copy falls behind it, the reply says whether a republish was started.
PUT /api/preview/capsules/{id},
POST /api/preview/capsules/{id}/versions/{n}/restore and each item in
succeeded from POST /api/preview/capsules/batch/edit-fields and
POST /api/preview/capsules/batch/edit-tags carry a republish object:
{ "status": "started", "message" }: the republish was scheduled. It runs after the reply and completes on its own, normally within a few seconds. Read the capsule to confirm:packaging.published_statebecomes"published".{ "status": "not_started", "reason", "message" }: the published skill was left stale.messagesays what to do;reasonis one of:
reason | Meaning |
|---|---|
opted_out | The request sent republish: false. |
caller_default | The request did not send republish, and this caller does not republish by default: an API key or a signed-in person. An AI assistant does. Send republish: true. |
blocked | Publishing is blocked for this capsule (for example it became an agent, or it has open {{variables}}). |
name_changed | A republish would rename the served skill, which is never done automatically. |
no_refresh_right | Only someone who may share the capsule can update what members receive. |
rate_limited | The publish rate limit was reached. |
check_failed | The republish could not be checked. Republish later. |
republish is absent when there was nothing to republish: the capsule is not
a published skill, or its served copy is still current. For an API key or a
signed-in person, a not_started sentence also appears in warnings, as it
did before republish existed (except check_failed, which only republish
reports); an AI assistant reads it once, from republish.
packaging.published_state in the same reply is what is stored when the reply
is written, so a started republish usually still reads stale there, with
packaging.republish_refused null. Its values:
published_state | Meaning |
|---|---|
draft | Never published. |
published | The host serves this version. |
stale | The served copy is behind the capsule. If packaging.republish_refused is set, the last automatic republish was refused for that reason and does not retry by itself. |
pending | A publish is in flight. It settles by itself, normally within seconds. |
failed | The host refused the last sync, and it does not retry by itself. packaging.publish_error says why. |
unknown | The host did not answer. It is checked again on a read after about 10 seconds, and by the background sweep. |
An agent's report reads published or stale; its served copy is refreshed
during the edit itself. A republish refused after the reply (for example a
skill of the same name was published in the meantime) leaves the previous
version served, so alsoAvailableAsSkill stays, published_state reads
stale, and packaging.republish_refused (and republishRefused on the skill
status) carries a sentence naming the cause. A later republish that stages
clears it, and so does a later automatic attempt that fails for another
reason, since the recorded cause no longer describes the last attempt.
Protected Types
Complete Symbol imports
A selected Symbol export that touches any protected destination waits as one change. This includes items bound for unprotected Types in the same selection. Nothing in that selection goes live until a person approves the reviewed graph. Without a protected destination, the existing ordinary import behaves as before.
For a chunked selection, send x-symbol-accept-pending: 1 and use these routes with create scope:
POST /api/preview/import/runssendsworkspace_id,configuration,item_countanddescriptors. Configuration containssources, each withsource_type_slugand exactly one oftarget_type_idorcreate_type. It can also setmark_incompleteandconfirm_exposure. Each descriptor contains a contiguous zero-basedindex,source_type_slug,bytesand lowercase SHA-256sha256. Hash the canonical JSON of{files, source_type_slug}, with object keys sorted, encoded as UTF-8. Include the same export manifest in every chunk. A protected selection answers 201 withrequires_review: trueand a privateruncontaining its ID, revision, selection digest and expiry. An unprotected selection answers 200,requires_review: false, without creating an upload. Continue with the ordinary importer.PUT /api/preview/import/runs/{id}/chunks/{index}sends{files: [{path, content}]}. Its 200 reply gives the currentrevision. Repeating identical bytes is idempotent; replacing an index is refused.POST /api/preview/import/runs/{id}/finalizesends the latestrevisionand the originalselection_digest. Every declared chunk must be present and unchanged. One transaction stores the whole proposal and its acknowledgement. A 202 reply has the ordinarypending_approvalshape below, never a completed-import result. Repeating finalization returns that original acknowledgement. If no valid nodes remain, 200import_summarylists the skipped rows and confirms that nothing was created. Itslegacy_resultcaches the equivalent ordinary zero-row answer.GET /api/preview/import/runs/{id}returns private upload progress and any originalfinalizedacknowledgement. That acknowledgement records submission, not the change's current decision status.DELETEcancels an unfinalized upload with 204 and no body. It cannot withdraw a held change.
All upload actions require the original person and physical credential, with current workspace access.
A different key belonging to the same person cannot resume a run.
A run expires after one day. Each author may keep three open runs across their keys and workspaces.
A protected selection is limited to 1,000 review items, including new Types, and 64 MiB of staged chunks.
Each request retains the ordinary 4,000,000-byte and 1,000-file limits, including the manifest.
The server counts the actual complete input again before planning, independent of the declared item_count.
For a larger selection, import unprotected Types separately or select fewer Types.
A complete export that fits one request can use POST /api/preview/import with format: "symbol", files,
workspace_id and selection containing that same configuration. Selection replaces the per-Type destination fields.
Do not combine it with ordinary multi-call held_references or a signed type_slugs map.
selection.mark_incomplete and a top-level mark_incomplete, if both supplied, must agree.
As in ordinary Symbol import, frontmatter determines values; CSV column mappings do not reinterpret Symbol files.
A complete single-Type export may still use its ordinary target_type_id or create_type fields.
An ambiguous per-Type call from a larger protected export asks for the complete selection or the run protocol.
Invalid rows are skipped when the proposal is built. Human review lists them as Will not be imported, with reasons.
Placements the author cannot make are omitted then and listed separately.
Public project exposure still requires explicit confirm_exposure; approval does not authorize sharing.
Approval creates exactly the reviewed nodes, links and placements or releases nothing.
It rechecks the original author's rights and current public-share exposure.
Human change detail adds import_review: captured Type guidance, templates and fields, exact collection/project placements,
internal graph addresses and reference shortcuts for the current item page.
The browser and Symbol app navigate submitted references inside the held graph, without fetching unreleased live items.
GET /api/preview/protected-changes/{id}/import-report pages every skipped or adjusted row and omitted placement.
import-reference resolves a captured internal edge from source_key and reference to an item offset and state key.
Both require revision and after_digest matching the review, and the same current human review authority as the change itself.
Machine credentials receive status metadata, without this review data.
Load every item and report page before approval. x-symbol-import-review: 1 advertises support for the complete import review.
When approving, the client asserts it has shown the whole report.
The server requires the claim but does not track page visits or verify that completeness.
Clients without it are refused without release. Older apps are told to review the import in the browser.
A capable app sends the same header when loading its native review. After showing every report page, it sends
import_reviewed: true when creating its native review request. This client assertion is stored with the single-use request,
bound to the revision and digest. A browser session of the same person still confirms with a recent proof.
The assertion grants no decision authority and does not replace that confirmation.
The legacy POST /import keeps its ordinary 200 shape when every selected row is invalid:
created: 0, a destination type with created: false, and the skipped rows in failed.
For an existing destination, type identifies that live Type. For a new destination, it contains the first selected new Type's
name, slug and planned UUID. That UUID does not identify a live Type, and no Type was created.
The answer is stored in the finalization transaction, so a later destination change cannot turn a finalized zero-row answer into an error.
If the whole selection has no valid items and at least one skipped row, none of its new Types or placements is created,
even when an empty Type was selected alongside the invalid rows.
A selection containing only empty Types, with no invalid rows, still proposes those Types for review.
import_summary is used by the private run's finalization response instead.
The import_symbol_export assistant tool exposes describe, start, upload, status, finalize and cancel actions for this protocol.
Its finalization answer says Saved for approval, with the review link. It never approves the import.
A protected Type holds every change to itself and its capsules for approval. The Type is protected by its owner, or by an organization that protects all its content. The live capsule and Type rows are always the last approved state, so every read keeps answering the approved version, and a capsule created in a protected Type does not exist for readers until its creation is approved.
Writing to a protected Type
A client says it understands a held write by sending
x-symbol-accept-pending: 1 on the write. It may also name itself in
x-symbol-client (for example my-sync/1.2; labels longer than 120
characters are cut). The label is recorded on the change and shown to
reviewers as the client's own claim, beside the credential the server
resolved. It is never used for a decision.
A write that is held answers 202 Accepted:
{
"pending_approval": true,
"reason": "pending_approval",
"detail": "Saved for approval. This Type is protected, so readers keep the approved version until the change is approved.",
"change": {
"id": "6f1c…",
"revision": 1,
"status": "pending",
"operation": "capsule_update",
"type_id": "0b7e…",
"workspace_id": null,
"review_url": "/changes/6f1c…"
},
"approved": { "kind": "capsule", "id": "a1d2…", "updated_at": "2026-11-01T09:30:00.000Z" }
}An API key, an OAuth or organization key, the MCP relay, the Symbol mobile
app's key and any request that declares an assistant client
(x-symbol-ai-client: mcp or cli, on any credential, a browser session
included) always get the 202 above. Only a first-party browser session of a
person who may decide the change (the personal workspace's owner, or the
organization's owner or an Admin, in an organization with no approval service)
applies its own change at once. Such a write answers as an unprotected write
would, 200, and the change is recorded approved by its author. With no
recent proof on that session it answers
403 proof_required (proof_mode recent) with nothing written and nothing
stored: prove, then send the same request again. Encrypted changes, two-sided
moves, full Symbol imports and dependency refreshes (POST /api/preview/capsules/{id}/dependencies/refresh and its Type twin) are held
for every caller.
A browser save that applies at once can name itself with an
x-symbol-operation-id header (any string up to 128 characters; the web app
sends one per save and keeps it until the save gets an answer). Sent again
from the same session with the same id and the same request, it gets the
first answer again, marked Idempotency-Replay: true, and nothing is applied
twice. The same id with a different request answers 422
IDEMPOTENCY_KEY_REUSED. A repeat is answered from the first save only while
the caller can still read what that save changed; otherwise the request runs
as any other would.
change.workspace_id identifies the destination workspace for draft uploads
that join a held create: null for personal, or the team's ID. Use this value
instead of resolving the request's workspace name again. It is absent from
older servers. Adding files needs create scope, with no extra Type read.
protection_turned_on is retired: a write never turns protection on, so the
server no longer sends it. Clients may still accept it from an older server.
approved names the object readers still receive. It is absent when the write
creates something: a held create has no capsule id yet. operation is one of
capsule_create, capsule_update, capsule_delete, capsule_archive,
capsule_unarchive, capsule_move, capsule_restore_version, type_update,
type_delete, log_append, log_entry_update, log_entry_delete,
publication or structural. A batch route does not fail as a whole: each
held item is reported among that item's results as not applied, with code
pending_approval, or with the refusal's reason as its code.
Refusals are Problem Details with a machine-readable reason. Branch on
reason, never on detail:
| Status | reason | Meaning |
|---|---|---|
| 409 | pending_approval_unsupported | The write did not send x-symbol-accept-pending: 1. Nothing was stored. A client that cannot report a held write is refused rather than allowed to report a save that did not happen. |
| 403 | proof_required | A browser session of someone who may decide the change has no recent proof. Nothing was written or stored. Prove, then repeat the request. |
| 409 | pending_change_open | Another change to the same object is already waiting. Carries change_id and review_url when the caller may see that change. A browser save by someone who may decide it is refused the same way, and the waiting change is left as it was. |
| 409 | protected_change_stale | A browser save by someone who may decide it found the item, or who may decide it, changed while saving. Nothing was written. Save again. |
| 409 | protected_change_unsupported | The write carries something an approval cannot replay. Nothing was stored. |
| 409 | protection_enforced_by_organization | The organization protects all its content, so a Type's protection cannot be changed. |
| 409 | protected_change_required | The write reached storage outside an approved change. Nothing was stored. This indicates a defect, and is logged. |
Reading, and turning protection on, never need the header.
Reading protected content
A client that composes protected content itself (an app, a sync client, an
MCP server) says so by sending x-symbol-approved-delivery: 1 on its reads.
It then receives each protected item with its approved composition attached,
so it never pairs an approved item with a newer, unreviewed version of
something the item refers to. The header only selects the format: what the
caller may read is decided by its credential as always. A first-party browser
session needs no header, since the server composes the page for it.
A read without the header is refused when it would return protected content:
| Status | reason | Meaning |
|---|---|---|
| 409 | approved_delivery_upgrade_required | The item, or a row of the requested page, is in a protected Type. Carries upgrade ({ "header": "x-symbol-approved-delivery", "version": "1" }). Nothing protected was sent. |
A list, search, context, mention resolution, export or sync page that would include a protected item is refused as a whole, never returned with the item quietly left out, and a sync cursor is not advanced. Reads that include nothing protected answer as before.
GET /api/preview/capsules/{id}/instruction-export renders a protected
capsule from its approved composition for every caller, browser sessions
included: what it inlines is the material frozen at approval, a pointer is
named by its token without the target's current summary, and an inline
reference with nothing frozen for it stays a code span reported
unavailable (or deleted). A caller that sent the header also receives the
envelope the export was built from, under approved_delivery.
Following and deciding changes
| Route | Who | What |
|---|---|---|
GET /api/preview/protected-changes | Any authenticated caller | The changes the caller proposed or may decide, newest first, as metadata only (never proposed content). Query: scope (personal, organization with organization_id, or all, the default), status (pending, the default, approved, rejected, cancelled or all), limit (1 to 100, default 50) and cursor (the previous page's next_cursor). An organization_id the caller does not belong to returns an empty listing. |
GET /api/preview/protected-changes/{id} | The author, or someone who may decide it | { change }. A first-party browser session also receives before and after, the approved and proposed state of each object. Any other credential receives the metadata only. 404 when the caller may not see the change or cannot read every object it touches. In an organization whose security policies are on and that has an approval service, a pending change also carries release_policy, for every credential: the prospective form of the policy summary, { "version": 1, "kind": "prospective", "security_state", "policy_version", "network_subject", "groups" }, whose group outcomes are will_check, exempt or inapplicable. It describes the rule under the current policy and never says the author qualifies. It is null otherwise. |
POST /api/preview/protected-changes/{id}/approve | Someone who may decide it, from a browser session with a recent proof | Body { "revision": n, "note"?: "…" }. Releases exactly that revision. |
POST /api/preview/protected-changes/{id}/reject | Someone who may decide it, from a browser session | Same body. Closes the change, releases nothing and needs no proof. |
POST /api/preview/protected-changes/{id}/withdraw | The author, with any credential that can write | Body { "revision": n }. |
A listing row carries id, status, operation, revision,
workspace_id, type (id, name, slug), target (kind, plus id and
title only where the caller may read the object), author (id, name,
is_you), credential (session, personal_key, mobile_key, oauth,
organization_key, mcp or other, resolved by the server), client_label,
encrypted, created_at, decided_at and can_decide. The detail adds
targets, decided_by, decision_note, publication_intent and
publication_status.
Review detail accepts offset (zero based) and limit (1 to 200, default 50).
objects reports total, offset, limit and next_offset; item pages are also bounded by response bytes.
The additive page_targets contains the existing targets on this item page, and target_total counts all existing targets.
For changes of up to 500 items, targets keeps its complete previous shape and targets_truncated is false.
For larger changes, targets is bounded to the current page and targets_truncated is true.
Use page_targets with the page's states and target_total for totals rather than assuming targets is complete.
New items have no live target yet. A log with many proposed entries pages its entries within that item;
entry pages do not change the item's count. Load all item and entry pages before approving in the review.
An approved deletion of a protected Type stays listed after the Type is gone:
its type.id is null, and type.name and type.slug are the deleted Type's.
Its detail opens for the person who proposed it and the person who approved
it, provided they can still read every object it moved or archived.
The people who may decide a change are the owner of a personal workspace, or an organization's owner and its Admins, and they must also be able to read every object the change touches. Decision answers:
| Status | reason | Meaning |
|---|---|---|
| 403 | session_required | Approve and reject are refused to every API key, OAuth app, organization key and MCP connection. |
| 403 | proof_required | Approve needs a recent proof of identity, as described under Creating keys. Carries proof_mode and method. |
| 403 | protected_change_forbidden | The caller cannot decide this change. |
| 404 | The change does not exist, or the caller may not see it. | |
| 409 | protected_change_stale | The change or an object it touches moved since that revision was reviewed, or the author no longer belongs to the organization. Nothing was released. Review it again. |
| 409 | protected_change_decided | The change was already decided differently. Carries status. |
| 409 | protected_change_review_in_app | The change is encrypted. The server cannot show what it does, so it is reviewed and approved in the Symbol app. |
One held change can contain at most 5,000 review items, or 1,000 for snapshot restore or a selected Symbol import.
An oversized proposal or pending change answers
409 with reason protected_change_too_large and the operation's maximum_items. Split larger edits into smaller changes.
For a tag rename, Type deletion or snapshot restore, an owner or Admin can turn protection off for the Type,
or in team settings if it is enforced, while making the change.
A snapshot restore has already restored unprotected content, so its successful response instead reports
stats.protected_types.status: "not_staged", reason: "protected_change_too_large" and maximum_items: 1000.
Its protected content stays unchanged.
Unprotected changes keep their ordinary product limits.
Repeating the same decision on the same revision returns the recorded result and changes nothing.
Reading a Type's protection
Full Type records carry a protection object: GET /api/preview/types at
detail=full (the default), GET /api/preview/types/{id}, and type on
GET /api/preview/capsules/context. Anyone who may read the Type receives it,
including members and API keys that cannot manage protection.
GET /api/preview/types?detail=protection lists only id, workspace_id and
protection for every Type you can list, and is not cached. It takes no
projectId or change-time window.
| Field | Meaning |
|---|---|
protected | Changes to this Type are held for approval |
own | The Type's own setting, regardless of its organization |
source | owner, organization, or null when off. publication_default is historical: it was automatic protection, which is no longer set |
enforced_by_organization | The organization enforces protection |
released_at | When the Type's own protection was last turned off |
set_at | When the Type's own setting was turned on |
organization_set_at | When the organization began enforcing it, when source is organization |
publication_default_applies | Retired: always false, since a publication never turns protection on |
freshness | live from the API. A local copy can report cached or unknown |
checked_at | When the server last reported this value |
A timestamp is null when no time is recorded. publication_default_applies
stays in the shape for older clients and is always false. Every value is an
observation, not permission to write, and the server checks policy again when
the write arrives. A local copy reporting unknown has null
in every value field, which never means unprotected.
Turning protection on and off
GET /api/preview/types/{id}/protectionanswersprotected,own,source(owner, null, or the historicalpublication_default),enforced_by_organization,released_at,set_at,can_manageandexternally_managed, which is true while an approval service holds the setting andcan_manageis false.PUTwith{ "protected": true | false }changes it. The Type's owner, or in an organization its owner or an Admin, may change it; organization keys are refused. Turning protection off needs a recent proof (403 proof_requiredotherwise), withdraws every change still waiting in the Type. Publishing a skill, agent or prompt never protects a Type.GET /api/preview/organizations/{id}/protectionanswersrequire_protection,set_atandcan_manage.PUTwith{ "require_protection": true | false }changes it, for the organization's owner or an Admin. Removing it needs a recent proof; Types protected individually stay protected.
Limits
Approved delivery describes what Symbol serves. Older versions of the Symbol apps and Bridge may still show content they cached before they were updated, and can combine it with newer content they fetch, until they are updated and their caches are replaced. An organization can hand approval to an independent authority through the Organization Approvals API; otherwise its owner and Admins decide.
Sentinel
Sentinel is hosted AI review of an organization's protected changes. See Sentinel for what it checks and its limits. Every settings route is for the organization's owner and its Admins, from a signed-in browser session only: an API key, an OAuth app or MCP connection, and an organization key get 403 with reason: "session_required", even when they belong to an owner or Admin, so an assistant can neither switch Sentinel on with rules it wrote nor read the rules. Another member gets 403 (reason: "sentinel_forbidden") and a non-member the uniform 404. Responses are Cache-Control: private, no-store.
GET /api/preview/organizations/{id}/sentinelanswersavailable,unavailable_reason(external_approval_service,not_rolled_out,planor null),enabled,generation,enabled_at,rules,scheduled(the change waiting out its 24 hours, or null),estimate(typical_credits,max_credits,typical_chars) andcan_manage.PUT /api/preview/organizations/{id}/sentinelwith{ "enabled": boolean, "rules": string }(rules up to 8,000 characters). The body is strict: any other field, such as a provider key, is refused with400. The answer is{ "settings": ..., "result": "enabled" | "scheduled" | "unchanged" }.- While Sentinel is off,
enabled: trueturns it on at once. It needs a recent proof (403 proof_requiredotherwise), since Sentinel can then approve changes that otherwise need a person with a recent proof.409withreason: "sentinel_unavailable"andunavailable_reasonwhen it cannot be turned on. - While it is on,
enabled: falseor differentrulesschedules the change 24 hours ahead, replacing any change already waiting, and emails every owner and Admin. It also needs a recent proof:403 proof_requiredotherwise.
- While Sentinel is off,
DELETE /api/preview/organizations/{id}/sentinelwith{ "proposal_id": uuid }withdraws the scheduled change.409withreason: "sentinel_proposal_stale"when it is no longer the one waiting.GET /api/preview/organizations/{id}/sentinel/exportdownloads the rules asapplication/json; charset=utf-8, exactly{"schemaVersion":1,"rules":"..."}. Sentinel Self-hosted, which is coming, will read this format unchanged.
Sentinel on a change
GET /api/preview/protected-changes/{id}carriessentinel:{ "state": "reviewing" | "decided" | "none", "decision" }.decisionis null unless Sentinel decided, and otherwise holdsdecision_id,revision,outcome(approve,rejectorask_human),reason_code,reason(the fixed sentence for that code, never anything a model wrote),checks(each{ "check": "safety" | "rules", "status": "passed" | "flagged" | "failed" | "skipped" }),decided_at,override,can_overrideandcan_override_in_browser.overrideis null until someone overrides the decision, then{ "direction": "apply_rejected" | "reverse_approved", "status": "applied" | "conflict", "decided_by": { "id", "name" }, "successor_change_id", "created_at" }; aconflictchanged nothing and has no successor.can_overrideis true only when this caller could override it now.can_override_in_browserfollows the same rules but is also true for an owner or Admin signed in to Symbol's own app, which cannot override itself and sends them to the browser instead. A decision Sentinel made keeps the change'sdecided_bynull.GET /api/preview/protected-changeslist rows carrysentinel_outcome(Sentinel's latest outcome on the change, or null) andsentinel_reviewing(true while Sentinel reviews the current revision).
Overriding Sentinel
POST /api/preview/protected-changes/{id}/sentinel-override with { "decision_id": uuid, "revision": n, "reason"?: "..." } (the reason up to 2,000 characters; the body is strict, so any other field is refused with 400). An owner or Admin of the change's organization overrides Sentinel's approval or rejection: a rejected change is applied exactly as Sentinel reviewed it, an approved edit has its prior values put back, and an approved new item moves to the Archive. The original change and its decision stay as they were; the override is a new change, decided by this person and linked to the decision. It answers 200 with { "override", "successor_change_id" } (the override object above). A repeat answers what was recorded.
- Only from a signed-in browser session with a recent proof: any key, OAuth app or MCP connection gets
403 session_required, and a session with no recent proof gets403 proof_required. 404when the caller cannot see the change.403withreason: "sentinel_override_forbidden"for someone who is not an owner or Admin of its organization or cannot read all of it.409with a fixeddetailand one of these reasons:sentinel_override_conflict: the item, its Type or its author's access changed since Sentinel decided, so nothing was applied. This is recorded, and the body'soverrideholds the recorded outcome. A retry gets the same answer; the author can propose a new change.sentinel_override_stale:decision_idandrevisionare not Sentinel's current decision on this change.sentinel_override_busy: another override of the same decision is being applied right now. Try again shortly.sentinel_override_unavailable: an external approval service governs the organization, the decision sent the change to a person (decide the change itself instead), or the decision cannot be overridden.
Organization Approvals API
Lets an organization decide protected changes from a service it runs, under credentials held apart from its members' accounts. See External approvals for what it does and the custody it asks of you. Every route is under /api/preview/organizations/{id}/approvals.
Credentials
Approval credentials are their own kind of token. Send one as Authorization: Bearer symapr_<credential id as 32 hex>_<secret>. The secret is 43 to 128 URL-safe characters that you generate and keep; Symbol stores only its SHA-256 hash. These tokens work only on the routes below, and every other route refuses them. A malformed symapr_ token is refused and never falls back to a session. An ordinary member credential is refused on every customer route here, whatever the member's role.
Signed credentials (ed25519-v1)
A credential can instead hold an Ed25519 public key, so its private key never leaves your environment and Symbol stores no secret at all. Each credential has exactly one profile, bearer or ed25519-v1, fixed when it is registered. A signed credential refuses a bearer token and a bearer credential refuses a signature; there is no fallback between them.
A public key is exactly 32 bytes in canonical base64url without padding (43 characters). It must be a valid point that is not of small order, and must encode back to the same text. PEM, JWK, padding and the standard base64 alphabet are refused with 422 approval_public_key_invalid.
Each request is signed on its own:
Authorization: Symbol-Ed25519 v1.<credential id>.<created>.<expires>.<nonce>.<signature>createdandexpiresare Unix seconds, 10 digits each, withcreated < expires <= created + 300. Symbol allows 60 seconds of clock difference either way.nonceis 16 to 32 random bytes in base64url without padding. Each nonce is accepted once per credential, across every Symbol server, until the request expires.signatureis the 64-byte Ed25519 signature, in base64url without padding, over the UTF-8 bytes of these lines joined by a single line feed, with no trailing line feed:
symbol-approval-request-v1
purpose:<request | possession:<management|recovery|replacement>:<challenge id>>
org:<organization id>
cred:<credential id>
origin:<scheme://host[:port], lowercase, default port left out>
method:<HTTP method, uppercase>
target:<path and query exactly as sent>
body-sha256:<SHA-256 of the raw body bytes, base64url without padding>
created:<created>
expires:<expires>
nonce:<nonce>purpose is request on every route except the two possession routes, where it binds the proof to one root and one ceremony: possession:management:<enrollment id> or possession:recovery:<enrollment id> when enrolling, and possession:replacement:<rotation id> when rotating. origin is the Symbol deployment's own public origin, such as https://symbol.chat; read the exact value from signing_origin on GET /status rather than from a browser's address. The body digest covers the bytes exactly as sent, so sign the serialized body you transmit; a GET signs the digest of an empty body. Any failure, whatever the cause, answers the same 401 body, which never says what failed. Conformance vectors for this profile, inputs with the exact signing string and signature each must produce, ship with the Sentinel Self-hosted source as test/fixtures/approval-signature-v1.vectors.json. That source is published openly with its release.
To enroll signed roots, send { "credential_profile": "ed25519-v1", "management_public_key": "...", "recovery_public_key": "..." } to POST /bootstrap in place of the two hashes. Issue a signed child with public_key in place of secret_hash, and open a signed rotation with replacement_public_key in place of replacement_secret_hash. A body that mixes a hash and a key is refused with 422. Within an organization one public key is one credential, once: a key already registered for any root or child, past or present, answers 409 approval_secret_reused, and nothing is staged. Credential listings carry credential_profile and, for a signed credential, public_key.
Reviewer installations
A self-hosted reviewer keeps its review rules on your side. Symbol holds only an opaque pair per installation, epoch and activation_id (32 random bytes as 43 base64url characters, generated for each immutable rules snapshot), so a decision can prove which rules it was reviewed under. Management creates an installation with POST /installations ({ "label"?: "..." }), which starts at epoch 0 with no activation_id, and issues a child bound to it by adding installation_id when issuing the credential.
POST /installations/{installationId}/activation moves the pair by compare and swap, one epoch at a time:
{ "expected_epoch": 1, "expected_activation_id": "<current>", "epoch": 2, "activation_id": "<new>" }It answers { "installation", "outcome": "activated" }, or "already_current" when the proposed pair is already in force (a retry). Any other current pair answers 409 with code activation_conflict and the current epoch and activation_id, and nothing changes.
Routes
| Method and path (under the base) | Who may call it | What it does |
|---|---|---|
GET /status | A member of the organization | Whether enrollment is available, the authority's state, and signing_origin: the exact origin a signed request's origin: line must name (null when the deployment has none configured, which refuses every signed request) |
POST /bootstrap | Owner session, recent proof | Register the two secret hashes, or the two public keys |
POST /bootstrap/{enrollmentId}/possession | The candidate's own token | Answer that candidate's challenge |
POST /bootstrap/{enrollmentId}/activate | Owner session, recent proof | Turn on external mode once both are proven |
GET /authority | Any live credential | The authority's status and generation |
POST /authority/disable | Management | Turn it off, cancelling what is pending. Answers 409 approval_suspensions_open until every suspended member is restored, and 409 approval_recovery_rotation_pending while a rotation the recovery credential opened is pending |
POST /authority/rotations | Management or recovery | Start replacing a root credential. Recovery takes precedence: while a rotation it opened is pending, management can open, complete or disable nothing and answers 409 approval_recovery_rotation_pending |
POST /authority/rotations/{rotationId}/possession | The replacement's token | Answer the replacement's challenge |
POST /authority/rotations/{rotationId}/activate | The opener, or the replacement on a retry | Complete it, with an idempotent receipt |
GET, POST /credentials | Management | List or issue child credentials |
DELETE /credentials/{credentialId} | Management | Revoke a child credential |
GET, PUT /policy | Management | Read or change which Types are protected |
GET /changes | review | Pending changes, cursor paginated |
GET /changes/{changeId} | review | One immutable revision and its difference |
GET /changes/{changeId}/attachments | review | The revision's attachment manifest |
GET /changes/{changeId}/entries | review | A page of the log entries the revision captured for one log |
GET /changes/{changeId}/decision | review or decide | Read the change's status and its stored receipt |
POST /installations | Management | Register a reviewer installation |
GET /installations/{installationId} | Management, or the child bound to it | Its current epoch and activation_id |
POST /installations/{installationId}/activation | Management | Move the rules pair by compare and swap |
POST /changes/{changeId}/decision | decide | Decide |
GET /events | audit | The record, cursor paginated |
GET, POST /suspensions | suspend or management | List or suspend |
POST /suspensions/{userId}/restore | suspend or management | Restore a member. The body names the suspension by suspension_id, the id a suspension returns, so a retry cannot lift a newer one |
POST /review-grants | The Private item's owner, in a session | Grant review of a Private item |
DELETE /review-grants/{grantId} | The member who granted it | Revoke that grant |
The owner's session routes reject API keys and connected apps. A session POST with no body must still send Content-Type: application/json.
Deciding
A decision names exactly what was reviewed:
{
"decision": "approve",
"revision": 3,
"digest": "<sha256 from the revision detail>",
"expected_base_revisions": { "capsule:<id>": "<base>" },
"expected_generation": 7,
"expected_policy_generation": 2,
"idempotency_key": "release-2026-11-09-a",
"reason": "Passed review",
"reference": "CHG-1234"
}revision, digest and expected_base_revisions come from the revision detail (GET /changes/{changeId}), with expected_generation your credential's generation and expected_policy_generation the policy generation it reports. reason is at most 2000 characters and reference at most 256. An identical retry returns the original receipt. The same key with a different body, or an opposite decision, answers 409.
A credential bound to a reviewer installation must also name the rules it reviewed under, as "rules_activation": { "installation_id": "<id>", "epoch": 2, "activation_id": "<id>" }. The decision commits only while that is the installation's current pair: one that is missing, names another installation, or was replaced before the decision committed answers 409 with code rules_activation_mismatch, and nothing is released and no receipt is stored. A credential bound to no installation decides as before, and naming a pair from one answers the same 409. The receipt, its identical retry and GET /changes/{changeId}/decision carry rules_activation (null when none applied) beside reference.
Some offline work is a group of new items that link to each other and can only be added together. Such a change carries offline_component in the listing and the revision detail, as { "member_count": 3, "type_ids": ["<id>", ...] }, and it is null for every other change. Approving it also needs "offline_component_reviewed": true, your statement that you reviewed every item it adds. Without it, or with false, the approval answers 409 approval_decision_stale and nothing is released. A value that is not a boolean answers 422, as any other malformed field does. Only true joins the request the idempotency key covers: false counts the same as leaving the field out. So reusing a key with true where the first request sent false or nothing, or the other way round, answers 409 approval_idempotency_conflict, while switching between false and nothing returns the original receipt. Rejecting needs no assertion, and other changes ignore it. The group is released as its author's own key or connection as it is now, so a revoked, expired or narrowed credential, or a suspended author, refuses the approval. If the change, its files, its Type, a credential or the policy moved since the review, the decision answers 409 approval_decision_stale and nothing is released: read the current revision and decide again. A digest covers the whole change, even when the review is paginated, and paginated pages are marked so one page is never mistaken for the complete difference.
A change that converts notes into log entries, or merges a Type whose logs it rewrites, lists each affected log under converted_entries in the revision detail as { total, digest }, keyed by the log's item key. Read the entries themselves with GET /changes/{changeId}/entries?key=<item key>&revision=<revision>&entry_digest=<digest>. Each entry carries entry_number, content_md and field_values, and a rewritten entry also carries before with the text it replaces. Follow page.next_offset with &page=<offset> until it is null. If the revision or the list has moved since you read the detail, the route answers 409 approval_decision_stale.
Security policies at release
In an organization whose security policies are on, approving a change also checks that its author still qualifies under them, as External approvals describes. The decision receipt, its identical retry, GET /changes/{changeId}/decision and the change's page in Symbol all carry the same policy_summary, recorded once with the approval:
{
"change_id": "<id>",
"revision": 3,
"decision": "approved",
"credential_id": "<id>",
"generation": 7,
"decided_at": "2026-11-15T09:30:00.000Z",
"reason": "Passed review",
"reference": "CHG-1234",
"policy_summary": {
"version": 1,
"kind": "recorded",
"security_state": "enforced",
"policy_version": 4,
"evaluated_at": "2026-11-15T09:30:00.000Z",
"network_subject": "service_decision_request",
"groups": [
{ "group": "network", "outcome": "checked", "reason": null },
{ "group": "author_and_directory", "outcome": "checked", "reason": null },
{ "group": "sign_in_and_time", "outcome": "exempt", "reason": "service_identity" },
{ "group": "channel_and_rights", "outcome": "checked", "reason": null }
]
}
}groups always lists network, author_and_directory, sign_in_and_time and channel_and_rights, in that order. outcome is checked, exempt or inapplicable; reason is null when checked, and otherwise one of service_identity, organization_draft, no_rule_configured or organization_key. network_subject is service_decision_request when the network rule was checked: it is your decision request's address that was judged, never the author's. policy_version is 0 when the organization never saved a policy. The summary never names a credential, an address or an identity provider identifier, and it does not change when the policy changes later.
An approval decided before summaries were recorded carries { "version": 1, "kind": "not_recorded" }. A rejection carries "policy_summary": null, since it releases nothing and makes no claim about its author. A deployment from before this field omits it, so treat a missing field as not recorded.
When the author no longer qualifies, the approval answers 409 with one of the reasons below, and its detail says what happened and what to do. Nothing is released, no receipt is stored and the change stays pending, so the same decision can succeed later:
reason | Rule |
|---|---|
approval_author_network_not_allowed | Network: your decision request's address is outside the allowed ranges, or cannot be told |
approval_author_membership_revoked | The author left or was removed, or rejoined after proposing |
approval_author_suspended | The author is suspended |
approval_author_signed_out | The sign-in the author proposed with was signed out of the organization |
approval_author_directory_inactive | The identity provider no longer lists the author as active and assigned |
approval_author_mfa_required | The policy requires a second factor the author does not have |
approval_author_sso_required | The policy requires the identity provider sign-in, which the change was not proposed with |
approval_author_sso_reauth_required | That identity provider sign-in is older than the policy allows |
approval_author_session_expired | The sign-in is older than the session limit |
approval_author_session_idle | The sign-in has been idle longer than the policy allows |
approval_author_ai_access_off | The change came from an assistant, which the policy no longer allows |
approval_author_api_access_off | The change came from a key or the CLI, which the policy no longer allows |
approval_author_credential_not_allowed | The app or key it came from is not allowed |
approval_author_credential_lifetime_exceeded | The key or app access is older than the policy allows |
approval_author_credential_revoked | The key, app access or sign-in was revoked or expired |
approval_author_policy_unavailable | The policy could not be read: try again shortly |
approval_author_provider_inconclusive | The identity provider gave no definite answer: try again shortly |
approval_author_evidence_missing | The change has no record of how it was proposed: the author can withdraw it and submit it again |
A Type, organization or person that the change points at appears in names by id. A Private Type's name is left out unless its owner granted your credential review of it, so that item shows as its id.
For encrypted content ciphertext_only is true and the revision carries ciphertext envelopes. Symbol has no way to produce a plaintext difference. A credential limited to specific Types cannot approve a Type's deletion.
Errors
Errors use the standard envelope, with reason set to one of:
| Status | reason |
|---|---|
| 401 | approval_credential_invalid |
| 403 | approval_scope_denied, approval_member_credential_refused, approval_owner_required, approval_type_scope_denied |
| 409 | approvals_already_enrolled, approval_enrollment_stale, approval_possession_incomplete, approval_challenge_mismatch, approval_secret_reused, approval_rotation_stale, approval_recovery_rotation_pending, approval_generation_stale, approval_authority_disabled, approval_suspensions_open, approval_idempotency_conflict, approval_decision_stale, approval_decision_conflict, and the approval_author_* reasons under Security policies at release |
| 422 | approval_expiry_not_future |
| 503 | approvals_rollout_unavailable |
Another organization's ids answer the same 404 as ids that do not exist. Member routes that a service now governs answer 403 external_approval_required.
Rate limits
Authenticated requests to /api/preview/* count against up to three
hourly budgets, from the narrowest to the broadest:
- Per API key (
api_key): a sub-ceiling on one API key or OAuth grant, so one integration cannot use up the whole API allowance. - API allowance (
api_default): what your API keys, MCP clients and other integrations can send between them, counted per user. - Account ceiling (
account_total): every request from every client of your account, the web app and the mobile app included, counted per user.
A few routes count against a limit of their own instead of these three, for example the billing and rate-limit status reads and the Bridge's guidance check.
The web app and the Symbol mobile app count only against the account ceiling, so using Symbol never spends your API allowance. A request from an integration counts against all three, narrowest first, and a request a narrower budget refuses never counts against a broader one: an integration that runs into its own limit cannot lock you out of the web or mobile app.
Limits today (subject to change, tracked on the changelog
as cosmetic):
| Bucket | Default |
|---|---|
| Account ceiling (Free) | 4,200 requests per hour |
| Account ceiling (Pro) | 8,400 requests per hour |
| Account ceiling (Teams) | 8,400 requests per hour |
| API allowance (Free) | 250 requests per hour |
| API allowance (Pro) | 500 requests per hour |
| API allowance (Teams) | 500 requests per hour |
| Per-API-key (Free) | 200 requests per hour, tunable per key |
| Per-API-key (Pro) | 400 requests per hour, tunable per key |
| Per-API-key (Teams) | 400 requests per hour, tunable per key |
The per-API-key default is sized to 80% of your API allowance so a single integration can use most of it while still leaving headroom for additional keys, and so a plan upgrade lifts the per-key default automatically without you having to edit each key. Override it per key in Settings → API Keys if you need a tighter or looser limit. An organization API key counts against its own per-key limit and an API allowance of its own, from the organization's plan.
Every authenticated response carries the budget headers so you can self-throttle without waiting for a 429:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Cap of the most restrictive budget that applies to this caller. |
X-RateLimit-Remaining | Approximate budget left in the current window. |
X-RateLimit-Reset | Unix-second timestamp when the current window resets. |
When a limit is exceeded the response is HTTP 429 with the standard Problem Details body. The headers describe the limit that refused the request, not your overall budget: a share-link 429 reports the share-link limit, a per-key 429 reports the key's limit.
| Header | Notes |
|---|---|
Retry-After | Seconds until the next request will succeed. |
X-RateLimit-Limit | Cap of the policy that refused the request. |
X-RateLimit-Remaining | Always 0 on a 429. |
X-RateLimit-Reset | Unix-second timestamp when that policy's window resets. |
X-RateLimit-Scope | global (an account-wide budget: the account ceiling or the API allowance) or endpoint (per-key or per-route ceiling). |
X-RateLimit-Policy | Name of the policy that refused, for example account_total, api_default, api_key, share_create or invite_send. The same names appear in rate-limit-status. |
The body carries the same facts for clients that read JSON:
| Field | Meaning |
|---|---|
detail | A sentence naming the limit in words, for example "You've reached the share link limit (30 per hour)." |
code | rate_limited, or a domain code such as save_rate_limited. |
policy | Same value as X-RateLimit-Policy. |
scope | Same value as X-RateLimit-Scope. |
retry_after_seconds | Same value as Retry-After. |
reset_at | ISO 8601 time when the window resets. |
window_seconds | Length of the policy's window in seconds (3600 for an hourly limit, 86400 for a daily one). |
Per-route policies carry their own Retry-After and limit. The ones you are
most likely to meet:
| Policy | Route | Limit |
|---|---|---|
share_create | POST /api/preview/share, and PUT /api/preview/share/visibility to link (or its deprecated alias unlisted), each only when it makes a new link: handing back an item's existing reusable link spends nothing | 30 per hour |
grant_create | POST /api/preview/grants | 30 per hour |
capsule_save_from_share | Saving a capsule from a share link | 20 per hour |
invite_send | POST /api/preview/organizations/{id}/invitations | 10 per hour |
capsule_create | POST /api/preview/capsules and log appends | 100 per hour |
One Type or Collection share link shares all its capsules, so sharing a
library takes one share_create slot, not one per capsule.
Share links and invitations differ in two ways. A refused request is not
counted: one answered 400, 403, 404, 409 or 422 does not use the
limit; links that are created and invitations that are sent do. And
both limits count a sliding hour, so the reset time on a share_create or
invite_send 429 is an upper bound: Retry-After may overstate the wait,
never understate it.
Sign-in, sign-up, password, email-verification and MFA routes are the exception. Their 429s do not state a reset time, because a precise time would help someone guessing credentials schedule the next attempt.
Treat Remaining as advisory, not authoritative. Under concurrent
load, two requests racing the boundary can each see a non-zero
remaining and one of them still gets the 429.
To inspect your current usage and per-API-key counters live, call
GET /api/preview/user/rate-limit-status.
Stability & promotion
The stability contract (breaking-change notice periods, promotion
criteria for preview → v1, and the channels Symbol uses to announce
changes) lives in the dedicated API stability policy.
The short version: anything under /api/preview/* may change with
at least 14 days notice via the API changelog
and an email to API key holders; once /api/v1/* ships, breaking
changes there carry a 12-month deprecation window. The notice window is
counted from the date each entry is published on the production changelog,
which the changelog records automatically.