{"openapi":"3.1.0","info":{"title":"Taggor API","version":"1.0.0","description":"Public REST API of Taggor. JSON fields are snake_case; every error is RFC 9457 `application/problem+json` with a stable `code` and the `request_id` to quote."},"servers":[{"url":"/","description":"The origin that serves this document"}],"tags":[{"name":"health","description":"Liveness of the API and of its database."},{"name":"auth","description":"Sign-in to the portal: login, callback and logout, with a session cookie."},{"name":"api-keys","description":"API keys of the workspace: the credentials of agents, the CLI and integrations, each with its scopes."},{"name":"audit","description":"The audit trail: who did what in the workspace (keys, publishing, channels, members)."},{"name":"support-sessions","description":"Read-only sessions the Taggor staff opened in the workspace to help with support."},{"name":"versions","description":"Immutable component versions, made from builds that passed every quality gate, and the channels that point to them."},{"name":"builds","description":"The state, logs and structured errors of a build, so an agent can fix its component and build again."}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"`Authorization: Bearer <API key>`: a key of the workspace (`tgr_live_…`; `tgr_test_…` in the local environment), created with `POST /v1/api-keys`. It acts in its workspace with the scopes it was created with; each operation lists the scopes it needs. The CLI and MCP send instead the OAuth access token of the person (a JWT from the identity provider): it acts as that person, in their default workspace or the one named by `X-Taggor-Workspace: <slug>`, with the scopes of their role. Anything else that is not a valid key or token is a 401."},"sessionCookie":{"type":"apiKey","in":"cookie","name":"__Host-taggor_session","description":"The portal's session (`GET /v1/auth/login`), in the `__Host-` cookie the callback sets. A request that changes something with it must also send the portal's `Origin` and `Content-Type: application/json` (otherwise 403 `cross_site_request`). Ignored when the request has an `Authorization` header. The workspace the session acts in is the one it was created in, or the one named by the `X-Taggor-Workspace: <slug>` header when the person belongs to it (any other slug is a 404)."}},"schemas":{"Health":{"type":"object","properties":{"status":{"type":"string","enum":["ok"]},"db":{"type":"string","enum":["ok","down"]},"version":{"type":"string","example":"4f2c1a9"}},"required":["status","db","version"]},"Problem":{"type":"object","properties":{"type":{"type":"string","example":"https://docs.taggor.dev/errors/validation_failed"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string","description":"Path of the request","example":"/v1/sites"},"code":{"type":"string","example":"validation_failed"},"hint":{"type":"string","description":"What to do about this error, in English (the catalog also has pt-BR).","example":"Fix each field listed in errors[] and send the request again."},"docs_url":{"type":"string","description":"The docs page of this code: meaning, causes and the fix.","example":"https://docs.taggor.dev/errors/validation_failed"},"request_id":{"type":"string"},"human_action":{"$ref":"#/components/schemas/HumanAction"},"consent_url":{"type":"string","description":"Present on a 403 `oauth_consent_required`: the portal page where the person lets this agent act in a workspace. Give it to the person to open (it is single use and expires in 10 minutes); do not open it yourself and do not retry until they approved.","example":"https://app.taggor.dev/oauth/consent#request=<single-use token>"},"missing_access":{"type":"string","enum":["read_publish"],"description":"Present on a 403 `oauth_consent_required` when the agent already has access but a smaller set than this call needs: the set the person must pick on the consent page (`read_publish`, shown as \"Read and publish\"). Absent when the agent has no access yet."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/FieldError"},"maxItems":50,"description":"At most 50 entries; see errors_truncated."},"errors_truncated":{"type":"boolean","description":"True when there were more field errors than errors[] lists."},"rate_limit":{"$ref":"#/components/schemas/RateLimitDetail"}},"required":["type","title","status","detail","instance","code","hint","docs_url","request_id"]},"HumanAction":{"type":"object","properties":{"action":{"type":"string","description":"Which human-only action this is: api_key_create, api_key_revoke, billing, terms_acceptance, dpa_acceptance, workspace_delete or owner_transfer. New ids may be added.","example":"api_key_create"},"portal_path":{"type":"string","description":"The portal page where the person does it; `{workspaceSlug}` stands for the workspace's slug when the API does not know it.","example":"/w/{workspaceSlug}/settings/api-keys"},"steps":{"type":"object","properties":{"en":{"type":"array","items":{"type":"string"}},"pt_br":{"type":"array","items":{"type":"string"}}},"required":["en","pt_br"],"description":"What the person does there, in order, in English and Brazilian Portuguese."}},"required":["action","portal_path","steps"],"description":"Present on a 403 `human_action_required`: the action is for a person in the portal; tell them the page and the steps, and do not retry."},"FieldError":{"type":"object","properties":{"location":{"type":"string","enum":["body","query","path","header","cookie"]},"path":{"type":"string","description":"JSON Pointer (RFC 6901) to the field inside its location; '' is the whole value.","example":"/components/0/name"},"code":{"type":"string","description":"Zod issue code","example":"invalid_type"},"message":{"type":"string"}},"required":["location","path","code","message"]},"RateLimitDetail":{"type":"object","properties":{"limit_class":{"type":"string","description":"The class of routes whose limit was reached; today one of read, write, publish, heavy, approval, diff, metrics, destructive, ip, and new classes may be added."},"quota":{"type":"integer","description":"Requests allowed per window."},"window_seconds":{"type":"integer","description":"Length of the window."}},"required":["limit_class","quota","window_seconds"],"description":"Present on a 429 `rate_limited`: which limit was reached."},"Logout":{"type":"object","properties":{"logout_url":{"type":["string","null"],"format":"uri","description":"Where the browser should go to finish signing out at the identity provider, or null.","example":null}},"required":["logout_url"]},"UserPreferencesPatchInput":{"type":"object","properties":{"locale":{"type":"string","enum":["pt-BR","en"]},"theme":{"type":"string","enum":["light","dark","system"]},"time_zone":{"type":"string","example":"America/Sao_Paulo"},"telemetry_consent":{"type":"boolean"}}},"LegalVersions":{"type":"object","properties":{"terms_version":{"type":"string","pattern":"^[A-Za-z0-9._-]{1,32}$","description":"The version of the Terms of Use in force.","example":"2026-12-01"},"privacy_version":{"type":"string","pattern":"^[A-Za-z0-9._-]{1,32}$","description":"The version of the Privacy Policy in force.","example":"2026-12-01"},"draft":{"type":"boolean","description":"True while a text is still a draft the owner has not approved."}},"required":["terms_version","privacy_version","draft"]},"TermsAcceptance":{"allOf":[{"$ref":"#/components/schemas/LegalVersions"},{"type":"object","properties":{"accepted":{"type":"boolean","description":"Whether this person accepted this exact pair."},"accepted_at":{"type":["string","null"],"format":"date-time","description":"When they accepted it (the first time), or null."}},"required":["accepted","accepted_at"]}]},"TermsAcceptanceInput":{"type":"object","properties":{"terms_version":{"type":"string","pattern":"^[A-Za-z0-9._-]{1,32}$","description":"The Terms version the page showed.","example":"2026-12-01"},"privacy_version":{"type":"string","pattern":"^[A-Za-z0-9._-]{1,32}$","description":"The Privacy Policy version the page showed.","example":"2026-12-01"},"locale":{"type":"string","enum":["en","pt-BR"],"description":"The language of the A.1 box the page showed.","example":"en"},"text_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"The `text_hash` of the A.1 text the person read and ticked (`GET /v1/legal/acceptance-texts?kind=signup`).","example":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"}},"required":["terms_version","privacy_version","locale","text_hash"],"additionalProperties":false},"LegalAcceptanceText":{"type":"object","properties":{"kind":{"type":"string","enum":["signup","purchase","overage","ssr"]},"annex_item":{"type":"string","description":"The item of the Annex of the Terms.","example":"A.1"},"locale":{"type":"string","enum":["en","pt-BR"]},"text":{"type":"string","description":"The text, verbatim from the Annex: a Markdown subset (paragraphs, `**bold**`, `1.` list lines)."},"rates":{"type":"array","items":{"$ref":"#/components/schemas/AcceptanceRate"},"description":"The prices shown beside A.4 (every billed metric) and A.5 (the server-side rendering ones); empty for A.1 and A.3."},"text_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"SHA-256 of the exact text shown (with its price rows): the proof of what was ticked.","example":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"},"terms_version":{"type":"string","description":"The Terms version in force.","example":"1.0"}},"required":["kind","annex_item","locale","text","rates","text_hash","terms_version"]},"AcceptanceRate":{"type":"object","properties":{"metric":{"type":"string","enum":["renders","ssr_renders","ssr_version_days","builds","submissions","storage","extra_sites"]},"unit":{"type":"string","enum":["unit","mb"],"description":"What one billed unit is: one counted thing, or one megabyte (10^6 bytes)."},"micro_usd_per_unit":{"type":"integer","minimum":0,"description":"Price of one unit in micro US dollars (10^-6 USD).","example":20},"included":{"type":["number","null"],"description":"What the plan includes before this price applies, or null when it includes no such quantity."},"included_unit":{"type":["string","null"],"enum":["count","bytes",null]}},"required":["metric","unit","micro_usd_per_unit","included","included_unit"]},"SsrAcceptance":{"type":"object","properties":{"accepted":{"type":"boolean","description":"Whether the workspace enabled server-side rendering (A.5)."},"accepted_at":{"type":["string","null"],"format":"date-time","description":"When it was enabled the first time, or null.","example":"2026-10-30T12:34:56.789Z"}},"required":["accepted","accepted_at"]},"ForbiddenProblem":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"missing_scopes":{"type":"array","items":{"type":"string","x-extensible-enum":["components:read","components:write","versions:publish","channels:promote","sites:read","sites:write","data:read","data:write","metrics:read","keys:manage","members:manage"]},"description":"`insufficient_scope`: the scopes the route needs that the credential lacks."}}}]},"SsrAcceptanceInput":{"type":"object","properties":{"locale":{"type":"string","enum":["en","pt-BR"]},"text_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"SHA-256 of the exact text shown (with its price rows): the proof of what was ticked.","example":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"}},"required":["locale","text_hash"],"additionalProperties":false},"DpaAcceptance":{"type":"object","properties":{"dpa_version":{"type":"string","pattern":"^[A-Za-z0-9._-]{1,32}$","description":"The DPA version in force.","example":"2026-12-01"},"draft":{"type":"boolean","description":"True while the text is still a draft the owner has not approved."},"accepted":{"type":"boolean","description":"Whether this workspace accepted this version."},"accepted_by":{"type":["string","null"],"pattern":"^usr_[0-9a-hjkmnp-tv-z]{26}$","description":"The owner who accepted (the first time), or null.","example":"usr_0123456789abcdefghjkmnpqrs"},"accepted_at":{"type":["string","null"],"format":"date-time","description":"When the workspace accepted it (the first time), or null.","example":"2026-10-30T12:34:56.789Z"}},"required":["dpa_version","draft","accepted","accepted_by","accepted_at"]},"DpaAcceptanceInput":{"type":"object","properties":{"dpa_version":{"type":"string","pattern":"^[A-Za-z0-9._-]{1,32}$","description":"The DPA version the page showed.","example":"2026-12-01"}},"required":["dpa_version"],"additionalProperties":false},"Me":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"},"workspaces":{"type":"array","items":{"$ref":"#/components/schemas/MeWorkspace"}}},"required":["user","workspaces"]},"User":{"type":"object","properties":{"id":{"type":"string","pattern":"^usr_[0-9a-hjkmnp-tv-z]{26}$","description":"Public user id.","example":"usr_0123456789abcdefghjkmnpqrs"},"name":{"type":"string","maxLength":200},"email":{"type":"string"},"locale":{"type":"string","enum":["pt-BR","en"]}},"required":["id","name","email","locale"]},"MeWorkspace":{"type":"object","properties":{"id":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"slug":{"type":"string","pattern":"^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$","description":"URL segment of the workspace in the portal.","example":"local-agency"},"name":{"type":"string"},"kind":{"type":"string","enum":["personal","team"]},"role":{"$ref":"#/components/schemas/MembershipRole"}},"required":["id","slug","name","kind","role"]},"MembershipRole":{"type":"string","enum":["owner","admin","member","viewer"],"description":"The person's role in a workspace."},"WorkspacePage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Workspace"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"Workspace":{"type":"object","properties":{"id":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"slug":{"type":"string","pattern":"^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$","description":"URL segment of the workspace in the portal.","example":"local-agency"},"name":{"type":"string"},"kind":{"type":"string","enum":["personal","team"]},"role":{"$ref":"#/components/schemas/MembershipRole"},"joined_at":{"type":"string","format":"date-time","description":"When the person joined the workspace.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","slug","name","kind","role","joined_at"]},"WorkspaceMemberPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceMember"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"WorkspaceMember":{"type":"object","properties":{"id":{"type":"string","pattern":"^usr_[0-9a-hjkmnp-tv-z]{26}$","description":"Public user id.","example":"usr_0123456789abcdefghjkmnpqrs"},"name":{"type":"string","maxLength":200},"email":{"type":"string"},"role":{"$ref":"#/components/schemas/MembershipRole"},"joined_at":{"type":"string","format":"date-time","description":"When the person joined the workspace.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","name","email","role","joined_at"]},"CreatedApiKey":{"allOf":[{"$ref":"#/components/schemas/ApiKey"},{"type":"object","properties":{"secret":{"type":"string","description":"The key itself, shown only in this response and never stored by Taggor (only its hash is). Send it as `Authorization: Bearer <secret>`.","example":"tgr_live_7Gq2LmZ0pX4rT9wK1cV8bN3mD6sF0hJ21hjDxx"}},"required":["secret"]}]},"ApiKey":{"type":"object","properties":{"id":{"type":"string","pattern":"^key_[0-9a-hjkmnp-tv-z]{26}$","description":"Public api_key id.","example":"key_0123456789abcdefghjkmnpqrs"},"name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string","x-extensible-enum":["components:read","components:write","versions:publish","channels:promote","sites:read","sites:write","data:read","data:write","metrics:read","keys:manage","members:manage"]}},"display_prefix":{"type":"string","description":"The start of the key (`tgr_live_` or `tgr_test_` and 8 characters), to recognize it.","example":"tgr_live_7Gq2LmZ0"},"created_by":{"type":"string","description":"Who created it: a user or another key."},"created_by_name":{"type":"string","description":"What to call the creator on screen: the user's name. Present on reads of one key and of the list."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"last_used_at":{"type":["string","null"],"format":"date-time","description":"Last request made with the key, to the minute; null when never used.","example":"2026-10-30T12:34:56.789Z"},"revoked_at":{"type":["string","null"],"format":"date-time","description":"When the key was revoked; null while it works.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","name","scopes","display_prefix","created_by","created_at","last_used_at","revoked_at"]},"CreateApiKeyRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"What the key is for, to tell keys apart.","example":"CI deploy"},"scopes":{"type":"array","items":{"$ref":"#/components/schemas/Scope"},"minItems":1,"maxItems":22,"description":"The scopes of the key (a portal session may grant any). A repeated scope counts once.","example":["components:read","versions:publish"]}},"required":["name","scopes"],"additionalProperties":false},"Scope":{"type":"string","enum":["components:read","components:write","versions:publish","channels:promote","sites:read","sites:write","data:read","data:write","metrics:read","keys:manage","members:manage"],"description":"What a key may do: `components:read`, `components:write`, `versions:publish`, `channels:promote`, `sites:read`, `sites:write`, `data:read`, `data:write`, `metrics:read`, `keys:manage`. No scope implies another."},"ApiKeyPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"AuditEventPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AuditEvent"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"AuditEvent":{"type":"object","properties":{"id":{"type":"string","example":"aud_0123456789abcdefghjkmnpqrs"},"actor_id":{"type":"string","description":"The user (`usr_…`) or API key (`key_…`) that acted."},"actor_kind":{"type":"string","description":"How the actor proved who they are.","x-extensible-enum":["session","device_token","api_key","oauth_token"]},"channel":{"type":"string","enum":["cli","mcp","portal","api"],"description":"The channel the request said it came through (`portal`, `cli`, `mcp`, `api`). A label the client chooses for its own statistics, not proof of origin."},"action":{"type":"string","x-extensible-enum":["api_key.create","api_key.revoke","version.publish","channel.promote","channel.rollback","site_component.attach","site_component.detach","site.delete","component.archive","invitation.create","invitation.revoke","invitation.accept","oauth_grant.create","oauth_grant.revoke","collection.retention_change","mcp.tool_call","workspace.delete_request","workspace.delete_cancel","workspace.owner_transfer_request","workspace.owner_transfer_cancel","workspace.owner_transfer_accept","server_key.create","server_key.revoke","member.remove","member.role_change"]},"resource_kind":{"type":"string","x-extensible-enum":["api_key","version","component","site","invitation","oauth_grant","collection","workspace","mcp_tool_call","server_key","member"]},"resource_id":{"type":"string"},"summary":{"type":"object","additionalProperties":{},"description":"A short flat object with the ids and codes that matter for the action (for a promotion: `channel`, `from_version_id`, `to_version_id`). Never a secret, a request body or an e-mail address."},"ip_prefix":{"type":["string","null"],"description":"The caller's network, cut to a /24 (IPv4) or /48 (IPv6) prefix; null when unknown.","example":"203.0.113.0/24"},"request_id":{"type":["string","null"],"description":"The `request_id` of the request that did it, to find its log lines."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","actor_id","actor_kind","channel","action","resource_kind","resource_id","summary","ip_prefix","request_id","created_at"]},"SupportSessionPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SupportSession"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"SupportSession":{"type":"object","properties":{"id":{"type":"string","example":"imp_0123456789abcdefghjkmnpqrs"},"staff":{"type":"string","enum":["taggor-staff"],"description":"Who looked: always `taggor-staff`; the person is recorded by Taggor, not shown."},"read_only":{"type":"boolean","enum":[true],"description":"A support session can never change anything."},"reason":{"type":"string","description":"Why the staff member opened it."},"status":{"type":"string","enum":["active","ended","expired"]},"started_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"expires_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"ended_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","staff","read_only","reason","status","started_at","expires_at","ended_at"]},"McpToolCallRecorded":{"type":"object","properties":{"recorded":{"type":"boolean","enum":[true]}},"required":["recorded"]},"McpToolCallRequest":{"type":"object","properties":{"tool":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","description":"The MCP tool name (`publish_component_version`).","example":"get_build"},"decision":{"type":"string","enum":["executed","preview","denied_scope","invalid_arguments"],"description":"What the MCP server decided before running the tool: `executed` (it runs next), `preview` (kept for older events, when a write tool asked for the person's confirmation first; no longer sent), `denied_scope` (the grant lacks a scope the tool needs) or `invalid_arguments`."},"component_id":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"The component the call names, when it names one.","example":"cmp_0123456789abcdefghjkmnpqrs"}},"required":["tool","decision"],"additionalProperties":false},"Site":{"type":"object","properties":{"id":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"name":{"type":"string"},"site_key":{"type":"string","pattern":"^st_[a-z2-7]{10}$","description":"Public key of the site's snippet (`st_` and 10 characters). Not a secret: it is in the page's HTML and authorizes only reading the manifest and sending data from the allowed domains.","example":"st_k3x7m2q7ab"},"environment":{"$ref":"#/components/schemas/SiteEnvironment"},"allowed_domains":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","disabled","deleted"]},"turnstile_site_key":{"type":["string","null"],"pattern":"^[A-Za-z0-9_-]{1,100}$","description":"Public Cloudflare Turnstile site key of the site's forms (never the secret key, which stays on the edge). Changing it recompiles the site's manifest.","example":"0x4AAAAAAA-example_key"},"client_id":{"type":["string","null"],"pattern":"^cl_[0-9a-hjkmnp-tv-z]{26}$","description":"The agency client the site belongs to, or `null`.","example":"cl_0123456789abcdefghjkmnpqrs"},"protection":{"$ref":"#/components/schemas/SiteProtection"},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","name","site_key","environment","allowed_domains","status","turnstile_site_key","client_id","protection","created_at","updated_at"]},"SiteEnvironment":{"type":"string","enum":["production","staging"],"description":"`production` (the default for a new site), or `staging`. A production site with no allowed domain serves nowhere; a staging one serves on any domain."},"SiteProtection":{"type":"object","properties":{"suspects":{"type":"string","enum":["keep","drop"],"description":"What happens to a submission the bot filter marked (a filled hidden field or sent too fast): `keep` (default) stores it marked `suspect`; `drop` answers it like any other and does not store it, counted as `suspect_dropped`."},"daily_cap":{"type":"integer","minimum":1,"description":"Most submissions a day this site stores for a form without a Turnstile key (default 1000); past it the visitor gets 429 `daily_cap_reached`."},"respect_gpc":{"type":"boolean","description":"Whether the event ingest honors the visitor's Global Privacy Control (`Sec-GPC: 1`) and Do Not Track (`DNT: 1`) signals: when true and a signal is present, only the render count is stored, no `track` event (default true)."}},"required":["suspects","daily_cap","respect_gpc"]},"PlanLimitProblem":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"limit":{"type":"integer","description":"What the plan allows."},"plan_id":{"type":"string","description":"The plan the limit comes from."},"upgrade_url":{"type":"string","description":"Where to move to a higher plan."}},"required":["limit","plan_id","upgrade_url"]}]},"CreateSiteRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"What the site is called, to tell sites apart.","example":"Loja Aurora"},"environment":{"$ref":"#/components/schemas/SiteEnvironment"},"allowed_domains":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":100,"description":"Default none.","example":["cliente.com.br","*.loja.cliente.com.br"]},"turnstile_site_key":{"type":["string","null"],"pattern":"^[A-Za-z0-9_-]{1,100}$","description":"Public Cloudflare Turnstile site key of the site's forms (never the secret key, which stays on the edge). Changing it recompiles the site's manifest.","example":"0x4AAAAAAA-example_key"},"client_id":{"type":["string","null"],"pattern":"^cl_[0-9a-hjkmnp-tv-z]{26}$","description":"The agency client this site belongs to (`GET /v1/clients`). It must be a client of your workspace; another workspace's id is refused like a missing one.","example":"cl_0123456789abcdefghjkmnpqrs"}},"required":["name"],"additionalProperties":false},"SitePage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Site"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"SiteSnippet":{"type":"object","properties":{"html":{"type":"string","description":"The tag to paste in the page's HTML, before `</body>`; with `preload=true`, the hints and the tag, to paste in `<head>`."},"src":{"type":"string","description":"The loader URL the tag loads."}},"required":["html","src"]},"SiteInstallation":{"type":"object","properties":{"status":{"type":"string","enum":["detected","not_detected","domain_mismatch"]},"last_seen_at":{"type":["string","null"],"format":"date-time","description":"The most recent loader request seen in the window, or `null`.","example":"2026-10-30T12:34:56.789Z"},"hostnames":{"type":"array","items":{"type":"object","properties":{"hostname":{"type":"string","description":"Hostname of the page (lowercase, punycode) taken from its `Referer`."},"allowed":{"type":"boolean","description":"Whether the site's allowed domains cover it today."},"last_seen_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"hits":{"type":"integer","minimum":0}},"required":["hostname","allowed","last_seen_at","hits"]},"maxItems":20},"window_hours":{"type":"integer","exclusiveMinimum":0,"description":"Hours of loader requests the status looks at.","example":24},"unavailable":{"type":"boolean","description":"True when the hits could not be read; `not_detected` then means unknown."}},"required":["status","last_seen_at","hostnames","window_hours","unavailable"]},"UpdateSiteRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"What the site is called, to tell sites apart.","example":"Loja Aurora"},"environment":{"$ref":"#/components/schemas/SiteEnvironment"},"allowed_domains":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255},"maxItems":100,"description":"Hostnames the site may run on: `cliente.com.br` (also its `www.`) or a wildcard on the first label, `*.cliente.com.br` (exactly one label, never the bare domain). No scheme, port, path or IP address. Stored lowercase, IDN as punycode, repeated entries once; sending the field replaces the whole list.","example":["cliente.com.br","*.loja.cliente.com.br"]},"turnstile_site_key":{"type":["string","null"],"pattern":"^[A-Za-z0-9_-]{1,100}$","description":"A new Turnstile public key, or `null` to clear it.","example":"0x4AAAAAAA-example_key"},"client_id":{"type":["string","null"],"pattern":"^cl_[0-9a-hjkmnp-tv-z]{26}$","description":"Move the site to another client of the workspace, or `null` to unlink it.","example":"cl_0123456789abcdefghjkmnpqrs"},"protection":{"$ref":"#/components/schemas/UpdateSiteProtection"},"status":{"type":"string","enum":["active","disabled"],"description":"`disabled` stops serving the site and keeps its data; `active` brings it back. A site is deleted with `DELETE`."}},"additionalProperties":false},"UpdateSiteProtection":{"type":"object","properties":{"suspects":{"type":["string","null"],"enum":["keep","drop",null],"description":"`keep` or `drop`, or `null` for the default (`keep`)."},"daily_cap":{"type":["integer","null"],"minimum":1,"maximum":1000000,"description":"A new daily cap, up to the platform ceiling (`daily_cap_max` of the submission-usage route; above it is a 400 at `/protection/daily_cap`), or `null` for the default."},"respect_gpc":{"type":["boolean","null"],"description":"`true` or `false`, or `null` for the default (`true`)."}},"additionalProperties":false},"SiteSubmissionUsage":{"type":"object","properties":{"daily_cap":{"type":"integer","description":"The site's daily cap of submissions to a form without a Turnstile key."},"daily_cap_max":{"type":"integer","description":"The platform ceiling a site's `protection.daily_cap` may be raised to."},"used_24h":{"type":["integer","null"],"minimum":0,"description":"Submissions stored in the last 24 hours with no human check (the ones the cap counts), or `null` when they could not be read."},"capped":{"type":"boolean","description":"True when `used_24h` reached `daily_cap`: new submissions to this site's forms without a Turnstile key are refused with 429 `daily_cap_reached` (the edge learns it within about a minute)."}},"required":["daily_cap","daily_cap_max","used_24h","capped"]},"Usage":{"type":"object","properties":{"workspace_id":{"type":"string"},"plan_id":{"type":"string"},"period_start":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"period_end":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"as_of":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"renders_available":{"type":"boolean"},"renders":{"type":"object","properties":{"used":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0,"description":"What the plan allows."},"percent":{"type":"integer","minimum":0,"description":"Whole percent of the limit, rounded down."},"level":{"type":"string","description":"`ok`, `warning` (from 80% of the limit) or `reached` (from 100%).","x-extensible-enum":["ok","warning","reached"]}},"required":["used","limit","percent","level"]},"enforceable_renders":{"type":"object","properties":{"used":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0,"description":"What the plan allows."},"percent":{"type":"integer","minimum":0,"description":"Whole percent of the limit, rounded down."},"level":{"type":"string","description":"`ok`, `warning` (from 80% of the limit) or `reached` (from 100%).","x-extensible-enum":["ok","warning","reached"]}},"required":["used","limit","percent","level"]},"submissions":{"type":"object","properties":{"used":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0,"description":"What the plan allows."},"percent":{"type":"integer","minimum":0,"description":"Whole percent of the limit, rounded down."},"level":{"type":"string","description":"`ok`, `warning` (from 80% of the limit) or `reached` (from 100%).","x-extensible-enum":["ok","warning","reached"]}},"required":["used","limit","percent","level"]},"storage":{"type":"object","properties":{"used":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0,"description":"What the plan allows."},"percent":{"type":"integer","minimum":0,"description":"Whole percent of the limit, rounded down."},"level":{"type":"string","description":"`ok`, `warning` (from 80% of the limit) or `reached` (from 100%).","x-extensible-enum":["ok","warning","reached"]}},"required":["used","limit","percent","level"],"description":"Bytes held by the workspace's submissions."},"sites":{"type":"object","properties":{"used":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0,"description":"What the plan allows."},"percent":{"type":"integer","minimum":0,"description":"Whole percent of the limit, rounded down."},"level":{"type":"string","description":"`ok`, `warning` (from 80% of the limit) or `reached` (from 100%).","x-extensible-enum":["ok","warning","reached"]},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"site_key":{"type":"string"},"name":{"type":"string"},"environment":{"type":"string","x-extensible-enum":["production","staging"]},"renders":{"type":["integer","null"],"minimum":0,"description":"Counted deliveries this month; `null` when the reader is unavailable."},"suspect":{"type":"boolean","description":"The site's renders spiked and wait for a review: they are left out of `enforceable_renders`."},"ssr_renders":{"type":["integer","null"],"minimum":0,"description":"Fragments the edge rendered for this site this month (server-side rendering); `null` when the reader is unavailable."}},"required":["id","site_key","name","environment","renders","suspect","ssr_renders"]}}},"required":["used","limit","percent","level","items"]},"ssr_available":{"type":"boolean","description":"The server-render reader answered; otherwise `ssr_renders` reads 0."},"ssr_renders":{"type":"object","properties":{"used":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0,"description":"What the plan allows."},"percent":{"type":"integer","minimum":0,"description":"Whole percent of the limit, rounded down."},"level":{"type":"string","description":"`ok`, `warning` (from 80% of the limit) or `reached` (from 100%).","x-extensible-enum":["ok","warning","reached"]}},"required":["used","limit","percent","level"],"description":"Fragments the edge rendered this month on every site (cache misses of `GET /r/`), against `ssrRendersPerMonth`. Not part of `renders`."},"limits":{"type":"array","items":{"type":"object","properties":{"policy":{"type":"string","description":"What the limit does at its number for this workspace now: `hard` refuses or cuts, `metered` keeps serving (a paid plan on a card) and the excess is billed at the end of the cycle.","x-extensible-enum":["hard","metered"]},"at_limit":{"type":"string","description":"What really happens at the number for this workspace now: `cut` (components stop or the request is refused), `billed` (served, the excess is billed at the end of the cycle) or `served` (served while the workspace cannot be charged right now, a failed card inside its grace days: the excess is billed once it can). Words for a person come from this, not from `policy`.","x-extensible-enum":["cut","billed","served"]},"overage_quantity":{"type":["integer","null"],"minimum":0,"description":"Units over the limit this cycle, in the limit's own unit (bytes for storage); `null` when the limit is `hard` or the count cannot be read now."},"name":{"type":"string","description":"The catalog name of the limit, e.g. `buildsPerWeek`."},"unit":{"type":"string","description":"What the number counts.","x-extensible-enum":["count","bytes","ms","days"]},"window":{"type":"string","description":"`month` (UTC calendar month), `week` (rolling 7 days), `total` (held at once) or `each` (a cap on one item).","x-extensible-enum":["month","week","total","each"]},"notice":{"type":"string","description":"How the customer is warned.","x-extensible-enum":["usage_notice","view_only","on_refusal","not_enforced"]},"limit":{"type":"integer","minimum":0,"description":"The effective limit of the workspace."},"used":{"type":["integer","null"],"minimum":0,"description":"`null` for a cap on one item, and when the count cannot be read now."},"percent":{"type":["integer","null"],"minimum":0},"level":{"type":["string","null"],"description":"`ok`, `warning` (from 80% of the limit) or `reached` (from 100%).","x-extensible-enum":["ok","warning","reached"]},"resets_at":{"type":["string","null"],"format":"date-time","description":"When the count falls: the next month, or when the oldest build leaves the week.","example":"2026-10-30T12:34:56.789Z"},"detail":{"type":["string","null"],"description":"What the count is about when it is one item's (the fullest site's name)."}},"required":["policy","at_limit","overage_quantity","name","unit","window","notice","limit","used","percent","level","resets_at","detail"]},"description":"Every limit of the catalog with its use, in catalog order."},"overage":{"$ref":"#/components/schemas/OverageUsage"}},"required":["workspace_id","plan_id","period_start","period_end","as_of","renders_available","renders","enforceable_renders","submissions","storage","sites","ssr_available","ssr_renders","limits","overage"]},"OverageUsage":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Past its numbers this workspace is served and the excess is measured, not cut: a paid plan paid by an automatic card. Free workspaces keep the hard limits."},"charge_currency":{"type":["string","null"],"description":"The currency the overage invoice is charged in: the currency of the plan subscription (`usd`, or `brl` for a plan paid in Brazilian reais, where the amounts here, always in US dollars, are converted at the reference rate on the invoice). `null` when the workspace cannot be billed an overage.","x-extensible-enum":["usd","brl"]},"spend_cap_usd_cents":{"type":["integer","null"],"minimum":0,"description":"The optional monthly spending limit of the overage in US dollar cents, which Taggor tries to respect without guarantee; `null` when none is set (the default) and on the Free plan."},"spend_cap_used_percent":{"type":"integer","minimum":0,"description":"How much of the spending limit the cycle's overage is, whole percent (can pass 100); 0 when there is no limit."},"spend_cap_reached":{"type":"boolean","description":"The overage reached the spending limit: Taggor tries to stop the use (no guarantee), and the bill is NOT limited to the limit: what was really used is billed. Always false without a limit."},"accrued_cost_usd_micros":{"type":"integer","minimum":0,"description":"The cycle's overage so far, in micro US dollars (10^-6 USD)."},"estimated_cost_usd_micros":{"type":"integer","minimum":0,"description":"What the cycle's overage adds to the bill, in micro US dollars. It is the same as `accrued_cost_usd_micros`: a spending limit never reduces it. An estimate: the ledger is hourly and the minimum invoice (US$ 1) carries smaller amounts to the next month."},"awaiting_acceptance":{"type":"boolean","description":"A paid plan whose owner has not accepted the pay-as-you-go price yet: its limits stay hard until it does."},"items":{"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","description":"What is billed.","x-extensible-enum":["renders","ssr_renders","ssr_version_days","builds","submissions","storage","extra_sites"]},"quantity":{"type":"integer","minimum":0,"description":"Units above the plan, in the metric's billing unit (megabytes for storage)."},"estimated_cost_usd_micros":{"type":"integer","minimum":0,"description":"What this metric adds to the bill after the spending cap, in micro US dollars."}},"required":["metric","quantity","estimated_cost_usd_micros"]},"description":"The metrics that have overage this cycle."}},"required":["enabled","charge_currency","spend_cap_usd_cents","spend_cap_used_percent","spend_cap_reached","accrued_cost_usd_micros","estimated_cost_usd_micros","awaiting_acceptance","items"]},"Metrics":{"type":"object","properties":{"workspace_id":{"type":"string"},"from":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"to":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"granularity":{"type":"string","x-extensible-enum":["hour","day"]},"environment":{"type":"string","x-extensible-enum":["production","staging"]},"group_by":{"type":["string","null"],"x-extensible-enum":["site","component","version","country","device","hostname","event"]},"group_by_available":{"type":"boolean"},"as_of":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"truncated":{"type":"boolean","description":"A source cut its answer at its row limit, or groups were left out: the numbers are lower bounds."},"metrics":{"type":"array","items":{"$ref":"#/components/schemas/MetricInfo"}},"totals":{"$ref":"#/components/schemas/MetricValues"},"series":{"type":"array","items":{"$ref":"#/components/schemas/MetricPoint"}},"groups":{"type":"array","items":{"$ref":"#/components/schemas/MetricGroup"}}},"required":["workspace_id","from","to","granularity","environment","group_by","group_by_available","as_of","truncated","metrics","totals","series","groups"]},"MetricInfo":{"type":"object","properties":{"name":{"type":"string","x-extensible-enum":["loader_deliveries","submissions","impressions","custom_events","submission_rate"]},"source":{"type":"string","description":"Where it is measured: `loader_hits`, `submissions` or `component_events`.","x-extensible-enum":["loader_hits","submissions","component_events"]},"trust":{"type":"string","description":"`forgeable` (anyone who knows a site key can inflate it) or `counted` (rows we store).","x-extensible-enum":["forgeable","counted"]},"available":{"type":"boolean","description":"False: the metric is `null` everywhere in this answer; `reason` says why."},"reason":{"type":["string","null"],"description":"`reader_unavailable`, `not_attributable` or `out_of_retention` (browser events live only in the Analytics Engine's 90 days: for a window that reaches further back the totals are `null` and so are the buckets older than that, while the buckets inside the range keep their values; never 0, never derived from the daily aggregates); `null` when available.","x-extensible-enum":["reader_unavailable","not_attributable","out_of_retention"]},"breakdown_available":{"type":"boolean","description":"Whether `groups` carry a value of this metric for the requested `group_by` (true when none was asked)."}},"required":["name","source","trust","available","reason","breakdown_available"]},"MetricValues":{"type":"object","properties":{"loader_deliveries":{"type":["number","null"],"minimum":0,"description":"Loader deliveries that count toward the plan (human, hostname not blocked), weighted by the sampling interval. Source `loader_hits`, trust `forgeable`. Not an impression."},"submissions":{"type":["number","null"],"minimum":0,"description":"Accepted submissions (not spam) of a collection of the component. Source `submissions`, trust `counted`."},"impressions":{"type":["number","null"],"minimum":0,"description":"Components rendered in a visitor's browser (the loader's render signal), human traffic, weighted by the sampling interval. Source `component_events`, trust `forgeable`: anyone who knows a site key can send events. `null`: no data."},"custom_events":{"type":["number","null"],"minimum":0,"description":"Events a component declared in `data.track` and sent with `track`, reported by visitors' browsers, capped per page, sampled by `eventSampleRate` and weighted by 1 over the rate (an estimate). Source `component_events`, trust `forgeable`. `null`: no data."},"submission_rate":{"type":["number","null"],"minimum":0,"description":"`submissions / impressions` as a fraction (0.0734 is 7.34 %). The numerator is counted, the denominator is forgeable, so the trust is `forgeable`. `null` without impressions."}},"required":["loader_deliveries","submissions","impressions","custom_events","submission_rate"]},"MetricPoint":{"type":"object","properties":{"start":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"values":{"$ref":"#/components/schemas/MetricValues"}},"required":["start","values"]},"MetricGroup":{"type":"object","properties":{"key":{"type":"string","description":"The id of the site, component or version."},"name":{"type":"string"},"totals":{"$ref":"#/components/schemas/MetricValues"},"series":{"type":"array","items":{"$ref":"#/components/schemas/MetricPoint"},"description":"Only the buckets with data; the top-level `series` is the one filled with zeros."}},"required":["key","name","totals","series"]},"MetricParameters":{"type":"object","properties":{"workspace_id":{"type":"string"},"from":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"to":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"environment":{"type":"string","x-extensible-enum":["production","staging"]},"as_of":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"available":{"type":"boolean","description":"False: `parameters` is empty because `reason` says so (never an honest zero)."},"reason":{"type":["string","null"],"description":"`reader_unavailable`, `not_attributable` (the `component_id` is not a component of your workspace) or `out_of_retention`; `null` when available.","x-extensible-enum":["reader_unavailable","not_attributable","out_of_retention"]},"truncated":{"type":"boolean","description":"A source cut its answer at its row limit or pairs beyond the 100 listed were left out: the numbers are lower bounds."},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/ParameterBreakdown"}}},"required":["workspace_id","from","to","environment","as_of","available","reason","truncated","parameters"]},"ParameterBreakdown":{"type":"object","properties":{"event":{"type":"string","description":"The event name."},"parameter":{"type":"string","description":"The parameter name."},"total":{"type":"number","minimum":0,"description":"Events that carried the parameter."},"values":{"type":"array","items":{"$ref":"#/components/schemas/ParameterValue"},"description":"The values, the largest first, `(other)` last."}},"required":["event","parameter","total","values"]},"ParameterValue":{"type":"object","properties":{"value":{"type":"string","description":"The value the component sent, as text, at most 100 characters (longer values are cut by the SDK). Never interpreted by Taggor; the terms of use forbid personal data in it."},"events":{"type":"number","minimum":0,"description":"Events that carried this value, weighted by the sampling interval and the component's `eventSampleRate` (an estimate, `forgeable`)."},"other":{"type":"boolean","description":"True for the `(other)` entry: the values past the 100 kept apart per parameter, folded so the answer stays bounded."}},"required":["value","events","other"]},"ComponentErrors":{"type":"object","properties":{"component_id":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"from":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"to":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"environment":{"type":"string","x-extensible-enum":["production","staging"]},"as_of":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"trust":{"type":"string","enum":["forgeable"],"description":"Browser events: anyone who knows a site key can add some. Nothing may be billed from them."},"available":{"type":"boolean","description":"False: the events store is not configured or could not be read; the empty lists mean not read."},"truncated":{"type":"boolean","description":"A source cut its answer or versions or groups were left out: lower bounds."},"versions":{"type":"array","items":{"$ref":"#/components/schemas/ComponentVersionErrorRate"},"description":"Versions with mounts or errors in the window, newest first."},"groups":{"type":"array","items":{"$ref":"#/components/schemas/ComponentErrorGroup"}}},"required":["component_id","from","to","environment","as_of","trust","available","truncated","versions","groups"]},"ComponentVersionErrorRate":{"type":"object","properties":{"version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Public version id.","example":"ver_0123456789abcdefghjkmnpqrs"},"semver":{"type":"string"},"mounts":{"type":"integer","minimum":0,"description":"Components of this version that registered in the browser (the `render` events)."},"errors":{"type":"integer","minimum":0},"error_rate":{"type":["number","null"],"minimum":0,"description":"`errors / mounts`; `null` when the version has no mounts in the window (no data, never 0)."},"forgeable":{"type":"boolean","enum":[true],"description":"Always true: errors and mounts are browser events anyone who knows the public site key and the version hash can add. Never decide a rollback on this number alone."}},"required":["version_id","semver","mounts","errors","error_rate","forgeable"]},"ComponentErrorGroup":{"type":"object","properties":{"version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Public version id.","example":"ver_0123456789abcdefghjkmnpqrs"},"semver":{"type":"string"},"kind":{"type":"string","description":"`render` (render, effect or cleanup), `mount` (the element could not mount), `bundle_load` or `unhandled_in_component` (an event handler of the component).","x-extensible-enum":["render","mount","bundle_load","unhandled_in_component"]},"hash":{"type":"string","description":"Stack hash: groups equal errors of one version. Not a secret, not an identifier."},"count":{"type":"integer","minimum":0,"description":"Reports, weighted by the sampling interval. At most 5 per component per page load, so not a count of visitors."},"first_seen":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"last_seen":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"message":{"type":"string","description":"The error message of the latest report, scrubbed by the edge (URLs, e-mails and long numbers replaced) and cut at 200 characters; may be empty."},"symbolicated":{"type":"boolean","description":"At least one frame has its original source position."},"frames":{"type":"array","items":{"$ref":"#/components/schemas/ComponentErrorFrame"}}},"required":["version_id","semver","kind","hash","count","first_seen","last_seen","message","symbolicated","frames"]},"ComponentErrorFrame":{"type":"object","properties":{"generated_line":{"type":"integer","description":"Line in the published bundle."},"generated_column":{"type":"integer","description":"Column in the published bundle."},"source":{"type":["string","null"],"description":"The original source file from the version's private source map; `null` when the map does not cover the position."},"line":{"type":["integer","null"],"description":"Original line, 1-based."},"column":{"type":["integer","null"],"description":"Original column, 1-based."},"name":{"type":["string","null"],"description":"Original function or variable name."}},"required":["generated_line","generated_column","source","line","column","name"]},"BillingUsage":{"type":"object","properties":{"workspace_id":{"type":"string"},"plan_id":{"type":"string"},"plan_source":{"type":"string","description":"Where the plan comes from: `free_default` (no subscription), `subscription` or `override` (a dated manual override).","x-extensible-enum":["free_default","subscription","override"]},"cycle_start":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"cycle_end":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"as_of":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"renders_available":{"type":"boolean"},"renders":{"type":"object","properties":{"policy":{"type":"string","description":"What the limit does at its number for this workspace now: `hard` refuses or cuts, `metered` keeps serving (a paid plan on a card) and the excess is billed at the end of the cycle.","x-extensible-enum":["hard","metered"]},"at_limit":{"type":"string","description":"What really happens at the number for this workspace now: `cut` (components stop or the request is refused), `billed` (served, the excess is billed at the end of the cycle) or `served` (served while the workspace cannot be charged right now, a failed card inside its grace days: the excess is billed once it can). Words for a person come from this, not from `policy`.","x-extensible-enum":["cut","billed","served"]},"overage_quantity":{"type":["integer","null"],"minimum":0,"description":"Units over the limit this cycle, in the limit's own unit (bytes for storage); `null` when the limit is `hard` or the count cannot be read now."},"used":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0,"description":"What the workspace may use this cycle."},"projected":{"type":["integer","null"],"minimum":0,"description":"The count at the end of the cycle at the pace so far; `null` in the first day of the cycle or when the count is unknown."},"projected_level":{"type":["string","null"],"description":"`ok`, `warning` or `reached`; `null` when there is no projection.","x-extensible-enum":["ok","warning","reached"]}},"required":["policy","at_limit","overage_quantity","used","limit","projected","projected_level"]},"submissions":{"type":"object","properties":{"policy":{"type":"string","description":"What the limit does at its number for this workspace now: `hard` refuses or cuts, `metered` keeps serving (a paid plan on a card) and the excess is billed at the end of the cycle.","x-extensible-enum":["hard","metered"]},"at_limit":{"type":"string","description":"What really happens at the number for this workspace now: `cut` (components stop or the request is refused), `billed` (served, the excess is billed at the end of the cycle) or `served` (served while the workspace cannot be charged right now, a failed card inside its grace days: the excess is billed once it can). Words for a person come from this, not from `policy`.","x-extensible-enum":["cut","billed","served"]},"overage_quantity":{"type":["integer","null"],"minimum":0,"description":"Units over the limit this cycle, in the limit's own unit (bytes for storage); `null` when the limit is `hard` or the count cannot be read now."},"used":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0,"description":"What the workspace may use this cycle."},"projected":{"type":["integer","null"],"minimum":0,"description":"The count at the end of the cycle at the pace so far; `null` in the first day of the cycle or when the count is unknown."},"projected_level":{"type":["string","null"],"description":"`ok`, `warning` or `reached`; `null` when there is no projection.","x-extensible-enum":["ok","warning","reached"]}},"required":["policy","at_limit","overage_quantity","used","limit","projected","projected_level"]},"storage":{"type":"object","properties":{"policy":{"type":"string","description":"What the limit does at its number for this workspace now: `hard` refuses or cuts, `metered` keeps serving (a paid plan on a card) and the excess is billed at the end of the cycle.","x-extensible-enum":["hard","metered"]},"at_limit":{"type":"string","description":"What really happens at the number for this workspace now: `cut` (components stop or the request is refused), `billed` (served, the excess is billed at the end of the cycle) or `served` (served while the workspace cannot be charged right now, a failed card inside its grace days: the excess is billed once it can). Words for a person come from this, not from `policy`.","x-extensible-enum":["cut","billed","served"]},"overage_quantity":{"type":["integer","null"],"minimum":0,"description":"Units over the limit this cycle, in the limit's own unit (bytes for storage); `null` when the limit is `hard` or the count cannot be read now."},"used":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0}},"required":["policy","at_limit","overage_quantity","used","limit"],"description":"Bytes held by the submissions (a stock, not projected)."},"sites":{"type":"object","properties":{"policy":{"type":"string","description":"What the limit does at its number for this workspace now: `hard` refuses or cuts, `metered` keeps serving (a paid plan on a card) and the excess is billed at the end of the cycle.","x-extensible-enum":["hard","metered"]},"at_limit":{"type":"string","description":"What really happens at the number for this workspace now: `cut` (components stop or the request is refused), `billed` (served, the excess is billed at the end of the cycle) or `served` (served while the workspace cannot be charged right now, a failed card inside its grace days: the excess is billed once it can). Words for a person come from this, not from `policy`.","x-extensible-enum":["cut","billed","served"]},"overage_quantity":{"type":["integer","null"],"minimum":0,"description":"Units over the limit this cycle, in the limit's own unit (bytes for storage); `null` when the limit is `hard` or the count cannot be read now."},"used":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0}},"required":["policy","at_limit","overage_quantity","used","limit"]},"overage":{"$ref":"#/components/schemas/OverageUsage"},"checkout_currency":{"type":"string","enum":["usd","brl"],"description":"The currency a checkout started from this very request would charge: `brl` when the request comes from Brazil (Cloudflare's `CF-IPCountry` is `BR`) and the BRL prices are configured, `usd` otherwise. It only lets the portal word its \"Before you pay\" text; it carries no amount, and the checkout decides the currency again on its own."}},"required":["workspace_id","plan_id","plan_source","cycle_start","cycle_end","as_of","renders_available","renders","submissions","storage","sites","overage","checkout_currency"]},"BillingCheckoutSession":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Where to send the person: Stripe's hosted page."},"currency":{"type":"string","enum":["usd","brl"]},"trial_days":{"type":["integer","null"],"description":"Days of no-card trial, or null."}},"required":["url","currency","trial_days"]},"BillingCheckoutInput":{"type":"object","properties":{"plan":{"type":"string","enum":["pro","agency"],"description":"The paid plan to subscribe to.","example":"pro"},"cycle":{"type":"string","enum":["monthly","annual"],"description":"Billing cycle.","example":"monthly"},"acceptance":{"type":"object","properties":{"locale":{"type":"string","enum":["en","pt-BR"],"description":"The language the texts were shown in."},"purchase_text_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"The `text_hash` of box A.3 (professional use and automatic renewal; `GET /v1/legal/acceptance-texts?kind=purchase`) the person ticked."},"overage_text_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"The `text_hash` of box A.4 (the overage price with its table; `kind=overage&plan=<plan>`) the person ticked. Required when the overage applies to this purchase (overage on, USD card)."}},"required":["locale","purchase_text_hash"],"additionalProperties":false,"description":"The boxes the person ticked on the checkout screen. A text that is not the one in force is a 409 `legal_versions_changed` and nothing is created at Stripe."},"trial":{"type":"boolean","description":"Ask for the 14-day trial with no card. Once per workspace; the trial ends by itself and the workspace goes back to Free with every component still served."}},"required":["plan","cycle","acceptance"],"additionalProperties":false},"BillingPortalSession":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"The Stripe customer portal page."}},"required":["url"]},"StripeWebhookReceived":{"type":"object","properties":{"received":{"type":"boolean","enum":[true]}},"required":["received"]},"ResendWebhookReceived":{"type":"object","properties":{"received":{"type":"boolean","enum":[true]}},"required":["received"]},"OverageSettings":{"type":"object","properties":{"eligible":{"type":"boolean","description":"This workspace can be billed an overage: a paid plan paid by an automatic card, in US dollars or in Brazilian reais (billed in reais once its prices exist)."},"spend_cap_usd_cents":{"type":["integer","null"],"minimum":0,"description":"The optional monthly spending limit of overage in US dollar cents, or `null` for none (the default; also the Free plan, which is cut at its numbers, never billed). At the limit Taggor tries to stop the use, with no guarantee: what was actually used is billed."},"default_spend_cap_usd_cents":{"type":["integer","null"],"minimum":0,"description":"Always `null`: there is no default limit (kept for existing clients)."},"is_default":{"type":"boolean","description":"No limit is set (true exactly when `spend_cap_usd_cents` is `null`)."},"milestones_usd_cents":{"type":"array","items":{"type":"integer","minimum":1},"description":"The spend milestones in force, ascending, in US dollar cents of overage accrued in the month: one e-mail per milestone per month. The customer's own list, or the default (50%, 100%, 200% and 500% of the plan's price, then doubling up to ten milestones). Empty on the Free plan."},"milestones_are_default":{"type":"boolean","description":"The milestones are the default list (the customer never set their own)."},"minimum_usd_cents":{"type":"integer","minimum":0,"description":"The lowest spending limit accepted now, in US dollar cents: US$ 1, or more when builds, server-render version-days, extra sites and storage already accrued more than that this cycle (stopping the use cannot undo them)."}},"required":["eligible","spend_cap_usd_cents","default_spend_cap_usd_cents","is_default","milestones_usd_cents","milestones_are_default","minimum_usd_cents"]},"OverageCapInput":{"type":"object","properties":{"spend_cap_usd_cents":{"type":["integer","null"],"description":"The spending limit in whole US dollar cents, from 100 (US$ 1) to 1000000 (US$ 10,000); `null` removes it. Omit to leave it as it is.","example":20000},"milestones_usd_cents":{"type":["array","null"],"items":{"type":"integer"},"description":"The customer's own milestones in whole US dollar cents (1 to 10 distinct amounts, each from 1 to 1,000,000); `null` resets to the default list. Omit to leave them as they are.","example":[1000,5000,20000]}},"additionalProperties":false},"Pricing":{"type":"object","properties":{"rates":{"type":"array","items":{"$ref":"#/components/schemas/PricingRate"},"description":"The rate in force for every metric and paid plan."},"upcoming":{"type":"array","items":{"$ref":"#/components/schemas/PricingRate"},"description":"Versions already scheduled, soonest first. A change for people who already pay starts at least 30 days after it was announced."}},"required":["rates","upcoming"]},"PricingRate":{"type":"object","properties":{"metric":{"type":"string","enum":["renders","ssr_renders","ssr_version_days","builds","submissions","storage","extra_sites"]},"plan":{"type":"string","enum":["pro","agency"]},"unit":{"type":"string","enum":["unit","mb"],"description":"What one billed unit is: one counted thing, or one megabyte (10^6 bytes)."},"micro_usd_per_unit":{"type":"integer","minimum":0,"description":"Price of one unit in micro US dollars (10^-6 USD), a whole number.","example":20},"version":{"type":"integer","minimum":1,"description":"Version of this rate; 1 is the seed."},"effective_from":{"type":"string","format":"date-time","description":"The instant the rate starts to apply; the seed carries 1970-01-01."}},"required":["metric","plan","unit","micro_usd_per_unit","version","effective_from"]},"OverageConsent":{"type":"object","properties":{"required":{"type":"boolean","description":"The invitation applies: the overage is on here and this workspace pays a plan that can be billed one."},"accepted":{"type":"boolean","description":"An owner or admin accepted the price."},"plan":{"type":["string","null"],"enum":["pro","agency",null],"description":"The paid plan whose prices the A.4 screen shows (`GET /v1/legal/acceptance-texts?kind=overage&plan=`); `null` when no invitation applies."}},"required":["required","accepted","plan"]},"OverageConsentInput":{"type":"object","properties":{"locale":{"type":"string","enum":["en","pt-BR"],"description":"The language the text was shown in."},"text_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"The `text_hash` of the A.4 text the person read and ticked.","example":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"}},"required":["locale","text_hash"],"additionalProperties":false},"Client":{"type":"object","properties":{"id":{"type":"string","pattern":"^cl_[0-9a-hjkmnp-tv-z]{26}$","description":"Public client id.","example":"cl_0123456789abcdefghjkmnpqrs"},"name":{"type":"string"},"contact":{"type":["string","null"]},"notes":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","name","contact","notes","created_at","updated_at"]},"CreateClientRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"What the client is called.","example":"Padaria Sol"},"contact":{"type":["string","null"],"minLength":1,"maxLength":200,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"How to reach the client (free text, stored as is; Taggor never writes to it).","example":"Ana, ana@cliente.example"},"notes":{"type":["string","null"],"minLength":1,"maxLength":2000,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"The agency's private notes about the client.","example":"Renova em março"}},"required":["name"],"additionalProperties":false},"ClientPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Client"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"UpdateClientRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"What the client is called.","example":"Padaria Sol"},"contact":{"type":["string","null"],"minLength":1,"maxLength":200,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"A new contact, or `null` to clear it.","example":"Ana, ana@cliente.example"},"notes":{"type":["string","null"],"minLength":1,"maxLength":2000,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"New notes, or `null` to clear them.","example":"Renova em março"}},"additionalProperties":false},"CreatedServerKey":{"allOf":[{"$ref":"#/components/schemas/ServerKey"},{"type":"object","properties":{"secret":{"type":"string","description":"The server key itself, shown only in this response and never stored by Taggor (only its SHA-256 is). Put it in the server's environment (`TAGGOR_SERVER_KEY`) and give it to `@taggor/server` as `serverKey`; never in browser code or in the repository.","example":"tgs_live_9Fh3QpL2mZ7xV4tR8cW1nB6kD0sJ5gY23DqdPx"}},"required":["secret"]}]},"ServerKey":{"type":"object","properties":{"id":{"type":"string","pattern":"^ssk_[0-9a-hjkmnp-tv-z]{26}$","description":"Public server_key id.","example":"ssk_0123456789abcdefghjkmnpqrs"},"site_id":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"display_prefix":{"type":"string","description":"The start of the key (`tgs_live_` or `tgs_test_` and 8 characters), to recognize it.","example":"tgs_live_9Fh3QpL2"},"created_by":{"type":"string","description":"Who created it: a user or an API key."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"revoked_at":{"type":["string","null"],"format":"date-time","description":"When the key was revoked; null while the edge accepts it.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","site_id","display_prefix","created_by","created_at","revoked_at"]},"ServerKeyList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ServerKey"},"maxItems":2}},"required":["data"]},"SiteComponent":{"type":"object","properties":{"component_id":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"tag":{"type":"string","description":"Custom element tag of the component."},"channel":{"$ref":"#/components/schemas/AttachmentChannel"},"enabled":{"type":"boolean","description":"`false` is the per-site kill switch."},"loading":{"type":"string","enum":["eager","idle"],"description":"When the loader imports the component's bundle: `eager` (on load, the default) or `idle` (once the page is idle)."},"archived":{"type":"boolean","description":"An archived component stays attached but is not delivered."},"props":{"type":"object","additionalProperties":{},"description":"The props this site gives the component, public in the site's manifest; `{}` when none."},"suspended_props":{"type":"object","additionalProperties":{},"description":"Props a rollback or a forced promote took out because the version did not accept them; kept, not served, and put back by the next move to a version that accepts them. A `PUT …/props` clears them."},"props_revision":{"type":"integer","minimum":0,"description":"Raised by every change of `props` or `suspended_props` (a `PUT …/props`, a channel move that suspends or restores fields, or an attach that changes the channel of the attachment). Send it back as `expected_props_revision` so the `PUT` replaces only what you read.","example":3},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"}},"required":["component_id","tag","channel","enabled","loading","archived","props","suspended_props","props_revision","created_at"]},"AttachmentChannel":{"type":"string","enum":["production","staging"],"description":"The release channel the site delivers the component from. It is always the site's `environment` (`staging` sites deliver the version the Staging pointer holds, `production` sites the Production pointer); a pointer that points nowhere delivers nothing yet."},"AttachConflictProblem":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"tag":{"type":"string","description":"`tag_conflict`: the tag in conflict."},"component_ids":{"type":"array","items":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"description":"`tag_conflict`: the component being attached and the attached ones with that tag."},"limit":{"type":"integer","description":"`site_component_limit`: the most components one site of the workspace's plan holds."},"plan_id":{"type":"string","description":"`site_component_limit`: the plan the limit comes from."},"upgrade_url":{"type":"string","description":"`site_component_limit`: where to move to a plan that allows more."}}}]},"AttachComponentRequest":{"type":"object","properties":{"component_id":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"}},"required":["component_id"],"additionalProperties":false},"SiteComponentList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/SiteComponent"}}},"required":["data"]},"DetachedSiteComponent":{"type":"object","properties":{"component_id":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"attached":{"type":"boolean","enum":[false]}},"required":["component_id","attached"]},"UpdateSiteComponentRequest":{"type":"object","properties":{"enabled":{"type":"boolean","description":"`false` stops the site delivering this component (the per-component kill switch); `true` brings it back."},"loading":{"type":"string","enum":["eager","idle"],"description":"When the loader imports the component's bundle: `eager` on load (the default) or `idle` once the page is idle, so a component low on the page does not compete with what the visitor sees first."}},"additionalProperties":false},"SetSiteComponentPropsRequest":{"type":"object","properties":{"props":{"type":"object","additionalProperties":{},"description":"The whole set of props for this site (it replaces the previous one; `{}` clears it), each one a prop the component's version on the attachment's channel declares, with a value of its type. Public in the site's manifest: put no secret or personal data here. At most 8 KiB of JSON (larger is a 422).","example":{"accent":"#0a7d3b","title":"Summer sale"}},"expected_props_revision":{"type":"integer","minimum":0,"maximum":2147483647,"description":"The `props_revision` of the attachment you read before editing. When it changed since (another operator saved, a channel move suspended or restored fields, or an attach changed the channel), nothing is written and the answer is a 409 `site_props_conflict`: read the attachment again and apply your change over what it holds now. Omitted: the props are replaced whatever they are.","example":3},"expected_attached_at":{"type":"string","format":"date-time","description":"The `created_at` of the attachment you read before editing. A detach and an attach make a new attachment whose `props_revision` starts again, so the revision alone can match one you never read; with this the write happens only over the attachment you read, else a 409 `site_props_conflict`. Optional and independent of `expected_props_revision`: omitted, it is not checked.","example":"2026-11-02T12:00:00.000Z"}},"required":["props"],"additionalProperties":false},"CollectionPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Collection"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"Collection":{"type":"object","properties":{"id":{"type":"string","pattern":"^col_[0-9a-hjkmnp-tv-z]{26}$","description":"Public collection id.","example":"col_0123456789abcdefghjkmnpqrs"},"component_id":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"name":{"type":"string","description":"Kebab-case name declared in the component manifest."},"schema":{"type":"object","additionalProperties":{},"description":"JSON Schema of one submission's `data`, derived from the manifest."},"schema_version":{"type":"integer","minimum":1},"visibility":{"type":"string","enum":["private","public"]},"retention_days":{"type":"integer","minimum":1,"maximum":3650,"description":"Submissions older than this many days are deleted for good, once a day. The days in force: the collection's own choice (`PATCH`) bounded by what the plan keeps, or what the plan keeps when it has no choice."},"status":{"type":"string","enum":["active","archived"]},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","component_id","name","schema","schema_version","visibility","retention_days","status","created_at","updated_at"]},"UpdateCollectionRequest":{"type":"object","properties":{"retention_days":{"type":["integer","null"],"minimum":1,"maximum":3650,"description":"Keep submissions this many days: fewer than the plan keeps is always accepted, more is a 422 `retention_exceeds_plan`; `null` goes back to what the plan keeps."}},"required":["retention_days"],"additionalProperties":false},"SubmissionPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Submission"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"Submission":{"type":"object","properties":{"id":{"type":"string","pattern":"^sub_[0-9a-hjkmnp-tv-z]{26}$","description":"Public submission id.","example":"sub_0123456789abcdefghjkmnpqrs"},"collection_id":{"type":"string","pattern":"^col_[0-9a-hjkmnp-tv-z]{26}$","description":"Public collection id.","example":"col_0123456789abcdefghjkmnpqrs"},"site_id":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"component_version_hash":{"type":"string","description":"sha256 of the component bundle that sent it."},"schema_version":{"type":"integer","minimum":1},"data":{"type":"object","additionalProperties":{},"description":"The field values the visitor sent, validated against the collection's schema."},"meta":{"type":"object","properties":{"page":{"type":"string","description":"Page path, without query string."},"country":{"type":"string","description":"ISO 3166-1 alpha-2, or `XX`."},"browser":{"type":"string","enum":["chrome","safari","firefox","edge","opera","samsung","other"]}},"description":"Context of the submission. No IP address is ever stored."},"status":{"type":"string","enum":["received","spam","over_quota","deleted"]},"verification":{"type":"string","enum":["verified","unverified","none"],"description":"How the human check went: `verified` (the site's Turnstile token passed), `unverified` (the site has a Turnstile key but it could not be reached, so the spam review decides) or `none` (the site has no Turnstile key, so no human check was asked for)."},"suspect":{"type":["string","null"],"enum":["too_fast","honeypot",null],"description":"Why the bot filter marked it: `honeypot` (the hidden field was filled) or `too_fast` (sent under two seconds after the form rendered); null when it did not. The submission is kept either way; the mark is a hint, not a verdict."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","collection_id","site_id","component_version_hash","schema_version","data","meta","status","verification","suspect","created_at"]},"DeletedSubmission":{"type":"object","properties":{"id":{"type":"string","pattern":"^sub_[0-9a-hjkmnp-tv-z]{26}$","description":"Public submission id.","example":"sub_0123456789abcdefghjkmnpqrs"},"deleted":{"type":"boolean","enum":[true]}},"required":["id","deleted"]},"Invitation":{"type":"object","properties":{"id":{"type":"string","pattern":"^inv_[0-9a-hjkmnp-tv-z]{26}$","description":"Public invitation id.","example":"inv_0123456789abcdefghjkmnpqrs"},"email":{"type":"string"},"role":{"$ref":"#/components/schemas/InvitationRole"},"status":{"type":"string","enum":["pending","accepted","revoked","expired"],"description":"`pending`, `accepted`, `revoked`, or `expired` (pending past its 7 days)."},"invited_by":{"type":"string","pattern":"^usr_[0-9a-hjkmnp-tv-z]{26}$","description":"Public user id.","example":"usr_0123456789abcdefghjkmnpqrs"},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"expires_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"accepted_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"revoked_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","email","role","status","invited_by","created_at","expires_at","accepted_at","revoked_at"]},"InvitationRole":{"type":"string","enum":["owner","admin","member","viewer"],"description":"The role the invitee gets. Never above the role of the person who invites (`owner` > `admin` > `member` > `viewer`)."},"CreateInvitationRequest":{"type":"object","properties":{"email":{"type":"string","minLength":3,"maxLength":254,"description":"The address to invite (plain ASCII `name@domain.tld`). Stored lowercase; it must be the e-mail the invitee signs in with.","example":"bruno@agencia.example"},"role":{"$ref":"#/components/schemas/InvitationRole"}},"required":["email","role"],"additionalProperties":false},"InvitationPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Invitation"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"AcceptedInvitation":{"type":"object","properties":{"workspace_id":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"role":{"$ref":"#/components/schemas/InvitationRole"}},"required":["workspace_id","role"]},"AcceptInvitationRequest":{"type":"object","properties":{"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$","description":"The token from the invitation e-mail link (`#token=…`): 43 characters."}},"required":["token"],"additionalProperties":false},"WorkspaceDeletionStatus":{"type":"object","properties":{"scheduled":{"type":"boolean","description":"A deletion is scheduled and not canceled."},"origin":{"type":["string","null"],"enum":["owner","operator",null],"description":"Who scheduled it: the owner (who can cancel it) or the Taggor operator (only the operator cancels)."},"requested_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"delete_after":{"type":["string","null"],"format":"date-time","description":"The earliest day the data may be erased. It is never before 7 days after the owners were e-mailed.","example":"2026-10-30T12:34:56.789Z"},"notified":{"type":"boolean","description":"The owners and admins were e-mailed."},"grace_days":{"type":"integer","description":"The grace period a new request gets, in days (a draft the owner confirms)."}},"required":["scheduled","origin","requested_at","delete_after","notified","grace_days"]},"WorkspaceDeletionInput":{"type":"object","properties":{"confirm_slug":{"type":"string","minLength":1,"maxLength":64,"description":"The workspace's slug, typed by the person to confirm.","example":"acme"}},"required":["confirm_slug"],"additionalProperties":false},"RemovedMember":{"type":"object","properties":{"id":{"type":"string","pattern":"^usr_[0-9a-hjkmnp-tv-z]{26}$","description":"Public user id.","example":"usr_0123456789abcdefghjkmnpqrs"},"previous_role":{"$ref":"#/components/schemas/MembershipRole"}},"required":["id","previous_role"]},"ChangedMember":{"type":"object","properties":{"id":{"type":"string","pattern":"^usr_[0-9a-hjkmnp-tv-z]{26}$","description":"Public user id.","example":"usr_0123456789abcdefghjkmnpqrs"},"role":{"$ref":"#/components/schemas/MembershipRole"},"previous_role":{"$ref":"#/components/schemas/MembershipRole"}},"required":["id","role","previous_role"]},"MemberRoleInput":{"type":"object","properties":{"role":{"type":"string","enum":["owner","admin","member","viewer"],"description":"The role to take."}},"required":["role"],"additionalProperties":false},"OwnerTransferStatus":{"type":"object","properties":{"transfer":{"type":["object","null"],"properties":{"id":{"type":"string","pattern":"^otr_[0-9a-hjkmnp-tv-z]{26}$","description":"Public owner_transfer id.","example":"otr_0123456789abcdefghjkmnpqrs"},"to_user_id":{"type":"string","pattern":"^usr_[0-9a-hjkmnp-tv-z]{26}$","description":"The member who may accept.","example":"usr_0123456789abcdefghjkmnpqrs"},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"ready_at":{"type":"string","format":"date-time","description":"The first moment the offer can be accepted: 48 hours after it was made.","example":"2026-10-30T12:34:56.789Z"},"expires_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","to_user_id","created_at","ready_at","expires_at"]}},"required":["transfer"]},"OwnerTransferInput":{"type":"object","properties":{"user_id":{"type":"string","pattern":"^usr_[0-9a-hjkmnp-tv-z]{26}$","description":"The member to offer it to.","example":"usr_0123456789abcdefghjkmnpqrs"}},"required":["user_id"],"additionalProperties":false},"AcceptedOwnerTransfer":{"type":"object","properties":{"workspace_id":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"workspace_slug":{"type":"string"}},"required":["workspace_id","workspace_slug"]},"OwnerTransferAcceptInput":{"type":"object","properties":{"token":{"type":"string","minLength":16,"maxLength":256,"description":"The token of the e-mail link."}},"required":["token"],"additionalProperties":false},"CollectionNotifications":{"type":"object","properties":{"collection_id":{"type":"string","pattern":"^col_[0-9a-hjkmnp-tv-z]{26}$","description":"Public collection id.","example":"col_0123456789abcdefghjkmnpqrs"},"mode":{"type":"string","enum":["instant","daily_digest"]},"locale":{"type":"string","enum":["pt-BR","en"]},"recipients":{"type":"array","items":{"$ref":"#/components/schemas/NotificationRecipient"}},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"}},"required":["collection_id","mode","locale","recipients","updated_at"]},"NotificationRecipient":{"type":"object","properties":{"id":{"type":"string","pattern":"^nrc_[0-9a-hjkmnp-tv-z]{26}$","description":"Public notification_recipient id.","example":"nrc_0123456789abcdefghjkmnpqrs"},"email":{"type":"string"},"kind":{"type":"string","enum":["member","external"],"description":"`member`: a workspace member who reads submissions. `external`: anyone else."},"status":{"type":"string","enum":["pending","confirmed","unsubscribed"],"description":"`pending`: waiting for the confirmation link. `confirmed`: receives e-mails. `unsubscribed`: opted out; nothing resets it."},"confirmed_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","email","kind","status","confirmed_at"]},"PutNotificationsBody":{"type":"object","properties":{"mode":{"type":"string","enum":["instant","daily_digest"],"description":"`instant`: one e-mail per submission (at most 50 per collection per hour; the rest goes to the digest). `daily_digest`: one summary per day."},"locale":{"type":"string","enum":["pt-BR","en"],"description":"Language saved for the collection (the portal uses it). The e-mails themselves are always in English."},"recipients":{"type":"array","items":{"type":"string","minLength":3,"maxLength":254},"maxItems":5,"description":"The full list of addresses, up to 5; it replaces the old one (empty turns notifications off). Workspace members who may read submissions are confirmed at once; any other address is sent a confirmation link first."}},"required":["mode","locale","recipients"],"additionalProperties":false},"NotificationTokenResult":{"type":"object","properties":{"status":{"type":"string","enum":["pending","confirmed","unsubscribed"]}},"required":["status"]},"NotificationTokenBody":{"type":"object","properties":{"token":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}$","description":"The token from the link of the e-mail (the URL fragment after `token=`)."}},"required":["token"],"additionalProperties":false},"CreatedComponentVersion":{"allOf":[{"$ref":"#/components/schemas/ComponentVersion"},{"type":"object","properties":{"diagnostics":{"type":"array","items":{"$ref":"#/components/schemas/Diagnostic"},"description":"One warning per breaking change of `compatibility` (`BREAKING_PROP_CHANGE`, `BREAKING_EVENT_CHANGE`, `BREAKING_SLOT_CHANGE`, `BREAKING_STYLE_CHANGE`), naming the member, with a migration hint and `manifest_path`. The version is created anyway."}},"required":["diagnostics"]}]},"VersionCompatibility":{"type":"object","properties":{"breaking":{"type":"boolean","description":"True when a change is breaking; promoting the version to production then needs allowBreaking."},"base":{"type":["object","null"],"properties":{"version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Public version id.","example":"ver_0123456789abcdefghjkmnpqrs"},"semver":{"type":"string"},"basis":{"type":"string","enum":["production","latest"],"description":"`production`: the version the production channel pointed to; `latest`: production pointed nowhere (staging may point), so the component's latest version."}},"required":["version_id","semver","basis"],"description":"The version compared with; null for a component's first version."},"changes":{"type":"array","items":{"$ref":"#/components/schemas/ManifestChange"},"description":"The changes, breaking first, at most 100."},"truncated":{"type":"boolean","description":"True when there were more than 100 changes."},"base_unreadable":{"type":"boolean","description":"True when the base's stored manifest could not be read (a newer contract major): nothing was compared, so the version counts as breaking, with no change listed and a `BASE_MANIFEST_UNREADABLE` warning."}},"required":["breaking","base","changes","truncated","base_unreadable"]},"ManifestChange":{"type":"object","properties":{"member":{"type":"string","enum":["prop","event","slot","part","cssVar"]},"name":{"type":"string","description":"The member's name as declared."},"kind":{"type":"string","enum":["removed","renamed","added","type-changed","constraint-narrowed","constraint-widened","constraint-changed","values-removed","values-added","field-removed","field-added","field-required","field-optional","propagation-changed"]},"impact":{"type":"string","enum":["breaking","additive"],"description":"`breaking`: a page that used the base version loses something; `additive`: everything that worked keeps working."},"path":{"type":"string","description":"Dotted path in the manifest (`props.currency`)."},"renamed_to":{"type":"string"},"constraint":{"type":"string","description":"The rule that changed (`maxLength`, `values`, `protocols`, `bubbles`…)."},"before":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"after":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"values":{"type":"array","items":{"type":"string"},"description":"`values-removed` / `values-added`: the enum values or URL schemes."}},"required":["member","name","kind","impact","path"]},"Diagnostic":{"type":"object","properties":{"code":{"type":"string","pattern":"^(?:TS[1-9][0-9]{3,4}|(?!TS[0-9]*$)[A-Z][A-Z0-9_]*)$","description":"Stable code (`BREAKING_PROP_CHANGE`, `TS2322`…); a client treats a code it does not know as a generic diagnostic.","example":"BREAKING_PROP_CHANGE"},"severity":{"type":"string","enum":["error","warning"]},"message":{"type":"string"},"hint":{"type":"string","description":"What to change."},"docs_url":{"type":"string","description":"The code's page in the docs."},"file":{"type":"string","description":"Path inside the source package."},"line":{"type":"integer"},"column":{"type":"integer"},"snippet":{"type":"string"},"manifest_path":{"type":"string","description":"Dotted path in the manifest the diagnostic is about (`props.currency`)."}},"required":["code","severity","message","hint","docs_url"]},"ComponentVersion":{"type":"object","properties":{"id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Public version id.","example":"ver_0123456789abcdefghjkmnpqrs"},"component_id":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"semver":{"type":"string"},"content_hash":{"type":"string","description":"sha256 (hex) of the bundle bytes."},"bundle_key":{"type":"string","description":"Content address of the bundle, `b/<content_hash>.js`."},"contract_version":{"type":"string"},"build_id":{"type":"string","pattern":"^bld_[0-9a-hjkmnp-tv-z]{26}$","description":"Public build id.","example":"bld_0123456789abcdefghjkmnpqrs"},"manifest":{"type":"object","additionalProperties":{},"description":"The component manifest (contract v1, camelCase)."},"lockfile":{"type":"object","additionalProperties":{},"description":"The npm lock the build used (`taggor.lock`: lockfileVersion, dependencies, packages)."},"gates":{"type":"object","properties":{"version":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"gate":{"type":"string"},"ok":{"type":"boolean"},"errors":{"type":"integer"},"warnings":{"type":"integer"}},"required":["gate","ok","errors","warnings"]}}},"required":["version","results"]},"message":{"type":["string","null"]},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"compatibility":{"$ref":"#/components/schemas/VersionCompatibility"},"origin":{"type":["string","null"],"enum":["cli","mcp","portal","api",null],"description":"The channel the creating request came through (`cli`, `mcp`, `portal` or `api`; a label from the credential and the `User-Agent`, not proof of who acted). Null on versions created before it was recorded."},"size_gz_bytes":{"type":["integer","null"],"minimum":0,"description":"Gzipped bytes of the bundle plus the CSS, measured when the version was created (what a visitor downloads on top of the shared runtime). Null on versions created before it was recorded, or when it could not be measured."}},"required":["id","component_id","semver","content_hash","bundle_key","contract_version","build_id","manifest","lockfile","gates","message","created_by","created_at","compatibility","origin","size_gz_bytes"]},"QueuedBuild":{"type":"object","properties":{"build_id":{"type":"string","pattern":"^bld_[0-9a-hjkmnp-tv-z]{26}$","description":"Public build id.","example":"bld_0123456789abcdefghjkmnpqrs"},"version_id":{"type":"null","description":"Always null here: a version exists only once the build succeeded. Create it then with `{ build_id }` on this same operation."},"status":{"type":"string","description":"The build's status: `queued`, or the current one when the workspace already had a build of this exact source.","example":"queued"}},"required":["build_id","version_id","status"]},"VersionConflictProblem":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"reason":{"type":"string","enum":["build_not_finished","build_failed","gates_not_passed","result_invalid","tag_mismatch","artifacts_missing"],"description":"`build_not_publishable`: why the build cannot become a version."},"build_status":{"type":"string"},"diagnostic_codes":{"type":"array","items":{"type":"string"},"maxItems":20,"description":"Codes of the build's error diagnostics (see the build for all of them)."},"version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"`version_already_exists`: the version that has this build or semver.","example":"ver_0123456789abcdefghjkmnpqrs"},"requested_semver":{"type":"string","description":"`semver_bump_too_small`: the semver sent."},"suggested_semver":{"type":"string","description":"`semver_bump_too_small`: the semver to send (the one Taggor picks when `semver` is omitted)."},"required_bump":{"type":"string","enum":["major","minor","patch"],"description":"`semver_bump_too_small`: the part the manifest changes require to raise against `compatibility.base`."},"highest_semver":{"type":"string","description":"`semver_bump_too_small`: the component's highest version."},"breaking_collections":{"type":"array","items":{"type":"object","properties":{"collection":{"type":"string","description":"Name of the collection in the manifest."},"changes":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string","example":"fields.email"},"kind":{"type":"string","example":"field_removed"}},"required":["path","kind"]}}},"required":["collection","changes"]},"description":"`breaking_collection_change`: per collection, the breaking changes with the path in its schema."},"compatibility":{"$ref":"#/components/schemas/VersionCompatibility"},"diagnostics":{"type":"array","items":{"$ref":"#/components/schemas/Diagnostic"},"description":"`semver_bump_too_small`: the `SEMVER_BUMP_TOO_SMALL` error, then one warning per breaking change; `compatibility` holds every change, the reason of `required_bump`."}}}]},"SourceUploadProblem":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"diagnostics":{"type":"array","items":{"$ref":"#/components/schemas/Diagnostic"},"description":"Why the package was refused, in the same format as the diagnostics of a failed build (`SOURCE_TOO_LARGE`, `SOURCE_PATH_INVALID`, `SECRET_IN_SOURCE`…); at most 50."},"limit":{"type":"integer","description":"`build_quota_exceeded`: builds in any 7 days the plan allows (`buildsPerWeek`)."},"limit_name":{"type":"string","description":"`build_quota_exceeded` (`buildsPerWeek`), `platform_build_capacity` (`platformBuildsPerWeek`, new builds temporarily paused on the platform, not the plan's limit): which limit was reached."},"used":{"type":"integer","description":"`build_quota_exceeded`: the builds the workspace already has in the window."},"window_days":{"type":"integer","description":"`build_quota_exceeded`: the length of the rolling window, in days."},"resets_at":{"type":"string","description":"`build_quota_exceeded`: when one place frees (ISO 8601), the same moment `Retry-After` counts to."}}}]},"CreateVersionRequest":{"type":"object","properties":{"build_id":{"type":"string","pattern":"^bld_[0-9a-hjkmnp-tv-z]{26}$","description":"A build of this workspace that succeeded, every quality gate passed.","example":"bld_0123456789abcdefghjkmnpqrs"},"semver":{"type":"string","pattern":"^(0|[1-9][0-9]{0,8})\\.(0|[1-9][0-9]{0,8})\\.(0|[1-9][0-9]{0,8})$","description":"Version number: above every version of the component, and raising at least the part its manifest changes require against the version in production (or the latest one while production points nowhere): major for a breaking change, minor for an additive one, patch for none. Omitted: the component's highest version bumped by that part (1.0.0 for the first). Too small: 409 `semver_bump_too_small` with `suggested_semver`.","example":"1.2.0"},"message":{"type":"string","minLength":1,"maxLength":500,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"What changed, for people and agents reading the list."},"allow_breaking":{"type":"boolean","description":"Accept breaking changes to the schema of a collection the component already has (a removed field, a changed type, a tighter limit, a field that became required, a collection that became public). The collection starts a new schema version; submissions already stored are not rewritten. Default false: 409 `breaking_collection_change`. The other way out is a new collection name."}},"required":["build_id"],"additionalProperties":false},"ComponentVersionPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ComponentVersion"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"ChannelList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Channel"}}},"required":["data"]},"Channel":{"type":"object","properties":{"name":{"type":"string","enum":["production","staging"]},"version_id":{"type":["string","null"],"pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Public version id.","example":"ver_0123456789abcdefghjkmnpqrs"},"semver":{"type":["string","null"]},"updated_at":{"type":["string","null"],"format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"updated_by":{"type":["string","null"]}},"required":["name","version_id","semver","updated_at","updated_by"]},"ChangelogPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ChangelogEntry"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"ChangelogEntry":{"type":"object","properties":{"version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Public version id.","example":"ver_0123456789abcdefghjkmnpqrs"},"semver":{"type":"string"},"message":{"type":["string","null"],"description":"What changed, as sent when the version was created; null when none was sent."},"created_by":{"type":"string","description":"Who created the version."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"breaking":{"type":"boolean","description":"True when the version breaks pages of the version it was compared with."}},"required":["version_id","semver","message","created_by","created_at","breaking"]},"HistoryPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/HistoryEntry"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"HistoryEntry":{"type":"object","properties":{"id":{"type":"string","description":"Id of the entry: the version id (`ver_…`) of a published version, `che_…` for a channel move. Stable; the cursor key.","example":"che_00000000000000000000000042"},"type":{"type":"string","enum":["version_published","promote","rollback"],"description":"`version_published`: a version was created. `promote` and `rollback`: a channel moved."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"The version published, or the one the channel moved to.","example":"ver_0123456789abcdefghjkmnpqrs"},"semver":{"type":["string","null"],"description":"Its semver; null if it was deleted."},"channel":{"type":["string","null"],"enum":["production","staging",null],"description":"The channel that moved; null for `version_published`."},"from_version_id":{"type":["string","null"],"pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"The version the channel left; null for a first promotion and a publication.","example":"ver_0123456789abcdefghjkmnpqrs"},"reason":{"type":["string","null"],"description":"The reason given for a move."},"actor":{"$ref":"#/components/schemas/HistoryActor"},"client":{"type":["string","null"],"description":"The client label of the request: `Taggor-Client` (`cli/1.2.0`, `mcp`, `portal`) or, without a valid header, the channel it came through. A label, not proof of who acted. Null on entries older than it.","example":"cli/1.2.0"}},"required":["id","type","created_at","version_id","semver","channel","from_version_id","reason","actor","client"]},"HistoryActor":{"type":"object","properties":{"id":{"type":"string","description":"`usr_…` of a person or `key_…` of an API key."},"kind":{"type":"string","enum":["user","api_key","unknown"]},"name":{"type":["string","null"],"description":"The person's name or the API key's name; null when unknown. Never the key's secret."}},"required":["id","kind","name"]},"ComponentVersionDiff":{"type":"object","properties":{"from":{"type":"object","properties":{"version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Public version id.","example":"ver_0123456789abcdefghjkmnpqrs"},"semver":{"type":"string"}},"required":["version_id","semver"]},"to":{"type":"object","properties":{"version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Public version id.","example":"ver_0123456789abcdefghjkmnpqrs"},"semver":{"type":"string"}},"required":["version_id","semver"]},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"status":{"type":"string","enum":["added","removed","modified"]},"patch":{"type":"string"}},"required":["path","status","patch"]}},"manifest":{"type":"object","properties":{"breaking":{"type":"boolean"},"unavailable":{"type":"boolean"},"changes":{"type":"array","items":{"$ref":"#/components/schemas/ManifestChange"}}},"required":["breaking","unavailable","changes"]},"dependencies":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"from":{"type":["string","null"]},"to":{"type":["string","null"]}},"required":["name","from","to"]}},"bundle_size_gzip":{"type":"object","properties":{"from_bytes":{"type":"integer","minimum":0},"to_bytes":{"type":"integer","minimum":0},"delta_bytes":{"type":"integer"}},"required":["from_bytes","to_bytes","delta_bytes"]},"next_cursor":{"type":["string","null"]},"has_more":{"type":"boolean"}},"required":["from","to","files","manifest","dependencies","bundle_size_gzip","next_cursor","has_more"]},"PreviewLink":{"type":"object","properties":{"component_id":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"version_id":{"type":["string","null"],"pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"The version the link opens; `null` when the channel (or the component) has no version yet.","example":"ver_0123456789abcdefghjkmnpqrs"},"semver":{"type":["string","null"]},"channel":{"type":["string","null"],"enum":["production","staging",null],"description":"The channel the version came from; `null` when `version_id` was sent or no channel was asked for (the latest version)."},"preview_url":{"type":["string","null"],"format":"uri","description":"Private link (valid 7 days from this call) that opens the version's component on the test page of an isolated preview host: the component on a light and a dark background, with panels to edit its props and CSS variables and to watch its events live. Anyone holding it can see the component, so share it deliberately; it is not indexed and submits nothing to real collections. `null` when `preview_state` is not `ready`.","example":"https://preview.taggor-preview.example/p/v1.bld_0123456789abcdefghjkmnpqrs.<sha256>.1-0-0.1795000000.<mac>"},"preview_state":{"type":"string","enum":["ready","off","none","error"],"description":"Why `preview_url` is or is not set: `ready` (a link), `off` (this environment has no preview host), `none` (the channel, or the component, has no version yet), `error` (the link could not be signed; try again)."}},"required":["component_id","version_id","semver","channel","preview_url","preview_state"]},"BuildPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BuildSummary"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"BuildSummary":{"type":"object","properties":{"id":{"type":"string","pattern":"^bld_[0-9a-hjkmnp-tv-z]{26}$","description":"Public build id.","example":"bld_0123456789abcdefghjkmnpqrs"},"status":{"type":"string","enum":["queued","building","checking","succeeded","failed"]},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"version_id":{"type":["string","null"],"pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"The version made from this build, once it exists.","example":"ver_0123456789abcdefghjkmnpqrs"},"tag":{"type":["string","null"],"description":"The component tag the build's manifest declares (customer text: escape it); `null` until the build succeeds."}},"required":["id","status","created_at","version_id","tag"]},"Build":{"type":"object","properties":{"id":{"type":"string","pattern":"^bld_[0-9a-hjkmnp-tv-z]{26}$","description":"Public build id.","example":"bld_0123456789abcdefghjkmnpqrs"},"status":{"type":"string","enum":["queued","building","checking","succeeded","failed"],"description":"`queued`, `building`, `checking` (the quality gates run), `succeeded` or `failed`. A finished build never changes."},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"duration_ms":{"type":"integer","minimum":0,"description":"Queue time included; still counting while the build runs."},"gates":{"type":"array","items":{"$ref":"#/components/schemas/BuildGate"},"description":"Result of each quality gate; empty until the build gets to the gates."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/Diagnostic"},"description":"What failed, with file, line, column, `code` and `hint`. Plain text: escape it, never render it as HTML or terminal markup. A `code` you do not know is a generic error."},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/Diagnostic"}},"version_id":{"type":["string","null"],"pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"The version made from this build, once it exists.","example":"ver_0123456789abcdefghjkmnpqrs"},"preview_url":{"type":["string","null"],"format":"uri","description":"Private, temporary link that opens the succeeded build's component on the test page of an isolated preview host: the component on a light and a dark background, with panels to edit its props and CSS variables and to watch its events live. Anyone holding it can see the component, so share it deliberately; it is not indexed and submits nothing to real collections. For a build with no version it is valid 7 days after the build finished; a build that already became a version gets a new link (valid 7 days from the call) on every read. `null` while the build runs, when it failed, when a build with no version is past its 7 days, or when previews are off.","example":"https://preview.taggor-preview.example/p/v1.bld_0123456789abcdefghjkmnpqrs.<sha256>.1795000000.<mac>"},"preview_state":{"type":"string","enum":["ready","off","none","expired","error"],"description":"Why `preview_url` is or is not set: `ready` (a link), `off` (this environment has no preview host), `none` (the build is running, failed or did not pass its gates), `expired` (the build passed, has no version and its 7 days are over: publish again; a build with a version is never `expired`), `error` (the link could not be signed; try again)."}},"required":["id","status","created_at","updated_at","duration_ms","gates","errors","warnings","version_id","preview_url","preview_state"]},"BuildGate":{"type":"object","properties":{"gate":{"type":"string"},"ok":{"type":"boolean"},"errors":{"type":"integer"},"warnings":{"type":"integer"}},"required":["gate","ok","errors","warnings"]},"BuildSseEvent":{"type":"object","properties":{"id":{"type":"string"},"event":{"type":"string"},"data":{"type":"string"}},"required":["id","event","data"]},"ChannelMove":{"type":"object","properties":{"name":{"type":"string","enum":["production","staging"]},"version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Public version id.","example":"ver_0123456789abcdefghjkmnpqrs"},"semver":{"type":"string"},"updated_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"updated_by":{"type":"string"},"previous_version_id":{"type":["string","null"],"pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"The version the channel pointed to before; null for its first promotion.","example":"ver_0123456789abcdefghjkmnpqrs"},"changed":{"type":"boolean","description":"False when the channel already pointed to this version: nothing was written, the manifests of the sites were recompiled again."},"site_props":{"type":"array","items":{"$ref":"#/components/schemas/SitePropsConflict"},"description":"The sites whose saved props the new version refuses (empty when all fit); the other sites follow the channel."},"site_props_unsettled":{"type":"array","items":{"$ref":"#/components/schemas/UnsettledSite"},"description":"Sites whose props kept changing (other saves) while the channel moved, so they could not be checked against the new version and were left as they are. Each follows the channel only if its props fit the new version, else it keeps the version it had. Repeat the move to settle them. Usually empty."}},"required":["name","version_id","semver","updated_at","updated_by","previous_version_id","changed","site_props","site_props_unsettled"]},"SitePropsConflict":{"type":"object","properties":{"site_id":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"site_key":{"type":"string"},"code":{"type":"string","enum":["site_props_incompatible"]},"outcome":{"type":"string","enum":["held_back","suspended"],"description":"`held_back`: the site's manifest was not moved to the new version and still serves the one it had. `suspended`: the fields listed in `suspended` moved to the attachment's `suspended_props` (kept, not deleted) and the site follows the channel; they come back by themselves when a version accepts them again."},"errors":{"type":"array","items":{"$ref":"#/components/schemas/FieldError"},"maxItems":50,"description":"Every refused field, with its JSON Pointer as in the body of `PUT …/props`, for example `/props/accent` (at most 50)."},"suspended":{"type":"array","items":{"type":"string"},"description":"The names of the props moved to `suspended_props` (`suspended`); empty otherwise."},"restored":{"type":"array","items":{"type":"string"},"description":"The names of suspended props this version accepted again and that went back to the site's props."}},"required":["site_id","site_key","code","outcome","errors","suspended","restored"]},"UnsettledSite":{"type":"object","properties":{"site_id":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"site_key":{"type":"string"}},"required":["site_id","site_key"]},"ChannelConflictProblem":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"build_status":{"type":"string","description":"`version_not_ready`: the status of the version's build."},"against_version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"`breaking_change_not_allowed`: the version in production it was compared with.","example":"ver_0123456789abcdefghjkmnpqrs"},"against_semver":{"type":"string"},"diagnostics":{"type":"array","items":{"$ref":"#/components/schemas/Diagnostic"},"description":"`breaking_change_not_allowed`: one `BREAKING_*_CHANGE` warning per breaking change (or `BASE_MANIFEST_UNREADABLE`)."}}}]},"PromoteChannelRequest":{"type":"object","properties":{"version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"A version of this component whose build succeeded.","example":"ver_0123456789abcdefghjkmnpqrs"},"reason":{"type":"string","minLength":1,"maxLength":500,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"Why the channel moves; kept with the event in the channel history."},"allow_breaking":{"type":"boolean","description":"Lets `production` move to a version that breaks the one it replaces. Without it that is a 409 `breaking_change_not_allowed`. Not needed on `staging`."},"force_drop_invalid":{"type":"boolean","description":"Sites whose saved props the new version refuses keep the version they had, and are listed in `site_props`. With `true` only the invalid fields are removed from those props and the sites follow the channel."}},"required":["version_id"],"additionalProperties":false},"RollbackChannelRequest":{"type":"object","properties":{"version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"The version to go back to. Omitted: the version the channel pointed to before the current one.","example":"ver_0123456789abcdefghjkmnpqrs"},"reason":{"type":"string","minLength":1,"maxLength":500,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"Why the channel moves; kept with the event in the channel history."},"allow_breaking":{"type":"boolean","description":"Lets `production` move to a version that breaks the one it replaces. Without it that is a 409 `breaking_change_not_allowed`. Not needed on `staging`."},"force_drop_invalid":{"type":"boolean","description":"Sites whose saved props the new version refuses keep the version they had, and are listed in `site_props`. With `true` only the invalid fields are removed from those props and the sites follow the channel."},"expected_from_version_id":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"The version the client saw in the channel when it decided to roll back. When the channel no longer points to it the answer is a 409 `channel_moved` (read the channel again), unless the channel's newest move is exactly this rollback away from it: then the answer is the channel as it is, with `changed: false`. Send it to make a retry after a lost answer safe; without it a rollback with no `version_id` goes back from wherever the channel is.","example":"ver_0123456789abcdefghjkmnpqrs"}},"additionalProperties":false},"Component":{"type":"object","properties":{"id":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"tag":{"type":"string"},"description":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"archived_at":{"type":["string","null"],"format":"date-time","description":"When the component was archived; null while active.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","tag","description","created_at","archived_at"]},"InvalidTagProblem":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"suggested_tag":{"type":"string","description":"`invalid_tag_name`: a tag that passes the same check."}}}]},"ComponentConflictProblem":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"component_id":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"`component_already_exists`: the workspace's component that has this tag.","example":"cmp_0123456789abcdefghjkmnpqrs"}}}]},"CreateComponentRequest":{"type":"object","properties":{"tag":{"type":"string","minLength":1,"maxLength":256,"description":"Custom Element name: lowercase ASCII letters, digits and hyphens, starts with a letter, at least one hyphen, not reserved. Unique in the workspace.","example":"price-card"},"description":{"type":"string","minLength":1,"maxLength":500,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"What the component is for, for people and agents reading the list."}},"required":["tag"],"additionalProperties":false},"ComponentPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ComponentListItem"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"ComponentListItem":{"type":"object","properties":{"id":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"tag":{"type":"string"},"description":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"archived_at":{"type":["string","null"],"format":"date-time","description":"When the component was archived; null while active.","example":"2026-10-30T12:34:56.789Z"},"channels":{"type":"array","items":{"$ref":"#/components/schemas/Channel"},"description":"`production` and `staging`; `version_id` is null until a version is promoted."}},"required":["id","tag","description","created_at","archived_at","channels"]},"ComponentSitePage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ComponentSite"}},"next_cursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."},"has_more":{"type":"boolean"}},"required":["data","next_cursor","has_more"]},"ComponentSite":{"type":"object","properties":{"site_id":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"site_key":{"type":"string","description":"The public key of the site's snippet."},"name":{"type":"string"},"site_status":{"type":"string","enum":["active","disabled"],"description":"`disabled` when the owner switched the whole site off: it delivers nothing, whatever it has attached."},"environment":{"type":"string","enum":["production","staging"],"description":"The site's environment, which is the channel it delivers the component from: `staging` sites the Staging pointer, `production` sites the Production pointer."},"channel":{"type":"string","enum":["production","staging"],"description":"Same value as `environment`, kept for older clients; read `environment`."},"delivered_version":{"type":["string","null"],"description":"The version (semver) the site's environment delivers now; null when nothing was promoted to that pointer yet (the component stays listed)."},"held_back":{"type":["array","null"],"items":{"type":"string"},"description":"Why the props this site saved do not fit that version (a property path and a message, never a value), so the component is held back from the site's manifest and nothing is delivered; null when nothing is held. Typical after the site's environment changes to a pointer whose version refuses the saved props."},"enabled":{"type":"boolean","description":"False when the site's kill switch for this component is on."},"client_id":{"type":["string","null"],"pattern":"^cl_[0-9a-hjkmnp-tv-z]{26}$","description":"The agency client the site belongs to; null for none.","example":"cl_0123456789abcdefghjkmnpqrs"}},"required":["site_id","site_key","name","site_status","environment","channel","delivered_version","held_back","enabled","client_id"]},"ComponentDetail":{"allOf":[{"$ref":"#/components/schemas/Component"},{"type":"object","properties":{"channels":{"type":"array","items":{"$ref":"#/components/schemas/Channel"},"description":"`production` and `staging`; `version_id` is null until a version is promoted."}},"required":["channels"]}]},"PatchComponentRequest":{"type":"object","properties":{"description":{"type":["string","null"],"minLength":1,"maxLength":500,"pattern":"^[\\u0009\\u0020-\\u007e\\u00a0-\\u00ac\\u00ae-\\u034e\\u0350-\\u061b\\u061d-\\u115e\\u1161-\\u17b3\\u17b6-\\u180d\\u180f-\\u200a\\u200c-\\u200d\\u2010-\\u2027\\u202f-\\u205f\\u2065\\u2070-\\u3163\\u3165-\\ud7ff\\ue000-\\ufefe\\uff00-\\uff9f\\uffa1-\\ufff8\\ufffc-\\uffff]*$","description":"The new description; `null` clears it."}},"required":["description"],"additionalProperties":false}},"parameters":{},"headers":{"RateLimitPolicy":{"description":"The limit of the route class, e.g. `\"read\";q=600;w=60` (q requests per w seconds).","schema":{"type":"string"}},"RateLimit":{"description":"Your own budget in that class, e.g. `\"read\";r=599;t=42`: an estimate of the requests left (r) and the seconds to the window reset (t); the 429 is the authority.","schema":{"type":"string"}},"RetryAfter":{"description":"Seconds to wait before retrying.","schema":{"type":"string"}}},"responses":{"RateLimited":{"description":"`rate_limited`: the limit of the route class (`rate_limit.limit_class`: read, write, publish, heavy, approval, diff, metrics or ip) was reached. Wait `Retry-After` seconds. `rate_limiter_unavailable` (503) is answered for `heavy` routes when the limiter itself fails, and for a valid OAuth token with no grant when the consent-link limiter fails (never a 401, so an MCP client does not log in again).","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"},"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"ServiceUnavailable":{"description":"`database_unavailable`: the API could not reach its database (timeout, dropped connection). Wait `Retry-After` seconds and send the same request again: repeating is safe with the same `Idempotency-Key`; without it a POST may already have been applied.","headers":{"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"paths":{"/v1/health":{"get":{"operationId":"getHealth","summary":"API health and build version","tags":["health"],"security":[],"x-required-action":"none","responses":{"200":{"description":"The API answers; `db` says whether Postgres does too.","content":{"application/json":{"example":{"status":"ok","db":"ok","version":"4f2c1a9"},"schema":{"$ref":"#/components/schemas/Health"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/auth/login":{"get":{"operationId":"startLogin","security":[],"x-required-scopes":[],"x-required-action":"none","summary":"Start signing in to the portal: redirects to the identity provider","description":"Optional `utm_source`, `utm_medium`, `utm_campaign`, `utm_content`, `utm_term` and `ref` are sanitized and carried in the login state to the `signup` event of a new account, as campaign dimensions with no cookie and no personal data. `terms_version` and `privacy_version` are the legal versions the portal's entry screen showed: a new account records its acceptance only when both equal the versions in force. Other parameters are ignored.","tags":["auth"],"parameters":[{"schema":{"type":"string","description":"The screen the identity provider opens on: `sign-up` (create an account) or `sign-in`. Absent, or any other text, is ignored and keeps the provider's default screen.","example":"sign-up"},"required":false,"description":"The screen the identity provider opens on: `sign-up` (create an account) or `sign-in`. Absent, or any other text, is ignored and keeps the provider's default screen.","name":"screen","in":"query"},{"schema":{"type":"string","description":"The language (`en` or `pt-BR`) of the sign-up box (Annex item A.1 of the Terms) the entry screen showed and the person ticked. With `terms_version` and `privacy_version`, a new account records the evidence of the box (hash of the text, versions, time, person, workspace) and gets a copy by e-mail. Any other text is ignored.","example":"en"},"required":false,"description":"The language (`en` or `pt-BR`) of the sign-up box (Annex item A.1 of the Terms) the entry screen showed and the person ticked. With `terms_version` and `privacy_version`, a new account records the evidence of the box (hash of the text, versions, time, person, workspace) and gets a copy by e-mail. Any other text is ignored.","name":"legal_locale","in":"query"},{"schema":{"type":"string","description":"The Terms version the entry screen showed. With `privacy_version`, a new account records its acceptance only when both equal the versions in force; otherwise nothing is recorded and the portal asks.","example":"2026-12-01"},"required":false,"description":"The Terms version the entry screen showed. With `privacy_version`, a new account records its acceptance only when both equal the versions in force; otherwise nothing is recorded and the portal asks.","name":"terms_version","in":"query"},{"schema":{"type":"string","description":"The Privacy Policy version the entry screen showed (see `terms_version`).","example":"2026-12-01"},"required":false,"description":"The Privacy Policy version the entry screen showed (see `terms_version`).","name":"privacy_version","in":"query"},{"schema":{"type":"string","description":"The `utm_source` of the landing URL. Kept as 1 to 64 characters of `a-z0-9_.-` (lower-cased); anything else is dropped.","example":"newsletter"},"required":false,"description":"The `utm_source` of the landing URL. Kept as 1 to 64 characters of `a-z0-9_.-` (lower-cased); anything else is dropped.","name":"utm_source","in":"query"},{"schema":{"type":"string","description":"The `utm_medium` of the landing URL. Kept as 1 to 64 characters of `a-z0-9_.-` (lower-cased); anything else is dropped.","example":"cpc"},"required":false,"description":"The `utm_medium` of the landing URL. Kept as 1 to 64 characters of `a-z0-9_.-` (lower-cased); anything else is dropped.","name":"utm_medium","in":"query"},{"schema":{"type":"string","description":"The `utm_campaign` of the landing URL. Kept as 1 to 64 characters of `a-z0-9_.-` (lower-cased); anything else is dropped.","example":"spring-launch"},"required":false,"description":"The `utm_campaign` of the landing URL. Kept as 1 to 64 characters of `a-z0-9_.-` (lower-cased); anything else is dropped.","name":"utm_campaign","in":"query"},{"schema":{"type":"string","description":"The `utm_content` of the landing URL. Kept as 1 to 64 characters of `a-z0-9_.-` (lower-cased); anything else is dropped.","example":"banner-a"},"required":false,"description":"The `utm_content` of the landing URL. Kept as 1 to 64 characters of `a-z0-9_.-` (lower-cased); anything else is dropped.","name":"utm_content","in":"query"},{"schema":{"type":"string","description":"The `utm_term` of the landing URL. Kept as 1 to 64 characters of `a-z0-9_.-` (lower-cased); anything else is dropped.","example":"web-components"},"required":false,"description":"The `utm_term` of the landing URL. Kept as 1 to 64 characters of `a-z0-9_.-` (lower-cased); anything else is dropped.","name":"utm_term","in":"query"},{"schema":{"type":"string","description":"Where the visit came from, e.g. a referral code. Kept as 1 to 64 characters of `a-z0-9_-` (lower-cased, no dot, so never a host name or URL); anything else is dropped.","example":"newsletter-01"},"required":false,"description":"Where the visit came from, e.g. a referral code. Kept as 1 to 64 characters of `a-z0-9_-` (lower-cased, no dot, so never a host name or URL); anything else is dropped.","name":"ref","in":"query"}],"responses":{"302":{"description":"To the identity provider's login page, with a fresh login state.","headers":{"Location":{"description":"The identity provider's login page (locally, `/v1/auth/local?state=…`).","schema":{"type":"string","format":"uri"}},"Set-Cookie":{"description":"`__Host-taggor_login_state=<state>; Max-Age=600; Path=/; HttpOnly; Secure; SameSite=Lax`.","schema":{"type":"string"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`identity_provider_unavailable`: no identity provider serves this host (a local development API on a loopback host, or an API with the WorkOS credentials set).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/identity_provider_unavailable","title":"Sign-in is not available","status":503,"detail":"Sign-in is not available here.","instance":"/v1/auth/login","code":"identity_provider_unavailable","hint":"Wait a minute and try again; the sign-in provider did not answer.","docs_url":"https://docs.taggor.dev/errors/identity_provider_unavailable","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/callback":{"get":{"operationId":"completeLogin","security":[],"x-required-scopes":[],"x-required-action":"none","summary":"Finish signing in: creates the session and redirects to the portal","tags":["auth"],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":2048,"description":"The identity provider's one-time code.","example":"local.bruno"},"required":true,"description":"The identity provider's one-time code.","name":"code","in":"query"},{"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{43}(\\.[A-Za-z!~0-9_.-]{1,524})?$","description":"The login state `GET /v1/auth/login` issued, echoed by the provider.","example":"ZXhhbXBsZS1zdGF0ZS1ub3QtcmVhbC0wMTIzNDU2ISE"},"required":true,"description":"The login state `GET /v1/auth/login` issued, echoed by the provider.","name":"state","in":"query"}],"responses":{"302":{"description":"Signed in: to the portal, with the session cookie. The first sign-in of a person also creates their user, a personal workspace and an `owner` membership, but only when the API's signup mode admits them (`open`). A person who is new and not admitted gets the second redirect: to `/signup-closed` on the portal, with no session and nothing stored; the answer is the same for every refused person and says nothing about any e-mail.","headers":{"Location":{"description":"The root of the portal (`/` on the portal's origin), or `/signup-closed` when a new person is not admitted.","schema":{"type":"string","format":"uri"}},"Set-Cookie":{"description":"`__Host-taggor_session=<token>; Max-Age=2592000; Path=/; HttpOnly; Secure; SameSite=Lax`, and the login state cookie expired (only the expiry when not admitted).","schema":{"type":"string"}}}},"400":{"description":"`validation_failed` (a bad `code` or `state`), `invalid_login_state` (no login state cookie, or another state: start again at `GET /v1/auth/login`) or `login_failed` (the provider's code proves nobody).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_login_state","title":"Invalid or expired login","status":400,"detail":"This login was not started here, or it expired: sign in again.","instance":"/v1/auth/callback","code":"invalid_login_state","hint":"Start the sign-in again from the beginning; do not reuse an old login link.","docs_url":"https://docs.taggor.dev/errors/invalid_login_state","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`identity_provider_unavailable`: no identity provider serves this host (a local development API on a loopback host, or an API with the WorkOS credentials set).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/identity_provider_unavailable","title":"Sign-in is not available","status":503,"detail":"Sign-in is not available here.","instance":"/v1/auth/login","code":"identity_provider_unavailable","hint":"Wait a minute and try again; the sign-in provider did not answer.","docs_url":"https://docs.taggor.dev/errors/identity_provider_unavailable","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/logout":{"post":{"operationId":"logout","summary":"Sign out of the portal: ends the session of the cookie","tags":["auth"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"responses":{"200":{"description":"Signed out: the session is gone and its cookie expired. With a bearer token there is no session, so nothing ends.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}},"Set-Cookie":{"description":"The session cookie, expired (`Max-Age=0`).","schema":{"type":"string"}}},"content":{"application/json":{"example":{"logout_url":null},"schema":{"$ref":"#/components/schemas/Logout"}}}},"400":{"description":"`validation_failed`: a malformed `Idempotency-Key`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: header /idempotency-key. See errors[].","instance":"/v1/auth/logout","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"header","path":"/idempotency-key","code":"too_small","message":"Idempotency-Key must not be empty"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`idempotency_request_in_progress`: a request with this key is still running; retry after `Retry-After` seconds.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_request_in_progress","title":"A request with this idempotency key is in progress","status":409,"detail":"A request with this Idempotency-Key is still running.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_request_in_progress","hint":"Wait a few seconds and send the same request with the same key again to get its result.","docs_url":"https://docs.taggor.dev/errors/idempotency_request_in_progress","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/auth/device":{"post":{"operationId":"startDeviceAuthorization","summary":"Start an OAuth device authorization request","tags":["auth"],"security":[],"x-required-scopes":[],"x-required-action":"none","x-idempotency-exempt":true,"responses":{"200":{"description":"Device and user codes; the user code expires in ten minutes.","content":{"application/json":{"example":{"device_code":"Q4bM8h4fSa6F3p1xVdQz0eJrT5mL9nK2wYcA7sUuZxE","user_code":"J8KM-2N5Q-7RT9","verification_uri":"http://127.0.0.1:4102/device","verification_uri_complete":"http://127.0.0.1:4102/device?user_code=J8KM-2N5Q-7RT9","expires_in":600,"interval":5},"schema":{"type":"object","properties":{"device_code":{"type":"string"},"user_code":{"type":"string"},"verification_uri":{"type":"string","format":"uri"},"verification_uri_complete":{"type":"string","format":"uri"},"expires_in":{"type":"number"},"interval":{"type":"number"}},"required":["device_code","user_code","verification_uri","verification_uri_complete","expires_in","interval"]}}}},"429":{"description":"The device authorization start limit was reached; retry after 60 seconds.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds until retry is allowed."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Device grant is unavailable.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/device/token":{"post":{"operationId":"pollDeviceAuthorization","summary":"Poll an OAuth device authorization request","tags":["auth"],"security":[],"x-required-scopes":[],"x-required-action":"none","x-rfc8628-token-endpoint":true,"requestBody":{"required":false,"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"grant_type":{"type":"string"},"device_code":{"type":"string"}}}}}},"responses":{"200":{"description":"A fresh workspace-scoped bearer token, shown once. It is not the `device_code`, which authenticates nowhere.","content":{"application/json":{"example":{"access_token":"k3Vn0cQy7sWb2LpXe9TfZr6HdAu1MjGi5oNvBq8RtYE","token_type":"Bearer","expires_in":604800,"scope":"workspace"},"schema":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"type":"string","enum":["Bearer"]},"expires_in":{"type":"number"},"scope":{"type":"string"}},"required":["access_token","token_type","expires_in","scope"]}}}},"400":{"description":"OAuth device grant error.","content":{"application/json":{"example":{"error":"authorization_pending"},"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The token limiter could not decide; retry later.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/auth/device/requests/{userCode}":{"get":{"operationId":"getDeviceAuthorizationRequest","summary":"Get an authenticated device request and workspace choices","tags":["auth"],"security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","parameters":[{"schema":{"type":"string"},"required":true,"name":"userCode","in":"path"}],"responses":{"200":{"description":"Pending CLI request and workspaces.","content":{"application/json":{"example":{"client_name":"Taggor CLI","user_code":"J8KM-2N5Q-7RT9","created_at":"2026-11-02T12:00:00.000Z","origin_country":"BR","expires_at":"2026-11-02T12:10:00.000Z","workspaces":[{"id":"ws_000000000000000000000000aa","slug":"studio","name":"Studio"}]},"schema":{"type":"object","properties":{"client_name":{"type":"string"},"user_code":{"type":"string"},"created_at":{"type":"string","description":"When the CLI started this request (ISO 8601), for the approver to check."},"origin_country":{"type":["string","null"],"description":"Two-letter country the request came from (Cloudflare `CF-IPCountry`), or null when unknown."},"expires_at":{"type":"string"},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"}},"required":["id","slug","name"]}}},"required":["client_name","user_code","created_at","origin_country","expires_at","workspaces"]}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Portal session required.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Device request not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"approveDeviceAuthorization","summary":"Approve a device request for one workspace","tags":["auth"],"security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","x-human-only":"device_approval","parameters":[{"schema":{"type":"string"},"required":true,"name":"userCode","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"workspace_id":{"type":"string"},"decision":{"type":"string","enum":["approve","deny"]}}}}}},"responses":{"200":{"description":"Device request approved or denied.","content":{"application/json":{"example":{"status":"approved"},"schema":{"type":"object","properties":{"status":{"type":"string","enum":["approved","denied"]}},"required":["status"]}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"Invalid approval.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Portal session required.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Device request not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`idempotency_request_in_progress`: a request with this key is still running; retry after `Retry-After` seconds.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_request_in_progress","title":"A request with this idempotency key is in progress","status":409,"detail":"A request with this Idempotency-Key is still running.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_request_in_progress","hint":"Wait a few seconds and send the same request with the same key again to get its result.","docs_url":"https://docs.taggor.dev/errors/idempotency_request_in_progress","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/oauth/consent/lookup":{"post":{"operationId":"lookupOAuthConsentRequest","summary":"Look up a pending OAuth consent request and the workspaces to choose from","description":"A read: nothing is granted and the request stays. It is a POST only so that the token of the consent link travels in the body and never in a URL.","tags":["auth"],"security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","x-idempotency-exempt":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request":{"type":"string","maxLength":4096,"description":"The signed token of the portal link (its `request` fragment)."}},"required":["request"]}}}},"responses":{"200":{"description":"The client, what it asks for and your workspaces. Nothing is granted by reading.","content":{"application/json":{"example":{"client_id":"client_01EXAMPLE","client_name":"agent.example.test","client_kind":"cimd","scopes":["components:read","components:write","versions:publish"],"access_sets":[{"id":"read","scopes":["components:read"]},{"id":"read_publish","scopes":["components:read","components:write","versions:publish"]}],"preselected_access":"read","expires_at":"2026-11-08T12:10:00.000Z","workspaces":[{"id":"ws_000000000000000000000000aa","slug":"studio","name":"Studio","role":"owner","grantable_access":["read","read_publish"]}]},"schema":{"type":"object","properties":{"client_id":{"type":"string"},"client_name":{"type":"string","description":"What to call the client: the host of its CIMD client id, or the opaque id of a dynamically registered client."},"client_kind":{"type":"string","enum":["cimd","dynamic"],"description":"`cimd`: the name is the host of the client's https client id, authentic. `dynamic`: the client registered itself and its name is not verified."},"scopes":{"type":"array","items":{"type":"string"}},"access_sets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["read","read_publish"],"description":"`read`: look at sites, components, data and usage, change nothing. `read_publish`: also create and publish components, promote channels, manage sites, delete data and invite people, as far as your role allows."},"scopes":{"type":"array","items":{"type":"string"}}},"required":["id","scopes"]},"description":"The permission sets the person can pick, weakest first, each with the scopes it grants. `read` only reads; `read_publish` is everything their role allows an agent to do."},"preselected_access":{"type":"string","enum":["read","read_publish"],"description":"The set the screen starts on: `read`, or `read_publish` when the link came from a call that needed more than the grant holds."},"expires_at":{"type":"string","format":"date-time"},"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"},"role":{"type":"string","enum":["owner","admin","member","viewer"]},"grantable_access":{"type":"array","items":{"type":"string","enum":["read","read_publish"],"description":"`read`: look at sites, components, data and usage, change nothing. `read_publish`: also create and publish components, promote channels, manage sites, delete data and invite people, as far as your role allows."},"description":"The sets this person's role in the workspace may grant."}},"required":["id","slug","name","role","grantable_access"]}}},"required":["client_id","client_name","client_kind","scopes","access_sets","preselected_access","expires_at","workspaces"]}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the body is not a JSON object with a `request` of at most 200 characters.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A portal session is required.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The consent request was not found, was used or expired, was issued for someone else, or the workspace is not yours.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"OAuth consent is not configured.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/oauth/consent":{"post":{"operationId":"decideOAuthConsent","summary":"Approve an OAuth consent request for one workspace, or deny it","description":"Approving stores the grant (you, the client, the workspace, the permission set you picked); the client's token then acts only in that workspace and those scopes until you revoke the grant, and its next call goes through. Only the person whose token produced the link may decide it (anybody else gets a 404). The request is single use. The response is never replayed.","tags":["auth"],"security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","x-human-only":"oauth_consent","parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"request":{"type":"string","maxLength":4096,"description":"The signed token of the portal link (its `request` fragment)."},"decision":{"type":"string","enum":["approve","deny"]},"workspace_id":{"type":"string"},"access":{"type":"string","enum":["read","read_publish"],"description":"`read`: look at sites, components, data and usage, change nothing. `read_publish`: also create and publish components, promote channels, manage sites, delete data and invite people, as far as your role allows."}},"required":["request","decision"]}}}},"responses":{"200":{"description":"Decided.","content":{"application/json":{"example":{"status":"approved"},"schema":{"type":"object","properties":{"status":{"type":"string","enum":["approved","denied"]}},"required":["status"]}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (a body that does not match, such as a `request` over 4096 characters) or `malformed_request` (an approval without a `workspace_id` or an `access`, or an `access` your role in that workspace cannot grant, such as `read_publish` for a viewer).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A portal session is required.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The consent request was not found, was used or expired, was issued for someone else, or the workspace is not yours.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`idempotency_request_in_progress`: a request with this key is still running; retry after `Retry-After` seconds.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_request_in_progress","title":"A request with this idempotency key is in progress","status":409,"detail":"A request with this Idempotency-Key is still running.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_request_in_progress","hint":"Wait a few seconds and send the same request with the same key again to get its result.","docs_url":"https://docs.taggor.dev/errors/idempotency_request_in_progress","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"OAuth consent is not configured.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/me/oauth-grants":{"get":{"operationId":"listMyOAuthGrants","summary":"List the OAuth clients you let act in your workspaces","tags":["identity"],"security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","responses":{"200":{"description":"Your active grants, newest first.","content":{"application/json":{"example":{"grants":[{"id":"ogr_000000000000000000000000aa","client_id":"client_01EXAMPLE","client_name":"Example agent","workspace":{"id":"ws_000000000000000000000000aa","slug":"studio","name":"Studio"},"scopes":["components:read"],"access":"read","created_at":"2026-11-08T12:00:00.000Z"}]},"schema":{"type":"object","properties":{"grants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"client_id":{"type":"string"},"client_name":{"type":"string"},"workspace":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"}},"required":["id","slug","name"]},"scopes":{"type":"array","items":{"type":"string"}},"access":{"type":"string","enum":["read","read_publish"],"description":"The permission set the grant holds, from its scopes: a grant made before the sets existed holds them all and reads `read_publish`."},"created_at":{"type":"string","format":"date-time"}},"required":["id","client_id","client_name","workspace","scopes","access","created_at"]}}},"required":["grants"]}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A portal session is required.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"OAuth consent is not configured.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/me/scope-check":{"post":{"operationId":"checkMyScopes","summary":"Ask what the API would answer a call that needs these scopes","description":"Answers 200 when the credential holds every scope listed. Otherwise it answers exactly what a call needing them would: 403 `insufficient_scope`, or, for an OAuth token whose grant is smaller than its person's role allows, 403 `oauth_consent_required` with `consent_url` and `missing_access` so the person can pick \"Read and publish\". Nothing is run or stored.","tags":["identity"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","x-idempotency-exempt":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scopes":{"type":"array","items":{"type":"string","enum":["components:read","components:write","versions:publish","channels:promote","sites:read","sites:write","data:read","data:write","metrics:read","keys:manage","members:manage"]},"minItems":1,"maxItems":11,"description":"The scopes the call would need."}},"required":["scopes"]}}}},"responses":{"200":{"description":"The credential holds every scope listed.","content":{"application/json":{"example":{"ok":true},"schema":{"type":"object","properties":{"ok":{"type":"boolean","enum":[true]}},"required":["ok"]}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the body is not `{ scopes: [<known scope>, …] }`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope` (with `missing_scopes`), or `oauth_consent_required` with `consent_url` and `missing_access` when a bigger consent would cover the call.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/me/oauth-grants/{grantId}":{"delete":{"operationId":"revokeMyOAuthGrant","summary":"Revoke an OAuth grant: the client's tokens stop acting at their next request","tags":["identity"],"security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","x-human-only":"oauth_grant_revoke","parameters":[{"schema":{"type":"string","pattern":"^ogr_[0-9a-hjkmnp-tv-z]{26}$","description":"A grant id (`ogr_…`).","example":"ogr_000000000000000000000000aa"},"required":true,"description":"A grant id (`ogr_…`).","name":"grantId","in":"path"}],"responses":{"200":{"description":"Grant revoked.","content":{"application/json":{"example":{"revoked":true},"schema":{"type":"object","properties":{"revoked":{"type":"boolean","enum":[true]}},"required":["revoked"]}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the id is not a grant id (`ogr_…`).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"A portal session is required.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No active grant of yours with this id.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"OAuth consent is not configured.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/me/sessions":{"get":{"operationId":"listMySessions","summary":"List the current user's revocable sessions","description":"The person's own sessions in every workspace they belong to, oldest first. `auth_method=device` keeps the command line logins (`taggor login`), which the portal lists under Connected agents. Never holds a token. A person sees only their own sessions; an API key, OAuth token or device token gets `403 human_action_required` (`cli_session_revoke`).","tags":["identity"],"security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","parameters":[{"schema":{"type":"string","enum":["portal","device"],"description":"Only sessions of this kind (`device`: the CLI logins)."},"required":false,"description":"Only sessions of this kind (`device`: the CLI logins).","name":"auth_method","in":"query"}],"responses":{"200":{"description":"Current sessions.","content":{"application/json":{"example":{"sessions":[{"id":"7b9e2d1c-c3da-4618-aa7d-6101fd11ba6b","workspace_id":"ws_000000000000000000000000aa","workspace":{"id":"ws_000000000000000000000000aa","slug":"acme","name":"Acme"},"auth_method":"device","created_at":"2026-11-02T12:00:00Z","expires_at":"2026-12-02T12:00:00Z"}]},"schema":{"type":"object","properties":{"sessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"workspace_id":{"type":"string"},"workspace":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"}},"required":["id","slug","name"],"description":"The workspace the session acts in; absent when it cannot be read."},"auth_method":{"type":"string","enum":["portal","device"]},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time","description":"When the session ends if it is not used again; each use moves it up to the 30-day limit."}},"required":["id","workspace_id","auth_method","created_at","expires_at"]}}},"required":["sessions"]}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: `auth_method` is neither `portal` nor `device`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Portal session required (`human_action_required` for another credential, with the page).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/me/sessions/{sessionId}":{"delete":{"operationId":"revokeMySession","summary":"Revoke one of the current user's sessions","description":"A portal session revokes any of its user's sessions (the person's own: another person's id is 404), and the credential of a revoked session stops working at its next request. A CLI device token (`Authorization: Bearer`) revokes only its own session, as `current` or by its own id; any other id, and any other credential, is `403 human_action_required` (`cli_session_revoke`).","tags":["identity"],"security":[{"sessionCookie":[]},{"bearerAuth":[]}],"x-required-scopes":[],"x-required-action":"none","parameters":[{"schema":{"type":"string","pattern":"^(current|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"A session id (UUID) or `current`.","example":"current"},"required":true,"description":"A session id (UUID) or `current`.","name":"sessionId","in":"path"}],"responses":{"200":{"description":"Session revoked.","content":{"application/json":{"example":{"revoked":true},"schema":{"type":"object","properties":{"revoked":{"type":"boolean","enum":[true]}},"required":["revoked"]}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the id is neither a UUID nor `current`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Not yours to revoke: `human_action_required` (`cli_session_revoke`) for another credential or another session of a CLI token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"Session not found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/me/permissions":{"get":{"operationId":"getMyPermissions","summary":"Get the current workspace role and its effective permissions","tags":["identity"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","responses":{"200":{"description":"Current role permissions.","content":{"application/json":{"example":{"role":"viewer","user":{"id":"usr_000000000000000000000000aa","name":"Ana","email":"ana@example.com"},"workspace":{"id":"ws_000000000000000000000000aa","slug":"acme","name":"Acme"},"actions":["site:read","component:read","data:read"],"scopes":["components:read","sites:read","data:read","metrics:read"]},"schema":{"type":"object","properties":{"role":{"type":"string","enum":["owner","admin","member","viewer"]},"actions":{"type":"array","items":{"type":"string","x-extensible-enum":["site:read","site:write","component:read","component:publish","component:archive","version:promote","data:read","submission:read","data:export","data:delete","billing:manage","billing:subscribe","member:manage","api_key:manage","api_key:manage_own","api_key:revoke_own","workspace:delete","workspace:delete_cancel","workspace:transfer_owner"]}},"scopes":{"type":"array","items":{"type":"string"}},"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"]},"workspace":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"name":{"type":"string"}},"required":["id","slug","name"]}},"required":["role","actions","scopes"]}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The credential has insufficient permission.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/me/preferences":{"get":{"operationId":"getMyPreferences","summary":"Get the current user's preferences","tags":["identity"],"security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","responses":{"200":{"description":"The authenticated user's preferences.","content":{"application/json":{"example":{"locale":"pt-BR","theme":"system","time_zone":"UTC"},"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["pt-BR","en"]},"theme":{"type":"string","enum":["light","dark","system"]},"time_zone":{"type":"string","minLength":1,"maxLength":100},"telemetry_consent":{"type":"object","properties":{"granted":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}},"required":["granted","updated_at"]}},"required":["locale","theme","time_zone"],"additionalProperties":false}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"User preferences require a portal session","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"patch":{"operationId":"patchMyPreferences","summary":"Update the current user's preferences","tags":["identity"],"security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPreferencesPatchInput"}}}},"responses":{"200":{"description":"The authenticated user's preferences.","content":{"application/json":{"example":{"locale":"pt-BR","theme":"system","time_zone":"UTC"},"schema":{"type":"object","properties":{"locale":{"type":"string","enum":["pt-BR","en"]},"theme":{"type":"string","enum":["light","dark","system"]},"time_zone":{"type":"string","minLength":1,"maxLength":100},"telemetry_consent":{"type":"object","properties":{"granted":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}},"required":["granted","updated_at"]}},"required":["locale","theme","time_zone"],"additionalProperties":false}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the body is not a JSON object.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"User preferences require a portal session","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"One or more preference values are invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/auth/terms":{"get":{"operationId":"getLegalVersions","security":[],"x-required-scopes":[],"x-required-action":"none","summary":"The versions of the Terms and the Privacy Policy in force","description":"Public. What the sign-in screen shows before an account exists; nothing is recorded by reading it.","tags":["auth"],"responses":{"200":{"description":"The versions in force.","content":{"application/json":{"example":{"terms_version":"2026-12-01","privacy_version":"2026-12-01","draft":false},"schema":{"$ref":"#/components/schemas/LegalVersions"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/me/terms-acceptance":{"get":{"operationId":"getMyTermsAcceptance","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","summary":"Whether the signed-in person accepted the Terms and Privacy Policy in force","tags":["identity"],"responses":{"200":{"description":"The pair in force and the person's status.","content":{"application/json":{"example":{"terms_version":"2026-12-01","privacy_version":"2026-12-01","draft":false,"accepted":true,"accepted_at":"2026-11-08T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/TermsAcceptance"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`session_required`: the credential is an API key, a CLI device token or an OAuth token; the acceptance is a person's, in the portal.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"acceptTerms","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","x-human-only":"terms_acceptance","summary":"Accept the Terms and Privacy Policy in force","description":"Portal session only. The body names the pair the page showed; the API records its own versions, and only when the body names the pair in force. Repeating the call changes nothing.","tags":["identity"],"parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TermsAcceptanceInput"}}}},"responses":{"200":{"description":"Accepted (or already accepted): the status of the pair in force.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"terms_version":"2026-12-01","privacy_version":"2026-12-01","draft":false,"accepted":true,"accepted_at":"2026-11-08T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/TermsAcceptance"}}}},"400":{"description":"`validation_failed`: the body is not the two versions.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`legal_versions_changed` (also `idempotency_request_in_progress`): the texts changed while the page was open; nothing was recorded. Read the status again, show the new texts, then accept.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/legal_versions_changed","title":"The legal texts changed while the page was open","status":409,"detail":"The legal texts changed: read the current versions and accept again.","instance":"/v1/me/terms-acceptance","code":"legal_versions_changed","hint":"A text or its prices changed while the page was open and nothing was recorded. Read the current Terms (https://taggor.dev/legal/terms) and Privacy Policy (https://taggor.dev/legal/privacy), reload the page and accept again.","docs_url":"https://docs.taggor.dev/errors/legal_versions_changed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`legal_acceptance_unavailable`: the text of the box cannot be built now; nothing was recorded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/legal/acceptance-texts":{"get":{"operationId":"getLegalAcceptanceText","security":[],"x-required-scopes":[],"x-required-action":"none","summary":"The exact text of a box of the Annex of the Terms, with its hash","description":"Public. What the sign-up screen (A.1), the checkout (A.3, A.4), the usage price invitation (A.4) and the server-side rendering switch (A.5) show; nothing is recorded by reading it.","tags":["auth"],"parameters":[{"schema":{"type":"string","enum":["signup","purchase","overage","ssr"]},"required":true,"name":"kind","in":"query"},{"schema":{"type":"string","enum":["en","pt-BR"]},"required":true,"name":"locale","in":"query"},{"schema":{"type":"string","enum":["pro","agency"],"description":"The paid plan whose prices A.4 and A.5 show; default `pro`."},"required":false,"description":"The paid plan whose prices A.4 and A.5 show; default `pro`.","name":"plan","in":"query"}],"responses":{"200":{"description":"The text, its price rows and the hash to send back to accept it.","content":{"application/json":{"example":{"kind":"signup","annex_item":"A.1","locale":"en","text":"I have read and accept the Taggor Terms of Service, …","rates":[],"text_hash":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef","terms_version":"1.0"},"schema":{"$ref":"#/components/schemas/LegalAcceptanceText"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a `kind`, `locale` or `plan` that is not one of the listed values.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`legal_acceptance_unavailable`: the prices shown with the box cannot be read now.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/workspaces/{id}/ssr-acceptance":{"get":{"operationId":"getWorkspaceSsrAcceptance","security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:read"],"x-required-action":"site:read","summary":"Whether the workspace enabled server-side rendering (acceptance A.5)","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"}],"responses":{"200":{"description":"The status. Creating a server key is refused until `accepted` is true.","content":{"application/json":{"example":{"accepted":true,"accepted_at":"2026-11-16T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/SsrAcceptance"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: `id` is not a workspace id.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: the id is not the workspace the caller acts in.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"acceptWorkspaceSsr","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"billing:subscribe","x-human-only":"ssr_acceptance","summary":"Enable server-side rendering for the workspace (acceptance A.5)","description":"Owner or admin, portal session only. The body carries the `text_hash` of the text the page showed (`GET /v1/legal/acceptance-texts?kind=ssr`); the API records its own hash, versions, time, workspace and person, and e-mails a copy. Once per workspace; afterwards agents may create and revoke server keys.","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SsrAcceptanceInput"}}}},"responses":{"200":{"description":"Accepted (or already accepted).","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"accepted":true,"accepted_at":"2026-11-16T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/SsrAcceptance"}}}},"400":{"description":"`validation_failed`: the body is not a locale and a hash.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: the id is not the workspace the caller acts in.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`legal_versions_changed` (also `idempotency_request_in_progress`): the text or the prices changed while the page was open; nothing was recorded. Read the text again and accept again.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`legal_acceptance_unavailable`: the prices shown with the box cannot be read now.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/workspaces/{id}/dpa-acceptance":{"get":{"operationId":"getWorkspaceDpaAcceptance","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"billing:manage","x-human-only":"dpa_acceptance","summary":"Whether the workspace accepted the Data Processing Agreement in force","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"}],"responses":{"200":{"description":"The version in force and the workspace's status.","content":{"application/json":{"example":{"dpa_version":"2026-12-01","draft":false,"accepted":true,"accepted_by":"usr_0123456789abcdefghjkmnpqrs","accepted_at":"2026-11-10T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/DpaAcceptance"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: the id is not the workspace the caller acts in (also a workspace that does not exist or that the person does not belong to).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"acceptWorkspaceDpa","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"billing:manage","x-human-only":"dpa_acceptance","summary":"Accept the Data Processing Agreement in force for the workspace","description":"Owner, portal session only. The body names the version the page showed; the API records its own version, and only when the body names the version in force. Repeating the call changes nothing.","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DpaAcceptanceInput"}}}},"responses":{"200":{"description":"Accepted (or already accepted): the status of the version in force.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"dpa_version":"2026-12-01","draft":false,"accepted":true,"accepted_by":"usr_0123456789abcdefghjkmnpqrs","accepted_at":"2026-11-10T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/DpaAcceptance"}}}},"400":{"description":"`validation_failed`: the body is not one version.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: the id is not the workspace the caller acts in (also a workspace that does not exist or that the person does not belong to).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`legal_versions_changed` (also `idempotency_request_in_progress`): the text changed while the page was open; nothing was recorded. Read the status again, show the new text, then accept.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/legal_versions_changed","title":"The legal texts changed while the page was open","status":409,"detail":"The DPA changed: read the current version and accept again.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/dpa-acceptance","code":"legal_versions_changed","hint":"A text or its prices changed while the page was open and nothing was recorded. Read the current Terms (https://taggor.dev/legal/terms) and Privacy Policy (https://taggor.dev/legal/privacy), reload the page and accept again.","docs_url":"https://docs.taggor.dev/errors/legal_versions_changed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/me":{"get":{"operationId":"getMe","summary":"Get the signed-in person and the workspaces they belong to","description":"Session only. The portal reads it to know who is signed in and which workspace slugs are theirs; an unknown or foreign slug in `X-Taggor-Workspace` is a 404.","tags":["workspaces"],"security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","responses":{"200":{"description":"The person and their workspaces (up to 100, newest membership first).","content":{"application/json":{"example":{"user":{"id":"usr_0123456789abcdefghjkmnpqrs","name":"Ana","email":"ana@agency.test","locale":"pt-BR"},"workspaces":[{"id":"ws_0123456789abcdefghjkmnpqrs","slug":"local-agency","name":"Local Agency","kind":"team","role":"owner"}]},"schema":{"$ref":"#/components/schemas/Me"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`session_required`: the request is authenticated by an API key, which belongs to a workspace, not to a person.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/workspaces":{"get":{"operationId":"listWorkspaces","summary":"List the workspaces the signed-in person belongs to, newest membership first","tags":["workspaces"],"security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of the person's workspaces.","content":{"application/json":{"example":{"data":[{"id":"ws_0123456789abcdefghjkmnpqrs","slug":"local-agency","name":"Local Agency","kind":"team","role":"owner","joined_at":"2026-11-02T12:00:00.000Z"}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/WorkspacePage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`session_required`: the request is authenticated by an API key, which belongs to a workspace, not to a person.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/workspaces/{id}/members":{"get":{"operationId":"listWorkspaceMembers","summary":"List the members of the workspace the caller acts in","description":"A portal session, or an OAuth or device token that acts as a person, with the `member:manage` permission (owner and admin) and the `members:manage` scope; never an API key. The `id` must be the workspace the session acts in (`X-Taggor-Workspace` picks it).","tags":["workspaces"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["members:manage"],"x-required-action":"member:manage","parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of members, newest membership first.","content":{"application/json":{"example":{"data":[{"id":"usr_0123456789abcdefghjkmnpqrs","name":"Ana","email":"ana@agency.test","role":"owner","joined_at":"2026-11-02T12:00:00.000Z"}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/WorkspaceMemberPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: the id is not the workspace the caller acts in (also a workspace that does not exist or that the person does not belong to).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No workspace with this id among the workspaces you act in.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/members","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/api-keys":{"post":{"operationId":"createApiKey","summary":"Create an API key of the workspace (portal session only); its secret is shown only in this response","tags":["api-keys"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["keys:manage"],"x-required-action":"api_key:manage_own","x-human-only":"api_key_create","parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyRequest"}}}},"responses":{"201":{"description":"The key and its `secret`. Store the secret now: it is never shown again, and a repeat with the same `Idempotency-Key` creates another key instead of replaying this response.","content":{"application/json":{"example":{"id":"key_0123456789abcdefghjkmnpqrs","name":"CI deploy","scopes":["components:read","versions:publish"],"display_prefix":"tgr_live_7Gq2LmZ0","created_by":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-10-31T12:00:00.000Z","last_used_at":null,"revoked_at":null,"secret":"tgr_live_7Gq2LmZ0pX4rT9wK1cV8bN3mD6sF0hJ21hjDxx"},"schema":{"$ref":"#/components/schemas/CreatedApiKey"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: body /scopes/0. See errors[].","instance":"/v1/api-keys","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/scopes/0","code":"invalid_value","message":"Invalid option: expected one of \"components:read\"|\"components:write\"|…"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted). Also `api_key_creation_requires_session`: the request is authenticated by an API key; `api_key_scope_exceeds_role`: a requested scope is above the creator's role; `permission_denied`: the role (a viewer) may not create keys.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"api_key_creation_requires_session":{"value":{"type":"https://docs.taggor.dev/errors/api_key_creation_requires_session","title":"Only a portal session creates API keys","status":403,"detail":"Only a portal session creates API keys; an API key may only list and revoke them. Create the key in the portal.","instance":"/v1/api-keys","code":"api_key_creation_requires_session","hint":"Create the API key in the portal (Settings, API keys), then use it here.","docs_url":"https://docs.taggor.dev/errors/api_key_creation_requires_session","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"api_key_scope_exceeds_role":{"value":{"type":"https://docs.taggor.dev/errors/api_key_scope_exceeds_role","title":"The requested scopes exceed the creator's workspace role","status":403,"detail":"A key cannot hold more than its creator's role allows; remove keys:manage.","instance":"/v1/api-keys","code":"api_key_scope_exceeds_role","hint":"Request only scopes your workspace role allows, or ask an owner to create the key.","docs_url":"https://docs.taggor.dev/errors/api_key_scope_exceeds_role","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"permission_denied":{"value":{"type":"https://docs.taggor.dev/errors/permission_denied","title":"The workspace role does not permit this action","status":403,"detail":"The current workspace role does not permit this action.","instance":"/v1/api-keys","code":"permission_denied","hint":"Ask a workspace owner or admin to do this, or to raise your role.","docs_url":"https://docs.taggor.dev/errors/permission_denied","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope keys:manage. Create an API key that has it.","instance":"/v1/api-keys","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["keys:manage"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/api-keys","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"409":{"description":"`api_key_quota_exceeded`: the workspace holds the limit of active (unrevoked) API keys of its plan, or an admin or member holds its own limit (the plan keeps places for an owner); revoke one and retry. Also `idempotency_request_in_progress`: a request with this `Idempotency-Key` is still running.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/api_key_quota_exceeded","title":"The workspace reached its limit of active API keys","status":409,"detail":"The workspace already holds 20 active API keys, the limit open to you (the plan keeps places for an owner); revoke one you no longer use.","instance":"/v1/api-keys","code":"api_key_quota_exceeded","hint":"Revoke a key you no longer use (`DELETE /v1/api-keys/{id}`), then create the new one. A higher plan helps only where its limit is higher: the active API keys of each plan are in the plans table at https://taggor.dev/pricing#limits.","docs_url":"https://docs.taggor.dev/errors/api_key_quota_exceeded","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listApiKeys","summary":"List the unrevoked API keys of the workspace, newest first","tags":["api-keys"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["keys:manage"],"x-required-action":"api_key:revoke_own","x-human-only":"api_key_revoke","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of keys, without secrets.","content":{"application/json":{"example":{"data":[{"id":"key_0123456789abcdefghjkmnpqrs","name":"CI deploy","scopes":["components:read","versions:publish"],"display_prefix":"tgr_live_7Gq2LmZ0","created_by":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-10-31T12:00:00.000Z","last_used_at":null,"revoked_at":null}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/ApiKeyPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied`: the session has no role in the workspace; `insufficient_scope`: the API key lacks `keys:manage` (see `missing_scopes`).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"permission_denied":{"value":{"type":"https://docs.taggor.dev/errors/permission_denied","title":"The workspace role does not permit this action","status":403,"detail":"The current workspace role does not permit this action.","instance":"/v1/api-keys","code":"permission_denied","hint":"Ask a workspace owner or admin to do this, or to raise your role.","docs_url":"https://docs.taggor.dev/errors/permission_denied","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope keys:manage. Create an API key that has it.","instance":"/v1/api-keys","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["keys:manage"]}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/api-keys/{id}":{"get":{"operationId":"getApiKey","summary":"Read one unrevoked API key of the workspace, without its secret","tags":["api-keys"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["keys:manage"],"x-required-action":"api_key:revoke_own","x-human-only":"api_key_revoke","parameters":[{"schema":{"type":"string","pattern":"^key_[0-9a-hjkmnp-tv-z]{26}$","description":"Public api_key id.","example":"key_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public api_key id.","name":"id","in":"path"}],"responses":{"200":{"description":"The key, without its secret.","content":{"application/json":{"example":{"id":"key_0123456789abcdefghjkmnpqrs","name":"CI deploy","scopes":["components:read","versions:publish"],"display_prefix":"tgr_live_7Gq2LmZ0","created_by":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-10-31T12:00:00.000Z","last_used_at":null,"revoked_at":null},"schema":{"$ref":"#/components/schemas/ApiKey"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: body /scopes/0. See errors[].","instance":"/v1/api-keys","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/scopes/0","code":"invalid_value","message":"Invalid option: expected one of \"components:read\"|\"components:write\"|…"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied`: the session has no role in the workspace; `insufficient_scope`: the API key lacks `keys:manage` (see `missing_scopes`).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"permission_denied":{"value":{"type":"https://docs.taggor.dev/errors/permission_denied","title":"The workspace role does not permit this action","status":403,"detail":"The current workspace role does not permit this action.","instance":"/v1/api-keys","code":"permission_denied","hint":"Ask a workspace owner or admin to do this, or to raise your role.","docs_url":"https://docs.taggor.dev/errors/permission_denied","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope keys:manage. Create an API key that has it.","instance":"/v1/api-keys","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["keys:manage"]}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no unrevoked key with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No API key with this id in your workspace (or it was revoked).","instance":"/v1/api-keys/key_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"revokeApiKey","summary":"Revoke an API key of the workspace: the next request with it gets 401","tags":["api-keys"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["keys:manage"],"x-required-action":"api_key:revoke_own","x-human-only":"api_key_revoke","parameters":[{"schema":{"type":"string","pattern":"^key_[0-9a-hjkmnp-tv-z]{26}$","description":"Public api_key id.","example":"key_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public api_key id.","name":"id","in":"path"}],"responses":{"200":{"description":"The revoked key; it no longer authenticates anything.","content":{"application/json":{"example":{"id":"key_0123456789abcdefghjkmnpqrs","name":"CI deploy","scopes":["components:read","versions:publish"],"display_prefix":"tgr_live_7Gq2LmZ0","created_by":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-10-31T12:00:00.000Z","last_used_at":"2026-10-31T12:30:00.000Z","revoked_at":"2026-10-31T13:00:00.000Z"},"schema":{"$ref":"#/components/schemas/ApiKey"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: body /scopes/0. See errors[].","instance":"/v1/api-keys","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/scopes/0","code":"invalid_value","message":"Invalid option: expected one of \"components:read\"|\"components:write\"|…"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied`: the session has no role in the workspace; `permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"permission_denied":{"value":{"type":"https://docs.taggor.dev/errors/permission_denied","title":"The workspace role does not permit this action","status":403,"detail":"The current workspace role does not permit this action.","instance":"/v1/api-keys/key_0123456789abcdefghjkmnpqrs","code":"permission_denied","hint":"Ask a workspace owner or admin to do this, or to raise your role.","docs_url":"https://docs.taggor.dev/errors/permission_denied","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope keys:manage. Create an API key that has it.","instance":"/v1/api-keys/key_0123456789abcdefghjkmnpqrs","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["keys:manage"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/api-keys/key_0123456789abcdefghjkmnpqrs","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no unrevoked key with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No API key with this id in your workspace (or it was revoked).","instance":"/v1/api-keys/key_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`api_key_in_use`: the request is authenticated by the very key it revokes; revoke it from the portal or with another key.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/api_key_in_use","title":"An API key cannot revoke itself","status":409,"detail":"This request is authenticated by the key it revokes. Revoke it from the portal or with another key that has keys:manage.","instance":"/v1/api-keys/key_0123456789abcdefghjkmnpqrs","code":"api_key_in_use","hint":"Revoke this key with another credential (another key or the portal).","docs_url":"https://docs.taggor.dev/errors/api_key_in_use","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/audit-events":{"get":{"operationId":"listAuditEvents","summary":"List the audit events of the workspace, newest first","tags":["audit"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["keys:manage"],"x-required-action":"api_key:manage","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of events.","content":{"application/json":{"example":{"data":[{"id":"aud_0123456789abcdefghjkmnpqrs","actor_id":"usr_0123456789abcdefghjkmnpqrs","actor_kind":"session","channel":"portal","action":"channel.promote","resource_kind":"component","resource_id":"cmp_0123456789abcdefghjkmnpqrs","summary":{"channel":"production","from_version_id":"ver_9876543210abcdefghjkmnpqrs","to_version_id":"ver_0123456789abcdefghjkmnpqrs"},"ip_prefix":"203.0.113.0/24","request_id":"7f6c1f0e-8b52-4c0e-9d57-0a1f2c3b4d5e","created_at":"2026-11-08T12:00:00.000Z"}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/AuditEventPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/support-sessions":{"get":{"operationId":"listSupportSessions","summary":"List the support sessions Taggor staff opened in the workspace, newest first","tags":["support-sessions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["keys:manage"],"x-required-action":"api_key:manage","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of support sessions.","content":{"application/json":{"example":{"data":[{"id":"imp_0123456789abcdefghjkmnpqrs","staff":"taggor-staff","read_only":true,"reason":"Support ticket: the contact form does not publish","status":"ended","started_at":"2026-11-10T12:00:00.000Z","expires_at":"2026-11-10T12:30:00.000Z","ended_at":"2026-11-10T12:12:00.000Z"}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/SupportSessionPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/me/mcp-tool-calls":{"post":{"operationId":"recordMcpToolCall","security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"none","summary":"Record one tool call of the MCP server in the audit trail","description":"Called by the MCP server with the person's OAuth token before it runs a tool; the call is refused for any other kind of credential. Stores one `mcp.tool_call` audit event (channel `mcp`).","tags":["audit"],"x-idempotency-exempt":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpToolCallRequest"}}}},"responses":{"200":{"description":"Recorded.","content":{"application/json":{"example":{"recorded":true},"schema":{"$ref":"#/components/schemas/McpToolCallRecorded"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the body is not a tool name, a decision and a component id.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/sites":{"post":{"operationId":"createSite","summary":"Create a site of the workspace, with its public site key","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSiteRequest"}}}},"responses":{"201":{"description":"The site, active, with a new `site_key`.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"id":"st_0123456789abcdefghjkmnpqrs","name":"Loja Aurora","site_key":"st_k3x7m2q7ab","environment":"production","allowed_domains":["cliente.com.br","*.loja.cliente.com.br"],"status":"active","turnstile_site_key":null,"protection":{"suspects":"keep","daily_cap":1000,"respect_gpc":true},"client_id":"cl_0123456789abcdefghjkmnpqrs","created_at":"2026-11-02T12:00:00.000Z","updated_at":"2026-11-02T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Site"}}}},"400":{"description":"`validation_failed`: a bad path parameter or body field; an allowed domain that is not a hostname is a field error at `/allowed_domains/<index>` whose `code` is the reason (`has_scheme`, `has_port`, `has_path`, `is_ip_address`, …).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid allowed domain. See errors[].","instance":"/v1/sites","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/allowed_domains/1","code":"has_scheme","message":"must be a hostname without a scheme (drop https://)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"402":{"description":"`plan_limit_reached`: the workspace already holds the most its plan allows (for `POST /v1/sites`, sites). Nothing was created. `upgrade_url` says where to change plan.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/plan_limit_reached","title":"The workspace reached a limit of its plan","status":402,"detail":"A workspace on the free plan holds at most 25 sites. Nothing was created.","instance":"/v1/sites","code":"plan_limit_reached","hint":"Delete what the workspace no longer uses (for a site limit, a site it does not need), or move to a higher plan with the `upgrade_url` of the problem. Nothing was created.","docs_url":"https://docs.taggor.dev/errors/plan_limit_reached","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","limit":25,"plan_id":"free","upgrade_url":"https://app.taggor.dev/"},"schema":{"$ref":"#/components/schemas/PlanLimitProblem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"409":{"description":"`idempotency_request_in_progress`: a request with this key is still running; retry after `Retry-After` seconds.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_request_in_progress","title":"A request with this idempotency key is in progress","status":409,"detail":"A request with this Idempotency-Key is still running.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_request_in_progress","hint":"Wait a few seconds and send the same request with the same key again to get its result.","docs_url":"https://docs.taggor.dev/errors/idempotency_request_in_progress","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listSites","summary":"List the sites of the workspace, newest first","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:read"],"x-required-action":"site:read","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"},{"schema":{"type":"string","pattern":"^cl_[0-9a-hjkmnp-tv-z]{26}$","description":"Only the sites of this client. An id that is not a client of your workspace gives an empty page.","example":"cl_0123456789abcdefghjkmnpqrs"},"required":false,"description":"Only the sites of this client. An id that is not a client of your workspace gives an empty page.","name":"client_id","in":"query"}],"responses":{"200":{"description":"One page of sites; deleted sites are not listed.","content":{"application/json":{"example":{"data":[{"id":"st_0123456789abcdefghjkmnpqrs","name":"Loja Aurora","site_key":"st_k3x7m2q7ab","environment":"production","allowed_domains":["cliente.com.br","*.loja.cliente.com.br"],"status":"active","turnstile_site_key":null,"protection":{"suspects":"keep","daily_cap":1000,"respect_gpc":true},"client_id":"cl_0123456789abcdefghjkmnpqrs","created_at":"2026-11-02T12:00:00.000Z","updated_at":"2026-11-02T12:00:00.000Z"}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/SitePage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/sites/{id}":{"get":{"operationId":"getSite","summary":"Read one site of the workspace","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:read"],"x-required-action":"site:read","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"id","in":"path"}],"responses":{"200":{"description":"The site.","content":{"application/json":{"example":{"id":"st_0123456789abcdefghjkmnpqrs","name":"Loja Aurora","site_key":"st_k3x7m2q7ab","environment":"production","allowed_domains":["cliente.com.br","*.loja.cliente.com.br"],"status":"active","turnstile_site_key":null,"protection":{"suspects":"keep","daily_cap":1000,"respect_gpc":true},"client_id":"cl_0123456789abcdefghjkmnpqrs","created_at":"2026-11-02T12:00:00.000Z","updated_at":"2026-11-02T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Site"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field; an allowed domain that is not a hostname is a field error at `/allowed_domains/<index>` whose `code` is the reason (`has_scheme`, `has_port`, `has_path`, `is_ip_address`, …).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid allowed domain. See errors[].","instance":"/v1/sites","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/allowed_domains/1","code":"has_scheme","message":"must be a hostname without a scheme (drop https://)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site with this id in the caller's workspace (also another workspace's, and a deleted one).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/sites/st_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"patch":{"operationId":"updateSite","summary":"Change a site's name, environment, allowed domains or status","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSiteRequest"}}}},"responses":{"200":{"description":"The site after the change. `site_key` never changes.","content":{"application/json":{"example":{"id":"st_0123456789abcdefghjkmnpqrs","name":"Loja Aurora","site_key":"st_k3x7m2q7ab","environment":"production","allowed_domains":["cliente.com.br","*.loja.cliente.com.br"],"status":"disabled","turnstile_site_key":null,"protection":{"suspects":"keep","daily_cap":1000,"respect_gpc":true},"client_id":"cl_0123456789abcdefghjkmnpqrs","created_at":"2026-11-02T12:00:00.000Z","updated_at":"2026-11-02T13:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Site"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field; an allowed domain that is not a hostname is a field error at `/allowed_domains/<index>` whose `code` is the reason (`has_scheme`, `has_port`, `has_path`, `is_ip_address`, …).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid allowed domain. See errors[].","instance":"/v1/sites","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/allowed_domains/1","code":"has_scheme","message":"must be a hostname without a scheme (drop https://)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site with this id in the caller's workspace (also another workspace's, and a deleted one).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/sites/st_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteSite","summary":"Delete a site: it stops being served and every later read of it is a 404","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"id","in":"path"}],"responses":{"200":{"description":"The site as it was deleted (status `deleted`). Its `site_key` is not reused.","content":{"application/json":{"example":{"id":"st_0123456789abcdefghjkmnpqrs","name":"Loja Aurora","site_key":"st_k3x7m2q7ab","environment":"production","allowed_domains":["cliente.com.br","*.loja.cliente.com.br"],"status":"deleted","turnstile_site_key":null,"protection":{"suspects":"keep","daily_cap":1000,"respect_gpc":true},"client_id":"cl_0123456789abcdefghjkmnpqrs","created_at":"2026-11-02T12:00:00.000Z","updated_at":"2026-11-02T14:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Site"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field; an allowed domain that is not a hostname is a field error at `/allowed_domains/<index>` whose `code` is the reason (`has_scheme`, `has_port`, `has_path`, `is_ip_address`, …).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid allowed domain. See errors[].","instance":"/v1/sites","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/allowed_domains/1","code":"has_scheme","message":"must be a hostname without a scheme (drop https://)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site with this id in the caller's workspace (also another workspace's, and a deleted one).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/sites/st_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/sites/{id}/snippet":{"get":{"operationId":"getSiteSnippet","summary":"Get the HTML snippet to paste into the site","description":"One async script tag that loads the site's loader from the Taggor origin; it is the only code a site installs. Available for a disabled site too, so it can be pasted before the site goes live. With `preload=true` the `html` also starts with the `<link>` hints that load the loader and the runtime early; paste it all in `<head>`.","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:read"],"x-required-action":"site:read","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"id","in":"path"},{"schema":{"type":"string","enum":["1","2","3"],"description":"Seconds (1 to 3, no more: the page is never held longer) to keep the page's `.taggor-region` invisible until its components are defined; after that the page's own fallback shows, so Taggor being down or slow costs at most this long. Adds a `<style>` to the snippet, for `<head>`. Absent: no hold (the default)."},"required":false,"description":"Seconds (1 to 3, no more: the page is never held longer) to keep the page's `.taggor-region` invisible until its components are defined; after that the page's own fallback shows, so Taggor being down or slow costs at most this long. Adds a `<style>` to the snippet, for `<head>`. Absent: no hold (the default).","name":"hold","in":"query"},{"schema":{"type":"string","enum":["true","false"],"description":"`true`: the snippet also carries `<link>` hints for the page's `<head>`: `preconnect` to the CDN, `preload` of the loader and, when the runtime version the site is served can be read, `modulepreload` of the runtime, so a page that is mostly components shows them earlier. Component bundles change with every publish, so they are not in it. Absent or `false`: the plain script tag."},"required":false,"description":"`true`: the snippet also carries `<link>` hints for the page's `<head>`: `preconnect` to the CDN, `preload` of the loader and, when the runtime version the site is served can be read, `modulepreload` of the runtime, so a page that is mostly components shows them earlier. Component bundles change with every publish, so they are not in it. Absent or `false`: the plain script tag.","name":"preload","in":"query"}],"responses":{"200":{"description":"The snippet of the site.","content":{"application/json":{"example":{"html":"<script async src=\"https://cdn.taggorcdn.com/s/st_k3x7m2q7ab.js\"></script>","src":"https://cdn.taggorcdn.com/s/st_k3x7m2q7ab.js"},"schema":{"$ref":"#/components/schemas/SiteSnippet"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field; an allowed domain that is not a hostname is a field error at `/allowed_domains/<index>` whose `code` is the reason (`has_scheme`, `has_port`, `has_path`, `is_ip_address`, …).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid allowed domain. See errors[].","instance":"/v1/sites","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/allowed_domains/1","code":"has_scheme","message":"must be a hostname without a scheme (drop https://)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site with this id in the caller's workspace (also another workspace's, and a deleted one).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/sites/st_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/sites/{id}/installation":{"get":{"operationId":"getSiteInstallation","summary":"Check whether pages load the site's snippet","description":"Whether the snippet was seen loading in the last 24 hours, from the loader requests Taggor's edge records (only the site key and the hostname of the page's `Referer`; never an IP, path, query or user agent). `detected`: a page of an allowed domain (or one that sent no `Referer`) loaded it. `domain_mismatch`: only pages outside the allowed domains did; `hostnames` lists them. `not_detected`: none. A hint for onboarding, not proof (the `Referer` can be forged, so nothing authorizes on it). `unavailable` is true when the hits could not be read; the status is then `not_detected` and means \"unknown\". Results are cached for a short time, so a first page load can take about a minute to show.","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:read"],"x-required-action":"site:read","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"id","in":"path"}],"responses":{"200":{"description":"The installation status of the site.","content":{"application/json":{"example":{"status":"domain_mismatch","last_seen_at":"2026-11-03T12:00:00.000Z","hostnames":[{"hostname":"staging.cliente.com.br","allowed":false,"last_seen_at":"2026-11-03T12:00:00.000Z","hits":3}],"window_hours":24,"unavailable":false},"schema":{"$ref":"#/components/schemas/SiteInstallation"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field; an allowed domain that is not a hostname is a field error at `/allowed_domains/<index>` whose `code` is the reason (`has_scheme`, `has_port`, `has_path`, `is_ip_address`, …).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid allowed domain. See errors[].","instance":"/v1/sites","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/allowed_domains/1","code":"has_scheme","message":"must be a hostname without a scheme (drop https://)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site with this id in the caller's workspace (also another workspace's, and a deleted one).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/sites/st_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/sites/{id}/submission-usage":{"get":{"operationId":"getSiteSubmissionUsage","summary":"Read how much of the site's daily submission cap is used","description":"The daily cap of the site, the platform ceiling it can be raised to, how many submissions without a human check the last 24 hours stored, and whether the cap was reached. The portal uses it for its notice; a CLI or agent can read it before changing `protection`.","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:read"],"x-required-action":"site:read","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"id","in":"path"}],"responses":{"200":{"description":"The cap and its use.","content":{"application/json":{"example":{"daily_cap":1000,"daily_cap_max":5000,"used_24h":120,"capped":false},"schema":{"$ref":"#/components/schemas/SiteSubmissionUsage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field; an allowed domain that is not a hostname is a field error at `/allowed_domains/<index>` whose `code` is the reason (`has_scheme`, `has_port`, `has_path`, `is_ip_address`, …).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid allowed domain. See errors[].","instance":"/v1/sites","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/allowed_domains/1","code":"has_scheme","message":"must be a hostname without a scheme (drop https://)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site with this id in the caller's workspace (also another workspace's, and a deleted one).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/sites/st_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/sites/{id}/disable":{"post":{"operationId":"disableSite","summary":"Switch a site off (kill switch): the edge stops delivering its components","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"responses":{"200":{"description":"The site, now `disabled`; its manifest was recompiled. Also when it already was.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"id":"st_0123456789abcdefghjkmnpqrs","name":"Loja Aurora","site_key":"st_k3x7m2q7ab","environment":"production","allowed_domains":["cliente.com.br","*.loja.cliente.com.br"],"status":"disabled","turnstile_site_key":null,"protection":{"suspects":"keep","daily_cap":1000,"respect_gpc":true},"client_id":"cl_0123456789abcdefghjkmnpqrs","created_at":"2026-11-02T12:00:00.000Z","updated_at":"2026-11-02T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Site"}}}},"400":{"description":"`validation_failed`: a bad path parameter or body field; an allowed domain that is not a hostname is a field error at `/allowed_domains/<index>` whose `code` is the reason (`has_scheme`, `has_port`, `has_path`, `is_ip_address`, …).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid allowed domain. See errors[].","instance":"/v1/sites","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/allowed_domains/1","code":"has_scheme","message":"must be a hostname without a scheme (drop https://)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site with this id in the caller's workspace (also another workspace's, and a deleted one).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/sites/st_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`idempotency_request_in_progress`: a request with this key is still running; retry after `Retry-After` seconds.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_request_in_progress","title":"A request with this idempotency key is in progress","status":409,"detail":"A request with this Idempotency-Key is still running.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_request_in_progress","hint":"Wait a few seconds and send the same request with the same key again to get its result.","docs_url":"https://docs.taggor.dev/errors/idempotency_request_in_progress","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/sites/{id}/enable":{"post":{"operationId":"enableSite","summary":"Switch a disabled site back on","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"responses":{"200":{"description":"The site, now `active`; its manifest was recompiled. Also when it already was.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"id":"st_0123456789abcdefghjkmnpqrs","name":"Loja Aurora","site_key":"st_k3x7m2q7ab","environment":"production","allowed_domains":["cliente.com.br","*.loja.cliente.com.br"],"status":"active","turnstile_site_key":null,"protection":{"suspects":"keep","daily_cap":1000,"respect_gpc":true},"client_id":"cl_0123456789abcdefghjkmnpqrs","created_at":"2026-11-02T12:00:00.000Z","updated_at":"2026-11-02T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Site"}}}},"400":{"description":"`validation_failed`: a bad path parameter or body field; an allowed domain that is not a hostname is a field error at `/allowed_domains/<index>` whose `code` is the reason (`has_scheme`, `has_port`, `has_path`, `is_ip_address`, …).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid allowed domain. See errors[].","instance":"/v1/sites","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/allowed_domains/1","code":"has_scheme","message":"must be a hostname without a scheme (drop https://)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site with this id in the caller's workspace (also another workspace's, and a deleted one).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/sites/st_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`idempotency_request_in_progress`: a request with this key is still running; retry after `Retry-After` seconds.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_request_in_progress","title":"A request with this idempotency key is in progress","status":409,"detail":"A request with this Idempotency-Key is still running.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_request_in_progress","hint":"Wait a few seconds and send the same request with the same key again to get its result.","docs_url":"https://docs.taggor.dev/errors/idempotency_request_in_progress","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/usage":{"get":{"operationId":"getUsage","summary":"Read what the workspace used this month against its plan","tags":["usage"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["metrics:read"],"x-required-action":"none","responses":{"200":{"description":"The month's usage (UTC). Approximate and a little behind; it measures and never refuses anything.","content":{"application/json":{"example":{"workspace_id":"ws_0123456789abcdefghjkmnpqrs","plan_id":"free","period_start":"2026-11-01T00:00:00.000Z","period_end":"2026-12-01T00:00:00.000Z","as_of":"2026-11-10T12:00:00.000Z","renders_available":true,"renders":{"used":1200,"limit":10000,"percent":12,"level":"ok"},"enforceable_renders":{"used":1200,"limit":10000,"percent":12,"level":"ok"},"submissions":{"used":40,"limit":250,"percent":16,"level":"ok"},"storage":{"used":2048,"limit":250000000,"percent":0,"level":"ok"},"sites":{"used":1,"limit":25,"percent":4,"level":"ok","items":[{"id":"st_0123456789abcdefghjkmnpqrs","site_key":"st_abcdefghij","name":"Shop","environment":"production","renders":1200,"suspect":false,"ssr_renders":300}]},"ssr_available":true,"ssr_renders":{"used":300,"limit":10000,"percent":3,"level":"ok"},"limits":[{"name":"buildsPerWeek","unit":"count","window":"week","notice":"on_refusal","limit":150,"used":12,"percent":8,"level":"ok","resets_at":"2026-11-14T09:30:00.000Z","detail":null,"policy":"hard","overage_quantity":null},{"name":"maxFiles","unit":"count","window":"each","notice":"on_refusal","limit":500,"used":null,"percent":null,"level":null,"resets_at":null,"detail":null,"policy":"hard","overage_quantity":null}],"overage":{"enabled":false,"spend_cap_usd_cents":null,"spend_cap_used_percent":0,"spend_cap_reached":false,"accrued_cost_usd_micros":0,"estimated_cost_usd_micros":0,"awaiting_acceptance":false,"charge_currency":"usd","items":[],"mode":"off"}},"schema":{"$ref":"#/components/schemas/Usage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/metrics":{"get":{"operationId":"getMetrics","summary":"Read the workspace's loader deliveries, impressions, submissions and submission rate, with the source and trust of each","tags":["metrics"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["metrics:read"],"x-required-action":"none","parameters":[{"schema":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339. Default: 7 days (`day`) or 24 hours (`hour`) before `to`. Not older than 90 days."},"required":false,"description":"Start of the window (inclusive), RFC 3339. Default: 7 days (`day`) or 24 hours (`hour`) before `to`. Not older than 90 days.","name":"from","in":"query"},{"schema":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339. Default: now."},"required":false,"description":"End of the window (exclusive), RFC 3339. Default: now.","name":"to","in":"query"},{"schema":{"type":"string","enum":["hour","day"],"description":"Bucket width: `hour` (window of at most 7 days) or `day` (at most 90 days). Default `day`."},"required":false,"description":"Bucket width: `hour` (window of at most 7 days) or `day` (at most 90 days). Default `day`.","name":"granularity","in":"query"},{"schema":{"type":"string","enum":["site","component","version","country","device","hostname","event"],"description":"Break the numbers down by `site`, `component`, `version`, `country`, `device`, `hostname` or `event`. Submissions are cut by `site`, `component` and `version`; loader deliveries by `site`; browser events by `site`, `country` (two letters, as the platform reports it), `device` (`mobile`, `desktop`, `tablet` or `other`), `hostname` and `event` (the name of a `track` event). A metric a breakdown cannot cut is `null` per group, and a group of the last four has totals and no series. The group `unknown` holds the events that carried no value."},"required":false,"description":"Break the numbers down by `site`, `component`, `version`, `country`, `device`, `hostname` or `event`. Submissions are cut by `site`, `component` and `version`; loader deliveries by `site`; browser events by `site`, `country` (two letters, as the platform reports it), `device` (`mobile`, `desktop`, `tablet` or `other`), `hostname` and `event` (the name of a `track` event). A metric a breakdown cannot cut is `null` per group, and a group of the last four has totals and no series. The group `unknown` holds the events that carried no value.","name":"group_by","in":"query"},{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Only this site of your workspace; another workspace's id is a 404.","example":"st_0123456789abcdefghjkmnpqrs"},"required":false,"description":"Only this site of your workspace; another workspace's id is a 404.","name":"site_id","in":"query"},{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Only the submissions of this component; loader deliveries and browser events cannot be cut by component and are `null`.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":false,"description":"Only the submissions of this component; loader deliveries and browser events cannot be cut by component and are `null`.","name":"component_id","in":"query"},{"schema":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Only the submissions of this version; loader deliveries and browser events are `null`.","example":"ver_0123456789abcdefghjkmnpqrs"},"required":false,"description":"Only the submissions of this version; loader deliveries and browser events are `null`.","name":"version_id","in":"query"},{"schema":{"type":"string","enum":["production","staging"],"description":"Which sites: `production` (default) or `staging`."},"required":false,"description":"Which sites: `production` (default) or `staging`.","name":"environment","in":"query"}],"responses":{"200":{"description":"The window, bucket by bucket, with `totals` and (with `group_by`) `groups`. A `null` value is \"no data\", never zero; `metrics` says which metric has a source and how far to trust it.","content":{"application/json":{"example":{"workspace_id":"ws_0123456789abcdefghjkmnpqrs","from":"2026-11-03T00:00:00.000Z","to":"2026-11-10T00:00:00.000Z","granularity":"day","environment":"production","group_by":"version","group_by_available":true,"as_of":"2026-11-10T12:00:00.000Z","truncated":false,"metrics":[{"name":"loader_deliveries","source":"loader_hits","trust":"forgeable","available":true,"reason":null,"breakdown_available":true},{"name":"submissions","source":"submissions","trust":"counted","available":true,"reason":null,"breakdown_available":true},{"name":"impressions","source":"component_events","trust":"forgeable","available":true,"reason":null,"breakdown_available":true},{"name":"custom_events","source":"component_events","trust":"forgeable","available":true,"reason":null,"breakdown_available":true},{"name":"submission_rate","source":"component_events","trust":"forgeable","available":true,"reason":null,"breakdown_available":true}],"totals":{"loader_deliveries":1480,"submissions":12,"impressions":1360,"custom_events":51,"submission_rate":0.0088},"series":[{"start":"2026-11-09T00:00:00.000Z","values":{"loader_deliveries":210,"submissions":3,"impressions":190,"custom_events":8,"submission_rate":0.0158}}],"groups":[{"key":"ver_0123456789abcdefghjkmnpqrs","name":"contact-form@1.1.0","totals":{"loader_deliveries":null,"submissions":12,"impressions":null,"custom_events":null,"submission_rate":null},"series":[{"start":"2026-11-09T00:00:00.000Z","values":{"loader_deliveries":null,"submissions":3,"impressions":null,"custom_events":null,"submission_rate":null}}]}]},"schema":{"$ref":"#/components/schemas/Metrics"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a value outside its list, `from` not before `to`, a window longer than the bucket width allows (7 days of `hour`, 90 of `day`), `from` older than 90 days, or a `group_by=site` that would pass the row limit (see `errors[]`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"The metrics query is not valid: see errors.","instance":"/v1/metrics","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/from","code":"range_too_large","message":"the window of hour buckets is at most 7 days"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: `site_id` is not a live site of the caller's workspace in this environment (also another workspace's).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/metrics","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/metrics/export":{"get":{"operationId":"exportMetrics","summary":"Download one site's daily metrics as CSV or NDJSON","description":"Streams one row per UTC day: `day`, `site_id`, `loader_deliveries` (trust `forgeable`, not a verified impression) and `submissions` (trust `counted`); an empty CSV cell or a JSON `null` is \"no data\", never zero. Days come from the Analytics Engine while it holds them and from the daily aggregates after that, as in `GET /v1/metrics`. Aggregates only: no visitor data.","tags":["metrics"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["metrics:read"],"x-required-action":"none","parameters":[{"schema":{"type":"string","enum":["csv","ndjson"],"default":"csv","description":"File format: `csv` (default) or `ndjson`."},"required":false,"description":"File format: `csv` (default) or `ndjson`.","name":"format","in":"query"},{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"The site to export (required); another workspace's id is a 404.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"The site to export (required); another workspace's id is a 404.","name":"site_id","in":"query"},{"schema":{"type":"string","format":"date-time","description":"First day (inclusive), RFC 3339, cut to the UTC day. Default: 30 days before `to`. Not older than the days your plan keeps metrics."},"required":false,"description":"First day (inclusive), RFC 3339, cut to the UTC day. Default: 30 days before `to`. Not older than the days your plan keeps metrics.","name":"from","in":"query"},{"schema":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339. Default: now."},"required":false,"description":"End of the window (exclusive), RFC 3339. Default: now.","name":"to","in":"query"},{"schema":{"type":"string","enum":["production","staging"],"description":"Which sites: `production` (default) or `staging`."},"required":false,"description":"Which sites: `production` (default) or `staging`.","name":"environment","in":"query"}],"responses":{"200":{"description":"The file, as an attachment.","content":{"text/csv":{"example":"day,site_id,loader_deliveries,submissions\r\n2026-11-09,st_0123456789abcdefghjkmnpqrs,210,3\r\n","schema":{"type":"string"}},"application/x-ndjson":{"example":"{\"day\":\"2026-11-09\",\"site_id\":\"st_0123456789abcdefghjkmnpqrs\",\"loader_deliveries\":210,\"submissions\":3}\n","schema":{"type":"string"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: `from` not before `to`, or older than the days your plan keeps metrics (see `errors[]`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"The metrics query is not valid: see errors.","instance":"/v1/metrics/export","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/from","code":"before_retention","message":"from is older than the 365 days the metrics are kept"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: `site_id` is not a live site of the caller's workspace in this environment.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/metrics/export","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/metrics/parameters":{"get":{"operationId":"getMetricParameters","summary":"Read the free parameters of the workspace's browser events, summed by value","description":"Components send events with free parameters (`track('plan-selected', { selectedPlan: 'yearly' })`); this sums the events by the value of each parameter and filters by event, parameter or value. The values are the customer's own and are never interpreted. Technical limits only: values are at most 100 characters, an event carries at most 25 parameters, and past 100 distinct values of one parameter the rest is folded into `(other)`. Source `component_events`, trust `forgeable`.","tags":["metrics"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["metrics:read"],"x-required-action":"none","parameters":[{"schema":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339. Default: 7 days (`day`) or 24 hours (`hour`) before `to`. Not older than 90 days."},"required":false,"description":"Start of the window (inclusive), RFC 3339. Default: 7 days (`day`) or 24 hours (`hour`) before `to`. Not older than 90 days.","name":"from","in":"query"},{"schema":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339. Default: now."},"required":false,"description":"End of the window (exclusive), RFC 3339. Default: now.","name":"to","in":"query"},{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Only this site of your workspace; another workspace's id is a 404.","example":"st_0123456789abcdefghjkmnpqrs"},"required":false,"description":"Only this site of your workspace; another workspace's id is a 404.","name":"site_id","in":"query"},{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Only the events of this component; another workspace's id finds nothing.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":false,"description":"Only the events of this component; another workspace's id finds nothing.","name":"component_id","in":"query"},{"schema":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{1,64}$","description":"Only the events with this name (the name given to `track`)."},"required":false,"description":"Only the events with this name (the name given to `track`).","name":"event","in":"query"},{"schema":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,39}$","description":"Only this parameter, by name (letters, digits and `_`)."},"required":false,"description":"Only this parameter, by name (letters, digits and `_`).","name":"parameter","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":100,"description":"Only this value of the parameter, an exact match. It is applied before the fold into `(other)` (past the 100 values kept apart per parameter), so a value that would be folded is found by its own name within the rows the read returned; `truncated: true` means the window had more rows than one read returns."},"required":false,"description":"Only this value of the parameter, an exact match. It is applied before the fold into `(other)` (past the 100 values kept apart per parameter), so a value that would be folded is found by its own name within the rows the read returned; `truncated: true` means the window had more rows than one read returns.","name":"value","in":"query"},{"schema":{"type":"string","enum":["production","staging"],"description":"Which sites: `production` (default) or `staging`."},"required":false,"description":"Which sites: `production` (default) or `staging`.","name":"environment","in":"query"}],"responses":{"200":{"description":"The parameters of the window with the events per value. `available: false` says why there is nothing (never zero).","content":{"application/json":{"example":{"workspace_id":"ws_0123456789abcdefghjkmnpqrs","from":"2026-11-03T00:00:00.000Z","to":"2026-11-10T00:00:00.000Z","environment":"production","as_of":"2026-11-10T12:00:00.000Z","available":true,"reason":null,"truncated":false,"parameters":[{"event":"plan-selected","parameter":"selectedPlan","total":64,"values":[{"value":"yearly","events":40,"other":false},{"value":"monthly","events":22,"other":false},{"value":"(other)","events":2,"other":true}]}]},"schema":{"$ref":"#/components/schemas/MetricParameters"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: `from` not before `to`, a window longer than 90 days, `from` older than 90 days, or a name outside its pattern (see `errors[]`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"The metrics query is not valid: see errors.","instance":"/v1/metrics/parameters","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/from","code":"not_before_to","message":"from must be before to"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: `site_id` is not a live site of the caller's workspace in this environment (also another workspace's).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/metrics/parameters","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/errors":{"get":{"operationId":"listComponentErrors","summary":"List the runtime errors of a component grouped by stack, with source positions, and the error rate of each version","tags":["metrics"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["metrics:read"],"x-required-action":"none","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339. Default: 24 hours before `to`. Not older than 30 days."},"required":false,"description":"Start of the window (inclusive), RFC 3339. Default: 24 hours before `to`. Not older than 30 days.","name":"from","in":"query"},{"schema":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339. Default: now."},"required":false,"description":"End of the window (exclusive), RFC 3339. Default: now.","name":"to","in":"query"},{"schema":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Only this version of the component (default: its 100 newest).","example":"ver_0123456789abcdefghjkmnpqrs"},"required":false,"description":"Only this version of the component (default: its 100 newest).","name":"version_id","in":"query"},{"schema":{"type":"string","enum":["production","staging"],"description":"Which sites: `production` (default) or `staging`."},"required":false,"description":"Which sites: `production` (default) or `staging`.","name":"environment","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"description":"Most groups returned, most frequent first. 1 to 100, default 50."},"required":false,"description":"Most groups returned, most frequent first. 1 to 100, default 50.","name":"limit","in":"query"}],"responses":{"200":{"description":"The error groups of the window, most frequent first, and `error_rate` (errors / mounts) per version. `available: false` means the events store could not be read.","content":{"application/json":{"example":{"component_id":"cmp_0123456789abcdefghjkmnpqrs","from":"2026-11-10T12:00:00.000Z","to":"2026-11-11T12:00:00.000Z","environment":"production","as_of":"2026-11-11T12:00:00.000Z","trust":"forgeable","available":true,"truncated":false,"versions":[{"version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.1.0","mounts":200,"errors":7,"error_rate":0.035,"forgeable":true}],"groups":[{"version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.1.0","kind":"render","hash":"3f9a1c2b7d4e55","count":7,"first_seen":"2026-11-11T10:00:00.000Z","last_seen":"2026-11-11T11:30:00.000Z","message":"Cannot read properties of undefined (reading 'title')","symbolicated":true,"frames":[{"generated_line":1,"generated_column":2345,"source":"src/hero.tsx","line":18,"column":12,"name":"Hero"}]}]},"schema":{"$ref":"#/components/schemas/ComponentErrors"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: `from` not before `to`, a window over 30 days, `from` older than 30 days, or a bad `limit` (see `errors[]`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"The errors query is not valid: see errors.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/errors","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/from","code":"range_too_large","message":"the window is at most 30 days"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/billing/usage":{"get":{"operationId":"getBillingUsage","summary":"Read the cycle's usage, limits and projection","tags":["billing"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["metrics:read"],"x-required-action":"none","responses":{"200":{"description":"The cycle's usage (UTC month) with a linear projection. Approximate and a little behind; it measures and never refuses or charges anything.","content":{"application/json":{"example":{"workspace_id":"ws_0123456789abcdefghjkmnpqrs","plan_id":"pro","plan_source":"subscription","cycle_start":"2026-11-01T00:00:00.000Z","cycle_end":"2026-12-01T00:00:00.000Z","as_of":"2026-11-11T00:00:00.000Z","renders_available":true,"renders":{"used":100000,"limit":1000000,"projected":300000,"projected_level":"ok","policy":"metered","overage_quantity":0},"submissions":{"used":90,"limit":20000,"projected":270,"projected_level":"ok","policy":"metered","overage_quantity":0},"storage":{"used":2048,"limit":5000000000,"policy":"metered","overage_quantity":0},"sites":{"used":3,"limit":25,"policy":"metered","overage_quantity":0},"checkout_currency":"usd","overage":{"enabled":true,"spend_cap_usd_cents":5000,"spend_cap_used_percent":0,"spend_cap_reached":false,"accrued_cost_usd_micros":0,"estimated_cost_usd_micros":0,"awaiting_acceptance":false,"charge_currency":"usd","items":[]}},"schema":{"$ref":"#/components/schemas/BillingUsage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/billing/checkout-session":{"post":{"operationId":"createBillingCheckoutSession","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"billing:subscribe","x-human-only":"billing","summary":"Start a checkout for a paid plan","description":"Owner or admin, portal session only. Creates the workspace's Stripe customer on first use and returns Stripe's hosted page. The plan becomes active when Stripe's webhook says so, not when this call returns. 404 while billing is off.","tags":["billing"],"parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingCheckoutInput"}}}},"responses":{"201":{"description":"The hosted page to send the person to.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"url":"https://checkout.stripe.com/c/pay/cs_test_example","currency":"usd","trial_days":null},"schema":{"$ref":"#/components/schemas/BillingCheckoutSession"}}}},"400":{"description":"`validation_failed`: the body is invalid or the plan is not purchasable.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: billing is off in this environment.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`billing_conflict` (also `idempotency_request_in_progress`): the workspace already has a subscription, or already used its trial. `legal_versions_changed`: the text of A.3 or A.4, or its prices, changed since the page was read.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"502":{"description":"`billing_rejected`: Stripe answered and refused the request (retrying will not help); nothing was charged.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`billing_unavailable`: Stripe could not be reached or the price is not configured; nothing was charged. `legal_acceptance_unavailable`: the prices of A.4 cannot be read now.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/billing/portal-session":{"post":{"operationId":"createBillingPortalSession","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"billing:subscribe","x-human-only":"billing","summary":"Open the Stripe customer portal","description":"Owner or admin, portal session only. The portal manages the payment method, invoices and the subscription of the workspace's own Stripe customer. 404 while billing is off.","tags":["billing"],"parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"responses":{"201":{"description":"The portal page.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"url":"https://billing.stripe.com/p/session/test_example"},"schema":{"$ref":"#/components/schemas/BillingPortalSession"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: billing is off in this environment.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`billing_conflict` (also `idempotency_request_in_progress`): the workspace has no billing account yet.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"502":{"description":"`billing_rejected`: Stripe answered and refused the request (retrying will not help).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`billing_unavailable`: Stripe could not be reached.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhooks/stripe":{"post":{"operationId":"receiveStripeWebhook","security":[],"x-required-scopes":[],"x-required-action":"none","x-idempotency-exempt":true,"summary":"Receive a Stripe webhook delivery","description":"Called only by Stripe. The body is Stripe's event JSON; it is read raw and checked against the `Stripe-Signature` header (HMAC-SHA256, 5-minute tolerance) before anything is parsed, so the body is not declared as a schema here. Answers 200 once the event is stored (a redelivery is a 200 that does nothing); the event is processed afterwards. 404 while billing is off.","tags":["billing"],"responses":{"200":{"description":"Stored (or already stored). Stripe stops retrying.","content":{"application/json":{"example":{"received":true},"schema":{"$ref":"#/components/schemas/StripeWebhookReceived"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`invalid_webhook_signature`: no valid signature on the raw body, or the body is not an event. Nothing was stored.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_webhook_signature","title":"The webhook signature is invalid","status":400,"detail":"The webhook signature is missing, stale or does not match.","instance":"/v1/webhooks/stripe","code":"invalid_webhook_signature","hint":"Only Stripe calls this endpoint, so this concerns whoever sets up the Stripe integration. Check that the signing secret of the endpoint in the Stripe dashboard is the one Taggor holds for this environment and that nothing between Stripe and Taggor changes the request body; Stripe retries the delivery on its own.","docs_url":"https://docs.taggor.dev/errors/invalid_webhook_signature","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: billing is off in this environment.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/webhooks/resend":{"post":{"operationId":"receiveResendWebhook","security":[],"x-required-scopes":[],"x-required-action":"none","x-idempotency-exempt":true,"summary":"Receive a Resend webhook delivery","description":"Called only by Resend. The body is Resend's event JSON; it is read raw and checked against the Svix headers (`svix-id`, `svix-timestamp`, `svix-signature`: HMAC-SHA256, 5-minute tolerance) before anything is parsed, so the body is not declared as a schema here. A permanent bounce or a spam complaint stops further e-mail to that address (a complaint only for non-critical mail). Answers 200 once handled (a retry is a 200 that does nothing). 404 while no signing secret is configured.","tags":["email"],"responses":{"200":{"description":"Handled (or already handled, or an event type we do not use).","content":{"application/json":{"example":{"received":true},"schema":{"$ref":"#/components/schemas/ResendWebhookReceived"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`invalid_webhook_signature`: no valid signature on the raw body, or the body is not JSON. Nothing was stored.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_webhook_signature","title":"The webhook signature is invalid","status":400,"detail":"The webhook signature is missing, stale or does not match.","instance":"/v1/webhooks/resend","code":"invalid_webhook_signature","hint":"Only Stripe calls this endpoint, so this concerns whoever sets up the Stripe integration. Check that the signing secret of the endpoint in the Stripe dashboard is the one Taggor holds for this environment and that nothing between Stripe and Taggor changes the request body; Stripe retries the delivery on its own.","docs_url":"https://docs.taggor.dev/errors/invalid_webhook_signature","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: the Resend webhook is not configured in this environment.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/billing/overage":{"get":{"operationId":"getBillingOverage","summary":"Read the overage spending cap","tags":["billing"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["metrics:read"],"x-required-action":"none","responses":{"200":{"description":"Whether the overage runs, whether this workspace can pay one, and the cap in force.","content":{"application/json":{"example":{"eligible":true,"spend_cap_usd_cents":null,"default_spend_cap_usd_cents":null,"is_default":true,"milestones_usd_cents":[700,1400,2800,7000],"milestones_are_default":true},"schema":{"$ref":"#/components/schemas/OverageSettings"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: the overage is not wired in this environment.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"put":{"operationId":"setBillingOverageCap","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"billing:subscribe","x-human-only":"billing","summary":"Change the overage spending limit and milestones","description":"Owner or admin, portal session only. The spending limit is optional (`null` removes it) and is a try to stop the use, without guarantee: the bill is never clamped to it. The milestones are the amounts of overage at which you get an e-mail.","tags":["billing"],"parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverageCapInput"}}}},"responses":{"200":{"description":"The cap is changed; the body is the settings now.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"eligible":true,"spend_cap_usd_cents":null,"default_spend_cap_usd_cents":null,"is_default":true,"milestones_usd_cents":[700,1400,2800,7000],"milestones_are_default":true},"schema":{"$ref":"#/components/schemas/OverageSettings"}}}},"400":{"description":"`validation_failed`: the limit is not a whole number of cents between US$ 1 and US$ 10,000, or the milestones are not 1 to 10 distinct amounts.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: the overage is not wired in this environment.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`idempotency_request_in_progress`: a request with this key is still running; retry after `Retry-After` seconds.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_request_in_progress","title":"A request with this idempotency key is in progress","status":409,"detail":"A request with this Idempotency-Key is still running.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_request_in_progress","hint":"Wait a few seconds and send the same request with the same key again to get its result.","docs_url":"https://docs.taggor.dev/errors/idempotency_request_in_progress","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/pricing":{"get":{"operationId":"getPricing","security":[],"x-required-scopes":[],"x-required-action":"none","summary":"The usage prices in force and the scheduled ones","description":"Public. The price of one unit above the plan for each metric, in micro US dollars; the same table that bills, so a page that shows it never drifts.","tags":["billing"],"responses":{"200":{"description":"The rates in force and the scheduled versions.","content":{"application/json":{"example":{"rates":[{"metric":"renders","plan":"pro","unit":"unit","micro_usd_per_unit":20,"version":1,"effective_from":"1970-01-01T00:00:00.000Z"}],"upcoming":[{"metric":"renders","plan":"pro","unit":"unit","micro_usd_per_unit":25,"version":2,"effective_from":"2027-01-15T00:00:00.000Z"}]},"schema":{"$ref":"#/components/schemas/Pricing"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/billing/overage/consent":{"get":{"operationId":"getBillingOverageConsent","summary":"Read the invitation to accept the usage price","tags":["billing"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["metrics:read"],"x-required-action":"none","responses":{"200":{"description":"Whether the workspace is invited, whether it accepted, and the text.","content":{"application/json":{"example":{"required":true,"accepted":false,"plan":"pro"},"schema":{"$ref":"#/components/schemas/OverageConsent"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: the overage is not wired in this environment.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"acceptBillingOverageConsent","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"billing:subscribe","x-human-only":"billing","summary":"Accept the usage price","description":"Owner or admin, portal session only. Records that the person accepted the price of use above the plan, with the hash of the exact text. Until then the workspace is not billed an overage and keeps the hard limit.","tags":["billing"],"parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverageConsentInput"}}}},"responses":{"200":{"description":"Accepted (or already accepted); the body is the invitation now.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"required":true,"accepted":false,"plan":"pro"},"schema":{"$ref":"#/components/schemas/OverageConsent"}}}},"400":{"description":"`validation_failed`: no invitation applies to this workspace.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: the overage is not wired in this environment.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`legal_versions_changed` (also `idempotency_request_in_progress`): the text or the prices changed since the page was read; nothing was recorded.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`legal_acceptance_unavailable`: the prices cannot be read now.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/clients":{"post":{"operationId":"createClient","summary":"Create a client of the agency workspace","tags":["clients"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClientRequest"}}}},"responses":{"201":{"description":"The client.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"id":"cl_0123456789abcdefghjkmnpqrs","name":"Padaria Sol","contact":"Ana, ana@cliente.example","notes":null,"created_at":"2026-11-03T12:00:00.000Z","updated_at":"2026-11-03T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Client"}}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 field is invalid. See errors[].","instance":"/v1/clients","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/name","code":"too_small","message":"Too small: expected string to have >=1 characters"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"409":{"description":"`idempotency_request_in_progress`: a request with this key is still running; retry after `Retry-After` seconds.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_request_in_progress","title":"A request with this idempotency key is in progress","status":409,"detail":"A request with this Idempotency-Key is still running.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_request_in_progress","hint":"Wait a few seconds and send the same request with the same key again to get its result.","docs_url":"https://docs.taggor.dev/errors/idempotency_request_in_progress","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listClients","summary":"List the clients of the workspace, newest first","tags":["clients"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:read"],"x-required-action":"site:read","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of clients.","content":{"application/json":{"example":{"data":[{"id":"cl_0123456789abcdefghjkmnpqrs","name":"Padaria Sol","contact":"Ana, ana@cliente.example","notes":null,"created_at":"2026-11-03T12:00:00.000Z","updated_at":"2026-11-03T12:00:00.000Z"}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/ClientPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/clients/{id}":{"get":{"operationId":"getClient","summary":"Read one client of the workspace","tags":["clients"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:read"],"x-required-action":"site:read","parameters":[{"schema":{"type":"string","pattern":"^cl_[0-9a-hjkmnp-tv-z]{26}$","description":"Public client id.","example":"cl_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public client id.","name":"id","in":"path"}],"responses":{"200":{"description":"The client.","content":{"application/json":{"example":{"id":"cl_0123456789abcdefghjkmnpqrs","name":"Padaria Sol","contact":"Ana, ana@cliente.example","notes":null,"created_at":"2026-11-03T12:00:00.000Z","updated_at":"2026-11-03T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Client"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 field is invalid. See errors[].","instance":"/v1/clients","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/name","code":"too_small","message":"Too small: expected string to have >=1 characters"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no client with this id in the caller's workspace (also another workspace's).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No client with this id in your workspace.","instance":"/v1/clients/cl_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"patch":{"operationId":"updateClient","summary":"Change a client's name, contact or notes","tags":["clients"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^cl_[0-9a-hjkmnp-tv-z]{26}$","description":"Public client id.","example":"cl_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public client id.","name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClientRequest"}}}},"responses":{"200":{"description":"The client after the change.","content":{"application/json":{"example":{"id":"cl_0123456789abcdefghjkmnpqrs","name":"Padaria Sol","contact":"Ana, ana@cliente.example","notes":"Renova em março","created_at":"2026-11-03T12:00:00.000Z","updated_at":"2026-11-03T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Client"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 field is invalid. See errors[].","instance":"/v1/clients","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/name","code":"too_small","message":"Too small: expected string to have >=1 characters"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no client with this id in the caller's workspace (also another workspace's).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No client with this id in your workspace.","instance":"/v1/clients/cl_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteClient","summary":"Delete a client that has no sites","description":"Refused with 409 `client_has_sites` while a site that is not deleted is linked to the client: move those sites to another client or unlink them with `PATCH /v1/sites/{id}` first.","tags":["clients"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^cl_[0-9a-hjkmnp-tv-z]{26}$","description":"Public client id.","example":"cl_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public client id.","name":"id","in":"path"}],"responses":{"200":{"description":"The client as it was deleted; later reads of it are 404.","content":{"application/json":{"example":{"id":"cl_0123456789abcdefghjkmnpqrs","name":"Padaria Sol","contact":"Ana, ana@cliente.example","notes":null,"created_at":"2026-11-03T12:00:00.000Z","updated_at":"2026-11-03T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Client"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 field is invalid. See errors[].","instance":"/v1/clients","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/name","code":"too_small","message":"Too small: expected string to have >=1 characters"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no client with this id in the caller's workspace (also another workspace's).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No client with this id in your workspace.","instance":"/v1/clients/cl_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`client_has_sites`: sites are still linked to the client; nothing was deleted.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/client_has_sites","title":"The client still has sites","status":409,"detail":"Sites are still linked to this client. Move them to another client or unlink them (PATCH /v1/sites/{id} with client_id), then delete again.","instance":"/v1/clients/cl_0123456789abcdefghjkmnpqrs","code":"client_has_sites","hint":"Move the client's sites to another client or delete them, then delete the client again.","docs_url":"https://docs.taggor.dev/errors/client_has_sites","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/sites/{site_id}/server-keys":{"post":{"operationId":"createSiteServerKey","summary":"Create an SSR server key of a site (turns server rendering on); its secret is shown only in this response","description":"A person must first enable server-side rendering for the workspace, once, in the portal (acceptance A.5 of the Terms; `POST /v1/workspaces/{id}/ssr-acceptance` is the person's own act): until then this answers 403 `human_action_required` with the page and the steps, and no key is generated. After that an agent may create and revoke keys without a new acceptance. The secret is in this response only: put it in the server's environment, never in a log, a chat or the repository.","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"site_id","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"responses":{"201":{"description":"The key and its `secret`. Store the secret now in the server's environment: it is never shown again, and a repeat with the same `Idempotency-Key` creates another key instead of replaying this response.","content":{"application/json":{"example":{"id":"ssk_0123456789abcdefghjkmnpqrs","site_id":"st_0123456789abcdefghjkmnpqrs","display_prefix":"tgs_live_9Fh3QpL2","created_by":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-11-13T12:00:00.000Z","revoked_at":null,"secret":"tgs_live_9Fh3QpL2mZ7xV4tR8cW1nB6kD0sJ5gY23DqdPx"},"schema":{"$ref":"#/components/schemas/CreatedServerKey"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /site_id. See errors[].","instance":"/v1/sites/x/server-keys","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/site_id","code":"invalid_format","message":"Invalid string: must match pattern"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted). Also `human_action_required` (with `human_action.action` `ssr_acceptance`): no person has enabled server-side rendering for the workspace yet (acceptance A.5 of the Terms, `POST /v1/workspaces/{id}/ssr-acceptance`): tell the person where to do it and do not retry. Revoking a key never needs it.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site with this id in the caller's workspace (also another workspace's, and a deleted one).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/sites/st_0123456789abcdefghjkmnpqrs/server-keys","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`server_key_limit_reached`: the site already holds two unrevoked server keys (current and previous); revoke one and retry. Also `idempotency_request_in_progress`: a request with this `Idempotency-Key` is still running.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/server_key_limit_reached","title":"The site already holds its two SSR server keys","status":409,"detail":"The site already holds 2 server keys (the current one and the previous one); revoke the one you no longer deploy, then create the new key.","instance":"/v1/sites/st_0123456789abcdefghjkmnpqrs/server-keys","code":"server_key_limit_reached","hint":"Revoke the key your servers no longer send (`DELETE /v1/sites/{site_id}/server-keys/{key_id}`), then create the new one.","docs_url":"https://docs.taggor.dev/errors/server_key_limit_reached","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listSiteServerKeys","summary":"List the unrevoked SSR server keys of a site (prefix and date, never the secret)","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:read"],"x-required-action":"site:read","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"site_id","in":"path"}],"responses":{"200":{"description":"The unrevoked keys, newest first (at most two).","content":{"application/json":{"example":{"data":[{"id":"ssk_0123456789abcdefghjkmnpqrs","site_id":"st_0123456789abcdefghjkmnpqrs","display_prefix":"tgs_live_9Fh3QpL2","created_by":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-11-13T12:00:00.000Z","revoked_at":null}]},"schema":{"$ref":"#/components/schemas/ServerKeyList"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /site_id. See errors[].","instance":"/v1/sites/x/server-keys","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/site_id","code":"invalid_format","message":"Invalid string: must match pattern"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site with this id in the caller's workspace (also another workspace's, and a deleted one).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/v1/sites/st_0123456789abcdefghjkmnpqrs/server-keys","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/sites/{site_id}/server-keys/{key_id}":{"delete":{"operationId":"revokeSiteServerKey","summary":"Revoke an SSR server key of a site: the edge refuses it within about a minute","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"site_id","in":"path"},{"schema":{"type":"string","pattern":"^ssk_[0-9a-hjkmnp-tv-z]{26}$","description":"Public server_key id.","example":"ssk_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public server_key id.","name":"key_id","in":"path"}],"responses":{"200":{"description":"The revoked key (`revoked_at` set). Also when it already was: the edge copy is published again.","content":{"application/json":{"example":{"id":"ssk_0123456789abcdefghjkmnpqrs","site_id":"st_0123456789abcdefghjkmnpqrs","display_prefix":"tgs_live_9Fh3QpL2","created_by":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-11-13T12:00:00.000Z","revoked_at":"2026-11-14T09:00:00.000Z"},"schema":{"$ref":"#/components/schemas/ServerKey"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /site_id. See errors[].","instance":"/v1/sites/x/server-keys","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/site_id","code":"invalid_format","message":"Invalid string: must match pattern"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no such site in the caller's workspace, or no key with this id on it.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No server key with this id on this site of your workspace.","instance":"/v1/sites/st_0123456789abcdefghjkmnpqrs/server-keys/ssk_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/sites/{site_id}/components":{"post":{"operationId":"attachSiteComponent","summary":"Attach a component to a site","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"site_id","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachComponentRequest"}}}},"responses":{"200":{"description":"The component was already attached: nothing changed. The manifest was recompiled again.","content":{"application/json":{"example":{"component_id":"cmp_0123456789abcdefghjkmnpqrs","tag":"price-card","channel":"production","enabled":true,"archived":false,"props":{"accent":"#0a7d3b"},"suspended_props":{},"created_at":"2026-11-02T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/SiteComponent"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"201":{"description":"The component is now attached; the site's manifest was recompiled.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"component_id":"cmp_0123456789abcdefghjkmnpqrs","tag":"price-card","channel":"production","enabled":true,"archived":false,"props":{"accent":"#0a7d3b"},"suspended_props":{},"created_at":"2026-11-02T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/SiteComponent"}}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site (or, when attaching, component) with this id in the caller's workspace; also another workspace's.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/sites/st_0123456789abcdefghjkmnpqrs/components","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`tag_conflict` (another attached component has the same tag: `tag`, `component_ids`), `component_archived`, `site_component_limit` or `idempotency_request_in_progress`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/tag_conflict","title":"Two components of the site use the same Custom Element tag","status":409,"detail":"Another component attached to this site already uses the tag \"price-card\".","instance":"/sites/st_0123456789abcdefghjkmnpqrs/components","code":"tag_conflict","hint":"Detach one of the two components from the site, or rename the tag of one of them.","docs_url":"https://docs.taggor.dev/errors/tag_conflict","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","tag":"price-card","component_ids":["cmp_0123456789abcdefghjkmnpqrs","cmp_9876543210abcdefghjkmnpqrs"]},"schema":{"$ref":"#/components/schemas/AttachConflictProblem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listSiteComponents","summary":"List the components attached to a site","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:read"],"x-required-action":"site:read","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"site_id","in":"path"}],"responses":{"200":{"description":"The attachments, oldest first (a site holds at most 50).","content":{"application/json":{"example":{"data":[{"component_id":"cmp_0123456789abcdefghjkmnpqrs","tag":"price-card","channel":"production","enabled":true,"archived":false,"props":{"accent":"#0a7d3b"},"suspended_props":{},"created_at":"2026-11-02T12:00:00.000Z"}]},"schema":{"$ref":"#/components/schemas/SiteComponentList"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site (or, when attaching, component) with this id in the caller's workspace; also another workspace's.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/sites/st_0123456789abcdefghjkmnpqrs/components","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/sites/{site_id}/components/{component_id}":{"delete":{"operationId":"detachSiteComponent","summary":"Detach a component from a site","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"site_id","in":"path"},{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"component_id","in":"path"}],"responses":{"200":{"description":"The component is not attached any more, also when it never was; the site's manifest was recompiled.","content":{"application/json":{"example":{"component_id":"cmp_0123456789abcdefghjkmnpqrs","attached":false},"schema":{"$ref":"#/components/schemas/DetachedSiteComponent"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site (or, when attaching, component) with this id in the caller's workspace; also another workspace's.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/sites/st_0123456789abcdefghjkmnpqrs/components","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"patch":{"operationId":"updateSiteComponent","summary":"Switch an attached component off or on for this site (kill switch)","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"site_id","in":"path"},{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"component_id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSiteComponentRequest"}}}},"responses":{"200":{"description":"The attachment after the change; the site's manifest was recompiled, so the edge stops (or resumes) delivering the component within the KV propagation time.","content":{"application/json":{"example":{"component_id":"cmp_0123456789abcdefghjkmnpqrs","tag":"price-card","channel":"production","enabled":false,"archived":false,"props":{"accent":"#0a7d3b"},"suspended_props":{},"created_at":"2026-11-02T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/SiteComponent"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site (or, when attaching, component) with this id in the caller's workspace; also another workspace's.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/sites/st_0123456789abcdefghjkmnpqrs/components","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/sites/{site_id}/components/{component_id}/props":{"put":{"operationId":"setSiteComponentProps","summary":"Set the props a site gives an attached component","description":"Replaces the props of this attachment. They are validated against the props the component's version on the attachment's channel declares and become the `defaults` of the component in the site's manifest; the attribute written on the page wins over them, and they win over the component's own default.","tags":["sites"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:write"],"x-required-action":"site:write","parameters":[{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Public site id.","example":"st_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public site id.","name":"site_id","in":"path"},{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"component_id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetSiteComponentPropsRequest"}}}},"responses":{"200":{"description":"The attachment with its props; the site's manifest was recompiled and its cached loader purged.","content":{"application/json":{"example":{"component_id":"cmp_0123456789abcdefghjkmnpqrs","tag":"price-card","channel":"production","enabled":true,"archived":false,"props":{"accent":"#0a7d3b"},"suspended_props":{},"created_at":"2026-11-02T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/SiteComponent"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or a malformed body.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no site (or, when attaching, component) with this id in the caller's workspace; also another workspace's.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No site with this id in your workspace.","instance":"/sites/st_0123456789abcdefghjkmnpqrs/components","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`channel_has_no_version` (nothing was promoted to the attachment's channel yet), `component_archived`, or `site_props_conflict` (`expected_props_revision` or `expected_attached_at` is no longer the attachment's: read it again).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`site_props_invalid`: a prop the version does not declare or a value of the wrong type; `errors[]` has the JSON Pointer of each (at most 50).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/site_props_invalid","title":"The site's props do not fit the component","status":422,"detail":"The props do not fit version 1.2.0 of the component.","instance":"/sites/st_0123456789abcdefghjkmnpqrs/components/cmp_0123456789abcdefghjkmnpqrs/props","code":"site_props_invalid","hint":"Fix each path listed in errors (a prop the component declares, with a value of its type) and send the props again.","docs_url":"https://docs.taggor.dev/errors/site_props_invalid","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"body","path":"/props/accent","code":"invalid_value","message":"Invalid color"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/collections":{"get":{"operationId":"listCollections","summary":"List the collections of the workspace's components, newest first","tags":["data"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["data:read"],"x-required-action":"data:read","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of collections.","content":{"application/json":{"example":{"data":[{"id":"col_0123456789abcdefghjkmnpqrs","component_id":"cmp_0123456789abcdefghjkmnpqrs","name":"subscribers","schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"]},"schema_version":1,"visibility":"private","retention_days":365,"status":"active","created_at":"2026-11-02T12:00:00.000Z","updated_at":"2026-11-02T12:00:00.000Z"}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/CollectionPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/collections/{id}":{"get":{"operationId":"getCollection","summary":"Read one collection of the workspace","tags":["data"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["data:read"],"x-required-action":"data:read","parameters":[{"schema":{"type":"string","pattern":"^col_[0-9a-hjkmnp-tv-z]{26}$","description":"Public collection id.","example":"col_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public collection id.","name":"id","in":"path"}],"responses":{"200":{"description":"The collection.","content":{"application/json":{"example":{"id":"col_0123456789abcdefghjkmnpqrs","component_id":"cmp_0123456789abcdefghjkmnpqrs","name":"subscribers","schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"]},"schema_version":1,"visibility":"private","retention_days":365,"status":"active","created_at":"2026-11-02T12:00:00.000Z","updated_at":"2026-11-02T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Collection"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"The request has invalid fields. See errors[].","instance":"/v1/submissions/x","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_string","message":"Invalid submission id."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no collection with this id in the caller's workspace (also another workspace's).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No collection with this id in your workspace.","instance":"/v1/collections/col_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"patch":{"operationId":"updateCollection","summary":"Change how long a collection keeps its submissions","description":"Only the retention can be changed here (the schema comes from the component manifest). Shortening it makes older submissions due for the next daily deletion; deletion is for good.","tags":["data"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["data:write"],"x-required-action":"data:delete","parameters":[{"schema":{"type":"string","pattern":"^col_[0-9a-hjkmnp-tv-z]{26}$","description":"Public collection id.","example":"col_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public collection id.","name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCollectionRequest"}}}},"responses":{"200":{"description":"The collection after the change.","content":{"application/json":{"example":{"id":"col_0123456789abcdefghjkmnpqrs","component_id":"cmp_0123456789abcdefghjkmnpqrs","name":"subscribers","schema":{"type":"object","properties":{"email":{"type":"string","format":"email"}},"required":["email"]},"schema_version":1,"visibility":"private","retention_days":365,"status":"active","created_at":"2026-11-02T12:00:00.000Z","updated_at":"2026-11-02T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Collection"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"The request has invalid fields. See errors[].","instance":"/v1/submissions/x","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_string","message":"Invalid submission id."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no collection with this id in the caller's workspace (also another workspace's).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No collection with this id in your workspace.","instance":"/v1/collections/col_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`retention_exceeds_plan`: more days than the plan keeps; `limit` is the most it keeps.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/retention_exceeds_plan","title":"A collection cannot keep submissions longer than the plan does","status":422,"detail":"The free plan keeps submissions at most 365 days.","instance":"/v1/collections/col_0123456789abcdefghjkmnpqrs","code":"retention_exceeds_plan","hint":"Ask for no more days than the `limit` of the problem (what the plan keeps), or move to a higher plan with its `upgrade_url`. Asking for fewer days is always accepted.","docs_url":"https://docs.taggor.dev/errors/retention_exceeds_plan","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","limit":365,"plan_id":"free","upgrade_url":"https://app.taggor.dev/"},"schema":{"$ref":"#/components/schemas/PlanLimitProblem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/collections/{id}/submissions":{"get":{"operationId":"listCollectionSubmissions","summary":"List a collection's submissions, newest first","description":"Filters: `site`, `status`, `suspect`, `from` (inclusive) and `to` (exclusive). A cursor is valid only with the same filters. Submissions may hold visitors' personal data.","tags":["data"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["data:read"],"x-required-action":"submission:read","parameters":[{"schema":{"type":"string","pattern":"^col_[0-9a-hjkmnp-tv-z]{26}$","description":"Public collection id.","example":"col_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public collection id.","name":"id","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"},{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Only this site's submissions.","example":"st_0123456789abcdefghjkmnpqrs"},"required":false,"description":"Only this site's submissions.","name":"site","in":"query"},{"schema":{"type":"string","pattern":"^cl_[0-9a-hjkmnp-tv-z]{26}$","description":"Only submissions from the sites of this agency client. An id that is not a client of your workspace gives an empty page.","example":"cl_0123456789abcdefghjkmnpqrs"},"required":false,"description":"Only submissions from the sites of this agency client. An id that is not a client of your workspace gives an empty page.","name":"client","in":"query"},{"schema":{"type":"string","enum":["received","spam","over_quota"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"string","enum":["true","false"],"description":"`true`: only the submissions the bot filter marked (a filled honeypot or sent too soon after the form rendered); `false`: only the others. Absent: both."},"required":false,"description":"`true`: only the submissions the bot filter marked (a filled honeypot or sent too soon after the form rendered); `false`: only the others. Absent: both.","name":"suspect","in":"query"},{"schema":{"type":"string","format":"date-time","description":"Created at or after this instant (ISO 8601)."},"required":false,"description":"Created at or after this instant (ISO 8601).","name":"from","in":"query"},{"schema":{"type":"string","format":"date-time","description":"Created before this instant (ISO 8601)."},"required":false,"description":"Created before this instant (ISO 8601).","name":"to","in":"query"}],"responses":{"200":{"description":"One page of submissions.","content":{"application/json":{"example":{"data":[{"id":"sub_0123456789abcdefghjkmnpqrs","collection_id":"col_0123456789abcdefghjkmnpqrs","site_id":"st_0123456789abcdefghjkmnpqrs","component_version_hash":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","schema_version":1,"data":{"email":"visitor@example.com"},"meta":{"page":"/pricing","country":"BR","browser":"firefox"},"status":"received","verification":"verified","suspect":null,"created_at":"2026-11-02T12:30:00.000Z"}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/SubmissionPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no collection with this id in the caller's workspace (also another workspace's).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No collection with this id in your workspace.","instance":"/v1/collections/col_0123456789abcdefghjkmnpqrs/submissions","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/collections/{id}/export":{"get":{"operationId":"exportCollectionSubmissions","summary":"Download a collection's submissions as CSV or NDJSON","description":"Streams the submissions newest first, with the filters `site`, `status`, `suspect`, `from` (inclusive) and `to` (exclusive). CSV: UTF-8 with BOM, CRLF, ISO 8601 UTC instants, one column per field of the latest schema then one per field of older versions; text cells starting with `=`, `+`, `-`, `@`, tab or CR get a leading `'`. NDJSON: one submission object per line, as in the list. At most 500000 rows; narrow the period past that. Contains visitors' personal data.","tags":["data"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["data:read"],"x-required-action":"data:export","parameters":[{"schema":{"type":"string","pattern":"^col_[0-9a-hjkmnp-tv-z]{26}$","description":"Public collection id.","example":"col_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public collection id.","name":"id","in":"path"},{"schema":{"type":"string","enum":["csv","ndjson"],"default":"csv","description":"File format (default csv)."},"required":false,"description":"File format (default csv).","name":"format","in":"query"},{"schema":{"type":"string","pattern":"^st_[0-9a-hjkmnp-tv-z]{26}$","description":"Only this site's submissions.","example":"st_0123456789abcdefghjkmnpqrs"},"required":false,"description":"Only this site's submissions.","name":"site","in":"query"},{"schema":{"type":"string","pattern":"^cl_[0-9a-hjkmnp-tv-z]{26}$","description":"Only submissions from the sites of this agency client. An id that is not a client of your workspace gives an empty page.","example":"cl_0123456789abcdefghjkmnpqrs"},"required":false,"description":"Only submissions from the sites of this agency client. An id that is not a client of your workspace gives an empty page.","name":"client","in":"query"},{"schema":{"type":"string","enum":["received","spam","over_quota"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"string","enum":["true","false"],"description":"`true`: only the submissions the bot filter marked (a filled honeypot or sent too soon after the form rendered); `false`: only the others. Absent: both."},"required":false,"description":"`true`: only the submissions the bot filter marked (a filled honeypot or sent too soon after the form rendered); `false`: only the others. Absent: both.","name":"suspect","in":"query"},{"schema":{"type":"string","format":"date-time","description":"Created at or after this instant (ISO 8601)."},"required":false,"description":"Created at or after this instant (ISO 8601).","name":"from","in":"query"},{"schema":{"type":"string","format":"date-time","description":"Created before this instant (ISO 8601)."},"required":false,"description":"Created before this instant (ISO 8601).","name":"to","in":"query"}],"responses":{"200":{"description":"The file, as an attachment.","content":{"text/csv":{"example":"id,created_at,status,site_id,schema_version,page,country,browser,verification,suspect,email\r\nsub_0123456789abcdefghjkmnpqrs,2026-11-02T12:30:00.000Z,received,st_0123456789abcdefghjkmnpqrs,1,/pricing,BR,firefox,verified,,visitor@example.com\r\n","schema":{"type":"string"}},"application/x-ndjson":{"example":"{\"id\":\"sub_0123456789abcdefghjkmnpqrs\",\"collection_id\":\"col_0123456789abcdefghjkmnpqrs\",\"site_id\":\"st_0123456789abcdefghjkmnpqrs\",\"component_version_hash\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"schema_version\":1,\"data\":{\"email\":\"visitor@example.com\"},\"meta\":{\"page\":\"/pricing\",\"country\":\"BR\",\"browser\":\"firefox\"},\"status\":\"received\",\"verification\":\"verified\",\"suspect\":null,\"created_at\":\"2026-11-02T12:30:00.000Z\"}\n","schema":{"type":"string"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"The request has invalid fields. See errors[].","instance":"/v1/submissions/x","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_string","message":"Invalid submission id."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no collection with this id in the caller's workspace (also another workspace's).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No collection with this id in your workspace.","instance":"/v1/collections/col_0123456789abcdefghjkmnpqrs/export","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`export_too_large`: more than 500000 submissions match; narrow `from`/`to`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/export_too_large","title":"The export holds too many submissions","status":422,"detail":"More than 500000 submissions match. Narrow the period with from and to.","instance":"/v1/collections/col_0123456789abcdefghjkmnpqrs/export","code":"export_too_large","hint":"Narrow the export with a date range (`since`) and export in parts.","docs_url":"https://docs.taggor.dev/errors/export_too_large","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/submissions/{id}":{"get":{"operationId":"getSubmission","summary":"Read one submission","tags":["data"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["data:read"],"x-required-action":"submission:read","parameters":[{"schema":{"type":"string","pattern":"^sub_[0-9a-hjkmnp-tv-z]{26}$","description":"Public submission id.","example":"sub_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public submission id.","name":"id","in":"path"}],"responses":{"200":{"description":"The submission.","content":{"application/json":{"example":{"id":"sub_0123456789abcdefghjkmnpqrs","collection_id":"col_0123456789abcdefghjkmnpqrs","site_id":"st_0123456789abcdefghjkmnpqrs","component_version_hash":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","schema_version":1,"data":{"email":"visitor@example.com"},"meta":{"page":"/pricing","country":"BR","browser":"firefox"},"status":"received","verification":"verified","suspect":null,"created_at":"2026-11-02T12:30:00.000Z"},"schema":{"$ref":"#/components/schemas/Submission"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"The request has invalid fields. See errors[].","instance":"/v1/submissions/x","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_string","message":"Invalid submission id."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no submission with this id in the caller's workspace (also another workspace's).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No submission with this id in your workspace.","instance":"/v1/submissions/sub_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"deleteSubmission","summary":"Delete a submission for good","description":"Removes the row from the database; it cannot be recovered. Use it to honor a visitor's request to erase their data.","tags":["data"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["data:write"],"x-required-action":"data:delete","parameters":[{"schema":{"type":"string","pattern":"^sub_[0-9a-hjkmnp-tv-z]{26}$","description":"Public submission id.","example":"sub_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public submission id.","name":"id","in":"path"}],"responses":{"200":{"description":"The submission was deleted; only its id is returned.","content":{"application/json":{"example":{"id":"sub_0123456789abcdefghjkmnpqrs","deleted":true},"schema":{"$ref":"#/components/schemas/DeletedSubmission"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"The request has invalid fields. See errors[].","instance":"/v1/submissions/x","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_string","message":"Invalid submission id."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no submission with this id in the caller's workspace (also another workspace's).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No submission with this id in your workspace.","instance":"/v1/submissions/sub_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/workspaces/{id}/invitations":{"post":{"operationId":"createInvitation","summary":"Invite an e-mail address to the workspace","description":"A portal session, or an OAuth or device token that acts as a person, with `member:manage` (owner, admin) and the `members:manage` scope; never an API key. The role may not exceed the caller's, and only a portal session may invite `owner` or `admin` (a token gets 403 `human_action_required`; it invites `member` and `viewer`). Sends the e-mail in English, whatever the invitee's saved language; the response never says whether it has one.","tags":["invitations"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["members:manage"],"x-required-action":"member:manage","parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvitationRequest"}}}},"responses":{"201":{"description":"The pending invitation (7 days). The token travels only in the e-mail.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"id":"inv_0123456789abcdefghjkmnpqrs","email":"bruno@agencia.example","role":"member","status":"pending","invited_by":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-11-02T12:00:00.000Z","expires_at":"2026-11-09T12:00:00.000Z","accepted_at":null,"revoked_at":null},"schema":{"$ref":"#/components/schemas/Invitation"}}}},"400":{"description":"`validation_failed`: a bad path parameter or body field (also an invalid e-mail, at `/email`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"`validation_failed`: a bad path parameter or body field (also an invalid e-mail, at `/email`).","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted). Also `invitation_role_exceeds_role`: the role asked for is above the caller's own; and `human_action_required` (`privileged_invitation`): only a portal session invites an owner or an admin, a token invites members and viewers.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: the workspace is not the one the session acts in, or the invitation is not in it.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"`not_found`: the workspace is not the one the session acts in, or the invitation is not in it.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`invitation_already_pending` (resend it) or `invitee_already_member`; `member_limit_reached` when the workspace's members and pending invitations already fill its plan (the body carries `limit`, `plan_id` and `upgrade_url`); also `idempotency_request_in_progress`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invitation_already_pending","title":"This address already has a pending invitation","status":409,"detail":"`invitation_already_pending` (resend it) or `invitee_already_member`; `member_limit_reached` when the workspace's members and pending invitations already fill its plan (the body carries `limit`, `plan_id` and `upgrade_url`); also `idempotency_request_in_progress`.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"invitation_already_pending","hint":"Wait for the person to accept, or revoke the pending invitation before sending another.","docs_url":"https://docs.taggor.dev/errors/invitation_already_pending","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"`invitation_quota_exceeded`: 50 invitations (new or resent) were already sent today (UTC). `Retry-After` says when the day ends.","headers":{"Retry-After":{"description":"Seconds until the next UTC day.","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invitation_quota_exceeded","title":"Too many invitations sent today in this workspace","status":429,"detail":"`invitation_quota_exceeded`: 50 invitations (new or resent) were already sent today (UTC). `Retry-After` says when the day ends.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"invitation_quota_exceeded","hint":"Try again tomorrow, or revoke pending invitations nobody will accept.","docs_url":"https://docs.taggor.dev/errors/invitation_quota_exceeded","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`email_unavailable`: the e-mail could not be sent now; nothing was stored.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/email_unavailable","title":"The e-mail could not be sent","status":503,"detail":"`email_unavailable`: the e-mail could not be sent now; nothing was stored.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"email_unavailable","hint":"The e-mail (an invitation or a deletion confirmation) could not be sent, so nothing was saved or scheduled. Nothing in your request needs to change: try again in a few minutes. If it keeps failing, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/email_unavailable","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"get":{"operationId":"listInvitations","summary":"List the workspace's invitations, newest first","description":"A portal session, or an OAuth or device token that acts as a person, with `member:manage` (owner, admin) and the `members:manage` scope; never an API key. Every state is listed.","tags":["invitations"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["members:manage"],"x-required-action":"member:manage","parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of invitations.","content":{"application/json":{"example":{"data":[{"id":"inv_0123456789abcdefghjkmnpqrs","email":"bruno@agencia.example","role":"member","status":"pending","invited_by":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-11-02T12:00:00.000Z","expires_at":"2026-11-09T12:00:00.000Z","accepted_at":null,"revoked_at":null}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/InvitationPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: the workspace is not the one the session acts in, or the invitation is not in it.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"`not_found`: the workspace is not the one the session acts in, or the invitation is not in it.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/workspaces/{id}/invitations/{invitation_id}/resend":{"post":{"operationId":"resendInvitation","summary":"Send a pending invitation again with a new token","description":"Needs `member:manage` and the `members:manage` scope (a session or a person's token, never an API key); a token cannot re-send an `owner` or `admin` invitation (403 `human_action_required`). The old link stops working; the deadline restarts at 7 days; counts toward the day's limit.","tags":["invitations"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["members:manage"],"x-required-action":"member:manage","parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^inv_[0-9a-hjkmnp-tv-z]{26}$","description":"Public invitation id.","example":"inv_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public invitation id.","name":"invitation_id","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"responses":{"200":{"description":"The invitation with its new deadline.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"id":"inv_0123456789abcdefghjkmnpqrs","email":"bruno@agencia.example","role":"member","status":"pending","invited_by":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-11-02T12:00:00.000Z","expires_at":"2026-11-09T12:00:00.000Z","accepted_at":null,"revoked_at":null},"schema":{"$ref":"#/components/schemas/Invitation"}}}},"400":{"description":"`validation_failed`: a bad path parameter.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"`validation_failed`: a bad path parameter.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted). Also `invitation_role_exceeds_role`: the invitation's role is above the caller's own.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: the workspace is not the one the session acts in, or the invitation is not in it.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"`not_found`: the workspace is not the one the session acts in, or the invitation is not in it.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`invitation_not_pending`: the invitation was already accepted or revoked; also `idempotency_request_in_progress`, and `member_limit_reached` when the invitation had expired (its seat was free) and the workspace's members and pending invitations already fill its plan (the body carries `limit`, `plan_id` and `upgrade_url`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invitation_not_pending","title":"The invitation is no longer pending","status":409,"detail":"`invitation_not_pending`: the invitation was already accepted or revoked; also `idempotency_request_in_progress`, and `member_limit_reached` when the invitation had expired (its seat was free) and the workspace's members and pending invitations already fill its plan (the body carries `limit`, `plan_id` and `upgrade_url`).","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"invitation_not_pending","hint":"List the invitations to see its current state; send a new one if it was revoked or expired.","docs_url":"https://docs.taggor.dev/errors/invitation_not_pending","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"`invitation_quota_exceeded`: the day's limit was reached.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invitation_quota_exceeded","title":"Too many invitations sent today in this workspace","status":429,"detail":"`invitation_quota_exceeded`: the day's limit was reached.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"invitation_quota_exceeded","hint":"Try again tomorrow, or revoke pending invitations nobody will accept.","docs_url":"https://docs.taggor.dev/errors/invitation_quota_exceeded","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`email_unavailable`: the e-mail could not be sent now.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/email_unavailable","title":"The e-mail could not be sent","status":503,"detail":"`email_unavailable`: the e-mail could not be sent now.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"email_unavailable","hint":"The e-mail (an invitation or a deletion confirmation) could not be sent, so nothing was saved or scheduled. Nothing in your request needs to change: try again in a few minutes. If it keeps failing, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/email_unavailable","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/workspaces/{id}/invitations/{invitation_id}":{"delete":{"operationId":"revokeInvitation","summary":"Revoke a pending invitation","description":"Needs `member:manage` and the `members:manage` scope (a session or a person's token, never an API key). Its link stops working at once.","tags":["invitations"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["members:manage"],"x-required-action":"member:manage","parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^inv_[0-9a-hjkmnp-tv-z]{26}$","description":"Public invitation id.","example":"inv_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public invitation id.","name":"invitation_id","in":"path"}],"responses":{"200":{"description":"The invitation, now `revoked`.","content":{"application/json":{"example":{"id":"inv_0123456789abcdefghjkmnpqrs","email":"bruno@agencia.example","role":"member","status":"revoked","invited_by":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-11-02T12:00:00.000Z","expires_at":"2026-11-09T12:00:00.000Z","accepted_at":null,"revoked_at":"2026-11-03T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Invitation"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"`validation_failed`: a bad path parameter.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted). Also `invitation_role_exceeds_role`: the invitation's role is above the caller's own.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: the workspace is not the one the session acts in, or the invitation is not in it.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"`not_found`: the workspace is not the one the session acts in, or the invitation is not in it.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`invitation_not_pending`: the invitation was already accepted or revoked (on resend, also `idempotency_request_in_progress`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invitation_not_pending","title":"The invitation is no longer pending","status":409,"detail":"`invitation_not_pending`: the invitation was already accepted or revoked (on resend, also `idempotency_request_in_progress`).","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"invitation_not_pending","hint":"List the invitations to see its current state; send a new one if it was revoked or expired.","docs_url":"https://docs.taggor.dev/errors/invitation_not_pending","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/invitations/accept":{"post":{"operationId":"acceptInvitation","summary":"Accept an invitation as the signed-in person","description":"Portal session only. The signed-in e-mail must be the invited one. Creates the membership with the invited role (an existing membership keeps its role); the token works once.","tags":["invitations"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInvitationRequest"}}}},"responses":{"200":{"description":"The person is now a member.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"workspace_id":"ws_0123456789abcdefghjkmnpqrs","role":"member"},"schema":{"$ref":"#/components/schemas/AcceptedInvitation"}}}},"400":{"description":"`validation_failed`: the body is not a token.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"`validation_failed`: the body is not a token.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted). Also `invitation_email_mismatch` (the signed-in e-mail is not the invited one) and `invitation_requires_session` (an API key cannot accept).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no invitation matches the token.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"`not_found`: no invitation matches the token.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`idempotency_request_in_progress`: a request with this key is still running; retry after `Retry-After` seconds.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_request_in_progress","title":"A request with this idempotency key is in progress","status":409,"detail":"A request with this Idempotency-Key is still running.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_request_in_progress","hint":"Wait a few seconds and send the same request with the same key again to get its result.","docs_url":"https://docs.taggor.dev/errors/idempotency_request_in_progress","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"410":{"description":"`invitation_unavailable`: expired, revoked, already used, or its sender can no longer grant the role.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invitation_unavailable","title":"The invitation can no longer be accepted","status":410,"detail":"`invitation_unavailable`: expired, revoked, already used, or its sender can no longer grant the role.","instance":"/v1/workspaces/ws_0123456789abcdefghjkmnpqrs/invitations","code":"invitation_unavailable","hint":"Ask the workspace admin to send a new invitation; this one expired or was revoked.","docs_url":"https://docs.taggor.dev/errors/invitation_unavailable","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/workspaces/{id}/deletion":{"get":{"operationId":"getWorkspaceDeletion","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"workspace:delete_cancel","x-human-only":"workspace_delete","summary":"Whether the workspace is scheduled for deletion","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"}],"responses":{"200":{"description":"The deletion status.","content":{"application/json":{"example":{"scheduled":true,"origin":"owner","requested_at":"2026-11-11T12:00:00.000Z","delete_after":"2026-11-18T12:00:00.000Z","notified":true,"grace_days":7},"schema":{"$ref":"#/components/schemas/WorkspaceDeletionStatus"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the workspace id in the path is malformed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: not the workspace the caller acts in.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"requestWorkspaceDeletion","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"workspace:delete","x-human-only":"workspace_delete","summary":"Schedule the deletion of the workspace after a grace period","description":"Owner, portal session only. The body repeats the workspace slug. Owners and admins are e-mailed with the day deletion may start and the way to cancel; nothing is deleted before that day and the 7-day notice, and the owner can cancel until then.","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDeletionInput"}}}},"responses":{"200":{"description":"Scheduled: the status, with the earliest deletion.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"scheduled":true,"origin":"owner","requested_at":"2026-11-11T12:00:00.000Z","delete_after":"2026-11-18T12:00:00.000Z","notified":true,"grace_days":7},"schema":{"$ref":"#/components/schemas/WorkspaceDeletionStatus"}}}},"400":{"description":"`validation_failed`: the typed slug is not the workspace's.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: not the workspace the caller acts in.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`workspace_deletion_scheduled` (already scheduled), `workspace_has_subscription` (cancel it in the Stripe portal first) or `owner_recently_changed` (7 days after an owner change).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"`lifecycle_rate_limited`: 5 deletion requests a day per workspace.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`email_unavailable`: e-mail cannot be sent, so nothing was scheduled.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"operationId":"cancelWorkspaceDeletion","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"workspace:delete_cancel","x-human-only":"workspace_delete","summary":"Cancel the deletion the owner asked for","description":"Owner, portal session only; an admin only as the former owner who handed the workspace over to the person who then asked for its deletion, within 14 days of the handover. Works until the erasure runs; the workspace is exactly as before. A deletion the Taggor operator scheduled is not canceled here (404).","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"}],"responses":{"200":{"description":"Canceled: the status (no longer scheduled).","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"scheduled":true,"origin":"owner","requested_at":"2026-11-11T12:00:00.000Z","delete_after":"2026-11-18T12:00:00.000Z","notified":true,"grace_days":7},"schema":{"$ref":"#/components/schemas/WorkspaceDeletionStatus"}}}},"400":{"description":"`validation_failed`: the workspace id in the path is malformed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: not the caller's workspace, or no deletion of the owner's to cancel.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/workspaces/{id}/members/{user_id}":{"delete":{"operationId":"removeWorkspaceMember","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"member:manage","x-human-only":"member_manage","summary":"Remove a member from the workspace","description":"Owner or admin, portal session only. In one step the person loses their membership, every session and device session they have in this workspace, their OAuth grants for it, and the API keys they created in it. An owner may remove anyone but the last owner; an admin only members and viewers.","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^usr_[0-9a-hjkmnp-tv-z]{26}$","description":"Public user id.","example":"usr_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public user id.","name":"user_id","in":"path"}],"responses":{"200":{"description":"The person is no longer a member.","content":{"application/json":{"example":{"id":"usr_0123456789abcdefghjkmnpqrs","previous_role":"member"},"schema":{"$ref":"#/components/schemas/RemovedMember"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a path parameter is malformed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: not the workspace the caller acts in, or the person is not a member of it.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`last_owner_protected`: the last owner cannot be removed or demoted; hand the workspace to another member first. `former_owner_protected`: someone who handed the workspace over in the last 14 days cannot be removed or demoted below admin by another person.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"patch":{"operationId":"changeWorkspaceMemberRole","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"member:manage","x-human-only":"member_manage","summary":"Change a member's role","description":"Owner or admin, portal session only. The new role holds at once on every credential of the person. An owner may set any role on anyone (the last owner cannot be demoted); an admin only changes members and viewers and cannot grant `owner`. Setting the role the person already has succeeds without change.","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^usr_[0-9a-hjkmnp-tv-z]{26}$","description":"Public user id.","example":"usr_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public user id.","name":"user_id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberRoleInput"}}}},"responses":{"200":{"description":"The person's role now.","content":{"application/json":{"example":{"id":"usr_0123456789abcdefghjkmnpqrs","role":"viewer","previous_role":"member"},"schema":{"$ref":"#/components/schemas/ChangedMember"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a path parameter or the body is malformed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: not the workspace the caller acts in, or the person is not a member of it.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`last_owner_protected`: the last owner cannot be removed or demoted; hand the workspace to another member first. `former_owner_protected`: someone who handed the workspace over in the last 14 days cannot be removed or demoted below admin by another person.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/workspaces/{id}/owner-transfer":{"get":{"operationId":"getWorkspaceOwnerTransfer","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"workspace:transfer_owner","x-human-only":"owner_transfer","summary":"The pending offer to hand the workspace to another member","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"}],"responses":{"200":{"description":"The live offer, or null.","content":{"application/json":{"example":{"transfer":{"id":"otr_0123456789abcdefghjkmnpqrs","to_user_id":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-11-11T12:00:00.000Z","ready_at":"2026-11-13T12:00:00.000Z","expires_at":"2026-11-18T12:00:00.000Z"}},"schema":{"$ref":"#/components/schemas/OwnerTransferStatus"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the workspace id in the path is malformed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: not the workspace the caller acts in.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"post":{"operationId":"offerWorkspaceOwnerTransfer","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"workspace:transfer_owner","x-human-only":"owner_transfer","summary":"Offer the workspace to another member","description":"Owner, portal session only. The target must be a member who is not an owner. The owner stays the owner until the member accepts; the member can accept only 48 hours after the offer (the owner can cancel meanwhile), the offer lasts 7 days and one is open at a time.","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerTransferInput"}}}},"responses":{"200":{"description":"The offer was made.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"id":"otr_0123456789abcdefghjkmnpqrs","to_user_id":"usr_0123456789abcdefghjkmnpqrs","created_at":"2026-11-11T12:00:00.000Z","ready_at":"2026-11-13T12:00:00.000Z","expires_at":"2026-11-18T12:00:00.000Z"},"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^otr_[0-9a-hjkmnp-tv-z]{26}$","description":"Public owner_transfer id.","example":"otr_0123456789abcdefghjkmnpqrs"},"to_user_id":{"type":"string","pattern":"^usr_[0-9a-hjkmnp-tv-z]{26}$","description":"The member who may accept.","example":"usr_0123456789abcdefghjkmnpqrs"},"created_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"},"ready_at":{"type":"string","format":"date-time","description":"The first moment the offer can be accepted: 48 hours after it was made.","example":"2026-10-30T12:34:56.789Z"},"expires_at":{"type":"string","format":"date-time","description":"ISO 8601, UTC, millisecond precision.","example":"2026-10-30T12:34:56.789Z"}},"required":["id","to_user_id","created_at","ready_at","expires_at"]}}}},"400":{"description":"`validation_failed`: the target is not a member of the workspace, or is already an owner.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: not the workspace the caller acts in.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`owner_transfer_already_pending` or `workspace_deletion_scheduled` (a workspace scheduled for deletion is not handed over).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"`lifecycle_rate_limited`: 5 ownership offers a day per workspace.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`email_unavailable`: nothing was offered.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"operationId":"cancelWorkspaceOwnerTransfer","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"workspace:transfer_owner","x-human-only":"owner_transfer","summary":"Withdraw the pending offer","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^ws_[0-9a-hjkmnp-tv-z]{26}$","description":"Public workspace id.","example":"ws_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public workspace id.","name":"id","in":"path"}],"responses":{"200":{"description":"The offer was withdrawn.","content":{"application/json":{"example":{"transfer":null},"schema":{"$ref":"#/components/schemas/OwnerTransferStatus"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the workspace id in the path is malformed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: not the caller's workspace, or no offer to withdraw.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/owner-transfers/accept":{"post":{"operationId":"acceptOwnerTransfer","security":[{"sessionCookie":[]}],"x-required-scopes":[],"x-required-action":"none","x-human-only":"owner_transfer","summary":"Accept the ownership of a workspace as the signed-in person","description":"Portal session only. The token from the e-mail works once and only for the person it was offered to. The person becomes the owner and the offering owner becomes an admin, in one step.","tags":["workspaces"],"parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerTransferAcceptInput"}}}},"responses":{"200":{"description":"The person is now the owner.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"workspace_id":"ws_0123456789abcdefghjkmnpqrs","workspace_slug":"acme"},"schema":{"$ref":"#/components/schemas/AcceptedOwnerTransfer"}}}},"400":{"description":"`validation_failed`: the body is not a token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`cross_site_request`: authenticated by the session cookie, but not from the portal (another `Origin`, or not `Content-Type: application/json`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/auth/logout","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`not_found`: no offer for this person matches the token.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`owner_transfer_not_ready` (the offer waits 48 hours before it can be accepted; `ready_at` says when and the token stays valid), `workspace_deletion_scheduled` (the workspace is scheduled for deletion) or `idempotency_request_in_progress`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"410":{"description":"`owner_transfer_unavailable`: expired, canceled, already used or stale.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/collections/{id}/notifications":{"put":{"operationId":"putCollectionNotifications","summary":"Set the e-mail notifications of a collection","description":"Replaces the settings and the recipient list (up to 5). A workspace member who may read submissions is confirmed at once; any other address is sent ONE confirmation e-mail and receives nothing until it opens the link (double opt-in). An address that unsubscribed or refused is shown as \"pending\" and is never written to. Confirmation e-mails are limited (per workspace, per address and for the platform); when one is not sent the answer is a neutral 429 and the settings are saved. Only a portal session may add an address from outside the workspace: any other credential (an API key or a token) naming one gets 403 `human_action_required`, and members only go through. Submissions marked as spam never notify; a collection that holds personal data shows values only to member recipients.","tags":["notifications"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["data:write"],"x-required-action":"data:delete","parameters":[{"schema":{"type":"string","pattern":"^col_[0-9a-hjkmnp-tv-z]{26}$","description":"Public collection id.","example":"col_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public collection id.","name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutNotificationsBody"}}}},"responses":{"200":{"description":"The stored settings, with each recipient's state.","content":{"application/json":{"example":{"collection_id":"col_0123456789abcdefghjkmnpqrs","mode":"instant","locale":"en","recipients":[{"id":"nrc_0123456789abcdefghjkmnpqrs","email":"ana@example.com","kind":"member","status":"confirmed","confirmed_at":"2026-11-08T12:00:00.000Z"}],"updated_at":"2026-11-08T12:00:00.000Z"},"schema":{"$ref":"#/components/schemas/CollectionNotifications"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body (also an invalid address, at `/recipients`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"`validation_failed`: a bad path parameter or body (also an invalid address, at `/recipients`).","instance":"/v1/collections/col_0123456789abcdefghjkmnpqrs/notifications","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no collection with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"`not_found`: no collection with this id in the caller's workspace.","instance":"/v1/collections/col_0123456789abcdefghjkmnpqrs/notifications","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"`notification_quota_exceeded`: the settings were saved, but a confirmation could not be requested right now for a recipient still pending (a limit was reached; the answer never says which, nor why).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/notification_quota_exceeded","title":"The confirmation could not be requested now","status":429,"detail":"`notification_quota_exceeded`: the settings were saved, but a confirmation could not be requested right now for a recipient still pending (a limit was reached; the answer never says which, nor why).","instance":"/v1/collections/col_0123456789abcdefghjkmnpqrs/notifications","code":"notification_quota_exceeded","hint":"The notification settings were saved; try again later. Workspace members can be recipients without a confirmation.","docs_url":"https://docs.taggor.dev/errors/notification_quota_exceeded","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/notifications/confirm":{"post":{"operationId":"confirmNotificationRecipient","summary":"Confirm a notification recipient with the token of the confirmation e-mail","description":"No credential: the single-use token is the proof. It lives 7 days.","tags":["notifications"],"security":[],"x-required-scopes":[],"x-required-action":"none","x-idempotency-exempt":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTokenBody"}}}},"responses":{"200":{"description":"The recipient is confirmed.","content":{"application/json":{"example":{"status":"confirmed"},"schema":{"$ref":"#/components/schemas/NotificationTokenResult"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the body is not `{ token }` with a token of the right shape.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"`validation_failed`: the body is not `{ token }` with a token of the right shape.","instance":"/v1/notifications/confirm","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`notification_token_invalid`: the token is unknown, used, expired or belongs to the other action.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/notification_token_invalid","title":"The notification link is not valid","status":404,"detail":"`notification_token_invalid`: the token is unknown, used, expired or belongs to the other action.","instance":"/v1/notifications/confirm","code":"notification_token_invalid","hint":"Ask a workspace owner or admin to save the notification settings again to get a new confirmation e-mail; an unsubscribe link of a newer e-mail also works.","docs_url":"https://docs.taggor.dev/errors/notification_token_invalid","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/notifications/unsubscribe":{"post":{"operationId":"unsubscribeNotificationRecipient","summary":"Unsubscribe a notification recipient with the token of any notification e-mail","description":"No credential: the token is the proof. The recipient stays on the list as `unsubscribed` and is never written to again.","tags":["notifications"],"security":[],"x-required-scopes":[],"x-required-action":"none","x-idempotency-exempt":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTokenBody"}}}},"responses":{"200":{"description":"The recipient is unsubscribed.","content":{"application/json":{"example":{"status":"unsubscribed"},"schema":{"$ref":"#/components/schemas/NotificationTokenResult"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the body is not `{ token }` with a token of the right shape.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"`validation_failed`: the body is not `{ token }` with a token of the right shape.","instance":"/v1/notifications/unsubscribe","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`notification_token_invalid`: the token is unknown, used, expired or belongs to the other action.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/notification_token_invalid","title":"The notification link is not valid","status":404,"detail":"`notification_token_invalid`: the token is unknown, used, expired or belongs to the other action.","instance":"/v1/notifications/unsubscribe","code":"notification_token_invalid","hint":"Ask a workspace owner or admin to save the notification settings again to get a new confirmation e-mail; an unsubscribe link of a newer e-mail also works.","docs_url":"https://docs.taggor.dev/errors/notification_token_invalid","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/notifications/refuse":{"post":{"operationId":"refuseNotificationRecipient","summary":"Refuse notification e-mails for good with the token of the confirmation e-mail","description":"No credential: the token is the proof. The recipient becomes `unsubscribed` and the address goes on a global suppression list: no workspace can ask for a confirmation to it again.","tags":["notifications"],"security":[],"x-required-scopes":[],"x-required-action":"none","x-idempotency-exempt":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTokenBody"}}}},"responses":{"200":{"description":"The address is suppressed.","content":{"application/json":{"example":{"status":"unsubscribed"},"schema":{"$ref":"#/components/schemas/NotificationTokenResult"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the body is not `{ token }` with a token of the right shape.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"`validation_failed`: the body is not `{ token }` with a token of the right shape.","instance":"/v1/notifications/refuse","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"`notification_token_invalid`: the token is unknown, used, expired or belongs to the other action.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/notification_token_invalid","title":"The notification link is not valid","status":404,"detail":"`notification_token_invalid`: the token is unknown, used, expired or belongs to the other action.","instance":"/v1/notifications/refuse","code":"notification_token_invalid","hint":"Ask a workspace owner or admin to save the notification settings again to get a new confirmation e-mail; an unsubscribe link of a newer e-mail also works.","docs_url":"https://docs.taggor.dev/errors/notification_token_invalid","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/abuse-reports":{"post":{"operationId":"createAbuseReport","summary":"Report abuse in a published component","description":"Public: no credential. Needs a Cloudflare Turnstile token. The answer is the same 202 whether or not the reported bundle exists or was reported before, and a report never takes anything down by itself: a person at Taggor reviews each one.","tags":["abuse"],"security":[],"x-required-scopes":[],"x-required-action":"none","x-idempotency-exempt":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"category":{"type":"string","enum":["phishing","malware","spam","illegal_content","trademark","other","intimate_content","violence_against_women"],"description":"What is being reported."},"page_url":{"type":"string","maxLength":2048,"description":"The page where the component runs. Only its origin and path are kept: a query or fragment is dropped."},"bundle_url":{"type":"string","maxLength":2048,"description":"The component's bundle address (`/b/<sha256>.js`), as the page loads it. Only the hash is used, and the URL is never fetched. It lets us find the component; the answer never says whether we did."},"tag":{"type":"string","maxLength":64,"pattern":"^[a-z][a-z0-9]*(?:-[a-z0-9]+)+$","description":"The component's custom element name on the page, e.g. `acme-banner`."},"description":{"type":"string","minLength":10,"maxLength":2000,"description":"What is wrong, as plain text: no control, format (bidi, zero-width) or line-separator characters; line breaks and tabs are fine. Stored as text and read by a person."},"email":{"type":"string","maxLength":254,"pattern":"^[A-Za-z0-9.!#$%&'*+/=?^_`{|}~-]+@[A-Za-z0-9-]+(?:\\.[A-Za-z0-9-]+)+$","description":"Optional: where to send one automatic confirmation with the case number and, when the case is decided, the decision and its reason. It is kept only while the case is open and erased when it closes. Nothing you wrote is repeated in those messages."},"locale":{"type":"string","enum":["pt-BR","en"],"description":"Language of the confirmation e-mail; `pt-BR` when absent."},"turnstile_token":{"type":"string","minLength":1,"maxLength":2048,"description":"The token of the Cloudflare Turnstile widget (single use)."}},"required":["category","page_url","description","turnstile_token"],"additionalProperties":false}}}},"responses":{"202":{"description":"The report was received.","content":{"application/json":{"example":{"status":"received"},"schema":{"type":"object","properties":{"status":{"type":"string","enum":["received"]}},"required":["status"]}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a field is missing, unknown or malformed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`captcha_failed`: the Turnstile token is missing, expired or used.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"`payload_too_large`: the body is over 16 KiB.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"`rate_limited`: too many reports from this network; retry after the delay.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds until retry."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"`abuse_reports_unavailable`: the channel is off or busy; nothing was recorded.","headers":{"Retry-After":{"schema":{"type":"string"},"description":"Seconds until retry."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/components/{id}/versions":{"post":{"operationId":"createComponentVersion","summary":"Create an immutable version from a build that passed every quality gate, or upload source code to build","tags":["versions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["versions:publish"],"x-required-action":"component:publish","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVersionRequest"}},"application/gzip":{"schema":{"type":"string","format":"binary","description":"A source package: a `.tar.gz` with `taggor.json` (optional), `package.json` and `src/`, at most 5 MiB compressed, 500 files, no symlinks, no `..` paths, only the allowed extensions, no executable config files, no secrets. Never run by the API: it is stored and built in a sandbox."}}}},"responses":{"200":{"description":"This exact source already became a version of this component: that version, unchanged (versions are immutable).","content":{"application/json":{"example":{"id":"ver_0123456789abcdefghjkmnpqrs","component_id":"cmp_0123456789abcdefghjkmnpqrs","semver":"2.0.0","content_hash":"9f2c0e5b7a1d4c3e8f6a0b2d4c6e8f0a1b3d5c7e9f0a2b4c6d8e0f1a3b5c7d9e","bundle_key":"b/9f2c0e5b7a1d4c3e8f6a0b2d4c6e8f0a1b3d5c7e9f0a2b4c6d8e0f1a3b5c7d9e.js","contract_version":"1.0.0","build_id":"bld_0123456789abcdefghjkmnpqrs","manifest":{"contractVersion":"1.0.0","name":"price-card","tag":"price-card","title":"Price card","description":"Shows a price."},"lockfile":{"lockfileVersion":1,"dependencies":{},"packages":{}},"gates":{"version":"security-rules 1; typescript 6.0.3","results":[{"gate":"typecheck","ok":true,"errors":0,"warnings":0}]},"message":null,"created_by":"local","created_at":"2026-10-31T12:00:00.000Z","compatibility":{"breaking":true,"base":{"version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.0.0","basis":"latest"},"changes":[{"member":"prop","name":"currency","kind":"removed","impact":"breaking","path":"props.currency"}],"truncated":false,"base_unreadable":false},"origin":"cli","size_gz_bytes":1820,"diagnostics":[{"code":"BREAKING_PROP_CHANGE","severity":"warning","message":"Prop \"currency\" was removed: pages that set the \"currency\" attribute or the currency property no longer change the component.","hint":"Keep \"currency\" in the manifest until no page sets \"currency\", or remove the attribute from every page and promote with allowBreaking.","docs_url":"https://docs.taggor.dev/diagnostics/BREAKING_PROP_CHANGE","manifest_path":"props.currency"}]},"schema":{"$ref":"#/components/schemas/CreatedComponentVersion"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"201":{"description":"The new version. It never changes; channels point to it. A breaking change of the manifest does not refuse it: see `compatibility` and `diagnostics`.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"id":"ver_0123456789abcdefghjkmnpqrs","component_id":"cmp_0123456789abcdefghjkmnpqrs","semver":"2.0.0","content_hash":"9f2c0e5b7a1d4c3e8f6a0b2d4c6e8f0a1b3d5c7e9f0a2b4c6d8e0f1a3b5c7d9e","bundle_key":"b/9f2c0e5b7a1d4c3e8f6a0b2d4c6e8f0a1b3d5c7e9f0a2b4c6d8e0f1a3b5c7d9e.js","contract_version":"1.0.0","build_id":"bld_0123456789abcdefghjkmnpqrs","manifest":{"contractVersion":"1.0.0","name":"price-card","tag":"price-card","title":"Price card","description":"Shows a price."},"lockfile":{"lockfileVersion":1,"dependencies":{},"packages":{}},"gates":{"version":"security-rules 1; typescript 6.0.3","results":[{"gate":"typecheck","ok":true,"errors":0,"warnings":0}]},"message":null,"created_by":"local","created_at":"2026-10-31T12:00:00.000Z","compatibility":{"breaking":true,"base":{"version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.0.0","basis":"latest"},"changes":[{"member":"prop","name":"currency","kind":"removed","impact":"breaking","path":"props.currency"}],"truncated":false,"base_unreadable":false},"origin":"cli","size_gz_bytes":1820,"diagnostics":[{"code":"BREAKING_PROP_CHANGE","severity":"warning","message":"Prop \"currency\" was removed: pages that set the \"currency\" attribute or the currency property no longer change the component.","hint":"Keep \"currency\" in the manifest until no page sets \"currency\", or remove the attribute from every page and promote with allowBreaking.","docs_url":"https://docs.taggor.dev/diagnostics/BREAKING_PROP_CHANGE","manifest_path":"props.currency"}]},"schema":{"$ref":"#/components/schemas/CreatedComponentVersion"}}}},"202":{"description":"The source was stored and a build is queued (or the workspace already had a build of this exact source: same `build_id`, no new build). Follow `Location` for its status; when it succeeded, create the version with `{ build_id }`.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}},"Location":{"description":"Path of the build's status, `/v1/builds/{build_id}`.","schema":{"type":"string"}}},"content":{"application/json":{"example":{"build_id":"bld_0123456789abcdefghjkmnpqrs","version_id":null,"status":"queued"},"schema":{"$ref":"#/components/schemas/QueuedBuild"}}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /id. See errors[].","instance":"/v1/components/x/channels","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_format","message":"must be a component id (cmp_…)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"402":{"description":"`plan_limit_reached`: the build's manifest declares more `permissions.connect` network origins than the workspace's plan allows (`connectOriginsPerVersion`). Nothing was stored. `upgrade_url` says where to change plan.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/plan_limit_reached","title":"The workspace reached a limit of its plan","status":402,"detail":"A version on the free plan declares at most 10 network origins (permissions.connect); this one declares 11. Nothing was stored.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"plan_limit_reached","hint":"Delete what the workspace no longer uses (for a site limit, a site it does not need), or move to a higher plan with the `upgrade_url` of the problem. Nothing was created.","docs_url":"https://docs.taggor.dev/errors/plan_limit_reached","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","limit":10,"plan_id":"free","upgrade_url":"https://app.taggor.dev/"},"schema":{"$ref":"#/components/schemas/PlanLimitProblem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component, or no build, with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No build with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`build_expired` (the build finished more than 7 days ago: build again), `build_not_publishable` (the build failed, is still running, or its gates or artifacts do not allow a version; see `reason` and `diagnostic_codes`), `version_already_exists` (this build or semver already has a version: `version_id`), `breaking_collection_change` (a declared collection breaks the stored schema of a collection that holds data: see `breaking_collections`; send `allow_breaking: true` or use a new collection name), `semver_bump_too_small` (the semver is not above every version, or raises a smaller part than the manifest changes require: send `suggested_semver`; see `required_bump`, `compatibility` and `diagnostics`), or `idempotency_request_in_progress`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/build_not_publishable","title":"The build cannot become a version","status":409,"detail":"Build bld_0123456789abcdefghjkmnpqrs failed (TS2322), so it cannot become a version. Fix the errors and build again.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"build_not_publishable","hint":"Read the build's diagnostics with `taggor logs <component>` (or `taggor logs bld_...` with the build id that `taggor publish` printed), fix the source and publish again. How to follow a build: https://docs.taggor.dev/quickstart/.","docs_url":"https://docs.taggor.dev/errors/build_not_publishable","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","reason":"build_failed","build_status":"failed","diagnostic_codes":["TS2322"]},"schema":{"$ref":"#/components/schemas/VersionConflictProblem"}}}},"413":{"description":"`payload_too_large`: the body, or the unpacked package, is over the limit (`diagnostics[]` says which).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/payload_too_large","title":"The request body is too large","status":413,"detail":"The source package is over the plan's limits.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"payload_too_large","hint":"Send a smaller body; for a component, pack only src/, taggor.json and package.json.","docs_url":"https://docs.taggor.dev/errors/payload_too_large","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","diagnostics":[]},"schema":{"$ref":"#/components/schemas/SourceUploadProblem"}}}},"415":{"description":"`unsupported_media_type`: send `application/json` or `application/gzip`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unsupported_media_type","title":"Unsupported media type","status":415,"detail":"Send application/json ({ build_id }) or application/gzip (a source package).","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unsupported_media_type","hint":"Send the body with the Content-Type the route documents (usually application/json).","docs_url":"https://docs.taggor.dev/errors/unsupported_media_type","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`source_package_invalid` (not a valid source package: see `diagnostics[]`, nothing was stored) or `idempotency_key_reused` (the key was used with a different request).","content":{"application/problem+json":{"examples":{"source_package_invalid":{"value":{"type":"https://docs.taggor.dev/errors/source_package_invalid","title":"The source package is not valid","status":422,"detail":"The source package has 1 problem. See diagnostics[].","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"source_package_invalid","hint":"Read the diagnostics in errors, fix the package (or let `taggor publish` pack it) and send it again.","docs_url":"https://docs.taggor.dev/errors/source_package_invalid","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","diagnostics":[{"code":"SECRET_IN_SOURCE","severity":"error","message":"a Stripe secret or restricted key (sk_l…) is in the component's source; the bundle is public, so the build refuses it","hint":"Remove the key from the component and revoke it at its provider.","docs_url":"https://docs.taggor.dev/diagnostics/SECRET_IN_SOURCE","file":"src/index.tsx","line":3,"column":14}]}},"idempotency_key_reused":{"value":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/SourceUploadProblem"}}}},"429":{"description":"`build_quota_exceeded`: the workspace reached the builds its plan allows in any 7 days (`buildsPerWeek`; only builds that ran count); or `platform_build_capacity`: the platform paused new Free builds for a while. Retry after `Retry-After` seconds; both write nothing and the platform one is not the caller's fault.","headers":{"Retry-After":{"description":"Seconds until one place frees (the oldest build of the window turns seven days old), or until the next UTC Monday for the platform's fuse.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"examples":{"build_quota_exceeded":{"value":{"type":"https://docs.taggor.dev/errors/build_quota_exceeded","title":"The workspace reached its build limit for the last 7 days","status":429,"detail":"The workspace used 150 of the 150 builds its plan allows in any 7 days (buildsPerWeek). A place frees at 2026-11-14T09:30:00.000Z, in 3600 seconds (Retry-After); nothing was stored.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"build_quota_exceeded","hint":"The Free plan allows a number of builds in any 7 days (buildsPerWeek) and stops at it: nothing was stored. Try again when Retry-After says a place frees (the problem also has used, limit and resets_at), or move the workspace to a paid plan in the portal (Settings, Billing).","docs_url":"https://docs.taggor.dev/errors/build_quota_exceeded","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","limit_name":"buildsPerWeek","limit":150,"used":150,"window_days":7,"resets_at":"2026-11-14T09:30:00.000Z"}},"platform_build_capacity":{"value":{"type":"https://docs.taggor.dev/errors/platform_build_capacity","title":"New builds are temporarily paused","status":429,"detail":"New builds are temporarily paused on the platform (platformBuildsPerWeek). It is not your plan's limit. Nothing was stored; try again after Retry-After seconds (86400, the next UTC Monday).","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"platform_build_capacity","hint":"The platform paused new builds for a while; nothing is wrong with your request, your workspace or your plan, and nothing was stored. Retry the same upload after the number of seconds in the Retry-After header (until the next UTC Monday at the latest).","docs_url":"https://docs.taggor.dev/errors/platform_build_capacity","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/SourceUploadProblem"}}}},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listComponentVersions","summary":"List the versions of a component, newest first","tags":["versions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of versions","content":{"application/json":{"example":{"data":[{"id":"ver_0123456789abcdefghjkmnpqrs","component_id":"cmp_0123456789abcdefghjkmnpqrs","semver":"1.0.0","content_hash":"9f2c0e5b7a1d4c3e8f6a0b2d4c6e8f0a1b3d5c7e9f0a2b4c6d8e0f1a3b5c7d9e","bundle_key":"b/9f2c0e5b7a1d4c3e8f6a0b2d4c6e8f0a1b3d5c7e9f0a2b4c6d8e0f1a3b5c7d9e.js","contract_version":"1.0.0","build_id":"bld_0123456789abcdefghjkmnpqrs","manifest":{"contractVersion":"1.0.0","name":"price-card","tag":"price-card","title":"Price card","description":"Shows a price."},"lockfile":{"lockfileVersion":1,"dependencies":{},"packages":{}},"gates":{"version":"security-rules 1; typescript 6.0.3","results":[{"gate":"typecheck","ok":true,"errors":0,"warnings":0}]},"message":null,"created_by":"local","created_at":"2026-10-31T12:00:00.000Z","compatibility":{"breaking":false,"base":null,"changes":[],"truncated":false,"base_unreadable":false},"origin":"cli","size_gz_bytes":1820}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/ComponentVersionPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/channels":{"get":{"operationId":"listComponentChannels","summary":"List the channels of a component and the version each one points to","tags":["versions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"}],"responses":{"200":{"description":"Every channel, `production` first; `version_id` is null until a version is promoted.","content":{"application/json":{"example":{"data":[{"name":"production","version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.0.0","updated_at":"2026-10-31T12:00:00.000Z","updated_by":"local"},{"name":"staging","version_id":null,"semver":null,"updated_at":null,"updated_by":null}]},"schema":{"$ref":"#/components/schemas/ChannelList"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /id. See errors[].","instance":"/v1/components/x/channels","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_format","message":"must be a component id (cmp_…)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/changelog":{"get":{"operationId":"listComponentChangelog","summary":"List the changelog of a component: each version's semver, message, author and date, newest first","tags":["versions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of the changelog, newest first; versions are created in semver order, so it is also descending semver.","content":{"application/json":{"example":{"data":[{"version_id":"ver_0123456789abcdefghjkmnpqrt","semver":"1.1.0","message":"Add the currency prop.","created_by":"local","created_at":"2026-10-31T13:00:00.000Z","breaking":false},{"version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.0.0","message":"First version.","created_by":"local","created_at":"2026-10-31T12:00:00.000Z","breaking":false}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/ChangelogPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/history":{"get":{"operationId":"listComponentHistory","summary":"List the history of a component: versions published, promotions and rollbacks in one timeline, newest first, with who acted and from which client","tags":["versions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of the timeline, newest first.","content":{"application/json":{"example":{"data":[{"id":"che_00000000000000000000000042","type":"promote","created_at":"2026-10-31T13:00:00.000Z","version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.0.0","channel":"production","from_version_id":null,"reason":null,"actor":{"id":"usr_0123456789abcdefghjkmnpqrs","kind":"user","name":"Ana"},"client":"portal"},{"id":"ver_0123456789abcdefghjkmnpqrs","type":"version_published","created_at":"2026-10-31T12:00:00.000Z","version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.0.0","channel":null,"from_version_id":null,"reason":null,"actor":{"id":"key_0123456789abcdefghjkmnpqrs","kind":"api_key","name":"ci"},"client":"cli/1.2.0"}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/HistoryPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/versions/{from}/diff/{to}":{"get":{"operationId":"diffComponentVersions","summary":"Compare source, manifest, dependencies, and gzipped bundle size between two versions","tags":["versions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Public version id.","example":"ver_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public version id.","name":"from","in":"path"},{"schema":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Public version id.","example":"ver_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public version id.","name":"to","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of source-file diffs, plus manifest, dependency, and bundle-size changes.","content":{"application/json":{"example":{"from":{"version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.0.0"},"to":{"version_id":"ver_0123456789abcdefghjkmnpqrt","semver":"1.1.0"},"files":[{"path":"src/index.tsx","status":"modified","patch":"@@ -1,1 +1,1 @@\\n-old\\n+new"}],"manifest":{"breaking":false,"unavailable":false,"changes":[]},"dependencies":[],"bundle_size_gzip":{"from_bytes":1200,"to_bytes":1240,"delta_bytes":40},"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/ComponentVersionDiff"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/versions/{version_id}/source":{"get":{"operationId":"getComponentVersionSource","summary":"Download the source package a version was built from","description":"The `.tar.gz` source package exactly as it was published (the format of `packages/contract/SPEC.md` §10), at most 5 MiB. It is customer data: the workspace that owns the component can read it, nobody else (404 for another workspace's component or version, as for a missing one). `taggor pull` uses it to recreate the local project. The body is never unpacked or run by the API; unpack it only under the limits of the contract.","tags":["versions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"Public version id.","example":"ver_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public version id.","name":"version_id","in":"path"}],"responses":{"200":{"description":"The source package, as an attachment.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"x-taggor-source-sha256":{"schema":{"type":"string","description":"Lowercase hex SHA-256 of the body; the package is content-addressed by it. `taggor pull` refuses a body that does not match."},"required":true,"description":"Lowercase hex SHA-256 of the body; the package is content-addressed by it. `taggor pull` refuses a body that does not match."}},"content":{"application/gzip":{"example":"<the gzipped tar of the published source: binary>","schema":{"type":"string","format":"binary"}}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /id. See errors[].","instance":"/v1/components/x/channels","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_format","message":"must be a component id (cmp_…)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/types.d.ts":{"get":{"operationId":"getComponentTypes","summary":"The DOM type declarations of a component's custom element","tags":["versions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"The version to describe. Default: the one `production` points to, else `staging`, else the newest.","example":"ver_0123456789abcdefghjkmnpqrs"},"required":false,"description":"The version to describe. Default: the one `production` points to, else `staging`, else the newest.","name":"version_id","in":"query"}],"responses":{"200":{"description":"The declaration file, `text/plain`.","content":{"text/plain":{"example":"// Generated by Taggor from the manifest of Price card (<price-card>), contract 1.0. Do not edit: run `taggor types` again.\ninterface HTMLPriceCardElement extends HTMLElement {}\n","schema":{"type":"string"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /id. See errors[].","instance":"/v1/components/x/channels","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_format","message":"must be a component id (cmp_…)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/types/{file}":{"get":{"operationId":"getComponentTypeFile","summary":"One declaration file of a component by name: DOM, React or Vue","tags":["versions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"string","maxLength":80,"pattern":"^[a-z][a-z0-9-]*(?:\\.react|\\.vue)?\\.d\\.ts$","description":"`<tag>.d.ts`, `<tag>.react.d.ts` or `<tag>.vue.d.ts`.","example":"price-card.react.d.ts"},"required":true,"description":"`<tag>.d.ts`, `<tag>.react.d.ts` or `<tag>.vue.d.ts`.","name":"file","in":"path"},{"schema":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"The version to describe. Default: the one `production` points to, else `staging`, else the newest.","example":"ver_0123456789abcdefghjkmnpqrs"},"required":false,"description":"The version to describe. Default: the one `production` points to, else `staging`, else the newest.","name":"version_id","in":"query"}],"responses":{"200":{"description":"The declaration file, `text/plain`.","content":{"text/plain":{"example":"// Generated by Taggor from the manifest of Price card (<price-card>), contract 1.0. Do not edit: run `taggor types` again.\ninterface HTMLPriceCardElement extends HTMLElement {}\n","schema":{"type":"string"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /id. See errors[].","instance":"/v1/components/x/channels","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_format","message":"must be a component id (cmp_…)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/preview-link":{"get":{"operationId":"getPreviewLink","summary":"A new private preview link for a version of a component","tags":["versions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^ver_[0-9a-hjkmnp-tv-z]{26}$","description":"The version to preview. Leave it out to use `channel`, or the latest version when `channel` is left out too.","example":"ver_0123456789abcdefghjkmnpqrs"},"required":false,"description":"The version to preview. Leave it out to use `channel`, or the latest version when `channel` is left out too.","name":"version_id","in":"query"},{"schema":{"type":"string","enum":["production","staging"],"description":"Preview the version this channel points to. Not with `version_id`. Without `version_id` and `channel`, the link is for the component's latest version."},"required":false,"description":"Preview the version this channel points to. Not with `version_id`. Without `version_id` and `channel`, the link is for the component's latest version.","name":"channel","in":"query"}],"responses":{"200":{"description":"The link and why it is or is not there.","content":{"application/json":{"example":{"component_id":"cmp_0123456789abcdefghjkmnpqrs","version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.0.0","channel":"staging","preview_url":"https://preview.taggor-preview.example/p/v1.bld_0123456789abcdefghjkmnpqrs.9f2c0e5b7a1d4c3e8f6a0b2d4c6e8f0a1b3d5c7e9f0a2b4c6d8e0f1a3b5c7d9e.1-0-0.1795000000.0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef","preview_state":"ready"},"schema":{"$ref":"#/components/schemas/PreviewLink"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /id. See errors[].","instance":"/v1/components/x/channels","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_format","message":"must be a component id (cmp_…)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/builds":{"get":{"operationId":"listBuilds","summary":"List the builds of the workspace, newest first","description":"The builds of your workspace, so a version can be made from one without knowing its id. Filter with `status` (`succeeded` lists the builds that can become a version, `failed` the ones to fix) and `component_id`.","tags":["builds"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"},{"schema":{"type":"string","enum":["queued","building","checking","succeeded","failed"],"description":"Only the builds in this status."},"required":false,"description":"Only the builds in this status.","name":"status","in":"query"},{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Only the builds of sources uploaded to this component (older builds have none).","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":false,"description":"Only the builds of sources uploaded to this component (older builds have none).","name":"component_id","in":"query"}],"responses":{"200":{"description":"One page of builds.","content":{"application/json":{"example":{"data":[{"id":"bld_0123456789abcdefghjkmnpqrs","status":"succeeded","created_at":"2026-11-02T12:00:00.000Z","version_id":null,"tag":"price-card"}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/BuildPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/builds/{id}":{"get":{"operationId":"getBuild","summary":"The state of a build, with its gate results and structured errors","tags":["builds"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^bld_[0-9a-hjkmnp-tv-z]{26}$","description":"Public build id.","example":"bld_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public build id.","name":"id","in":"path"},{"schema":{"type":["integer","null"],"minimum":0,"maximum":30,"description":"Long poll: seconds to wait (up to 30) for the status to change before answering. A finished build answers at once.","example":30},"required":false,"description":"Long poll: seconds to wait (up to 30) for the status to change before answering. A finished build answers at once.","name":"wait","in":"query"},{"schema":{"type":"string","enum":["queued","building","checking","succeeded","failed"],"description":"With `wait`: the status you last saw. The answer comes as soon as the status differs (default: the status found when the request arrives)."},"required":false,"description":"With `wait`: the status you last saw. The answer comes as soon as the status differs (default: the status found when the request arrives).","name":"status","in":"query"}],"responses":{"200":{"description":"The build. `errors[0]` has `file`, `line`, `column`, `code` and `hint`.","content":{"application/json":{"example":{"id":"bld_0123456789abcdefghjkmnpqrs","status":"failed","created_at":"2026-11-02T12:00:00.000Z","updated_at":"2026-11-02T12:00:09.000Z","duration_ms":9000,"gates":[],"errors":[{"code":"TS2322","severity":"error","message":"Type 'string' is not assignable to type 'number'.","hint":"Change the type of the value or of the prop.","docs_url":"https://docs.taggor.dev/diagnostics/TS#TS2322","file":"src/index.tsx","line":12,"column":7}],"warnings":[],"version_id":null,"preview_url":null,"preview_state":"none"},"schema":{"$ref":"#/components/schemas/Build"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /id. See errors[].","instance":"/v1/components/x/channels","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_format","message":"must be a component id (cmp_…)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no build with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No build with this id in your workspace.","instance":"/v1/builds/bld_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"`rate_limited`: this workspace already has the most build streams it may keep open, or the build's log has all the readers it allows. Retry after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/rate_limited","title":"Too many requests","status":429,"detail":"Too many build streams are open. Close one and retry.","instance":"/v1/builds/bld_0123456789abcdefghjkmnpqrs/events","code":"rate_limited","hint":"Wait for the number of seconds in the Retry-After header, then retry with backoff.","docs_url":"https://docs.taggor.dev/errors/rate_limited","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/builds/{id}/events":{"get":{"operationId":"streamBuildEvents","summary":"The progress events of a build as Server-Sent Events","tags":["builds"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^bld_[0-9a-hjkmnp-tv-z]{26}$","description":"Public build id.","example":"bld_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public build id.","name":"id","in":"path"},{"schema":{"type":"string","enum":["true","false"],"description":"`true` (default): keep the stream open until the build is done. `false`: only what is stored now."},"required":false,"description":"`true` (default): keep the stream open until the build is done. `false`: only what is stored now.","name":"follow","in":"query"},{"schema":{"type":"string","maxLength":32,"description":"The `seq` of the last event received; the stream resumes after it."},"required":false,"description":"The `seq` of the last event received; the stream resumes after it.","name":"last-event-id","in":"header"}],"responses":{"200":{"description":"`text/event-stream`: one frame per event, `id:` is the event's `seq`, `event:` its `type` (`stage_started`, `stage_finished`, `diagnostic`, `retry`, `done`), `data:` its JSON in snake_case. Comment lines (`: keepalive`) keep the connection alive. The stream closes after `done`, or after a fixed time: reconnect with `Last-Event-ID`. A build that has no events yet gives an empty stream, not an error.","content":{"text/event-stream":{"example":{"id":"2","event":"diagnostic","data":"{\"type\":\"diagnostic\",\"seq\":2,\"stage\":\"compiling\",\"at\":\"2026-11-02T12:00:01.000Z\",\"attempt\":1,\"diagnostic\":{\"code\":\"TS2322\",\"severity\":\"error\",\"message\":\"Type 'string' is not assignable to type 'number'.\",\"hint\":\"Change the type of the value or of the prop.\",\"docs_url\":\"https://docs.taggor.dev/diagnostics/TS#TS2322\",\"file\":\"src/index.tsx\",\"line\":12,\"column\":7}}"},"schema":{"$ref":"#/components/schemas/BuildSseEvent"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /id. See errors[].","instance":"/v1/components/x/channels","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_format","message":"must be a component id (cmp_…)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no build with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No build with this id in your workspace.","instance":"/v1/builds/bld_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"`rate_limited`: this workspace already has the most build streams it may keep open, or the build's log has all the readers it allows. Retry after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/rate_limited","title":"Too many requests","status":429,"detail":"Too many build streams are open. Close one and retry.","instance":"/v1/builds/bld_0123456789abcdefghjkmnpqrs/events","code":"rate_limited","hint":"Wait for the number of seconds in the Retry-After header, then retry with backoff.","docs_url":"https://docs.taggor.dev/errors/rate_limited","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/builds/{id}/logs":{"get":{"operationId":"getBuildLogs","summary":"The log of a build as text, or followed live as Server-Sent Events","tags":["builds"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^bld_[0-9a-hjkmnp-tv-z]{26}$","description":"Public build id.","example":"bld_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public build id.","name":"id","in":"path"},{"schema":{"type":"string","enum":["true","false"],"description":"`true`: stream new lines as Server-Sent Events (`event: log`, `id:` is the event's `seq`) until the build is done. Default `false`: the lines stored now as `text/plain`."},"required":false,"description":"`true`: stream new lines as Server-Sent Events (`event: log`, `id:` is the event's `seq`) until the build is done. Default `false`: the lines stored now as `text/plain`.","name":"follow","in":"query"},{"schema":{"type":"string","maxLength":32,"description":"The `seq` of the last event received; the stream resumes after it."},"required":false,"description":"The `seq` of the last event received; the stream resumes after it.","name":"last-event-id","in":"header"}],"responses":{"200":{"description":"`text/plain`: one line per event (time, stage, what happened; diagnostics print severity, code, file:line:column and message), plain text with control characters escaped. With `follow=true`, `text/event-stream` with one `log` frame per line.","content":{"text/plain":{"example":"2026-11-02T12:00:01.000Z [compiling] error TS2322 src/index.tsx:12:7 Type 'string' is not assignable to type 'number'.\n","schema":{"type":"string"}},"text/event-stream":{"example":{"id":"2","event":"log","data":"2026-11-02T12:00:01.000Z [compiling] started (attempt 1)"},"schema":{"$ref":"#/components/schemas/BuildSseEvent"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /id. See errors[].","instance":"/v1/components/x/channels","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_format","message":"must be a component id (cmp_…)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no build with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No build with this id in your workspace.","instance":"/v1/builds/bld_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"`rate_limited`: this workspace already has the most build streams it may keep open, or the build's log has all the readers it allows. Retry after `Retry-After` seconds.","headers":{"Retry-After":{"schema":{"type":"integer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/rate_limited","title":"Too many requests","status":429,"detail":"Too many build streams are open. Close one and retry.","instance":"/v1/builds/bld_0123456789abcdefghjkmnpqrs/events","code":"rate_limited","hint":"Wait for the number of seconds in the Retry-After header, then retry with backoff.","docs_url":"https://docs.taggor.dev/errors/rate_limited","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/builds/{id}/sourcemap":{"get":{"operationId":"getBuildSourceMap","summary":"The source map of a succeeded build","tags":["builds"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^bld_[0-9a-hjkmnp-tv-z]{26}$","description":"Public build id.","example":"bld_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public build id.","name":"id","in":"path"}],"responses":{"200":{"description":"The source map (JSON, version 3), private to the workspace: it holds the component's source.","content":{"application/json":{"example":{"version":3,"sources":["src/index.tsx"],"mappings":"AAAA"},"schema":{"type":"object","additionalProperties":{},"description":"Source map v3."}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /id. See errors[].","instance":"/v1/components/x/channels","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_format","message":"must be a component id (cmp_…)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no such build in the caller's workspace, the build did not succeed, or it has no source map.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No build with this id in your workspace.","instance":"/v1/builds/bld_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/channels/{channel}/promote":{"post":{"operationId":"promoteComponentVersion","summary":"Point a channel to a version (promote)","tags":["versions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["channels:promote"],"x-required-action":"version:promote","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"string","enum":["production","staging"]},"required":true,"name":"channel","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoteChannelRequest"}}}},"responses":{"200":{"description":"The channel after the move. The manifests of the sites that carry the component were recompiled; the loader serves the new version once the edge cache refreshes.","content":{"application/json":{"example":{"name":"production","version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.1.0","updated_at":"2026-11-02T12:00:00.000Z","updated_by":"usr_0123456789abcdefghjkmnpqrs","previous_version_id":"ver_9876543210abcdefghjkmnpqrs","changed":true,"site_props":[],"site_props_unsettled":[]},"schema":{"$ref":"#/components/schemas/ChannelMove"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /id. See errors[].","instance":"/v1/components/x/channels","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_format","message":"must be a component id (cmp_…)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component (or version) with this id in the caller's workspace; also another workspace's.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/channels/production/promote","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`component_archived`, `version_not_ready`, `breaking_change_not_allowed`, `no_previous_version`, `channel_moved` (rollback only: the channel left `expected_from_version_id`) or `idempotency_request_in_progress`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/version_not_ready","title":"The version's build did not succeed","status":409,"detail":"The build of this version did not succeed, so it cannot be promoted.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/channels/production/promote","code":"version_not_ready","hint":"Fix the build errors, publish a new version and use that one.","docs_url":"https://docs.taggor.dev/errors/version_not_ready","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","build_status":"failed"},"schema":{"$ref":"#/components/schemas/ChannelConflictProblem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/channels/{channel}/rollback":{"post":{"operationId":"rollbackComponentChannel","summary":"Point a channel back to an earlier version (rollback)","tags":["versions"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["channels:promote"],"x-required-action":"version:promote","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"string","enum":["production","staging"]},"required":true,"name":"channel","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackChannelRequest"}}}},"responses":{"200":{"description":"The channel after the move. The manifests of the sites that carry the component were recompiled; the loader serves the new version once the edge cache refreshes.","content":{"application/json":{"example":{"name":"production","version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.1.0","updated_at":"2026-11-02T12:00:00.000Z","updated_by":"usr_0123456789abcdefghjkmnpqrs","previous_version_id":"ver_9876543210abcdefghjkmnpqrs","changed":true,"site_props":[],"site_props_unsettled":[]},"schema":{"$ref":"#/components/schemas/ChannelMove"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/validation_failed","title":"Request validation failed","status":400,"detail":"1 invalid field: path /id. See errors[].","instance":"/v1/components/x/channels","code":"validation_failed","hint":"Fix each field listed in errors[] (location and JSON Pointer) and send the request again.","docs_url":"https://docs.taggor.dev/errors/validation_failed","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"path","path":"/id","code":"invalid_format","message":"must be a component id (cmp_…)"}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component (or version) with this id in the caller's workspace; also another workspace's.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/channels/production/promote","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`component_archived`, `version_not_ready`, `breaking_change_not_allowed`, `no_previous_version`, `channel_moved` (rollback only: the channel left `expected_from_version_id`) or `idempotency_request_in_progress`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/version_not_ready","title":"The version's build did not succeed","status":409,"detail":"The build of this version did not succeed, so it cannot be promoted.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/channels/production/promote","code":"version_not_ready","hint":"Fix the build errors, publish a new version and use that one.","docs_url":"https://docs.taggor.dev/errors/version_not_ready","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","build_status":"failed"},"schema":{"$ref":"#/components/schemas/ChannelConflictProblem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components":{"post":{"operationId":"createComponent","summary":"Create a component named by its Custom Element tag","tags":["components"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:write"],"x-required-action":"component:publish","parameters":[{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateComponentRequest"}}}},"responses":{"201":{"description":"The new component; versions are created for it next.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"id":"cmp_0123456789abcdefghjkmnpqrs","tag":"price-card","description":"Price card for the pricing page","created_at":"2026-11-01T12:00:00.000Z","archived_at":null},"schema":{"$ref":"#/components/schemas/Component"}}}},"400":{"description":"`validation_failed` (a bad body field) or `invalid_tag_name` (not a valid custom element name: `detail` explains and suggests one, also in `suggested_tag`).","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_tag_name","title":"The tag name is not a valid custom element name","status":400,"detail":"tag must be a valid custom element name: it has no hyphen. Try \"x-simulator\".","instance":"/v1/components","code":"invalid_tag_name","hint":"Use lowercase letters, digits and hyphens, with at least one hyphen (`my-form`).","docs_url":"https://docs.taggor.dev/errors/invalid_tag_name","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","suggested_tag":"x-simulator"},"schema":{"$ref":"#/components/schemas/InvalidTagProblem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"409":{"description":"`component_already_exists` (the workspace has a component with this tag, archived or not: `component_id`) or `idempotency_request_in_progress`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/component_already_exists","title":"The workspace already has a component with this tag","status":409,"detail":"Your workspace already has the component cmp_0123456789abcdefghjkmnpqrs with the tag \"price-card\".","instance":"/v1/components","code":"component_already_exists","hint":"Publish a new version of the existing component, or choose another tag name.","docs_url":"https://docs.taggor.dev/errors/component_already_exists","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","component_id":"cmp_0123456789abcdefghjkmnpqrs"},"schema":{"$ref":"#/components/schemas/ComponentConflictProblem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"get":{"operationId":"listComponents","summary":"List the workspace's components with the current version of each channel, newest first (archived ones excluded)","tags":["components"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of components","content":{"application/json":{"example":{"data":[{"id":"cmp_0123456789abcdefghjkmnpqrs","tag":"price-card","description":"Price card for the pricing page","created_at":"2026-11-01T12:00:00.000Z","archived_at":null,"channels":[{"name":"production","version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.0.0","updated_at":"2026-11-01T12:30:00.000Z","updated_by":"usr_0123456789abcdefghjkmnpqrs"},{"name":"staging","version_id":null,"semver":null,"updated_at":null,"updated_by":null}]}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/ComponentPage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/sites":{"get":{"operationId":"listComponentSites","summary":"List the sites that have the component attached, newest site first","description":"One call for what the portal needs to count and manage a component's attachments; sites that were deleted are left out. An archived component stays readable.","tags":["components"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["sites:read"],"x-required-action":"site:read","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20,"description":"Page size, 1 to 100.","example":20},"required":false,"description":"Page size, 1 to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page."},"required":false,"description":"Opaque `next_cursor` of the previous page, for the same list and filters. Omit for the first page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"One page of sites.","content":{"application/json":{"example":{"data":[{"site_id":"site_0123456789abcdefghjkmnpqrs","site_key":"sk_example","name":"Pricing site","site_status":"active","channel":"production","enabled":true,"client_id":null}],"next_cursor":null,"has_more":false},"schema":{"$ref":"#/components/schemas/ComponentSitePage"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed` (bad `limit` or filter) or `invalid_cursor`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/invalid_cursor","title":"Invalid pagination cursor","status":400,"detail":"The cursor is not valid for this list and filters. Not a cursor this list issued; start again without cursor.","instance":"/v1/components","code":"invalid_cursor","hint":"Pass the next_cursor of the previous page unchanged, or drop the cursor to start over.","docs_url":"https://docs.taggor.dev/errors/invalid_cursor","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","errors":[{"location":"query","path":"/cursor","code":"invalid_cursor","message":"Not a cursor this list issued; start again without cursor."}]},"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}":{"get":{"operationId":"getComponent","summary":"Get a component with the current version of each channel","tags":["components"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:read"],"x-required-action":"component:read","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"}],"responses":{"200":{"description":"The component; an archived one is returned too, with `archived_at` set.","content":{"application/json":{"example":{"id":"cmp_0123456789abcdefghjkmnpqrs","tag":"price-card","description":"Price card for the pricing page","created_at":"2026-11-01T12:00:00.000Z","archived_at":null,"channels":[{"name":"production","version_id":"ver_0123456789abcdefghjkmnpqrs","semver":"1.0.0","updated_at":"2026-11-01T12:30:00.000Z","updated_by":"usr_0123456789abcdefghjkmnpqrs"},{"name":"staging","version_id":null,"semver":null,"updated_at":null,"updated_by":null}]},"schema":{"$ref":"#/components/schemas/ComponentDetail"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the path id is not a component id.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`insufficient_scope`: the API key lacks a scope this route needs (see `missing_scopes`); or `workspace_suspended`: the operator suspended the workspace.","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope components:read. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["components:read"]},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"patch":{"operationId":"patchComponent","summary":"Change the description of a component","tags":["components"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:write"],"x-required-action":"component:publish","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchComponentRequest"}}}},"responses":{"200":{"description":"The component with its new description.","content":{"application/json":{"example":{"id":"cmp_0123456789abcdefghjkmnpqrs","tag":"price-card","description":"Price card for the pricing page","created_at":"2026-11-01T12:00:00.000Z","archived_at":null},"schema":{"$ref":"#/components/schemas/Component"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: a bad path parameter or body field.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`component_archived`: an archived component keeps its record; restore it first.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/component_archived","title":"The component is archived","status":409,"detail":"An archived component cannot be edited; restore it first.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs","code":"component_archived","hint":"Restore the component in the portal before changing it, or use another component.","docs_url":"https://docs.taggor.dev/errors/component_archived","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}},"delete":{"operationId":"archiveComponent","summary":"Archive a component (versions and data stay)","tags":["components"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:write"],"x-required-action":"component:archive","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"}],"responses":{"200":{"description":"The archived component. Repeating the request changes nothing and keeps the first `archived_at`.","content":{"application/json":{"example":{"id":"cmp_0123456789abcdefghjkmnpqrs","tag":"price-card","description":"Price card for the pricing page","created_at":"2026-11-01T12:00:00.000Z","archived_at":"2026-11-02T09:00:00.000Z"},"schema":{"$ref":"#/components/schemas/Component"}}},"headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"}}},"400":{"description":"`validation_failed`: the path id is not a component id.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}},"/v1/components/{id}/restore":{"post":{"operationId":"restoreComponent","summary":"Restore an archived component","tags":["components"],"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"x-required-scopes":["components:write"],"x-required-action":"component:archive","parameters":[{"schema":{"type":"string","pattern":"^cmp_[0-9a-hjkmnp-tv-z]{26}$","description":"Public component id.","example":"cmp_0123456789abcdefghjkmnpqrs"},"required":true,"description":"Public component id.","name":"id","in":"path"},{"schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$","description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","example":"8e03978e-40d5-43e8-bc93-6894a57f9324"},"required":false,"description":"Makes a retry safe: the first response under this key is stored for 24 h and the same request with the same key gets it again (with `Idempotent-Replayed: true`) instead of running twice. 1 to 255 visible ASCII characters; use a fresh UUID per logical request. 5xx responses are not stored, so a retry after one runs again.","name":"idempotency-key","in":"header"}],"responses":{"200":{"description":"The component, active again (`archived_at` null). Repeating the request, or restoring an active component, changes nothing.","headers":{"RateLimit-Policy":{"$ref":"#/components/headers/RateLimitPolicy"},"RateLimit":{"$ref":"#/components/headers/RateLimit"},"Idempotent-Replayed":{"description":"`true` when this is the stored response of an earlier request with the same key.","schema":{"type":"string","enum":["true"]}}},"content":{"application/json":{"example":{"id":"cmp_0123456789abcdefghjkmnpqrs","tag":"price-card","description":"Price card for the pricing page","created_at":"2026-11-01T12:00:00.000Z","archived_at":null},"schema":{"$ref":"#/components/schemas/Component"}}}},"400":{"description":"`validation_failed`: the path id is not a component id.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"`unauthenticated`: no credentials, or credentials that prove nothing.","headers":{"WWW-Authenticate":{"description":"The authentication scheme to use: `Bearer`. When OAuth is on (the MCP) it also carries `resource_metadata=\"<URL of /.well-known/oauth-protected-resource>\"` (RFC 9728) and, for a refused token, `error=\"invalid_token\"` (RFC 6750).","schema":{"type":"string","pattern":"^Bearer"}}},"content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/unauthenticated","title":"Authentication required","status":401,"detail":"This route needs credentials: send Authorization: Bearer <token>, or sign in to the portal for a session cookie.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"unauthenticated","hint":"Send a valid API key as `Authorization: Bearer <key>`, or run `taggor login`.","docs_url":"https://docs.taggor.dev/errors/unauthenticated","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"`permission_denied` (the current workspace role does not allow the action), `insufficient_scope` (the credential lacks a scope this route needs: see `missing_scopes`) or `cross_site_request` (authenticated by the session cookie, but not from the portal: another `Origin`, or not `Content-Type: application/json`) or `workspace_suspended` (the operator suspended the workspace: every credential acting in it is refused until it is lifted).","headers":{"WWW-Authenticate":{"description":"`insufficient_scope`: `Bearer error=\"insufficient_scope\", scope=\"<missing scopes>\"` (RFC 6750).","schema":{"type":"string"}}},"content":{"application/problem+json":{"examples":{"insufficient_scope":{"value":{"type":"https://docs.taggor.dev/errors/insufficient_scope","title":"The credential lacks a required scope","status":403,"detail":"This credential lacks the scope versions:publish. Create an API key that has it.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"insufficient_scope","hint":"The `missing_scopes` field of the error lists the scopes the route needs. Create an API key with them in the portal (https://app.taggor.dev, Settings, API keys) and use it.","docs_url":"https://docs.taggor.dev/errors/insufficient_scope","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633","missing_scopes":["versions:publish"]}},"cross_site_request":{"value":{"type":"https://docs.taggor.dev/errors/cross_site_request","title":"Cross-site request refused","status":403,"detail":"A request authenticated by the session cookie that changes something must come from the portal: Origin of the portal and Content-Type: application/json.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"cross_site_request","hint":"Make the request from the portal's own origin, or use an API key instead of a session cookie.","docs_url":"https://docs.taggor.dev/errors/cross_site_request","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}},"workspace_suspended":{"value":{"type":"https://docs.taggor.dev/errors/workspace_suspended","title":"The workspace is suspended","status":403,"detail":"This workspace is suspended: its credentials and publishing are refused until Taggor lifts the suspension. Your data is kept.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs/versions","code":"workspace_suspended","hint":"Taggor suspended this workspace, so its keys, sessions and publishing are refused and its sites deliver nothing. Your data is kept. To ask for a review, write to contact@taggor.dev with the workspace name and the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message); use another workspace in the meantime.","docs_url":"https://docs.taggor.dev/errors/workspace_suspended","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"}}},"schema":{"$ref":"#/components/schemas/ForbiddenProblem"}}}},"404":{"description":"`not_found`: no component with this id in the caller's workspace.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/not_found","title":"Resource not found","status":404,"detail":"No component with this id in your workspace.","instance":"/v1/components/cmp_0123456789abcdefghjkmnpqrs","code":"not_found","hint":"Check the id or path, and that you are in the right workspace; list the resources to find it.","docs_url":"https://docs.taggor.dev/errors/not_found","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"`idempotency_request_in_progress`: a request with this key is still running; retry after `Retry-After` seconds.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_request_in_progress","title":"A request with this idempotency key is in progress","status":409,"detail":"A request with this Idempotency-Key is still running.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_request_in_progress","hint":"Wait a few seconds and send the same request with the same key again to get its result.","docs_url":"https://docs.taggor.dev/errors/idempotency_request_in_progress","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"`idempotency_key_reused`: this key was used in the last 24 h with a different request.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/idempotency_key_reused","title":"Idempotency key reused with a different request","status":422,"detail":"This Idempotency-Key was used with a different request.","instance":"/v1/components/cmp_0000000000000000000000000a/versions","code":"idempotency_key_reused","hint":"Use a new Idempotency-Key for a different request; reuse a key only to repeat the same one.","docs_url":"https://docs.taggor.dev/errors/idempotency_key_reused","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"description":"`internal_error` (nothing about the failure; quote `request_id`) or `configuration_error`.","content":{"application/problem+json":{"example":{"type":"https://docs.taggor.dev/errors/internal_error","title":"Internal server error","status":500,"detail":"An unexpected error occurred. Quote request_id 3fc92ed2-a3a5-4a34-bb85-849d26ef4633 when reporting it.","instance":"/v1/health","code":"internal_error","hint":"Retry once after a few seconds; if it persists, write to contact@taggor.dev with the `request_id` of this error (a field of the response; the CLI prints it at the end of the error message).","docs_url":"https://docs.taggor.dev/errors/internal_error","request_id":"3fc92ed2-a3a5-4a34-bb85-849d26ef4633"},"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"$ref":"#/components/responses/ServiceUnavailable"}}}}},"webhooks":{}}