{"openapi":"3.1.0","info":{"title":"Ferryseal API","version":"0.1.0","description":"REST API for your organization's data and agents.\n\n**Auth:** `Authorization: Bearer <api key>` (create keys in Settings → API keys). Each key has explicit scopes.\n**Rate limits:** 100 requests per minute per key, app token or user (keys can set their own limit; a person reading in the web app gets more room). Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (Unix seconds); 429 responses add `Retry-After` (seconds).\n**Partner apps** use OAuth 2.1 (authorization code + PKCE S256). Metadata: `/.well-known/oauth-authorization-server`.\n**IDs** are opaque and prefixed (`ws_…`, `run_…`, `key_…`). **Lists** use cursor pagination: pass `cursor` from `next_cursor`.\n**Schemas:** `GET /v1/schemas/{resource}` returns JSON Schema for each resource.\n\n**Scopes** are `resource:action`; each route needs one. Sending (email, texts, chats, LinkedIn, calls) always needs `messages:send`, named explicitly. `resource:*` grants a resource's read and write.\nScopes: `connections:read` (Read connected accounts and their sync status), `connections:write` (Connect accounts and change their sync), `knowledge:read` (Read the knowledge base (positioning, products, proof points, voice, audience, claims, playbooks)), `knowledge:write` (Change the knowledge base), `messages:send` (Send email, texts and posts, and start or resume automation that sends. Only ever granted by name), `settings:read` (Read organization settings), `settings:write` (Change organization settings (owners)), `members:read` (Read members and their roles), `members:write` (Invite, change and remove members (owners)), `billing:read` (Read the plan and usage), `billing:write` (Change the plan, seats and invoices (owners)), `security:write` (Single sign-on, SCIM, data-source access, secrets, webhooks, MCP servers, exports and the organization itself (owners)), `integrations:write` (Connect organization-wide vendors and providers (owners)), `audit:read` (Read the audit log), `agents:read` (Read agents and runs), `agents:write` (Create, configure and run agents), `approvals:write` (Approve or reject queued agent actions), `keys:write` (Create and revoke API keys), `marketing:read` (Read brands, prompts and answers, sites, content, assets, channel accounts and results), `marketing:write` (Create and change brands, prompts, sites, content, assets and channel accounts (never sends, publishes or spends on its own)), `mkt-approvals:read` (Read the marketing approvals waiting for your organization and who manages it; nothing else), `mkt-approvals:write` (Approve or reject marketing approvals in the inbox; nothing else), `app-inbox:write` (An app's inbox: read a person's in-app messages, mark them seen or dismissed and register devices; nothing else), `transfer:read` (Read your organization's transfers, their files, downloads and usage), `transfer:write` (Send, rename, change the expiry of and delete transfers)\nBundles (the scopes from before fine-grained scopes; existing keys keep them): `org:read` = `settings:read` `members:read` `billing:read`; `org:write` = `settings:write` `members:write` `billing:write` `security:write` `integrations:write`"},"servers":[{"url":"https://api.ferryseal.com"}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"API key (ft_live_…)"},"session":{"type":"apiKey","in":"cookie","name":"better-auth.session_token","description":"Browser session from the web app. In production the cookie is named __Secure-better-auth.session_token."},"oauth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://app.ferryseal.com/oauth/authorize","tokenUrl":"https://api.ferryseal.com/oauth/token","refreshUrl":"https://api.ferryseal.com/oauth/token","scopes":{"org:read":"Bundle: read organization settings, members and the plan","org:write":"Bundle: manage organization settings, members, billing, security and integrations","audit:read":"Read the audit log","agents:read":"Read agents and runs","agents:write":"Create, configure and run agents","approvals:write":"Approve or reject queued agent actions","keys:write":"Create and revoke API keys","connections:read":"Read connected accounts and their sync status","connections:write":"Connect accounts and change their sync","knowledge:read":"Read the knowledge base (positioning, products, proof points, voice, audience, claims, playbooks)","knowledge:write":"Change the knowledge base","messages:send":"Send email, texts and posts, and start or resume automation that sends. Only ever granted by name","settings:read":"Read organization settings","settings:write":"Change organization settings (owners)","members:read":"Read members and their roles","members:write":"Invite, change and remove members (owners)","billing:read":"Read the plan and usage","billing:write":"Change the plan, seats and invoices (owners)","security:write":"Single sign-on, SCIM, data-source access, secrets, webhooks, MCP servers, exports and the organization itself (owners)","integrations:write":"Connect organization-wide vendors and providers (owners)","marketing:read":"Read brands, prompts and answers, sites, content, assets, channel accounts and results","marketing:write":"Create and change brands, prompts, sites, content, assets and channel accounts (never sends, publishes or spends on its own)","mkt-approvals:read":"Read the marketing approvals waiting for your organization and who manages it; nothing else","mkt-approvals:write":"Approve or reject marketing approvals in the inbox; nothing else","app-inbox:write":"An app's inbox: read a person's in-app messages, mark them seen or dismissed and register devices; nothing else","transfer:read":"Read your organization's transfers, their files, downloads and usage","transfer:write":"Send, rename, change the expiry of and delete transfers"}}}}}},"paths":{"/v1/mkt/transfer/transfers":{"post":{"tags":["Transfers"],"summary":"Start a transfer: its files (names and sizes), by link or by email, with an expiry, an optional password and download limit. Answers with each file's part plan; upload the parts, then complete it","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"default":"link","type":"string","enum":["link","email"]},"title":{"type":"string","maxLength":200},"message":{"type":"string","maxLength":2000},"files":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":1024},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"content_type":{"type":"string","maxLength":200}},"required":["path","size"],"additionalProperties":false}},"recipients":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":254}},"expiry_days":{"type":"integer","minimum":1,"maximum":365},"password":{"anyOf":[{"type":"string","minLength":4,"maxLength":200},{"type":"null"}]},"download_limit":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000},{"type":"null"}]}},"required":["kind","files"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"get":{"tags":["Transfers"],"summary":"Your organization's sent transfers, newest first (status, size, expiry and downloads); files sent to you through request links are in received","x-required-scope":"transfer:read","description":"Requires scope `transfer:read`.","security":[{"apiKey":[]},{"oauth2":["transfer:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"before","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"}},"required":["object","data","has_more"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/transfers/{id}/parts":{"post":{"tags":["Transfers"],"summary":"Presigned upload URLs for parts of one file (up to 100 at a time, valid an hour, each only for that part's exact size)","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"file_id":{"type":"string","maxLength":64},"parts":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"integer","minimum":1,"maximum":10000}}},"required":["file_id","parts"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"urls":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["urls"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"put":{"tags":["Transfers"],"summary":"Record that a part is uploaded (its ETag), so an interrupted upload resumes from there","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"file_id":{"type":"string","maxLength":64},"part":{"type":"integer","minimum":1,"maximum":10000},"etag":{"type":"string","maxLength":200}},"required":["file_id","part","etag"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/transfers/{id}/upload":{"get":{"tags":["Transfers"],"summary":"An unfinished transfer's files and the parts already uploaded, to resume","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/transfers/{id}/complete":{"post":{"tags":["Transfers"],"summary":"Finish a transfer once every part is uploaded: storage is checked, the link starts working, and an email transfer goes to its recipients","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sha256":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","pattern":"^[0-9a-f]{64}$"}}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/transfers/{id}":{"get":{"tags":["Transfers"],"summary":"One transfer: its files, recipients and downloads","x-required-scope":"transfer:read","description":"Requires scope `transfer:read`.","security":[{"apiKey":[]},{"oauth2":["transfer:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Transfers"],"summary":"Rename a transfer or change when it expires (within your plan's longest, from when it was sent)","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","maxLength":200},"expiry_days":{"type":"integer","minimum":1,"maximum":365},"password":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Transfers"],"summary":"Delete a transfer: its link stops working now and its files are deleted from storage within the hour","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/transfers/{id}/recover":{"post":{"tags":["Transfers"],"summary":"Bring back an expired transfer within its recovery days (Pro and Team): the same links work again, for your default expiry from now; nobody is emailed","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/usage":{"get":{"tags":["Transfers"],"summary":"What your plan allows (per transfer, in 30 days, kept at once, expiry) and how much you've used","x-required-scope":"transfer:read","description":"Requires scope `transfer:read`.","security":[{"apiKey":[]},{"oauth2":["transfer:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/requests":{"post":{"tags":["Transfers"],"summary":"Make a request link: anyone with it can upload files to you (they verify their email first), until it expires or you close it","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","maxLength":200},"message":{"type":"string","maxLength":2000},"expiry_days":{"type":"integer","minimum":1,"maximum":365}},"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"get":{"tags":["Transfers"],"summary":"Your organization's request links, newest first, with how many uploads each got","x-required-scope":"transfer:read","description":"Requires scope `transfer:read`.","security":[{"apiKey":[]},{"oauth2":["transfer:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/requests/{id}/close":{"post":{"tags":["Transfers"],"summary":"Close a request link: nobody can upload through it any more","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/transfers/{id}/files/{file}/link":{"post":{"tags":["Transfers"],"summary":"A 10-minute download link to one of your organization's transferred files (files sent to you through a request link, or your own)","x-required-scope":"transfer:read","description":"Requires scope `transfer:read`.","security":[{"apiKey":[]},{"oauth2":["transfer:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":64}},{"name":"file","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/received":{"get":{"tags":["Transfers"],"summary":"Transfers emailed to your verified address and files sent to your workspace through its request links, in the last 90 days, with their sender, size, expiry and whether you downloaded them","x-required-scope":"transfer:read","description":"Requires scope `transfer:read`.","security":[{"apiKey":[]},{"oauth2":["transfer:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/received/{id}/unlock":{"post":{"tags":["Transfers"],"summary":"Open a transfer sent to you (with its password, if it has one): its files and a download session that lasts a day","x-required-scope":"transfer:read","description":"Requires scope `transfer:read`.","security":[{"apiKey":[]},{"oauth2":["transfer:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"password":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/received/{id}/download":{"post":{"tags":["Transfers"],"summary":"Download links for files of a transfer sent to you (valid 10 minutes); the first counts one download","x-required-scope":"transfer:read","description":"Requires scope `transfer:read`.","security":[{"apiKey":[]},{"oauth2":["transfer:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"session":{"type":"string","maxLength":64},"files":{"anyOf":[{"type":"string","const":"all"},{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"string","maxLength":64}}]}},"required":["session","files"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/received/report":{"post":{"tags":["Transfers"],"summary":"Report a transfer sent to you (phishing, malware, copyright, child sexual abuse material or something else); we review every report","x-required-scope":"transfer:read","description":"Requires scope `transfer:read`.","security":[{"apiKey":[]},{"oauth2":["transfer:read"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"recipient_id":{"type":"string","maxLength":64},"transfer_id":{"type":"string","maxLength":64},"reason":{"type":"string","enum":["phishing","malware","copyright","csam","other"]},"details":{"default":"","type":"string","maxLength":2000}},"required":["reason","details"],"additionalProperties":false}}}},"responses":{"202":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/transfers/{id}/recipients":{"post":{"tags":["Transfers"],"summary":"Forward an email transfer to more people: each gets their own link, under the plan's recipients a transfer and the email limits","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"recipients":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":254}}},"required":["recipients"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/transfers/{id}/recipients/{rid}/resend":{"post":{"tags":["Transfers"],"summary":"Email one recipient again with a new link (their old link stops working); at most 3 times, an hour apart","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":64}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/transfers/{id}/recipients/{rid}":{"delete":{"tags":["Transfers"],"summary":"Remove a recipient: their link stops working now; who they were and what they downloaded stay in the history","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":64}},{"name":"rid","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/settings":{"get":{"tags":["Transfers"],"summary":"The workspace's transfer settings: the default expiry for new transfers, within the plan","x-required-scope":"transfer:read","description":"Requires scope `transfer:read`.","security":[{"apiKey":[]},{"oauth2":["transfer:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Transfers"],"summary":"Set the default expiry for new transfers (null: the plan's default), or turn the daily downloads summary on or off (owners)","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"default_expiry_days":{"anyOf":[{"type":"integer","minimum":1,"maximum":365},{"type":"null"}]},"download_digest":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/branding":{"get":{"tags":["Transfers"],"summary":"Your branding (logo, background, name, colour, links), what your plan shows of it, and your page anyone can send files to","x-required-scope":"transfer:read","description":"Requires scope `transfer:read`.","security":[{"apiKey":[]},{"oauth2":["transfer:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Transfers"],"summary":"Set the name, colour (white text must stay readable) and up to 5 https links shown on your pages and emails (Pro and up)","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"display_name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"accent":{"anyOf":[{"type":"string","maxLength":7},{"type":"null"}]},"links":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":40},"url":{"type":"string","maxLength":300}},"required":["label","url"],"additionalProperties":false}}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/branding/uploads":{"post":{"tags":["Transfers"],"summary":"Start uploading a logo (up to 1 MB) or background (up to 8 MB): PNG, JPEG or WebP. Answers with a 15-minute upload URL bound to the size; PUT the image there, then complete it","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["logo","background"]},"content_type":{"type":"string","enum":["image/png","image/jpeg","image/webp"]},"size":{"type":"integer","minimum":1,"maximum":8000000}},"required":["kind","content_type","size"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/branding/uploads/{id}/complete":{"post":{"tags":["Transfers"],"summary":"Finish an image upload: its size and type are checked (never SVG), and it replaces the old one","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/branding/{kind}":{"delete":{"tags":["Transfers"],"summary":"Remove your logo or background (deleted from storage)","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","enum":["logo","background"]}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/mkt/transfer/branding/page":{"put":{"tags":["Transfers"],"summary":"Your page at /to/<address> that anyone can send files to (Pro and up): choose the address, turn it on or off. Off keeps the address","x-required-scope":"transfer:write","description":"Requires scope `transfer:write`.","security":[{"apiKey":[]},{"oauth2":["transfer:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"slug":{"type":"string","maxLength":40},"on":{"type":"boolean"}},"required":["on"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me/nav":{"get":{"tags":["Account"],"summary":"Your navigation: pinned and recent pages and records, closed sidebar groups, whether shortcuts are on, which modules and setups your organization has, and whether you put the tour away","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Account"],"summary":"Turn keyboard shortcuts on or off, set which sidebar groups are closed, or put the free-plan tour away (or bring it back)","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"shortcuts_enabled":{"type":"boolean"},"collapsed":{"maxItems":10,"type":"array","items":{"type":"string","enum":["home","transfers","requests","branding","contacts","agents","inbox","more","pinned","recent"]}},"tour_dismissed":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me/nav/recent":{"post":{"tags":["Account"],"summary":"Note a page or record you opened (kept to your last 12)","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"href":{"type":"string","maxLength":200,"pattern":"^\\/app(\\/[A-Za-z0-9_-]+)*$"},"label":{}},"required":["href"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me/nav/pins":{"put":{"tags":["Account"],"summary":"Set your pinned pages and records (up to 12, in order)","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pins":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"href":{"type":"string","maxLength":200,"pattern":"^\\/app(\\/[A-Za-z0-9_-]+)*$"},"label":{}},"required":["href"],"additionalProperties":false}}},"required":["pins"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/search/records":{"get":{"tags":["Records"],"summary":"Find agents by name for the command palette: the best few, names starting with the query first","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"limit","in":"query","required":true,"schema":{"default":8,"type":"integer","minimum":1,"maximum":20}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/ui-events":{"post":{"tags":["Account"],"summary":"Record how the app is used in this browser (first-party, no cookies beyond your session): navigation, the palette, empty searches (their length only), setup steps left, first use of a feature. Fixed ids and counts only","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"events":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"event":{"type":"string","enum":["ui.nav_click","ui.palette_command","ui.search_empty","ui.setup_abandoned","ui.feature_first_use","ui.shortcut_used"]},"properties":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["event","properties"],"additionalProperties":false}}},"required":["events"],"additionalProperties":false}}}},"responses":{"202":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/feedback":{"post":{"tags":["Feedback"],"summary":"Tell us what's wrong, missing or confusing, or an idea (from any page; it goes to Ferryseal's team with the page and your plan)","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["bug","missing","confusing","idea","praise"]},"text":{"type":"string","minLength":3,"maxLength":2000},"page":{"type":"string","maxLength":200,"pattern":"^\\/app(\\/[A-Za-z0-9_-]+)*$"},"contact_ok":{"type":"boolean"},"request_ids":{"maxItems":5,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"screenshot":{"description":"The page as session replay records it (text masked, no input values), which the person saw before sending","type":"object","properties":{"tree":{},"width":{"type":"integer","minimum":0,"maximum":20000},"height":{"type":"integer","minimum":0,"maximum":200000}},"required":["tree"],"additionalProperties":false}},"required":["kind","text"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/feedback/survey":{"get":{"tags":["Feedback"],"summary":"A one-question survey for you, when one is due (at most every 30 days, after your first week); otherwise null","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Feedback"],"summary":"Answer (1–5, optionally a few words) or dismiss the survey you were offered","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string","maxLength":40},"score":{"type":"integer","minimum":1,"maximum":5},"comment":{"type":"string","maxLength":500},"dismissed":{"type":"boolean"},"page":{"type":"string","maxLength":200,"pattern":"^\\/app(\\/[A-Za-z0-9_-]+)*$"}},"required":["key"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me":{"get":{"tags":["Account"],"summary":"Who am I: principal, active organization, role and scopes","security":[{"apiKey":[]},{"oauth2":[]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"me"},"kind":{"type":"string","enum":["user","api_key","oauth_app"]},"name":{"type":"string"},"user_id":{"type":["string","null"]},"organization_id":{"type":["string","null"]},"organization_name":{"description":"The name of the organization the credential belongs to","type":["string","null"]},"role":{"type":["string","null"]},"scopes":{"type":"array","items":{"type":"string"}},"two_factor_enabled":{"type":"boolean"},"passkeys":{"type":"number"},"mfa_required":{"type":"boolean"},"member_role":{"type":["string","null"]},"organization_deletion":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"organization_deletion"},"requested_at":{"type":"string"},"purge_after":{"type":"string"},"requested_by":{"type":["string","null"]}},"required":["id","object","requested_at","purge_after","requested_by"],"additionalProperties":false},{"type":"null"}]}},"required":["object","kind","name","user_id","organization_id","organization_name","role","scopes","mfa_required"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/organization":{"get":{"tags":["Organization"],"summary":"Get the active organization","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"organization"},"name":{"type":"string"},"slug":{"type":"string"},"created_at":{"type":"string"}},"required":["id","object","name","slug","created_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Organization"],"summary":"Rename the organization (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`.","security":[{"apiKey":[]},{"oauth2":["security:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"organization"},"name":{"type":"string"},"slug":{"type":"string"},"created_at":{"type":"string"}},"required":["id","object","name","slug","created_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Organization"],"summary":"Schedule the organization's deletion: it's suspended at once and, unless an owner undoes it within 30 days, purged with all its data, including audit history (owner, web only, the exact name to confirm)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"confirm_name":{"type":"string"}},"required":["confirm_name"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"organization_deletion"},"requested_at":{"type":"string"},"purge_after":{"type":"string"},"requested_by":{"type":["string","null"]},"organization_id":{"type":"string"},"deleted":{"type":"boolean","const":false},"scheduled":{"type":"boolean","const":true}},"required":["id","object","requested_at","purge_after","requested_by","organization_id","deleted","scheduled"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/organization/deletion":{"get":{"tags":["Organization"],"summary":"Whether the organization is scheduled for deletion, and when it will be purged (answers while it's suspended)","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"organization_deletion_status"},"pending":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"organization_deletion"},"requested_at":{"type":"string"},"purge_after":{"type":"string"},"requested_by":{"type":["string","null"]}},"required":["id","object","requested_at","purge_after","requested_by"],"additionalProperties":false},{"type":"null"}]},"can_undo":{"type":"boolean"}},"required":["object","pending","can_undo"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/organization/deletion/cancel":{"post":{"tags":["Organization"],"summary":"Undo the organization's scheduled deletion before its window ends (owner, web only)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"organization_deletion"},"organization_id":{"type":"string"},"cancelled_at":{"type":"string"},"cancelled":{"type":"boolean","const":true}},"required":["id","object","organization_id","cancelled_at","cancelled"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/members":{"get":{"tags":["Organization"],"summary":"List members and their roles","x-required-scope":"members:read","description":"Requires scope `members:read`.","security":[{"apiKey":[]},{"oauth2":["members:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":true,"schema":{"default":"created_at","type":"string","enum":["created_at","-created_at"]}},{"name":"created_after","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"created_before","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"member"},"user_id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["owner","member","viewer","reviewer"]},"created_at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","object","user_id","name","email","role","created_at"],"additionalProperties":false}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/members/{id}":{"patch":{"tags":["Organization"],"summary":"Change a member's role (owner)","x-required-scope":"members:write","description":"Requires scope `members:write`.","security":[{"apiKey":[]},{"oauth2":["members:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"role":{"type":"string","enum":["owner","member","viewer","reviewer"]}},"required":["role"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"member"},"user_id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["owner","member","viewer","reviewer"]},"created_at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","object","user_id","name","email","role","created_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Organization"],"summary":"Remove a member and revoke their API keys and app connections (owner)","x-required-scope":"members:write","description":"Requires scope `members:write`.","security":[{"apiKey":[]},{"oauth2":["members:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/invitations":{"get":{"tags":["Organization"],"summary":"List pending invitations (owner)","x-required-scope":"members:write","description":"Requires scope `members:write`.","security":[{"apiKey":[]},{"oauth2":["members:write"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":true,"schema":{"default":"-created_at","type":"string","enum":["created_at","-created_at"]}},{"name":"created_after","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"created_before","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"invitation"},"email":{"type":"string"},"role":{"type":"string"},"status":{"type":"string"},"expires_at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","object","email","role","status","expires_at"],"additionalProperties":false}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Organization"],"summary":"Invite someone by email (owner, web only)","x-required-scope":"members:write","description":"Requires scope `members:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["owner","member","viewer","reviewer"]}},"required":["email","role"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"invitation"},"email":{"type":"string"},"role":{"type":"string"},"status":{"type":"string"},"expires_at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","object","email","role","status","expires_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/invitations/{id}/resend":{"post":{"tags":["Organization"],"summary":"Resend a pending invitation (owner, web only)","x-required-scope":"members:write","description":"Requires scope `members:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"invitation"},"email":{"type":"string"},"role":{"type":"string"},"status":{"type":"string"},"expires_at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","object","email","role","status","expires_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/invitations/{id}":{"delete":{"tags":["Organization"],"summary":"Cancel a pending invitation (owner, web only)","x-required-scope":"members:write","description":"Requires scope `members:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/workspaces":{"get":{"tags":["Workspaces"],"summary":"List workspaces (brands) in the organization","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":true,"schema":{"default":"created_at","type":"string","enum":["created_at","-created_at"]}},{"name":"created_after","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"created_before","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"workspace"},"name":{"type":"string"},"slug":{"type":"string"},"brand":{"type":"object","properties":{"display_name":{"type":"string","maxLength":80},"sender_name":{"type":"string","maxLength":80},"signature":{"type":"string","maxLength":2000},"website":{"type":"string","maxLength":300,"format":"uri"},"logo_url":{"type":"string","maxLength":500,"pattern":"^https:\\/\\/"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"additionalProperties":false},"locale":{"type":"object","properties":{"language":{"description":"What the workspace's content is written in (en, de, pt-BR)","type":"string"},"currency":{"description":"The currency the workspace's prices and values are in (ISO 4217)","type":"string"},"timezone":{"description":"The workspace's time zone (IANA)","type":"string"},"country":{"description":"The workspace's home country (ISO 3166 alpha-2)","type":"string"}},"additionalProperties":false},"member_ids":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","object","name","slug","created_at"],"additionalProperties":false}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Workspaces"],"summary":"Create a workspace (owner)","x-required-scope":"settings:write","description":"Requires scope `settings:write`.","security":[{"apiKey":[]},{"oauth2":["settings:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"slug":{"type":"string","pattern":"^[a-z0-9-]{1,48}$"}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"workspace"},"name":{"type":"string"},"slug":{"type":"string"},"brand":{"type":"object","properties":{"display_name":{"type":"string","maxLength":80},"sender_name":{"type":"string","maxLength":80},"signature":{"type":"string","maxLength":2000},"website":{"type":"string","maxLength":300,"format":"uri"},"logo_url":{"type":"string","maxLength":500,"pattern":"^https:\\/\\/"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"additionalProperties":false},"locale":{"type":"object","properties":{"language":{"description":"What the workspace's content is written in (en, de, pt-BR)","type":"string"},"currency":{"description":"The currency the workspace's prices and values are in (ISO 4217)","type":"string"},"timezone":{"description":"The workspace's time zone (IANA)","type":"string"},"country":{"description":"The workspace's home country (ISO 3166 alpha-2)","type":"string"}},"additionalProperties":false},"member_ids":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","object","name","slug","created_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/workspaces/{id}":{"patch":{"tags":["Workspaces"],"summary":"Rename a workspace, or set its profile, language, currency and time zone (owner)","x-required-scope":"settings:write","description":"Requires scope `settings:write`.","security":[{"apiKey":[]},{"oauth2":["settings:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"brand":{"type":"object","properties":{"display_name":{"type":"string","maxLength":80},"sender_name":{"type":"string","maxLength":80},"signature":{"type":"string","maxLength":2000},"website":{"type":"string","maxLength":300,"format":"uri"},"logo_url":{"type":"string","maxLength":500,"pattern":"^https:\\/\\/"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"additionalProperties":false},"locale":{"description":"Replaces the workspace's language, currency, time zone and country; leave a field out to unset it","type":"object","properties":{"language":{"description":"What the workspace's content is written in (en, de, pt-BR)","type":"string"},"currency":{"description":"The currency the workspace's prices and values are in (ISO 4217)","type":"string"},"timezone":{"description":"The workspace's time zone (IANA)","type":"string"},"country":{"description":"The workspace's home country (ISO 3166 alpha-2)","type":"string"}},"additionalProperties":false}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"workspace"},"name":{"type":"string"},"slug":{"type":"string"},"brand":{"type":"object","properties":{"display_name":{"type":"string","maxLength":80},"sender_name":{"type":"string","maxLength":80},"signature":{"type":"string","maxLength":2000},"website":{"type":"string","maxLength":300,"format":"uri"},"logo_url":{"type":"string","maxLength":500,"pattern":"^https:\\/\\/"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"additionalProperties":false},"locale":{"type":"object","properties":{"language":{"description":"What the workspace's content is written in (en, de, pt-BR)","type":"string"},"currency":{"description":"The currency the workspace's prices and values are in (ISO 4217)","type":"string"},"timezone":{"description":"The workspace's time zone (IANA)","type":"string"},"country":{"description":"The workspace's home country (ISO 3166 alpha-2)","type":"string"}},"additionalProperties":false},"member_ids":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","object","name","slug","created_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Workspaces"],"summary":"Delete a workspace (owner)","x-required-scope":"settings:write","description":"Requires scope `settings:write`.","security":[{"apiKey":[]},{"oauth2":["settings:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean","const":true}},"required":["id","deleted"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/workspaces/limits/{userId}":{"delete":{"tags":["Workspaces"],"summary":"Lift a person's workspace limit (they see every workspace's records) (owner)","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"user_id":{"type":"string"},"limited":{"type":"boolean"}},"required":["user_id","limited"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/workspaces/{id}/members":{"put":{"tags":["Workspaces"],"summary":"Limit people to this workspace's records (with their other workspaces); an empty list clears it (owner)","x-required-scope":"members:write","description":"Requires scope `members:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"user_ids":{"maxItems":500,"type":"array","items":{"type":"string","maxLength":64}}},"required":["user_ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"workspace"},"name":{"type":"string"},"slug":{"type":"string"},"brand":{"type":"object","properties":{"display_name":{"type":"string","maxLength":80},"sender_name":{"type":"string","maxLength":80},"signature":{"type":"string","maxLength":2000},"website":{"type":"string","maxLength":300,"format":"uri"},"logo_url":{"type":"string","maxLength":500,"pattern":"^https:\\/\\/"},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"additionalProperties":false},"locale":{"type":"object","properties":{"language":{"description":"What the workspace's content is written in (en, de, pt-BR)","type":"string"},"currency":{"description":"The currency the workspace's prices and values are in (ISO 4217)","type":"string"},"timezone":{"description":"The workspace's time zone (IANA)","type":"string"},"country":{"description":"The workspace's home country (ISO 3166 alpha-2)","type":"string"}},"additionalProperties":false},"member_ids":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","object","name","slug","created_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/api-keys":{"get":{"tags":["API keys"],"summary":"List API keys (secrets are never returned)","x-required-scope":"keys:write","description":"Requires scope `keys:write`.","security":[{"apiKey":[]},{"oauth2":["keys:write"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":true,"schema":{"default":"-created_at","type":"string","enum":["created_at","-created_at"]}},{"name":"created_after","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"created_before","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"api_key"},"name":{"type":"string"},"start":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"rate_limit_per_minute":{"type":["number","null"]},"created_at":{"type":"string","description":"ISO 8601 timestamp"},"last_used_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"revoked_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"expiry":{"type":"string","enum":["expires","expired","never_expires","no_expiry"],"description":"expires: on expires_at; never_expires: an owner chose no expiry; no_expiry: made before keys expired by default (set an expiry or roll it)"},"never_expires":{"type":"boolean"},"allowed_cidrs":{"type":"array","items":{"type":"string"},"description":"Address ranges the key works from (empty: anywhere)"}},"required":["id","object","name","start","scopes","rate_limit_per_minute","created_at","last_used_at","expires_at","revoked_at","expiry","never_expires","allowed_cidrs"],"additionalProperties":false}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["API keys"],"summary":"Create an API key. The secret is shown once in this response.","x-required-scope":"keys:write","description":"Requires scope `keys:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"scopes":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"string","maxLength":64},"description":"Bundles (org:read, agents:write…), fine scopes (agents:read, messages:send…) or resource:*. Sending always needs messages:send by name."},"expires_in_days":{"description":"Days until the key stops working (default 90, at most 365)","type":"integer","minimum":1,"maximum":365},"never_expires":{"description":"Owners only, with never_expires_reason: the key never expires","type":"boolean","const":true},"never_expires_reason":{"type":"string","minLength":10,"maxLength":500,"description":"Why this key must never expire (recorded in the audit log)"},"rate_limit_per_minute":{"type":"integer","minimum":1,"maximum":1000},"allowed_cidrs":{"description":"Only these address ranges may use the key (IPv4/IPv6 CIDR); empty or missing: anywhere","maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["name","scopes"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"api_key"},"name":{"type":"string"},"start":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"rate_limit_per_minute":{"type":["number","null"]},"created_at":{"type":"string","description":"ISO 8601 timestamp"},"last_used_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"revoked_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"expiry":{"type":"string","enum":["expires","expired","never_expires","no_expiry"],"description":"expires: on expires_at; never_expires: an owner chose no expiry; no_expiry: made before keys expired by default (set an expiry or roll it)"},"never_expires":{"type":"boolean"},"allowed_cidrs":{"type":"array","items":{"type":"string"},"description":"Address ranges the key works from (empty: anywhere)"},"secret":{"type":"string"}},"required":["id","object","name","start","scopes","rate_limit_per_minute","created_at","last_used_at","expires_at","revoked_at","expiry","never_expires","allowed_cidrs","secret"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/api-keys/{id}":{"delete":{"tags":["API keys"],"summary":"Revoke an API key","x-required-scope":"keys:write","description":"Requires scope `keys:write`.","security":[{"apiKey":[]},{"oauth2":["keys:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"api_key"},"name":{"type":"string"},"start":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"rate_limit_per_minute":{"type":["number","null"]},"created_at":{"type":"string","description":"ISO 8601 timestamp"},"last_used_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"revoked_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"expiry":{"type":"string","enum":["expires","expired","never_expires","no_expiry"],"description":"expires: on expires_at; never_expires: an owner chose no expiry; no_expiry: made before keys expired by default (set an expiry or roll it)"},"never_expires":{"type":"boolean"},"allowed_cidrs":{"type":"array","items":{"type":"string"},"description":"Address ranges the key works from (empty: anywhere)"}},"required":["id","object","name","start","scopes","rate_limit_per_minute","created_at","last_used_at","expires_at","revoked_at","expiry","never_expires","allowed_cidrs"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["API keys"],"summary":"Change a key's name, address ranges or expiry (from now, at most 365 days; never expiring: owners, with a reason)","x-required-scope":"keys:write","description":"Requires scope `keys:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"allowed_cidrs":{"description":"Replace the address ranges (empty: anywhere)","maxItems":50,"type":"array","items":{"type":"string","maxLength":64}},"expires_in_days":{"description":"Expire this many days from now","type":"integer","minimum":1,"maximum":365},"never_expires":{"type":"boolean","const":true},"never_expires_reason":{"type":"string","minLength":10,"maxLength":500,"description":"Why this key must never expire (recorded in the audit log)"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"api_key"},"name":{"type":"string"},"start":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"rate_limit_per_minute":{"type":["number","null"]},"created_at":{"type":"string","description":"ISO 8601 timestamp"},"last_used_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"revoked_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"expiry":{"type":"string","enum":["expires","expired","never_expires","no_expiry"],"description":"expires: on expires_at; never_expires: an owner chose no expiry; no_expiry: made before keys expired by default (set an expiry or roll it)"},"never_expires":{"type":"boolean"},"allowed_cidrs":{"type":"array","items":{"type":"string"},"description":"Address ranges the key works from (empty: anywhere)"}},"required":["id","object","name","start","scopes","rate_limit_per_minute","created_at","last_used_at","expires_at","revoked_at","expiry","never_expires","allowed_cidrs"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/api-keys/{id}/roll":{"post":{"tags":["API keys"],"summary":"Replace a key's secret. The old secret stops working immediately; the new one is shown once.","x-required-scope":"keys:write","description":"Requires scope `keys:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"api_key"},"name":{"type":"string"},"start":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"rate_limit_per_minute":{"type":["number","null"]},"created_at":{"type":"string","description":"ISO 8601 timestamp"},"last_used_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"revoked_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"expiry":{"type":"string","enum":["expires","expired","never_expires","no_expiry"],"description":"expires: on expires_at; never_expires: an owner chose no expiry; no_expiry: made before keys expired by default (set an expiry or roll it)"},"never_expires":{"type":"boolean"},"allowed_cidrs":{"type":"array","items":{"type":"string"},"description":"Address ranges the key works from (empty: anywhere)"},"secret":{"type":"string"}},"required":["id","object","name","start","scopes","rate_limit_per_minute","created_at","last_used_at","expires_at","revoked_at","expiry","never_expires","allowed_cidrs","secret"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/audit-logs":{"get":{"tags":["Audit log"],"summary":"Every query and action in the organization, newest first (owner)","x-required-scope":"audit:read","description":"Requires scope `audit:read`.","security":[{"apiKey":[]},{"oauth2":["audit:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":true,"schema":{"default":"-created_at","type":"string","enum":["created_at","-created_at"]}},{"name":"created_after","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"created_before","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["query","action"]}},{"name":"actor_type","in":"query","required":false,"schema":{"type":"string","enum":["user","api_key","oauth_app","agent","system"]}},{"name":"resource_type","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"resource_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"audit_entry"},"kind":{"type":"string","enum":["query","action"]},"actor_type":{"type":"string"},"actor_id":{"type":["string","null"]},"actor_name":{"type":["string","null"]},"via":{"type":"string"},"action":{"type":"string"},"resource_type":{"type":["string","null"]},"resource_id":{"type":["string","null"]},"status":{"type":["number","null"]},"request_id":{"type":["string","null"]},"ip":{"type":["string","null"]},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"created_at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","object","kind","actor_type","actor_id","actor_name","via","action","resource_type","resource_id","status","request_id","ip","metadata","created_at"],"additionalProperties":false}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/credential-uses":{"get":{"tags":["Audit log"],"summary":"Each use of a connected account's stored credentials: which connection, for which request or job, by which person, key, app or agent, newest first (owner)","x-required-scope":"audit:read","description":"Requires scope `audit:read`.","security":[{"apiKey":[]},{"oauth2":["audit:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":true,"schema":{"default":"-created_at","type":"string","enum":["created_at","-created_at"]}},{"name":"created_after","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"created_before","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"connection_id","in":"query","required":false,"schema":{"type":"string","maxLength":80}},{"name":"credential","in":"query","required":false,"schema":{"type":"string","enum":["connection","vendor","secret","model_key","sso","ops_grant"]}},{"name":"actor_type","in":"query","required":false,"schema":{"type":"string","enum":["user","api_key","oauth_app","agent","system"]}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"credential_use"},"credential":{"type":"string","enum":["connection","vendor","secret","model_key","sso","ops_grant"],"description":"A connected account, an organization's own vendor account, an organization secret (an MCP server's, an agent step's, a vendor key), its own model key, or its SSO client secret"},"connection_id":{"description":"The connection id, the vendor's name, the secret's name, `llm_api_key`, or the SSO connection id; `*` for the summary of uses past a request's or job's first 500 distinct ones","type":["string","null"]},"overflow":{"type":"boolean","description":"This entry sums the uses past the first 500 distinct ones in its request or job"},"distinct":{"description":"For a summary: how many distinct uses it covers (at least)","type":["number","null"]},"provider":{"type":["string","null"]},"uses":{"type":"number","description":"Times it was opened in that request or job"},"actor_type":{"type":"string"},"actor_id":{"type":["string","null"]},"actor_name":{"type":["string","null"]},"on_behalf_of":{"type":["string","null"]},"via":{"type":"string"},"request_id":{"type":["string","null"]},"job":{"type":["string","null"]},"job_id":{"type":["string","null"]},"where":{"type":["string","null"]},"first_at":{"type":["string","null"]},"last_at":{"type":["string","null"]},"created_at":{"type":"string"}},"required":["id","object","credential","connection_id","overflow","distinct","provider","uses","actor_type","actor_id","actor_name","on_behalf_of","via","request_id","job","job_id","where","first_at","last_at","created_at"],"additionalProperties":false}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/runs":{"get":{"tags":["Agents"],"summary":"List runs, newest first","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":true,"schema":{"default":"-created_at","type":"string","enum":["created_at","-created_at"]}},{"name":"created_after","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"created_before","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":32}},{"name":"agent","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"run"},"agent":{"type":"string"},"agent_id":{"type":["string","null"]},"agent_version_id":{"type":["string","null"]},"status":{"type":"string"},"display_status":{"type":"string","description":"Starting, Working, Waiting on you, Done, Failed or Cancelled"},"tainted":{"type":"boolean","description":"The run read content from outside the company"},"started_by":{"type":["string","null"]},"trigger":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"output":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"error":{"type":["string","null"]},"attempt":{"type":"number"},"replay_of":{"type":["string","null"]},"created_at":{"type":"string","description":"ISO 8601 timestamp"},"started_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"seq":{"type":"number"},"name":{"type":"string"},"effect":{"type":"string","enum":["read","reason","write"]},"tool":{"type":["string","null"]},"status":{"type":"string"},"note":{"type":["string","null"]},"input":{},"output":{},"record_ids":{"type":"array","items":{"type":"string"}},"flags":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"message":{"type":"string"},"source":{"type":"string"}},"required":["kind","message"],"additionalProperties":false}},"usage":{},"started_at":{"type":"string","description":"ISO 8601 timestamp"},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]}},"required":["id","seq","name","effect","tool","status","note","input","output","record_ids","flags","usage","started_at","finished_at"],"additionalProperties":false}}},"required":["id","object","agent","agent_id","agent_version_id","status","display_status","tainted","started_by","trigger","input","output","error","attempt","replay_of","created_at","started_at","finished_at"],"additionalProperties":false}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/runs/{id}":{"get":{"tags":["Agents"],"summary":"Get a run with its effect-tagged step trace","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"run"},"agent":{"type":"string"},"agent_id":{"type":["string","null"]},"agent_version_id":{"type":["string","null"]},"status":{"type":"string"},"display_status":{"type":"string","description":"Starting, Working, Waiting on you, Done, Failed or Cancelled"},"tainted":{"type":"boolean","description":"The run read content from outside the company"},"started_by":{"type":["string","null"]},"trigger":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"output":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"error":{"type":["string","null"]},"attempt":{"type":"number"},"replay_of":{"type":["string","null"]},"created_at":{"type":"string","description":"ISO 8601 timestamp"},"started_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"seq":{"type":"number"},"name":{"type":"string"},"effect":{"type":"string","enum":["read","reason","write"]},"tool":{"type":["string","null"]},"status":{"type":"string"},"note":{"type":["string","null"]},"input":{},"output":{},"record_ids":{"type":"array","items":{"type":"string"}},"flags":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"message":{"type":"string"},"source":{"type":"string"}},"required":["kind","message"],"additionalProperties":false}},"usage":{},"started_at":{"type":"string","description":"ISO 8601 timestamp"},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]}},"required":["id","seq","name","effect","tool","status","note","input","output","record_ids","flags","usage","started_at","finished_at"],"additionalProperties":false}}},"required":["id","object","agent","agent_id","agent_version_id","status","display_status","tainted","started_by","trigger","input","output","error","attempt","replay_of","created_at","started_at","finished_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/runs/{id}/approve":{"post":{"tags":["Agents"],"summary":"Approve the run's pending action and resume it","x-required-scope":"approvals:write","description":"Requires scope `approvals:write`.","security":[{"apiKey":[]},{"oauth2":["approvals:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"resumed":{"type":"boolean","const":true}},"required":["id","resumed"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/runs/{id}/reject":{"post":{"tags":["Agents"],"summary":"Reject the run's pending action; the run ends","x-required-scope":"approvals:write","description":"Requires scope `approvals:write`.","security":[{"apiKey":[]},{"oauth2":["approvals:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"reason":{"type":"string","maxLength":500}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"run"},"agent":{"type":"string"},"agent_id":{"type":["string","null"]},"agent_version_id":{"type":["string","null"]},"status":{"type":"string"},"display_status":{"type":"string","description":"Starting, Working, Waiting on you, Done, Failed or Cancelled"},"tainted":{"type":"boolean","description":"The run read content from outside the company"},"started_by":{"type":["string","null"]},"trigger":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"output":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"error":{"type":["string","null"]},"attempt":{"type":"number"},"replay_of":{"type":["string","null"]},"created_at":{"type":"string","description":"ISO 8601 timestamp"},"started_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"seq":{"type":"number"},"name":{"type":"string"},"effect":{"type":"string","enum":["read","reason","write"]},"tool":{"type":["string","null"]},"status":{"type":"string"},"note":{"type":["string","null"]},"input":{},"output":{},"record_ids":{"type":"array","items":{"type":"string"}},"flags":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"message":{"type":"string"},"source":{"type":"string"}},"required":["kind","message"],"additionalProperties":false}},"usage":{},"started_at":{"type":"string","description":"ISO 8601 timestamp"},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]}},"required":["id","seq","name","effect","tool","status","note","input","output","record_ids","flags","usage","started_at","finished_at"],"additionalProperties":false}}},"required":["id","object","agent","agent_id","agent_version_id","status","display_status","tainted","started_by","trigger","input","output","error","attempt","replay_of","created_at","started_at","finished_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/runs/{id}/cancel":{"post":{"tags":["Agents"],"summary":"Cancel a run that hasn't finished","x-required-scope":"agents:write","description":"Requires scope `agents:write`.","security":[{"apiKey":[]},{"oauth2":["agents:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"run"},"agent":{"type":"string"},"agent_id":{"type":["string","null"]},"agent_version_id":{"type":["string","null"]},"status":{"type":"string"},"display_status":{"type":"string","description":"Starting, Working, Waiting on you, Done, Failed or Cancelled"},"tainted":{"type":"boolean","description":"The run read content from outside the company"},"started_by":{"type":["string","null"]},"trigger":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"output":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"error":{"type":["string","null"]},"attempt":{"type":"number"},"replay_of":{"type":["string","null"]},"created_at":{"type":"string","description":"ISO 8601 timestamp"},"started_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"steps":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"seq":{"type":"number"},"name":{"type":"string"},"effect":{"type":"string","enum":["read","reason","write"]},"tool":{"type":["string","null"]},"status":{"type":"string"},"note":{"type":["string","null"]},"input":{},"output":{},"record_ids":{"type":"array","items":{"type":"string"}},"flags":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"message":{"type":"string"},"source":{"type":"string"}},"required":["kind","message"],"additionalProperties":false}},"usage":{},"started_at":{"type":"string","description":"ISO 8601 timestamp"},"finished_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]}},"required":["id","seq","name","effect","tool","status","note","input","output","record_ids","flags","usage","started_at","finished_at"],"additionalProperties":false}}},"required":["id","object","agent","agent_id","agent_version_id","status","display_status","tainted","started_by","trigger","input","output","error","attempt","replay_of","created_at","started_at","finished_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/policy-decisions":{"get":{"tags":["Agents"],"summary":"Policy engine decisions on agent actions, newest first","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":true,"schema":{"default":"-created_at","type":"string","enum":["created_at","-created_at"]}},{"name":"created_after","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"created_before","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"run_id","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"policy_decision"},"run_id":{"type":["string","null"]},"action_type":{"type":"string"},"effect":{"type":"string"},"decision":{"type":"string","enum":["allow","deny","require_approval"]},"reasons":{"type":"array","items":{"type":"object","properties":{"rule":{"type":"string"},"outcome":{"type":"string"},"message":{"type":"string"}},"required":["rule","outcome","message"],"additionalProperties":false}},"reviewer_id":{"type":["string","null"]},"reviewed_at":{"anyOf":[{"type":"string","description":"ISO 8601 timestamp"},{"type":"null"}]},"review_outcome":{"anyOf":[{"type":"string","enum":["approved","rejected"]},{"type":"null"}]},"created_at":{"type":"string","description":"ISO 8601 timestamp"}},"required":["id","object","run_id","action_type","effect","decision","reasons","reviewer_id","reviewed_at","review_outcome","created_at"],"additionalProperties":false}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/tools":{"get":{"tags":["Agent platform"],"summary":"Every tool agents (and MCP clients) can call: effect, integration, access level, and the organization's gates","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/tools/{name}":{"patch":{"tags":["Agent platform"],"summary":"Turn a tool off, require approval before each use, or restrict it to owners","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","maxLength":80}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"},"require_approval":{"type":"boolean"},"admin_only":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/tools/{name}/history":{"get":{"tags":["Agent platform"],"summary":"Recent changes to a tool's gates","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","maxLength":80}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/events":{"get":{"tags":["Agent platform"],"summary":"Recent platform events (what triggers and webhooks see)","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[{"name":"type","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/webhooks":{"get":{"tags":["Agent platform"],"summary":"Outbound webhook endpoints","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Agent platform"],"summary":"Add an endpoint. The signing secret (whsec_…) is returned once.","x-required-scope":"security:write","description":"Requires scope `security:write`.","security":[{"apiKey":[]},{"oauth2":["security:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri"},"events":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","maxLength":64}},"description":{"type":"string","maxLength":200}},"required":["url","events"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/webhooks/{id}":{"patch":{"tags":["Agent platform"],"summary":"Change an endpoint, or pause it (enabled: false)","x-required-scope":"security:write","description":"Requires scope `security:write`.","security":[{"apiKey":[]},{"oauth2":["security:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"starts_with","pattern":"^whe_.*"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","maxLength":2000,"format":"uri"},"events":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","maxLength":64}},"description":{"type":"string","maxLength":200},"enabled":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Agent platform"],"summary":"Remove an endpoint and its delivery log","x-required-scope":"security:write","description":"Requires scope `security:write`.","security":[{"apiKey":[]},{"oauth2":["security:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"starts_with","pattern":"^whe_.*"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deleted":{"type":"boolean","const":true}},"required":["deleted"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/webhooks/{id}/rotate-secret":{"post":{"tags":["Agent platform"],"summary":"New signing secret; the old one also signs for 24 hours (force: true drops it now)","x-required-scope":"security:write","description":"Requires scope `security:write`.","security":[{"apiKey":[]},{"oauth2":["security:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"starts_with","pattern":"^whe_.*"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"force":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"secret":{"type":"string"}},"required":["secret"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/webhooks/{id}/test":{"post":{"tags":["Agent platform"],"summary":"Send a test event (webhook.test)","x-required-scope":"security:write","description":"Requires scope `security:write`.","security":[{"apiKey":[]},{"oauth2":["security:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"starts_with","pattern":"^whe_.*"}}],"responses":{"202":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/webhooks/{id}/deliveries":{"get":{"tags":["Agent platform"],"summary":"Deliveries of the last 30 days, newest first","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"starts_with","pattern":"^whe_.*"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/webhook-deliveries/{id}/resend":{"post":{"tags":["Agent platform"],"summary":"Send a delivery again","x-required-scope":"security:write","description":"Requires scope `security:write`.","security":[{"apiKey":[]},{"oauth2":["security:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"starts_with","pattern":"^whd_.*"}}],"responses":{"202":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/approvals":{"get":{"tags":["Agent platform"],"summary":"The approval inbox: pending (default) or completed items, by agent, kind or assignee (assignee=me)","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[{"name":"status","in":"query","required":true,"schema":{"default":"pending","type":"string","enum":["pending","completed"]}},{"name":"run_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"agent_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["action","decision"]}},{"name":"assignee","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"limit","in":"query","required":true,"schema":{"default":100,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/approvals/{id}":{"get":{"tags":["Agent platform"],"summary":"One approval item","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"starts_with","pattern":"^apr_.*"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/approvals/{id}/decide":{"post":{"tags":["Agent platform"],"summary":"Approve (all calls, some, or edited) or reject an item. People in the web app only; send the version you saw.","x-required-scope":"approvals:write","description":"Requires scope `approvals:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"starts_with","pattern":"^apr_.*"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"action":{"type":"string","enum":["approve","reject"]},"approve":{"maxItems":25,"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}},"edits":{"type":"object","propertyNames":{"type":"string","pattern":"^\\d+$"},"additionalProperties":{}},"choice":{"type":"string","maxLength":200},"reason":{"type":"string","maxLength":1000},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The item's version you saw (optimistic lock)"}},"required":["action","version"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/approvals/{id}/assign":{"post":{"tags":["Agent platform"],"summary":"Give a pending item to someone else to decide","x-required-scope":"approvals:write","description":"Requires scope `approvals:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"starts_with","pattern":"^apr_.*"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"user_id":{"type":"string","maxLength":64}},"required":["user_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/runs/{id}/scorecard":{"get":{"tags":["Agent platform"],"summary":"The run's QA scorecard: checks and the model judge's score against the spec's rubric","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"starts_with","pattern":"^run_.*"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/settings/approvals":{"put":{"tags":["Agent platform"],"summary":"How long items wait before they expire (1–90 days, or null for never)","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expiry_days":{"anyOf":[{"type":"integer","minimum":1,"maximum":90},{"type":"null"}]}},"required":["expiry_days"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expiry_days":{"type":["number","null"]}},"required":["expiry_days"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"get":{"tags":["Agent platform"],"summary":"Approval settings","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expiry_days":{"type":["number","null"]}},"required":["expiry_days"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/runs/{id}/steps/{stepId}/revert":{"post":{"tags":["Agent platform"],"summary":"Undo a write step's changes (values changed since are left alone and listed)","x-required-scope":"agents:write","description":"Requires scope `agents:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"starts_with","pattern":"^run_.*"}},{"name":"stepId","in":"path","required":true,"schema":{"type":"string","format":"starts_with","pattern":"^stp_.*"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/today":{"get":{"tags":["Agent platform"],"summary":"Today: approvals waiting (tap to decide) and what happened while I was away","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/push/key":{"get":{"tags":["Agent platform"],"summary":"The Web Push public key (VAPID), or null when push isn't set up","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/push/subscriptions":{"post":{"tags":["Agent platform"],"summary":"Subscribe this device to push for approvals (the browser's push endpoint only)","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"endpoint":{"type":"string","maxLength":1000,"format":"uri"}},"required":["endpoint"],"additionalProperties":{}}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Agent platform"],"summary":"Unsubscribe this device","security":[{"session":[]}],"parameters":[{"name":"endpoint","in":"query","required":true,"schema":{"type":"string","maxLength":1000,"format":"uri"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/home":{"get":{"tags":["Agent platform"],"summary":"Home: approvals waiting and recent runs","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/secrets":{"get":{"tags":["Agent platform"],"summary":"Secret names for workflow HTTP blocks (values are never returned)","x-required-scope":"agents:read","description":"Requires scope `agents:read`.","security":[{"apiKey":[]},{"oauth2":["agents:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/secrets/{name}":{"put":{"tags":["Agent platform"],"summary":"Set a secret; agents use it as {\"$secret\": \"name\"} and only the call sees its value","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,40}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":4000}},"required":["value"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Agent platform"],"summary":"Remove a secret","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","maxLength":41}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deleted":{"type":"boolean","const":true}},"required":["deleted"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/settings/notifications":{"get":{"tags":["Settings"],"summary":"Organization notification defaults","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email_owners_on_run_failed":{"type":"boolean"},"email_owners_on_approval_needed":{"type":"boolean"},"daily_digest":{"type":"boolean"},"object":{"type":"string","const":"notification_settings"}},"required":["email_owners_on_run_failed","email_owners_on_approval_needed","daily_digest","object"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"put":{"tags":["Settings"],"summary":"Update organization notification defaults (owner)","x-required-scope":"settings:write","description":"Requires scope `settings:write`.","security":[{"apiKey":[]},{"oauth2":["settings:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email_owners_on_run_failed":{"type":"boolean"},"email_owners_on_approval_needed":{"type":"boolean"},"daily_digest":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email_owners_on_run_failed":{"type":"boolean"},"email_owners_on_approval_needed":{"type":"boolean"},"daily_digest":{"type":"boolean"},"object":{"type":"string","const":"notification_settings"}},"required":["email_owners_on_run_failed","email_owners_on_approval_needed","daily_digest","object"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/notifications":{"get":{"tags":["Notifications"],"summary":"Your notifications (in-app), newest first, with the unread count","security":[{"session":[]}],"parameters":[{"name":"unread","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}},{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/notifications/read":{"post":{"tags":["Notifications"],"summary":"Mark notifications read (ids, or all)","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ids":{"maxItems":200,"type":"array","items":{"type":"string","format":"starts_with","pattern":"^ntf_.*"}},"all":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"unread":{"type":"number"}},"required":["unread"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me/notification-preferences":{"get":{"tags":["Notifications"],"summary":"Each event × channel for you: on or off, and whether your organization decides it","security":[{"apiKey":[]},{"oauth2":[]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"put":{"tags":["Notifications"],"summary":"Turn one event × channel on or off for yourself (never past your organization's lock)","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"event":{"type":"string","maxLength":64},"channel":{"type":"string","enum":["in_app","email","slack"]},"enabled":{"type":"boolean"}},"required":["event","channel","enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/settings/notification-policy":{"get":{"tags":["Notifications"],"summary":"The organization's notification policy: events, channels, on by default and force off","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"events":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"channels":{"type":"array","items":{"type":"string"}},"matrix":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"slack_alerts":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["events","channels","matrix","slack_alerts"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"put":{"tags":["Notifications"],"summary":"Set the organization's defaults and locks per event × channel (owners)","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"matrix":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"type":"object","propertyNames":{"type":"string","enum":["in_app","email","slack"]},"additionalProperties":{"type":"object","properties":{"default_on":{"type":"boolean"},"force_off":{"type":"boolean"}},"additionalProperties":false}}}},"required":["matrix"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"matrix":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["matrix"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/settings/slack-alerts":{"put":{"tags":["Notifications"],"summary":"The chat channel team-wide alerts go to once a chat app is connected (owners): run failed, webhook failing, approval waiting","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"channel":{"anyOf":[{"type":"string","pattern":"^[CG][A-Z0-9]{6,20}$"},{"type":"null"}]},"events":{"maxItems":10,"type":"array","items":{"type":"string","enum":["run_failed","webhook_failing","approval_waiting"]}}},"required":["channel","events"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me/settings":{"get":{"tags":["Notifications"],"summary":"Your time zone, morning brief time, and whether you agreed to product email","security":[{"apiKey":[]},{"oauth2":[]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"timezone":{"type":"string"},"brief_time":{"type":"string"},"brief_enabled":{"type":"boolean"},"product_email":{"type":"boolean","description":"You agreed to product email from us in this organization: news and, now and then, a request for a review"}},"required":["timezone","brief_time","brief_enabled","product_email"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"put":{"tags":["Notifications"],"summary":"Set your time zone, morning brief time (HH:MM, your time) and whether you want product email from us","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"timezone":{"type":"string","maxLength":64},"brief_time":{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$"},"brief_enabled":{"type":"boolean"},"product_email":{"description":"K4: agree to (or stop) product email: news and, now and then, a request for a review. Off unless you turn it on","type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/schemas":{"get":{"tags":["Meta"],"summary":"List resources that have a JSON Schema","security":[{"apiKey":[]},{"oauth2":[]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"resource":{"type":"string"},"url":{"type":"string"}},"required":["resource","url"],"additionalProperties":false}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/schemas/{resource}":{"get":{"tags":["Meta"],"summary":"JSON Schema for one resource","security":[{"apiKey":[]},{"oauth2":[]},{"session":[]}],"parameters":[{"name":"resource","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"resource":{"type":"string"},"object":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"create":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"update":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["resource","object","create","update"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me/limits":{"get":{"tags":["Account"],"summary":"Your plan's limits before you reach them: how much of each is used, when it resets, what stops when it's reached and what still works","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/oauth-apps":{"get":{"tags":["OAuth apps"],"summary":"List partner OAuth apps registered for this organization (owner)","x-required-scope":"keys:write","description":"Requires scope `keys:write`.","security":[{"apiKey":[]},{"oauth2":["keys:write"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":true,"schema":{"default":"-created_at","type":"string","enum":["created_at","-created_at"]}},{"name":"created_after","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"created_before","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"oauth_app"},"dynamic":{"type":"boolean"},"name":{"type":"string"},"client_id":{"type":"string"},"confidential":{"type":"boolean"},"redirect_uris":{"type":"array","items":{"type":"string"}},"scopes":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string"},"revoked_at":{"type":["string","null"]}},"required":["id","object","dynamic","name","client_id","confidential","redirect_uris","scopes","created_at","revoked_at"],"additionalProperties":false}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["OAuth apps"],"summary":"Register a partner OAuth app. A confidential app's secret is shown once.","x-required-scope":"keys:write","description":"Requires scope `keys:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"redirect_uris":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uri"}},"scopes":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"string","maxLength":64}},"confidential":{"default":true,"type":"boolean"}},"required":["name","redirect_uris","scopes","confidential"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"oauth_app"},"dynamic":{"type":"boolean"},"name":{"type":"string"},"client_id":{"type":"string"},"confidential":{"type":"boolean"},"redirect_uris":{"type":"array","items":{"type":"string"}},"scopes":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string"},"revoked_at":{"type":["string","null"]},"client_secret":{"type":["string","null"]}},"required":["id","object","dynamic","name","client_id","confidential","redirect_uris","scopes","created_at","revoked_at","client_secret"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/oauth-apps/{id}":{"delete":{"tags":["OAuth apps"],"summary":"Revoke a partner app and every token it holds","x-required-scope":"keys:write","description":"Requires scope `keys:write`.","security":[{"apiKey":[]},{"oauth2":["keys:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"oauth_app"},"dynamic":{"type":"boolean"},"name":{"type":"string"},"client_id":{"type":"string"},"confidential":{"type":"boolean"},"redirect_uris":{"type":"array","items":{"type":"string"}},"scopes":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string"},"revoked_at":{"type":["string","null"]}},"required":["id","object","dynamic","name","client_id","confidential","redirect_uris","scopes","created_at","revoked_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/oauth/authorize-info":{"get":{"tags":["OAuth apps"],"summary":"Describe a pending authorization request (for the consent screen)","security":[{"session":[]}],"parameters":[{"name":"client_id","in":"query","required":true,"schema":{"type":"string"}},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string"}},{"name":"scope","in":"query","required":true,"schema":{"default":"","type":"string"}},{"name":"resource","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"app_name":{"type":"string"},"organization_id":{"type":"string"},"verified":{"type":"boolean"},"client_uri":{"type":["string","null"]},"redirect_host":{"type":"string"},"scopes":{"type":"array","items":{"type":"object","properties":{"scope":{"type":"string"},"description":{"type":"string"}},"required":["scope","description"],"additionalProperties":false}},"ops_host":{"description":"For scopes granted only on another host, the host to consent on instead","type":["string","null"]}},"required":["app_name","organization_id","verified","client_uri","redirect_host","scopes"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/oauth/decision":{"post":{"tags":["OAuth apps"],"summary":"Approve or deny an authorization request; returns where to send the browser","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"client_id":{"type":"string"},"redirect_uri":{"type":"string"},"scope":{"default":"","type":"string"},"state":{"type":"string","maxLength":500},"code_challenge":{"type":"string","pattern":"^[A-Za-z0-9_-]{43,128}$"},"code_challenge_method":{"type":"string","const":"S256"},"approve":{"type":"boolean"},"resource":{"description":"RFC 8707: the MCP server's URL for MCP clients","type":"string","format":"uri"}},"required":["client_id","redirect_uri","scope","code_challenge","code_challenge_method","approve"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"redirect_to":{"type":"string"}},"required":["redirect_to"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/oauth/grants":{"get":{"tags":["OAuth apps"],"summary":"Apps you've connected to this organization","security":[{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"client_id":{"type":"string"},"app_name":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string"},"last_used_at":{"type":["string","null"]}},"required":["client_id","app_name","scopes","created_at","last_used_at"],"additionalProperties":false}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data","has_more","next_cursor"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/oauth/grants/{client_id}":{"delete":{"tags":["OAuth apps"],"summary":"Disconnect an app you authorized (revokes your tokens for it)","security":[{"session":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"client_id":{"type":"string"},"revoked":{"type":"boolean","const":true}},"required":["client_id","revoked"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/oauth/connected-apps":{"get":{"tags":["OAuth apps"],"summary":"Apps people in this organization have connected (owners), with who and when","x-required-scope":"keys:write","description":"Requires scope `keys:write`.","security":[{"apiKey":[]},{"oauth2":["keys:write"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"client_id":{"type":"string"},"app_name":{"type":"string"},"verified":{"type":"boolean"},"people":{"type":"number"},"scopes":{"type":"array","items":{"type":"string"}},"last_used_at":{"type":["string","null"]}},"required":["client_id","app_name","verified","people","scopes","last_used_at"],"additionalProperties":false}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/oauth/connected-apps/{client_id}":{"delete":{"tags":["OAuth apps"],"summary":"Disconnect an app for everyone in this organization (revokes its tokens here)","x-required-scope":"keys:write","description":"Requires scope `keys:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"client_id":{"type":"string"},"revoked":{"type":"number"}},"required":["client_id","revoked"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/settings/oauth":{"put":{"tags":["OAuth apps"],"summary":"Whether people may authorize self-registered (dynamic) apps such as MCP clients (owners; on by default)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"dynamic_clients":{"type":"boolean"}},"required":["dynamic_clients"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"dynamic_clients":{"type":"boolean"}},"required":["dynamic_clients"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/oauth/device":{"get":{"tags":["OAuth apps"],"summary":"The CLI sign-in waiting for this code: the app, where and when it was asked for, and the scopes you'd grant in the active organization","security":[{"session":[]}],"parameters":[{"name":"user_code","in":"query","required":true,"schema":{"type":"string","maxLength":20}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"device_request"},"app_name":{"type":"string"},"user_code":{"type":"string"},"organization_id":{"type":"string"},"expires_at":{"type":"string"},"requested_from":{"description":"The address the sign-in was requested from (IPv6 as its /64)","type":["string","null"]},"requested_at":{"type":"string"},"requested_ago":{"type":"string"},"user_agent":{"type":["string","null"]},"scopes":{"type":"array","items":{"type":"object","properties":{"scope":{"type":"string"},"description":{"type":"string"}},"required":["scope","description"],"additionalProperties":false},"description":"Granted on approval"},"elevated":{"type":"array","items":{"type":"object","properties":{"scope":{"type":"string"},"description":{"type":"string"}},"required":["scope","description"],"additionalProperties":false},"description":"Sending and owner scopes: granted only if you opt in (allow_elevated) with a recent sign-in"},"not_granted":{"type":"array","items":{"type":"string"},"description":"Requested scopes you don't hold here (left out)"}},"required":["object","app_name","user_code","organization_id","expires_at","requested_from","requested_at","requested_ago","user_agent","scopes","elevated","not_granted"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/oauth/device/decision":{"post":{"tags":["OAuth apps"],"summary":"Approve or deny a CLI sign-in for the active organization (signed in, in the web app). Sending and owner scopes need allow_elevated and your password again. Audited.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"user_code":{"type":"string","maxLength":20},"approve":{"type":"boolean"},"allow_elevated":{"default":false,"description":"Also grant the sending and owner scopes it asked for (with password)","type":"boolean"},"password":{"description":"Your password, again: required with allow_elevated","type":"string","minLength":1,"maxLength":200}},"required":["user_code","approve","allow_elevated"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"device_decision"},"status":{"type":"string","enum":["approved","denied"]},"scopes":{"type":"array","items":{"type":"string"}}},"required":["object","status","scopes"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/assistants":{"get":{"tags":["Settings"],"summary":"Outside assistants connected to the MCP server: what each may do (read, draft or propose) and whether it's on the allowlist","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":100,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":120}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/assistants/{id}":{"patch":{"tags":["Settings"],"summary":"Change what an outside assistant may do through the MCP server, or whether it's on the allowlist (owners; more access, or allowing it, in the web app only)","x-required-scope":"settings:write","description":"Requires scope `settings:write`.","security":[{"apiKey":[]},{"oauth2":["settings:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^asn_[0-9A-Za-z]{10,40}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tier":{"type":"string","enum":["read","draft","propose"]},"allowed":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/assistants/keys/{key_id}":{"post":{"tags":["Settings"],"summary":"Set what an API key may do through the MCP server before its assistant first connects, or whether it's on the allowlist (owners; more than read in the web app only)","x-required-scope":"settings:write","description":"Requires scope `settings:write`.","security":[{"apiKey":[]},{"oauth2":["settings:write"]},{"session":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":60}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tier":{"type":"string","enum":["read","draft","propose"]},"allowed":{"type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/assistants/allowlist":{"put":{"tags":["Settings"],"summary":"Turn the allowlist on (only allowed assistants may connect) or off (owners; off in the web app only)","x-required-scope":"settings:write","description":"Requires scope `settings:write`.","security":[{"apiKey":[]},{"oauth2":["settings:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"on":{"type":"boolean"}},"required":["on"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/integrations":{"get":{"tags":["Integrations"],"summary":"Available integrations (and whether each is available) plus your organization's connections","x-required-scope":"connections:read","description":"Requires scope `connections:read`.","security":[{"apiKey":[]},{"oauth2":["connections:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"providers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"scope":{"type":"string","enum":["user","org"]},"auth":{"type":"string"},"configured":{"type":"boolean"},"pulls":{"type":"boolean","description":"true when the server pulls on a schedule (Sync now applies); false for push/webhook-only"},"calendars":{"type":"boolean","description":"true when you can choose which calendars sync"},"webhook":{"type":"boolean","description":"true when the provider can push events to the connection's webhook URL"},"sandbox":{"type":"boolean","description":"Connect completes against this provider's stand-in on this machine (development installations only)"},"before":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"help":{"type":["string","null"]},"placeholder":{"type":["string","null"]}},"required":["label","help","placeholder"],"additionalProperties":false},{"type":"null"}],"description":"Asked before the sign-in, when the provider's address depends on it (a Shopify shop): send it as account_before"},"credentials":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"hint":{"type":["string","null"]},"required":{"type":"boolean"},"multiline":{"type":"boolean"},"secret":{"type":"boolean"},"options":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["key","label","hint","required","multiline","secret","options"],"additionalProperties":false},"description":"Secrets the connection takes. Key/webhook providers: what the connect form asks for. OAuth providers connect through sign-in; any fields here are optional extras (such as a webhook secret) added after connecting with PUT /v1/connections/:id/secrets"},"description":{"type":"string"}},"required":["key","name","category","scope","auth","configured","pulls","calendars","webhook","sandbox","before","credentials","description"],"additionalProperties":false}},"connections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"connection"},"provider":{"type":"string"},"provider_name":{"type":"string"},"category":{"type":"string"},"scope":{"type":"string","enum":["user","org"]},"user_id":{"type":["string","null"]},"external_account":{"type":["string","null"]},"status":{"type":"string"},"settings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"last_synced_at":{"type":["string","null"]},"last_error":{"type":["string","null"]},"created_at":{"type":"string"},"sync_paused_until":{"description":"The provider asked us to slow down: syncing resumes on its own at this time (nothing is lost)","type":["string","null"]},"hidden_settings":{"description":"Settings that decide where a saved secret is sent (such as a webhook address): shown to owners in the app only","type":"array","items":{"type":"string"}},"sandbox":{"type":"boolean","description":"A sandbox connection: made against the provider's stand-in on a development installation, never the real account"}},"required":["id","object","provider","provider_name","category","scope","user_id","external_account","status","settings","last_synced_at","last_error","created_at","sync_paused_until","sandbox"],"additionalProperties":false}},"cards":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["ads","search","analytics","store","messaging","social","content","planning"]},"method":{"type":"string","enum":["oauth","key","own","builtin","none"]},"state":{"type":"string","enum":["connect","not_set_up","connected","paused","own","builtin","held"],"description":"connect: can be connected; not_set_up: not offered on this installation; own: connected elsewhere in the product (href); builtin: nothing to connect; held: not offered for now"},"description":{"type":"string"},"setup":{"description":"Always null: only connections you can make are listed","type":["string","null"]},"sandbox":{"type":"boolean"},"href":{"type":["string","null"]},"account_label":{"description":"What the account step asks for; null when there is nothing to choose","type":["string","null"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"sandbox":{"type":"boolean"}},"required":["id","name","sandbox"],"additionalProperties":false}}},"required":["key","name","kind","method","state","description","setup","sandbox","href","account_label","accounts"],"additionalProperties":false},"description":"One card per marketing connector, grouped by kind (ads, search, analytics, store, messaging, social, content, planning), not-set-up ones last in each group"},"sandbox":{"type":"boolean","description":"This installation connects to providers' stand-ins (development only)"}},"required":["providers","connections","cards","sandbox"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/integrations/{provider}/connect":{"post":{"tags":["Integrations"],"summary":"Start connecting an account. OAuth providers return a URL to send the browser to; API-key providers connect immediately.","x-required-scope":"connections:write","description":"Requires scope `connections:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sandbox":{"description":"Connect the provider's stand-in instead (development installations only; refused elsewhere)","type":"boolean"},"account_before":{"description":"The account the provider's address depends on, asked before the sign-in (see before in GET /v1/integrations)","type":"string","maxLength":200},"allow_sending":{"description":"Also ask for the scopes to send or publish as you (default: when the organization's outbound is on)","type":"boolean"},"api_key":{"type":"string","minLength":8,"maxLength":500},"secrets":{"description":"The provider's credential fields (see credentials in GET /v1/integrations)","type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"type":"string","maxLength":20000}},"settings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"account":{"type":"string","maxLength":200},"return_to":{"type":"string","maxLength":200}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"authorize_url":{"type":["string","null"]},"connection":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"connection"},"provider":{"type":"string"},"provider_name":{"type":"string"},"category":{"type":"string"},"scope":{"type":"string","enum":["user","org"]},"user_id":{"type":["string","null"]},"external_account":{"type":["string","null"]},"status":{"type":"string"},"settings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"last_synced_at":{"type":["string","null"]},"last_error":{"type":["string","null"]},"created_at":{"type":"string"},"sync_paused_until":{"description":"The provider asked us to slow down: syncing resumes on its own at this time (nothing is lost)","type":["string","null"]},"hidden_settings":{"description":"Settings that decide where a saved secret is sent (such as a webhook address): shown to owners in the app only","type":"array","items":{"type":"string"}},"sandbox":{"type":"boolean","description":"A sandbox connection: made against the provider's stand-in on a development installation, never the real account"}},"required":["id","object","provider","provider_name","category","scope","user_id","external_account","status","settings","last_synced_at","last_error","created_at","sync_paused_until","sandbox"],"additionalProperties":false},{"type":"null"}]},"account_step":{"type":"boolean","description":"Ask which account the connection is for next (GET /v1/connections/:id/account-step)"}},"required":["authorize_url","connection","account_step"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/connections/{id}/account-step":{"get":{"tags":["Integrations"],"summary":"Which account a marketing connection is for: the choices read from the provider, or the field to fill in, and the accounts already filed from it","x-required-scope":"connections:read","description":"Requires scope `connections:read`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"provider":{"type":"string"},"label":{"type":"string"},"help":{"type":["string","null"]},"kind":{"type":"string","enum":["list","field","identity"]},"options":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"field":{"anyOf":[{"type":"object","properties":{"label":{"type":"string"},"help":{"type":["string","null"]},"placeholder":{"type":["string","null"]}},"required":["label","help","placeholder"],"additionalProperties":false},{"type":"null"}]},"filed":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"external_id":{"type":"string"},"name":{"type":"string"}},"required":["id","external_id","name"],"additionalProperties":false}},"sandbox":{"type":"boolean"}},"required":["provider","label","help","kind","options","field","filed","sandbox"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/connections/{id}/account":{"post":{"tags":["Integrations"],"summary":"File the account a marketing connection is for (one of the choices, or the field's value): the channel account the areas use. Nothing is read, sent or started","x-required-scope":"connections:write","description":"Requires scope `connections:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"external_id":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string","maxLength":200},"workspace_id":{"type":"string","maxLength":64}},"required":["external_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"external_id":{"type":"string"},"name":{"type":"string"},"created":{"type":"boolean"}},"required":["id","external_id","name","created"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/connections/{id}":{"patch":{"tags":["Integrations"],"summary":"Change a connection's settings, or pause syncing","x-required-scope":"connections:write","description":"Requires scope `connections:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paused":{"type":"boolean"}},"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","const":"connection"},"provider":{"type":"string"},"provider_name":{"type":"string"},"category":{"type":"string"},"scope":{"type":"string","enum":["user","org"]},"user_id":{"type":["string","null"]},"external_account":{"type":["string","null"]},"status":{"type":"string"},"settings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"last_synced_at":{"type":["string","null"]},"last_error":{"type":["string","null"]},"created_at":{"type":"string"},"sync_paused_until":{"description":"The provider asked us to slow down: syncing resumes on its own at this time (nothing is lost)","type":["string","null"]},"hidden_settings":{"description":"Settings that decide where a saved secret is sent (such as a webhook address): shown to owners in the app only","type":"array","items":{"type":"string"}},"sandbox":{"type":"boolean","description":"A sandbox connection: made against the provider's stand-in on a development installation, never the real account"}},"required":["id","object","provider","provider_name","category","scope","user_id","external_account","status","settings","last_synced_at","last_error","created_at","sync_paused_until","sandbox"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Integrations"],"summary":"Disconnect: stops syncing and deletes the saved credentials. What was already synced stays, unless an owner passes delete_data=true: then everything that came only from this source is deleted in the background","x-required-scope":"connections:write","description":"Requires scope `connections:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"delete_data","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}},{"name":"revoke_all_access","in":"query","required":false,"schema":{"description":"The connection's own person only: also end the whole grant at the provider now, when other connections share it (several products of one provider on the same account). Those connections then need reconnecting. Without it a shared grant is kept until its last connection is disconnected","type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"revoked":{"type":"boolean","const":true},"data_deletion":{"type":"string","enum":["kept","queued"]},"grant":{"type":"string","enum":["revoked","kept","failed","none"],"description":"What happened at the provider: revoked; kept (other connections on the same grant still use it: shared_with); failed (the revoke call failed; the saved sign-in is deleted anyway); none (the provider has no revoke)"},"shared_with":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"}},"required":["id","provider"],"additionalProperties":false}}},"required":["id","revoked","data_deletion","grant","shared_with"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/connections/{id}/sync":{"post":{"tags":["Integrations"],"summary":"Sync now","x-required-scope":"connections:write","description":"Requires scope `connections:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"queued":{"type":"boolean","const":true}},"required":["queued"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/connections/{id}/runs":{"get":{"tags":["Integrations"],"summary":"Recent sync runs with stats and errors","x-required-scope":"connections:read","description":"Requires scope `connections:read`.","security":[{"apiKey":[]},{"oauth2":["connections:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"status":{"type":"string"},"stats":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"error":{"type":["string","null"]},"started_at":{"type":"string"},"finished_at":{"type":["string","null"]}},"required":["id","kind","status","stats","error","started_at","finished_at"],"additionalProperties":false}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/connections/{id}/secrets":{"put":{"tags":["Integrations"],"summary":"Add or replace a connection's declared secrets (e.g. the webhook signing secret shown after setup; on OAuth connections only declared extras such as a webhook secret, never the sign-in tokens). Values are stored encrypted and never returned; empty values keep the current one.","x-required-scope":"connections:write","description":"Requires scope `connections:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"secrets":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"type":"string","maxLength":20000}},"settings":{"description":"Only settings that decide where the secret is sent (e.g. a warehouse URL), changed together with the secret","type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{}}},"required":["secrets"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"updated":{"type":"array","items":{"type":"string"}}},"required":["id","updated"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/connections/{id}/calendars":{"get":{"tags":["Integrations"],"summary":"Calendars this account can see, and which ones sync (settings.calendars; none chosen means the primary calendar)","x-required-scope":"connections:read","description":"Requires scope `connections:read`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"primary":{"type":"boolean"},"access":{"type":"string"},"color":{"type":["string","null"]},"selected":{"type":"boolean"}},"required":["id","name","primary","access","color","selected"],"additionalProperties":false}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/connections/{id}/grant":{"get":{"tags":["Integrations"],"summary":"The person's other connections that share this connection's grant at the provider (several products of one provider on the same account), so a disconnect can say what removing all access would also stop. The connection's own person only","x-required-scope":"connections:read","description":"Requires scope `connections:read`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"grant_wide_revoke":{"type":"boolean"},"shared_with":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"},"provider_name":{"type":"string"}},"required":["id","provider","provider_name"],"additionalProperties":false}}},"required":["id","grant_wide_revoke","shared_with"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/billing":{"get":{"tags":["Billing"],"summary":"The organization's plan, subscription, seats and this month's usage against the plan's allowances","x-required-scope":"billing:read","description":"Requires scope `billing:read`.","security":[{"apiKey":[]},{"oauth2":["billing:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/billing/checkout":{"post":{"tags":["Billing"],"summary":"Start a Stripe checkout for a paid plan (owners). Returns the checkout URL to open; the plan applies when Stripe confirms the subscription","x-required-scope":"billing:write","description":"Requires scope `billing:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"plan":{"type":"string","enum":["starter","growth","team"]},"interval":{"type":"string","enum":["month","year"]},"seats":{"type":"integer","minimum":1,"maximum":10000}},"required":["plan","interval"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/billing/plan":{"post":{"tags":["Billing"],"summary":"Change to another paid plan or billing interval now, prorated (owners)","x-required-scope":"billing:write","description":"Requires scope `billing:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"plan":{"type":"string","enum":["starter","growth","team"]},"interval":{"type":"string","enum":["month","year"]}},"required":["plan","interval"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/billing/seats/sync":{"post":{"tags":["Billing"],"summary":"Set the subscription's seats to the current member count, prorated (owners; also runs daily)","x-required-scope":"billing:write","description":"Requires scope `billing:write`.","security":[{"apiKey":[]},{"oauth2":["billing:write"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/billing/portal":{"post":{"tags":["Billing"],"summary":"Short-lived links to Stripe's customer portal: update the payment method, cancel, billing details (owners)","x-required-scope":"billing:write","description":"Requires scope `billing:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/billing/invoices":{"get":{"tags":["Billing"],"summary":"Invoices from Stripe, newest first, with tax shown separately (owners)","x-required-scope":"billing:write","description":"Requires scope `billing:write`.","security":[{"apiKey":[]},{"oauth2":["billing:write"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/billing/invoices/{id}/pdf":{"get":{"tags":["Billing"],"summary":"A short-lived link to one invoice's PDF (owners)","x-required-scope":"billing:write","description":"Requires scope `billing:write`.","security":[{"apiKey":[]},{"oauth2":["billing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":80}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/billing/prices":{"get":{"tags":["Billing"],"summary":"Plan prices for a location, before sales tax (we sell to businesses in the United States; tax is added at checkout where it applies)","x-required-scope":"billing:read","description":"Requires scope `billing:read`.","security":[{"apiKey":[]},{"oauth2":["billing:read"]},{"session":[]}],"parameters":[{"name":"country","in":"query","required":true,"schema":{}},{"name":"postal_code","in":"query","required":false,"schema":{"type":"string","maxLength":16}},{"name":"seats","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":10000}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/billing/upgrade-link":{"post":{"tags":["Billing"],"summary":"For agents: suggest a paid plan to the organization's owners. Returns a link to the billing page with the plan filled in, for an owner to review and pay; nothing is bought here, and the owners are notified (naming the key or app that asked)","x-required-scope":"agents:write","description":"Requires scope `agents:write`.","security":[{"apiKey":[]},{"oauth2":["agents:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"plan":{"type":"string","enum":["starter","growth","team"]},"interval":{"default":"year","type":"string","enum":["month","year"]},"seats":{"type":"integer","minimum":1,"maximum":10000}},"required":["plan","interval"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/billing/upgrade-link/check":{"get":{"tags":["Billing"],"summary":"Whether an agent suggested this plan to the organization in the last 7 days (the billing page checks before showing it)","x-required-scope":"billing:read","description":"Requires scope `billing:read`.","security":[{"apiKey":[]},{"oauth2":["billing:read"]},{"session":[]}],"parameters":[{"name":"plan","in":"query","required":true,"schema":{"type":"string","enum":["starter","growth","team"]}},{"name":"interval","in":"query","required":true,"schema":{"type":"string","enum":["month","year"]}},{"name":"seats","in":"query","required":true,"schema":{"type":"integer","minimum":1,"maximum":10000}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/sandbox":{"post":{"tags":["Sandbox"],"summary":"For AI agents: create a sandbox organization and get an API key for it, without an account. Send a solved sign-up challenge (GET /api/auth/signup-challenge) as x-ft-pow. Until a person claims it by email it can't send anything or connect accounts, and it's deleted after 7 days","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"agent_name":{"description":"Who is creating it, e.g. the assistant's name","type":"string","maxLength":80},"claim_email":{"description":"The person who will claim it; we email them a claim link (once)","type":"string","maxLength":320}},"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"sandbox"},"organization_id":{"type":"string"},"api_key":{"type":"string","description":"Shown once. Scopes: org:read, connections:read, agents:read, agents:write"},"api_key_scopes":{"type":"array","items":{"type":"string"}},"expires_at":{"type":"string"},"claim_email_sent":{"type":"boolean"},"next_steps":{"type":"array","items":{"type":"string"}}},"required":["object","organization_id","api_key","api_key_scopes","expires_at","claim_email_sent","next_steps"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"get":{"tags":["Sandbox"],"summary":"This sandbox's state: unclaimed or claimed, when it expires, whether the claim email went out","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/sandbox/claim-email":{"post":{"tags":["Sandbox"],"summary":"Email the person who should claim this sandbox a claim link (fixed text; at most 3 times, once per 10 minutes)","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","maxLength":320}},"required":["email"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/sandbox/claim":{"post":{"tags":["Sandbox"],"summary":"Claim a sandbox with the token from the claim email (signed in with the address it was sent to). You become its owner","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","maxLength":200}},"required":["token"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/settings/outside-deletes":{"get":{"tags":["Settings"],"summary":"Whether connected assistants and apps may delete, merge or remove things on their own; off by default","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"put":{"tags":["Settings"],"summary":"Let outside assistants delete, merge or remove things on their own, or stop them (owners, in the app)","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/source-access":{"get":{"tags":["Governance"],"summary":"Each connected data source with who may see what came from it and which AI surfaces may read it (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`.","security":[{"apiKey":[]},{"oauth2":["security:write"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/source-access/{connection_id}":{"put":{"tags":["Governance"],"summary":"Limit a data source to roles and teams, and choose whether Ask, MCP clients and agents (all or named) may read it; null clears the rule (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"rule":{"anyOf":[{"type":"object","properties":{"roles":{"maxItems":3,"type":"array","items":{"type":"string","enum":["owner","member","viewer"]}},"team_ids":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}},"allow_ask":{"type":"boolean"},"allow_mcp":{"type":"boolean"},"allow_agents":{"type":"boolean"},"agent_ids":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":64}}},"additionalProperties":false},{"type":"null"}]}},"required":["rule"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/audit-logs/export":{"get":{"tags":["Audit log"],"summary":"The audit log for a period (at most a year), 10,000 entries a page (pass next_cursor for the next), each entry with its place in the hash chain and whether it checks out (owner; JSONL or CSV)","x-required-scope":"audit:read","description":"Requires scope `audit:read`.","security":[{"apiKey":[]},{"oauth2":["audit:read"]},{"session":[]}],"parameters":[{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},{"name":"until","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},{"name":"format","in":"query","required":true,"schema":{"default":"jsonl","type":"string","enum":["jsonl","csv"]}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{1,18}$|^[A-Za-z0-9_]{1,64}$"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/compliance/reports/{kind}":{"get":{"tags":["Audit log"],"summary":"A report for auditors over a period: access changes, administrative changes, agent actions or data exports, with totals by action and actor (owner; JSON, JSONL or CSV)","x-required-scope":"audit:read","description":"Requires scope `audit:read`.","security":[{"apiKey":[]},{"oauth2":["audit:read"]},{"session":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","enum":["access_changes","admin_actions","agent_actions","data_exports"]}},{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},{"name":"until","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},{"name":"format","in":"query","required":true,"schema":{"default":"json","type":"string","enum":["json","jsonl","csv"]}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/organization/exports":{"post":{"tags":["Organization"],"summary":"Export everything this organization holds (every table, as gzipped JSON lines, secrets left out); ready to download for 7 days (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"get":{"tags":["Organization"],"summary":"Your exports of this organization (owner; each holds what its requester could read, so it's theirs alone)","x-required-scope":"security:write","description":"Requires scope `security:write`.","security":[{"apiKey":[]},{"oauth2":["security:write"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/sso":{"get":{"tags":["Single sign-on"],"summary":"This organization's identity providers and email domains (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`.","security":[{"apiKey":[]},{"oauth2":["security:write"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/sso/connections":{"post":{"tags":["Single sign-on"],"summary":"Connect an OpenID Connect identity provider (checked against its discovery document) (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"issuer":{"type":"string","maxLength":500,"format":"uri"},"client_id":{"type":"string","minLength":1,"maxLength":300},"client_secret":{"type":"string","minLength":1,"maxLength":500},"default_role":{"type":"string","enum":["member","viewer"]}},"required":["issuer","client_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/sso/connections/{id}":{"patch":{"tags":["Single sign-on"],"summary":"Turn a provider on or off, or change its default role or secret (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"},"default_role":{"type":"string","enum":["member","viewer"]},"client_secret":{"type":"string","minLength":1,"maxLength":500}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Single sign-on"],"summary":"Remove a provider (its domains stop sending people to it) (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/sso/domains":{"post":{"tags":["Single sign-on"],"summary":"Add an email domain to verify (a DNS TXT record) and send its people to a provider (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"domain":{"type":"string","maxLength":253,"pattern":"^(?=.{3,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,}$"},"connection_id":{"type":"string","maxLength":64}},"required":["domain","connection_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/sso/domains/{domain}/verify":{"post":{"tags":["Single sign-on"],"summary":"Check the domain's DNS TXT record; once it's there, the domain is this organization's for sign-in (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/sso/domains/{domain}":{"patch":{"tags":["Single sign-on"],"summary":"Require single sign-on for this domain's people (owners keep their password, to get back in if the provider fails) (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enforce":{"type":"boolean"}},"required":["enforce"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Single sign-on"],"summary":"Remove a domain (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"domain","in":"path","required":true,"schema":{"type":"string","maxLength":253}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/scim/tokens":{"post":{"tags":["Single sign-on"],"summary":"A directory token for SCIM provisioning (shown once) (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80}},"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/scim/tokens/{id}":{"delete":{"tags":["Single sign-on"],"summary":"Revoke a directory token (owner)","x-required-scope":"security:write","description":"Requires scope `security:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/session-replay":{"get":{"tags":["Account"],"summary":"Whether this browser session is recorded for session replay (masked; off unless an owner turned it on), the pages never recorded, and how long recordings are kept","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/settings/session-replay":{"put":{"tags":["Settings"],"summary":"Turn session replay on or off for the organization (owners). It's off by default; turning it off deletes the organization's recordings","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me/session-replay":{"patch":{"tags":["Account"],"summary":"Opt yourself out of session replay (your recordings are deleted), or back in","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"opt_out":{"type":"boolean"}},"required":["opt_out"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/session-replay/events":{"post":{"tags":["Account"],"summary":"The session replay recorder's batch (masked snapshots, navigation, clicks, scrolls). Refused whole if any text isn't masked; events on sensitive pages are dropped","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"session":{"type":"string","pattern":"^[a-z0-9]{16,40}$"},"events":{"minItems":1,"maxItems":200,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"nav"},"t":{"type":"integer","minimum":0,"maximum":9007199254740991},"path":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","t","path"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"snapshot"},"t":{"type":"integer","minimum":0,"maximum":9007199254740991},"path":{"type":"string","minLength":1,"maxLength":200},"tree":{},"w":{"type":"integer","minimum":0,"maximum":20000},"h":{"type":"integer","minimum":0,"maximum":20000}},"required":["kind","t","path","tree","w","h"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"click"},"t":{"type":"integer","minimum":0,"maximum":9007199254740991},"path":{"type":"string","minLength":1,"maxLength":200},"node":{"maxItems":60,"type":"array","items":{"type":"integer","minimum":0,"maximum":6000}},"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1}},"required":["kind","t","path","node","x","y"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"scroll"},"t":{"type":"integer","minimum":0,"maximum":9007199254740991},"path":{"type":"string","minLength":1,"maxLength":200},"y":{"type":"number","minimum":0,"maximum":1}},"required":["kind","t","path","y"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"resize"},"t":{"type":"integer","minimum":0,"maximum":9007199254740991},"path":{"type":"string","minLength":1,"maxLength":200},"w":{"type":"integer","minimum":0,"maximum":20000},"h":{"type":"integer","minimum":0,"maximum":20000}},"required":["kind","t","path","w","h"],"additionalProperties":false}]}}},"required":["session","events"],"additionalProperties":false}}}},"responses":{"202":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/challenge":{"get":{"tags":["Transfers (public)"],"summary":"The human check for sending without an account, unlocking a transfer or reporting one: a proof of work, and the Turnstile widget's settings when it's on","security":[],"parameters":[{"name":"action","in":"query","required":true,"schema":{"type":"string","enum":["send","code","unlock","report"]}},{"name":"for","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/limits":{"get":{"tags":["Transfers (public)"],"summary":"What sending without an account allows: the largest transfer, the 30-day volume, the longest expiry and recipients per email","security":[],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/code":{"post":{"tags":["Transfers (public)"],"summary":"Send a six-digit code to your own address, so a transfer can be emailed from it without an account","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"for":{"type":"string","maxLength":64}},"required":["email"],"additionalProperties":false}}}},"responses":{"202":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sent":{"type":"boolean","const":true}},"required":["sent"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/send":{"post":{"tags":["Transfers (public)"],"summary":"Start a transfer without an account: by link, or by email from an address you verified with a code. Answers with each file's part plan and a private management link","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"default":"link","type":"string","enum":["link","email"]},"title":{"type":"string","maxLength":200},"message":{"type":"string","maxLength":2000},"files":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":1024},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"content_type":{"type":"string","maxLength":200}},"required":["path","size"],"additionalProperties":false}},"recipients":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":254}},"expiry_days":{"type":"integer","minimum":1,"maximum":7},"password":{"anyOf":[{"type":"string","minLength":4,"maxLength":200},{"type":"null"}]},"download_limit":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000},{"type":"null"}]},"sender_email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"sender_name":{"type":"string","maxLength":80},"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["kind","files"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/m/{token}/parts":{"post":{"tags":["Transfers (public)"],"summary":"Presigned upload URLs for parts of one file of a transfer sent without an account (its management token)","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"file_id":{"type":"string","maxLength":64},"parts":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"integer","minimum":1,"maximum":10000}}},"required":["file_id","parts"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"urls":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["urls"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"put":{"tags":["Transfers (public)"],"summary":"Record that a part is uploaded, for a transfer sent without an account","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"file_id":{"type":"string","maxLength":64},"part":{"type":"integer","minimum":1,"maximum":10000},"etag":{"type":"string","maxLength":200}},"required":["file_id","part","etag"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/m/{token}/complete":{"post":{"tags":["Transfers (public)"],"summary":"Finish a transfer sent without an account, once every part is uploaded","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sha256":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","pattern":"^[0-9a-f]{64}$"}}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/m/{token}":{"get":{"tags":["Transfers (public)"],"summary":"A transfer sent without an account, for its sender: status, files, downloads and the parts uploaded so far","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Transfers (public)"],"summary":"Rename a transfer sent without an account, or change its expiry (up to 7 days from when it was sent)","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","maxLength":200},"expiry_days":{"type":"integer","minimum":1,"maximum":7},"password":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Transfers (public)"],"summary":"Delete a transfer sent without an account: the link stops working now","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"deleted":{"type":"boolean","const":true}},"required":["deleted"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/t/{token}":{"get":{"tags":["Transfers (public)"],"summary":"A transfer's download page: who sent it, its files and sizes, when it expires, and whether it needs a password","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/t/{token}/unlock":{"post":{"tags":["Transfers (public)"],"summary":"Open a transfer for downloading (with its password, if it has one): answers with its files and a download session that lasts a day","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"password":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/t/{token}/download":{"post":{"tags":["Transfers (public)"],"summary":"Download links for some or all of a transfer's files (valid 10 minutes; ask again for fresh ones). The first counts one download","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"session":{"type":"string","maxLength":64},"files":{"anyOf":[{"type":"string","const":"all"},{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"string","maxLength":64}}]}},"required":["session","files"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/t/{token}/preview":{"post":{"tags":["Transfers (public)"],"summary":"A link that shows one image, PDF, video or audio file in the browser (valid an hour). It counts as a download, like the first download link","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"session":{"type":"string","maxLength":64},"file":{"type":"string","maxLength":64}},"required":["session","file"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/report":{"post":{"tags":["Transfers (public)"],"summary":"Report a transfer: phishing, malware, copyright, child sexual abuse material or something else. We review every report","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"link":{"type":"string","maxLength":300},"reason":{"type":"string","enum":["phishing","malware","copyright","csam","other"]},"details":{"default":"","type":"string","maxLength":2000},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["link","reason","details"],"additionalProperties":false}}}},"responses":{"202":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"received":{"type":"boolean","const":true}},"required":["received"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/stop/{token}":{"post":{"tags":["Transfers (public)"],"summary":"Stop every email sent through us to your address (the link at the foot of each transfer email)","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","maxLength":400}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"stopped":{"type":"boolean","const":true}},"required":["stopped"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/r/{token}":{"get":{"tags":["Transfers (public)"],"summary":"A request link's page: who's asking, their message, until when, and how large an upload can be","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/to/{slug}":{"get":{"tags":["Transfers (public)"],"summary":"A page anyone can send files to (its owner's branding, their message, how large an upload can be)","security":[],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/to/{slug}/upload":{"post":{"tags":["Transfers (public)"],"summary":"Start sending files through someone's page, from an address you verified with a code. Answers with each file's part plan and an upload token","security":[],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":1024},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"content_type":{"type":"string","maxLength":200}},"required":["path","size"],"additionalProperties":false}},"uploader_email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"uploader_name":{"type":"string","maxLength":80},"message":{"type":"string","maxLength":2000},"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["files","uploader_email","code"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/r/{token}/upload":{"post":{"tags":["Transfers (public)"],"summary":"Start sending files through a request link, from an address you verified with a code. Answers with each file's part plan and an upload token","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"files":{"minItems":1,"maxItems":5000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":1024},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"content_type":{"type":"string","maxLength":200}},"required":["path","size"],"additionalProperties":false}},"uploader_email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"uploader_name":{"type":"string","maxLength":80},"message":{"type":"string","maxLength":2000},"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["files","uploader_email","code"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/u/{token}/parts":{"post":{"tags":["Transfers (public)"],"summary":"Presigned upload URLs for parts of one file sent through a request link (its upload token)","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"file_id":{"type":"string","maxLength":64},"parts":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"integer","minimum":1,"maximum":10000}}},"required":["file_id","parts"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"urls":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["urls"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"put":{"tags":["Transfers (public)"],"summary":"Record that a part is uploaded, for files sent through a request link","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"file_id":{"type":"string","maxLength":64},"part":{"type":"integer","minimum":1,"maximum":10000},"etag":{"type":"string","maxLength":200}},"required":["file_id","part","etag"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/u/{token}":{"get":{"tags":["Transfers (public)"],"summary":"Files being sent through a request link and the parts uploaded so far, to resume","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/transfer/u/{token}/complete":{"post":{"tags":["Transfers (public)"],"summary":"Finish sending files through a request link; the requester is told","security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sha256":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","pattern":"^[0-9a-f]{64}$"}}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/brands":{"get":{"tags":["Marketing"],"summary":"List brands","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"workspace_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Create a brand","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"workspace_id":{"type":"string","pattern":"^ws_[0-9a-z]{26}$"},"name":{"type":"string","minLength":1,"maxLength":200},"slug":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{0,62}$"},"kit":{"type":"object","properties":{"voice":{"type":"string","maxLength":4000},"tone":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":80}},"audiences":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":500}},"products":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":500}},"claims":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":500},"evidence":{"type":"string","maxLength":1000},"approved":{"default":true,"type":"boolean"}},"required":["text","approved"],"additionalProperties":false}},"banned_phrases":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":200}},"legal_lines":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":1000}},"visual":{"type":"object","properties":{"colors":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"fonts":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":100}},"logo_asset_id":{"type":"string","pattern":"^ast_[0-9a-z]{26}$"},"rules":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":500}}},"additionalProperties":false},"personas":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":2000},"pains":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":300}},"language":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":200}},"objections":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":300}}},"required":["name"],"additionalProperties":false}}},"additionalProperties":false}},"required":["workspace_id","name","slug"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/brands/{id}":{"get":{"tags":["Marketing"],"summary":"Get a brand","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Marketing"],"summary":"Change a brand","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"string","enum":["active","archived"]}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/markets":{"get":{"tags":["Marketing"],"summary":"List markets","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"workspace_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"brand_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"country","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Create a market","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"workspace_id":{"type":"string","pattern":"^ws_[0-9a-z]{26}$"},"brand_id":{"type":"string","pattern":"^brd_[0-9a-z]{26}$"},"name":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string"},"language":{"type":"string"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"timezone":{"type":"string","maxLength":64},"legal_lines":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":1000}},"overrides":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["workspace_id","name","country","language","currency","timezone"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/markets/{id}":{"get":{"tags":["Marketing"],"summary":"Get a market","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Marketing"],"summary":"Change a market","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"legal_lines":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":1000}},"overrides":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"timezone":{"type":"string","maxLength":64}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/products":{"get":{"tags":["Marketing"],"summary":"List products","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"workspace_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"brand_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"provider","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Create a product","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"workspace_id":{"type":"string","pattern":"^ws_[0-9a-z]{26}$"},"brand_id":{"type":"string","pattern":"^brd_[0-9a-z]{26}$"},"provider":{"type":"string","pattern":"^[a-z0-9_]{2,40}$"},"external_id":{"type":"string","maxLength":200},"title":{"type":"string","minLength":1,"maxLength":200},"url":{"type":"string","maxLength":2000,"format":"uri"},"price":{"type":"number","minimum":0,"maximum":1000000000000},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"cost":{"type":"number","minimum":0,"maximum":100000000000},"cost_currency":{"type":"string","pattern":"^[A-Z]{3}$"},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["workspace_id","title"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/products/{id}":{"get":{"tags":["Marketing"],"summary":"Get a product","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Marketing"],"summary":"Change a product","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"url":{"type":"string","maxLength":2000,"format":"uri"},"price":{"type":"number","minimum":0,"maximum":1000000000000},"cost":{"anyOf":[{"type":"number","minimum":0,"maximum":100000000000},{"type":"null"}]},"cost_currency":{"type":"string","pattern":"^[A-Z]{3}$"},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/channel-accounts":{"get":{"tags":["Marketing"],"summary":"List channel accounts","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"workspace_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"brand_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"provider","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Create a channel account","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"workspace_id":{"type":"string","pattern":"^ws_[0-9a-z]{26}$"},"brand_id":{"type":"string","pattern":"^brd_[0-9a-z]{26}$"},"provider":{"type":"string","pattern":"^[a-z0-9_]{2,40}$"},"external_id":{"type":"string","maxLength":200},"name":{"type":"string","minLength":1,"maxLength":200},"connection_id":{"type":"string","pattern":"^con_[0-9a-z]{26}$"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"timezone":{"type":"string","maxLength":64}},"required":["workspace_id","provider","external_id","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/channel-accounts/{id}":{"get":{"tags":["Marketing"],"summary":"Get a channel account","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Marketing"],"summary":"Change a channel account","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"brand_id":{"type":"string","pattern":"^brd_[0-9a-z]{26}$"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/plans":{"get":{"tags":["Marketing"],"summary":"List plans","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"workspace_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"brand_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Create a plan","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"workspace_id":{"type":"string","pattern":"^ws_[0-9a-z]{26}$"},"brand_id":{"type":"string","pattern":"^brd_[0-9a-z]{26}$"},"name":{"type":"string","minLength":1,"maxLength":200},"goal":{"type":"string","maxLength":4000},"budget":{"type":"number","minimum":0,"maximum":1000000000000},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"kpis":{"maxItems":50,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"starts_on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"ends_on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["workspace_id","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/plans/{id}":{"get":{"tags":["Marketing"],"summary":"Get a plan","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Marketing"],"summary":"Change a plan","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"goal":{"type":"string","maxLength":4000},"budget":{"type":"number","minimum":0,"maximum":1000000000000},"kpis":{"maxItems":50,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"status":{"type":"string","enum":["draft","active","done","archived"]},"starts_on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"ends_on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/campaigns":{"get":{"tags":["Marketing"],"summary":"List campaigns","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"workspace_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"brand_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"plan_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Create a campaign","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"workspace_id":{"type":"string","pattern":"^ws_[0-9a-z]{26}$"},"brand_id":{"type":"string","pattern":"^brd_[0-9a-z]{26}$"},"plan_id":{"type":"string","pattern":"^pln_[0-9a-z]{26}$"},"name":{"type":"string","minLength":1,"maxLength":200},"objective":{"type":"string","maxLength":2000},"budget":{"type":"number","minimum":0,"maximum":1000000000000},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"kpis":{"maxItems":50,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"starts_on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"ends_on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["workspace_id","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/campaigns/{id}":{"get":{"tags":["Marketing"],"summary":"Get a campaign","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Marketing"],"summary":"Change a campaign","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"objective":{"type":"string","maxLength":2000},"budget":{"type":"number","minimum":0,"maximum":1000000000000},"kpis":{"maxItems":50,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"status":{"type":"string","enum":["draft","ready","done","archived"]},"starts_on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"ends_on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/channel-campaigns":{"get":{"tags":["Marketing"],"summary":"List channel campaigns","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"campaign_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"channel_account_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Create a channel campaign","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"campaign_id":{"type":"string","pattern":"^cmp_[0-9a-z]{26}$"},"channel_account_id":{"type":"string","pattern":"^cha_[0-9a-z]{26}$"},"kind":{"type":"string","maxLength":40},"name":{"type":"string","minLength":1,"maxLength":200},"daily_budget":{"type":"number","minimum":0,"maximum":1000000000000},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["campaign_id","channel_account_id","name"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/channel-campaigns/{id}":{"get":{"tags":["Marketing"],"summary":"Get a channel campaign","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Marketing"],"summary":"Change a channel campaign","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/channel-entities":{"get":{"tags":["Marketing"],"summary":"List channel entities","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"channel_campaign_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Create a channel entity","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"channel_campaign_id":{"type":"string","pattern":"^chc_[0-9a-z]{26}$"},"parent_id":{"type":"string","pattern":"^che_[0-9a-z]{26}$"},"kind":{"type":"string","pattern":"^[a-z_]{2,40}$"},"name":{"type":"string","maxLength":200},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["channel_campaign_id","kind"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/channel-entities/{id}":{"get":{"tags":["Marketing"],"summary":"Get a channel entity","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Marketing"],"summary":"Change a channel entity","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","maxLength":200},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/assets":{"get":{"tags":["Marketing"],"summary":"List assets","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"workspace_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"brand_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Create an asset","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"workspace_id":{"type":"string","pattern":"^ws_[0-9a-z]{26}$"},"brand_id":{"type":"string","pattern":"^brd_[0-9a-z]{26}$"},"name":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["image","video","audio","copy","document","other"]},"brand_version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"tags":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":60}}},"required":["workspace_id","name","kind"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/assets/{id}":{"get":{"tags":["Marketing"],"summary":"Get an asset","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Marketing"],"summary":"Change an asset","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"status":{"type":"string","enum":["draft","in_review","archived"]},"tags":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":60}}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/asset-rights":{"get":{"tags":["Marketing"],"summary":"List asset rights","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"asset_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"kind","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Create an asset right","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"asset_id":{"type":"string","pattern":"^ast_[0-9a-z]{26}$"},"kind":{"type":"string","enum":["license","model_release","likeness","music","stock","other"]},"holder":{"type":"string","maxLength":200},"terms":{"type":"string","maxLength":4000},"territories":{"maxItems":250,"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"}},"expires_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"consent_ref":{"type":"string","maxLength":200}},"required":["asset_id","kind"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/asset-rights/{id}":{"get":{"tags":["Marketing"],"summary":"Get an asset right","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/asset-usage":{"get":{"tags":["Marketing"],"summary":"List asset usage","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"asset_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"channel_account_id","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"status","in":"query","required":false,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Create an asset usage","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"asset_id":{"type":"string","pattern":"^ast_[0-9a-z]{26}$"},"asset_version_id":{"type":"string","pattern":"^asv_[0-9a-z]{26}$"},"channel_account_id":{"type":"string","pattern":"^cha_[0-9a-z]{26}$"},"channel_entity_id":{"type":"string","pattern":"^che_[0-9a-z]{26}$"},"location":{"type":"string","maxLength":2000}},"required":["asset_id"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/asset-usage/{id}":{"get":{"tags":["Marketing"],"summary":"Get an asset usage","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Marketing"],"summary":"Change an asset usage","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"type":"string","enum":["live","removed"]},"live_until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/brands/{id}/versions":{"get":{"tags":["Marketing"],"summary":"List a brand's kit versions, newest first","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Save a new version of a brand's kit (earlier versions stay as they were)","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kit":{"type":"object","properties":{"voice":{"type":"string","maxLength":4000},"tone":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":80}},"audiences":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":500}},"products":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":500}},"claims":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":500},"evidence":{"type":"string","maxLength":1000},"approved":{"default":true,"type":"boolean"}},"required":["text","approved"],"additionalProperties":false}},"banned_phrases":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":200}},"legal_lines":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":1000}},"visual":{"type":"object","properties":{"colors":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"fonts":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":100}},"logo_asset_id":{"type":"string","pattern":"^ast_[0-9a-z]{26}$"},"rules":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":500}}},"additionalProperties":false},"personas":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","maxLength":100},"description":{"type":"string","maxLength":2000},"pains":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":300}},"language":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":200}},"objections":{"maxItems":10,"type":"array","items":{"type":"string","maxLength":300}}},"required":["name"],"additionalProperties":false}}},"additionalProperties":false},"note":{"type":"string","maxLength":500}},"required":["kit"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/channel-accounts/{id}/limits":{"put":{"tags":["Marketing"],"summary":"Set a channel account's autonomy ceiling, spend ceilings and restrictions, or pause it (owners)","x-required-scope":"settings:write","description":"Requires scope `settings:write`.","security":[{"apiKey":[]},{"oauth2":["settings:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"autonomy_ceiling":{"type":"string","enum":["L0","L1","L2","L3","L4"]},"spend_ceiling_daily":{"anyOf":[{"type":"number","minimum":0,"maximum":1000000000},{"type":"null"}]},"spend_ceiling_monthly":{"anyOf":[{"type":"number","minimum":0,"maximum":10000000000},{"type":"null"}]},"paused":{"type":"boolean"},"platform_restrictions":{"type":"object","properties":{"read_only":{"type":"boolean"},"blocked_operations":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,60}$"}}},"additionalProperties":false}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/campaigns/{id}/links":{"get":{"tags":["Marketing"],"summary":"A campaign's assets and audiences","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/campaigns/{id}/assets":{"post":{"tags":["Marketing"],"summary":"Attach an asset to a campaign","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"asset_id":{"type":"string","maxLength":40,"format":"starts_with","pattern":"^ast_.*"}},"required":["asset_id"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/assets/{id}/versions":{"get":{"tags":["Marketing"],"summary":"List an asset's versions with how each was made","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Marketing"],"summary":"Add a version to an asset, labeled with how it was made","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"storage_key":{"type":"string","maxLength":500},"mime":{"type":"string","maxLength":100},"bytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"width":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"height":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"duration_ms":{"type":"integer","minimum":0,"maximum":9007199254740991},"text_body":{"type":"string","maxLength":100000},"origin":{"type":"string","enum":["human","ai_generated","ai_edited","composite"]},"model":{"type":"string","maxLength":100},"provider":{"type":"string","maxLength":60},"consent_ref":{"type":"string","maxLength":200}},"required":["origin"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/metrics":{"post":{"tags":["Marketing"],"summary":"Write daily metrics (up to 1,000 facts; the same fact again replaces its value)","x-required-scope":"marketing:write","description":"Requires scope `marketing:write`.","security":[{"apiKey":[]},{"oauth2":["marketing:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"facts":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"channel_account_id":{"type":"string","maxLength":40,"format":"starts_with","pattern":"^cha_.*"},"campaign_id":{"type":"string","maxLength":40,"format":"starts_with","pattern":"^cmp_.*"},"level":{"type":"string","enum":["account","campaign","channel_campaign","entity","asset","page","site"]},"entity_ref":{"type":"string","minLength":1,"maxLength":300},"metric":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"value":{"type":"number"},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"attribution_window":{"type":"string","maxLength":40},"source":{"type":"string","pattern":"^[a-z0-9_]{2,40}$"}},"required":["day","level","entity_ref","metric","value","source"],"additionalProperties":false}}},"required":["facts"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"written":{"type":"number"}},"required":["written"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"get":{"tags":["Marketing"],"summary":"Read daily metrics for a date range, by campaign, channel account, metric or level","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"campaign_id","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"channel_account_id","in":"query","required":false,"schema":{"type":"string","maxLength":40}},{"name":"metric","in":"query","required":false,"schema":{"type":"string","maxLength":64}},{"name":"level","in":"query","required":false,"schema":{"type":"string","enum":["account","campaign","channel_campaign","entity","asset","page","site"]}},{"name":"limit","in":"query","required":true,"schema":{"default":1000,"type":"integer","minimum":1,"maximum":5000}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/connectors":{"get":{"tags":["Marketing"],"summary":"Each marketing connector before you connect it: what it reads, writes and can spend, its permissions and whether it's ready","x-required-scope":"connections:read","description":"Requires scope `connections:read`.","security":[{"apiKey":[]},{"oauth2":["connections:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/autonomy":{"get":{"tags":["Marketing"],"summary":"The kinds of marketing action, their checks and ceilings, and the autonomy levels each allows","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/modules":{"get":{"tags":["Marketing"],"summary":"The product's areas and which ones are on for your organization","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/switched-off":{"get":{"tags":["Marketing"],"summary":"The abilities that stay off in your areas until an owner turns them on, what each does and where it's turned on","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"has_more":{"type":"boolean"},"next_cursor":{"type":["string","null"]}},"required":["object","data"],"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/modules/{key}/preview":{"get":{"tags":["Marketing"],"summary":"What turning an area on would do outside the product and what it may cost, before you turn it on","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","maxLength":40}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/modules/{key}":{"put":{"tags":["Marketing"],"summary":"Turn an area of the product on or off for your organization (owners)","x-required-scope":"settings:write","description":"Requires scope `settings:write`.","security":[{"apiKey":[]},{"oauth2":["settings:write"]},{"session":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"},"seen":{"type":"string","maxLength":64}},"required":["enabled"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/pause-switches":{"get":{"tags":["Pause"],"summary":"What is paused now (the organization, agents, providers, connected accounts, campaigns)","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["object","data"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"put":{"tags":["Pause"],"summary":"Pause or resume: new writes under a paused switch are refused and queued agent work waits","x-required-scope":"settings:write","description":"Requires scope `settings:write`.","security":[{"apiKey":[]},{"oauth2":["settings:write"]},{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scope":{"type":"string","enum":["org","agent","provider","channel_account","campaign"]},"ref":{"type":"string","maxLength":80},"paused":{"type":"boolean"},"reason":{"type":"string","maxLength":300}},"required":["scope","paused"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/public/paid-signups":{"get":{"tags":["Plans and credits"],"summary":"Whether paid plans can be bought today (and the 14-day trials with them); public, read from the synced Stripe prices at most once a minute","security":[],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"object":{"type":"string","const":"paid_signups"},"open":{"type":"boolean"},"trials_open":{"type":"boolean"}},"required":["object","open","trials_open"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/plan":{"get":{"tags":["Plans and credits"],"summary":"The plans (prices, allowances, modules, autonomy), credit prices and the organization's current plan","x-required-scope":"billing:read","description":"Requires scope `billing:read`.","security":[{"apiKey":[]},{"oauth2":["billing:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/plan/limits":{"get":{"tags":["Plans and credits"],"summary":"The plan's limits beyond credits (brands, connected accounts, people) and how many are in use; nothing is ever charged at a limit","x-required-scope":"billing:read","description":"Requires scope `billing:read`.","security":[{"apiKey":[]},{"oauth2":["billing:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/plan/current":{"put":{"tags":["Plans and credits"],"summary":"Choose the organization's plan (owners). A paid plan can be chosen while paid sign-ups are open (GET /v1/public/paid-signups); otherwise only Free, and nothing is charged","x-required-scope":"billing:write","description":"Requires scope `billing:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"plan":{"type":"string","enum":["free","starter","growth","agency","enterprise"]}},"required":["plan"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/marketing/plan/trial":{"post":{"tags":["Plans and credits"],"summary":"Start the organization's one 14-day trial of Starter or Growth (owners on Free; no card; back to Free when it ends; nothing is charged)","x-required-scope":"billing:write","description":"Requires scope `billing:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"plan":{"type":"string","enum":["starter","growth"]}},"required":["plan"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/agency/clients":{"get":{"tags":["Agency workspaces"],"summary":"Client workspaces this agency manages, each with its monthly credit cap and this month's credits used; the pool they share; and the agency managing this organization, if any","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Agency workspaces"],"summary":"Add a client workspace: an organization you also own, with its share of the pool as its monthly credit cap (owners, Agency plan)","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"client_org_id":{"type":"string","minLength":3,"maxLength":80},"label":{"type":"string","minLength":1,"maxLength":120},"monthly_credits":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000},{"type":"null"}]}},"required":["client_org_id","label"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/agency/clients/{id}":{"get":{"tags":["Agency workspaces"],"summary":"One client workspace's report: its cap and this month's credits by module (totals only)","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":80}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Agency workspaces"],"summary":"Rename a client workspace or change its share of the pool (owners of the agency; the change is in the client's audit log too)","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":80}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120},"monthly_credits":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Agency workspaces"],"summary":"Stop managing a client workspace: its data stays in its own organization, which goes back to its own plan's credits (owners)","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":80}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/agency/managed-by":{"delete":{"tags":["Agency workspaces"],"summary":"End the agency's management of this organization (owners of this organization; its data stays, and it goes back to its own plan's credits)","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/agency/link-offers":{"post":{"tags":["Agency workspaces"],"summary":"Invite a client organization: a one-time code, shown once, that the client's owner accepts within 7 days (owners, Agency plan)","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":120},"monthly_credits":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000},{"type":"null"}]}},"required":["label"],"additionalProperties":false}}}},"responses":{"201":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"get":{"tags":["Agency workspaces"],"summary":"This agency's invitations to client organizations and where each stands (never the codes)","x-required-scope":"settings:read","description":"Requires scope `settings:read`.","security":[{"apiKey":[]},{"oauth2":["settings:read"]},{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/agency/link-offers/{id}":{"delete":{"tags":["Agency workspaces"],"summary":"Withdraw an open invitation (owners)","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":3,"maxLength":80}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/agency/link-offers/preview":{"post":{"tags":["Agency workspaces"],"summary":"What an agency's invitation offers this organization (the agency and the monthly credit cap), before an owner accepts it","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"code":{"type":"string","minLength":10,"maxLength":200}},"required":["code"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/agency/link-offers/accept":{"post":{"tags":["Agency workspaces"],"summary":"Accept an agency's invitation for this organization to be managed by it (owners of this organization)","x-required-scope":"settings:write","description":"Requires scope `settings:write`. Web sessions only.","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"code":{"type":"string","minLength":10,"maxLength":200},"monthly_credits":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000},{"type":"null"}]}},"required":["code","monthly_credits"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me/marketing-email":{"get":{"tags":["Account"],"summary":"Whether you get our product news and tips by email (off unless you turned it on; account and billing email always reach you)","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"granted":{"type":"boolean"},"source":{"type":"string","enum":["sign_up","settings"]},"updated_at":{"type":["string","null"]}},"required":["granted","updated_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"put":{"tags":["Account"],"summary":"Turn our product news and tips by email on or off for yourself","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"granted":{"type":"boolean"}},"required":["granted"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"granted":{"type":"boolean"},"source":{"type":"string","enum":["sign_up","settings"]},"updated_at":{"type":["string","null"]}},"required":["granted","updated_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me/ads-measurement":{"get":{"tags":["Account"],"summary":"Whether you let us measure our ads with your sign-up (off unless you turned it on): the ad platform you came from gets your email scrambled (hashed) and the ad's click id, to count which ads brought sign-ups","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"granted":{"type":"boolean"},"source":{"type":"string","enum":["sign_up","settings"]},"updated_at":{"type":["string","null"]}},"required":["granted","updated_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"put":{"tags":["Account"],"summary":"Turn ad measurement with your sign-up on or off for yourself (off also deletes the ad click ids kept with your sign-up)","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"granted":{"type":"boolean"}},"required":["granted"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"granted":{"type":"boolean"},"source":{"type":"string","enum":["sign_up","settings"]},"updated_at":{"type":["string","null"]}},"required":["granted","updated_at"],"additionalProperties":false}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/product-events/pairings/{id}":{"get":{"tags":["Product events"],"summary":"The product events receiver checks a pairing being delivered to it: its receiving address and the signing secret's SHA-256 (only with that organization's credential of the person who approved it, still an owner there, for a few minutes after approval)","x-required-scope":"marketing:read","description":"Requires scope `marketing:read`.","security":[{"apiKey":[]},{"oauth2":["marketing:read"]},{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^pep_[0-9a-f]{24}$"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me/ops-replies":{"get":{"tags":["Me"],"summary":"Replies the team sent you about your feedback that you haven't dismissed","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/me/ops-replies/{id}/seen":{"post":{"tags":["Me"],"summary":"Dismiss a reply the team sent you (it won't show again)","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","pattern":"^oir_[0-9a-z]{26}$"}}],"responses":{"200":{"description":"OK","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema"}}}},"429":{"description":"Rate limited. Retry after the number of seconds in Retry-After.","headers":{"X-RateLimit-Limit":{"schema":{"type":"integer"},"description":"Requests allowed per minute for this key or user"},"X-RateLimit-Remaining":{"schema":{"type":"integer"},"description":"Requests left in the current window"},"X-RateLimit-Reset":{"schema":{"type":"integer"},"description":"Unix time (seconds) when the window resets"},"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait"}},"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["code","message"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}}}}