{"components":{"parameters":{"Tenant":{"description":"The organization to act for (an id from `GET /api/me`). Defaults to the key's pinned organization, else your first organization. You must be a member of it.","in":"header","name":"X-Shaw-Tenant","required":false,"schema":{"type":"string"}}},"responses":{"Error":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"},"message":{"type":"string"}},"type":"object"}}},"description":"The request was refused or failed; `error` is a stable code."},"Forbidden":{"content":{"application/json":{"schema":{"properties":{"error":{"enum":["insufficient_scope","bearer_not_allowed","forbidden_workspace","tenant_pinned"],"type":"string"},"message":{"type":"string"},"scope":{"type":"string"}},"type":"object"}}},"description":"The credential lacks the scope, can't call this route, or can't act for the organization."},"Ok":{"content":{"application/json":{"schema":{}}},"description":"Success. The body is JSON."},"Unauthorized":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"},"message":{"type":"string"}},"type":"object"}}},"description":"The credential is missing, invalid, expired or revoked.","headers":{"WWW-Authenticate":{"schema":{"type":"string"}}}}},"securitySchemes":{"apiKey":{"bearerFormat":"sk_…","description":"A personal API key created in Settings → Developers. Send it as `Authorization: Bearer sk_…`.","scheme":"bearer","type":"http"},"oauth2":{"description":"OAuth 2.1 authorization code with S256 PKCE. Clients can register themselves (RFC 7591).","flows":{"authorizationCode":{"authorizationUrl":"https://shaw.ai/api/auth/oauth2/authorize","refreshUrl":"https://shaw.ai/api/auth/oauth2/token","scopes":{"org:read":"See which organizations you belong to, their profile and runtime status.","org:write":"Create organizations and rename the ones you administer.","sessions:read":"Read chat sessions, their messages and artifacts.","sessions:write":"Start, rename, fork, compact and archive chat sessions and send messages.","approvals:review":"Approve or reject the actions a session is waiting on.","files:read":"Read shared files and documents.","files:write":"Create, edit and delete shared files and documents.","memory:read":"Read the knowledge base and shared memory.","memory:write":"Add, edit, restore and delete knowledge entries.","schedules:read":"Read scheduled automations.","schedules:write":"Change and run scheduled automations.","campaigns:read":"Read synced advertising, sales and Meta/Google campaign data.","campaigns:write":"Run syncs and publish or change ad campaigns.","reports:read":"Read SEO reports and research.","reports:write":"Run and change SEO reports and research.","pages:read":"Read template catalog metadata, code size/credits, Brand Kit, remixes, hosted pages, custom domains, and Email Studio drafts.","pages:write":"Update Brand Kit, create or edit remixes, publish hosted pages or domains, and edit or publish Email Studio drafts.","connectors:read":"See which apps and providers are connected, without any credentials.","connectors:manage":"Disconnect apps, forget saved provider keys and manage MCP servers. Connecting an app or entering a credential needs you signed in.","members:read":"See who belongs to an organization and their roles.","members:manage":"Invite people and change or remove members.","settings:read":"Read workspace settings, tool policy, skills and models.","settings:write":"Change workspace settings, tool policy and skills.","webhooks:manage":"Create, list and delete outbound webhooks.","events:read":"Read the activity feed and webhook delivery log.","tools:read":"Use read-only integration tools (Shopify, Klaviyo and others) the organization has connected.","tools:write":"Use integration tools that change data in connected apps. Writes still follow the organization's tool policy."},"tokenUrl":"https://shaw.ai/api/auth/oauth2/token"}},"type":"oauth2"}},"schemas":{}},"info":{"description":"Shaw's API for people and agents. Everything you can do in the app, you can do here with an API key or an OAuth token, within the scopes you grant it.\n\nA scope only narrows a credential: every request still runs as the person who owns it, with their role in the organization.\n\nRoutes under /api/skills, /api/harness-profiles, /api/data-sync, /api/templates, /api/seo are reachable with the matching read or write scope (GET reads, everything else writes) even where no typed operation is listed here.\n\nWebhook events: approval.decided, session.completed, schedule.run.started, schedule.run.failed.\n\nMCP: https://shaw.ai/mcp (also https://shaw.ai/portal/mcp).","title":"Shaw API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/api/me":{"get":{"description":"Returns the signed-in person, the organizations they can open, and the organization this request acts for.","operationId":"get_me","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["org:read"]}],"summary":"Who am I and which organizations can I use","tags":["Organization"],"x-mcp-tool":"get_me","x-requires-confirmation":false,"x-required-scope":"org:read"}},"/api/organizations":{"post":{"description":"Creates a private organization with the caller as its admin. Only people allowed to create organizations can; check `canCreateOrganization` in get_me.","operationId":"create_organization","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"description":"The new organization's name.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["org:write"]}],"summary":"Create an organization","tags":["Organization"],"x-mcp-tool":"create_organization","x-requires-confirmation":true,"x-required-scope":"org:write"}},"/api/organizations/{id}":{"patch":{"description":"Organization admins only.","operationId":"rename_organization","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The organization id.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"description":"The new name.","type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["org:write"]}],"summary":"Rename an organization","tags":["Organization"],"x-mcp-tool":"rename_organization","x-requires-confirmation":false,"x-required-scope":"org:write"}},"/api/activity":{"get":{"operationId":"list_activity","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Maximum events to return.","in":"query","name":"limit","required":false,"schema":{"description":"Maximum events to return.","type":"integer"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["events:read"]}],"summary":"Read the activity feed","tags":["Activity"],"x-mcp-tool":"list_activity","x-requires-confirmation":false,"x-required-scope":"events:read"}},"/api/inbox":{"get":{"operationId":"list_sessions","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["sessions:read"]}],"summary":"List chat sessions","tags":["Sessions"],"x-mcp-tool":"list_sessions","x-requires-confirmation":false,"x-required-scope":"sessions:read"},"post":{"description":"Starts a chat session and sends its first message. The reply is produced asynchronously: poll get_session, and decide any approvals with approve_action / reject_action.","operationId":"create_session","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"accessMode":{"description":"`auto` (writes wait for approval unless the tool policy trusts them), `manual` or `read_only`. `bypass` isn't available over the API.","type":"string","enum":["auto","manual","read_only"]},"prompt":{"description":"What to ask or tell Shaw.","type":"string"},"requestId":{"description":"Your own id to make a retry idempotent. Reuse it when retrying.","type":"string"},"selectedTools":{"description":"Tool groups the session may use, for example `shopify`, `klaviyo`, `browser`.","items":{},"type":"array"},"title":{"description":"A title for the session.","type":"string"}},"required":["prompt"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["sessions:write"]}],"summary":"Start a chat session","tags":["Sessions"],"x-mcp-tool":"create_session","x-requires-confirmation":false,"x-required-scope":"sessions:write"}},"/api/inbox/{sessionId}/messages":{"post":{"operationId":"send_session_message","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The session id (`GET /api/inbox`).","in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"accessMode":{"description":"`auto`, `manual` or `read_only`.","type":"string","enum":["auto","manual","read_only"]},"prompt":{"description":"The message.","type":"string"},"requestId":{"description":"Your own id to make a retry idempotent.","type":"string"},"selectedTools":{"description":"Tool groups the session may use.","items":{},"type":"array"}},"required":["prompt"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["sessions:write"]}],"summary":"Send a message in a session","tags":["Sessions"],"x-mcp-tool":"send_session_message","x-requires-confirmation":false,"x-required-scope":"sessions:write"}},"/api/inbox/{sessionId}":{"get":{"operationId":"get_session","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The session id (`GET /api/inbox`).","in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["sessions:read"]}],"summary":"Read one chat session with its pending approvals","tags":["Sessions"],"x-mcp-tool":"get_session","x-requires-confirmation":false,"x-required-scope":"sessions:read"},"patch":{"operationId":"rename_session","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The session id (`GET /api/inbox`).","in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"title":{"description":"The new title.","type":"string"}},"required":["title"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["sessions:write"]}],"summary":"Rename a session","tags":["Sessions"],"x-mcp-tool":"rename_session","x-requires-confirmation":false,"x-required-scope":"sessions:write"},"delete":{"operationId":"archive_session","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The session id (`GET /api/inbox`).","in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["sessions:write"]}],"summary":"Archive a session","tags":["Sessions"],"x-mcp-tool":"archive_session","x-requires-confirmation":false,"x-required-scope":"sessions:write"}},"/api/session-history/{sessionId}":{"get":{"operationId":"get_session_history","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The session id (`GET /api/inbox`).","in":"path","name":"sessionId","required":true,"schema":{"type":"string"}},{"description":"Set to `compatibility` for the legacy history projection.","in":"query","name":"source","required":false,"schema":{"description":"Set to `compatibility` for the legacy history projection.","type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["sessions:read"]}],"summary":"Read a session's conversation history","tags":["Sessions"],"x-mcp-tool":"get_session_history","x-requires-confirmation":false,"x-required-scope":"sessions:read"}},"/api/inbox/{sessionId}/compact":{"post":{"operationId":"compact_session","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The session id (`GET /api/inbox`).","in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["sessions:write"]}],"summary":"Compact a session's context","tags":["Sessions"],"x-mcp-tool":"compact_session","x-requires-confirmation":false,"x-required-scope":"sessions:write"}},"/api/inbox/{sessionId}/fork":{"post":{"operationId":"fork_session","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The session id (`GET /api/inbox`).","in":"path","name":"sessionId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"upToMessageId":{"description":"Fork up to and including this message id.","type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["sessions:write"]}],"summary":"Fork a session","tags":["Sessions"],"x-mcp-tool":"fork_session","x-requires-confirmation":false,"x-required-scope":"sessions:write"}},"/api/inbox/{sessionId}/approvals/{approvalId}/approve":{"post":{"description":"Approving runs the action the session paused on, exactly once. The decision is attributed to the credential's owner.","operationId":"approve_action","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The session id (`GET /api/inbox`).","in":"path","name":"sessionId","required":true,"schema":{"type":"string"}},{"description":"The approval id from the session's pending approvals.","in":"path","name":"approvalId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["approvals:review"]}],"summary":"Approve a pending action","tags":["Approvals"],"x-mcp-tool":"approve_action","x-requires-confirmation":true,"x-required-scope":"approvals:review"}},"/api/inbox/{sessionId}/approvals/{approvalId}/reject":{"post":{"operationId":"reject_action","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The session id (`GET /api/inbox`).","in":"path","name":"sessionId","required":true,"schema":{"type":"string"}},{"description":"The approval id from the session's pending approvals.","in":"path","name":"approvalId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["approvals:review"]}],"summary":"Reject a pending action","tags":["Approvals"],"x-mcp-tool":"reject_action","x-requires-confirmation":false,"x-required-scope":"approvals:review"}},"/api/files":{"get":{"operationId":"list_files","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Only files under this directory.","in":"query","name":"directory","required":false,"schema":{"description":"Only files under this directory.","type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["files:read"]}],"summary":"List shared files","tags":["Files"],"x-mcp-tool":"list_files","x-requires-confirmation":false,"x-required-scope":"files:read"},"post":{"operationId":"write_file","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"The file content.","type":"string"},"contentType":{"description":"MIME type.","type":"string"},"expectedRevision":{"description":"The revision you read, or null for a new file. Required so concurrent edits never overwrite each other.","type":["string","null"]},"path":{"description":"File path.","type":"string"},"title":{"description":"Optional title.","type":"string"}},"required":["content","expectedRevision","path"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["files:write"]}],"summary":"Create or update a shared file","tags":["Files"],"x-mcp-tool":"write_file","x-requires-confirmation":false,"x-required-scope":"files:write"}},"/api/files/{key}":{"get":{"operationId":"read_file","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The storage key or path. Percent-encode `/` as `%2F`.","in":"path","name":"key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["files:read"]}],"summary":"Read a shared file","tags":["Files"],"x-mcp-tool":"read_file","x-requires-confirmation":false,"x-required-scope":"files:read"},"delete":{"operationId":"delete_file","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The storage key or path. Percent-encode `/` as `%2F`.","in":"path","name":"key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["files:write"]}],"summary":"Delete a shared file","tags":["Files"],"x-mcp-tool":"delete_file","x-requires-confirmation":false,"x-required-scope":"files:write"}},"/api/docs":{"get":{"operationId":"list_docs","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["files:read"]}],"summary":"List shared documents","tags":["Docs"],"x-mcp-tool":"list_docs","x-requires-confirmation":false,"x-required-scope":"files:read"},"post":{"operationId":"write_doc","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"The document content.","type":"string"},"expectedRevision":{"description":"The revision you read, or null for a new document.","type":["string","null"]},"path":{"description":"Document path.","type":"string"},"title":{"description":"Optional title.","type":"string"}},"required":["content","expectedRevision","path"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["files:write"]}],"summary":"Create or update a shared document","tags":["Docs"],"x-mcp-tool":"write_doc","x-requires-confirmation":false,"x-required-scope":"files:write"}},"/api/docs/{key}":{"get":{"operationId":"read_doc","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The storage key or path. Percent-encode `/` as `%2F`.","in":"path","name":"key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["files:read"]}],"summary":"Read a shared document","tags":["Docs"],"x-mcp-tool":"read_doc","x-requires-confirmation":false,"x-required-scope":"files:read"},"delete":{"operationId":"delete_doc","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The storage key or path. Percent-encode `/` as `%2F`.","in":"path","name":"key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["files:write"]}],"summary":"Delete a shared document","tags":["Docs"],"x-mcp-tool":"delete_doc","x-requires-confirmation":false,"x-required-scope":"files:write"}},"/api/knowledge":{"get":{"operationId":"list_knowledge","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Page size.","in":"query","name":"limit","required":false,"schema":{"description":"Page size.","type":"integer"}},{"description":"Page offset.","in":"query","name":"offset","required":false,"schema":{"description":"Page offset.","type":"integer"}},{"description":"Search text.","in":"query","name":"q","required":false,"schema":{"description":"Search text.","type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["memory:read"]}],"summary":"List or search knowledge entries","tags":["Knowledge"],"x-mcp-tool":"list_knowledge","x-requires-confirmation":false,"x-required-scope":"memory:read"},"post":{"operationId":"set_knowledge","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"content":{"description":"Entry content.","type":"string"},"key":{"description":"Entry key.","type":"string"}},"required":["content","key"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["memory:write"]}],"summary":"Create or replace a knowledge entry","tags":["Knowledge"],"x-mcp-tool":"set_knowledge","x-requires-confirmation":false,"x-required-scope":"memory:write"}},"/api/knowledge/{key}/versions":{"get":{"operationId":"list_knowledge_versions","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The storage key or path. Percent-encode `/` as `%2F`.","in":"path","name":"key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["memory:read"]}],"summary":"List an entry's versions","tags":["Knowledge"],"x-mcp-tool":"list_knowledge_versions","x-requires-confirmation":false,"x-required-scope":"memory:read"}},"/api/knowledge/{key}/restore":{"post":{"operationId":"restore_knowledge","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The storage key or path. Percent-encode `/` as `%2F`.","in":"path","name":"key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"version":{"description":"The version number to restore.","type":"integer"}},"required":["version"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["memory:write"]}],"summary":"Restore a knowledge entry version","tags":["Knowledge"],"x-mcp-tool":"restore_knowledge","x-requires-confirmation":false,"x-required-scope":"memory:write"}},"/api/knowledge/{key}":{"delete":{"operationId":"delete_knowledge","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The storage key or path. Percent-encode `/` as `%2F`.","in":"path","name":"key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["memory:write"]}],"summary":"Delete a knowledge entry","tags":["Knowledge"],"x-mcp-tool":"delete_knowledge","x-requires-confirmation":false,"x-required-scope":"memory:write"}},"/api/schedules":{"get":{"operationId":"get_schedules","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["schedules:read"]}],"summary":"Read the scheduled automations","tags":["Schedules"],"x-mcp-tool":"get_schedules","x-requires-confirmation":false,"x-required-scope":"schedules:read"},"put":{"description":"Replaces the whole configuration; read it first and send it back with your edit.","operationId":"update_schedules","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"description":"The full schedule configuration, as returned by get_schedules.","type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["schedules:write"]}],"summary":"Replace the schedule configuration","tags":["Schedules"],"x-mcp-tool":"update_schedules","x-requires-confirmation":true,"x-required-scope":"schedules:write"}},"/api/schedules/{scheduleId}/run":{"post":{"operationId":"run_schedule","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The schedule id.","in":"path","name":"scheduleId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["schedules:write"]}],"summary":"Run a schedule now","tags":["Schedules"],"x-mcp-tool":"run_schedule","x-requires-confirmation":true,"x-required-scope":"schedules:write"}},"/api/developers/events":{"get":{"operationId":"list_events","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Only events created before this Unix-millisecond timestamp (for paging).","in":"query","name":"before","required":false,"schema":{"description":"Only events created before this Unix-millisecond timestamp (for paging).","type":"integer"}},{"description":"Page size, 1 to 200.","in":"query","name":"limit","required":false,"schema":{"description":"Page size, 1 to 200.","type":"integer"}},{"description":"Only this event type.","in":"query","name":"type","required":false,"schema":{"description":"Only this event type.","type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["events:read"]}],"summary":"Read the event log","tags":["Webhooks"],"x-mcp-tool":"list_events","x-requires-confirmation":false,"x-required-scope":"events:read"}},"/api/developers/webhooks":{"get":{"operationId":"list_webhooks","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["webhooks:manage"]}],"summary":"List webhooks","tags":["Webhooks"],"x-mcp-tool":"list_webhooks","x-requires-confirmation":false,"x-required-scope":"webhooks:manage"},"post":{"description":"Organization admins only. The response carries the signing secret once; store it.","operationId":"create_webhook","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"description":{"description":"What this endpoint is for.","type":"string"},"events":{"description":"Event types to receive; omit for all of them.","items":{},"type":"array"},"url":{"description":"An https URL that is reachable from the public internet.","type":"string"}},"required":["url"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["webhooks:manage"]}],"summary":"Create a webhook","tags":["Webhooks"],"x-mcp-tool":"create_webhook","x-requires-confirmation":true,"x-required-scope":"webhooks:manage"}},"/api/developers/webhooks/{webhookId}":{"delete":{"operationId":"delete_webhook","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The webhook id.","in":"path","name":"webhookId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["webhooks:manage"]}],"summary":"Delete a webhook","tags":["Webhooks"],"x-mcp-tool":"delete_webhook","x-requires-confirmation":true,"x-required-scope":"webhooks:manage"}},"/api/developers/webhooks/{webhookId}/test":{"post":{"operationId":"test_webhook","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The webhook id.","in":"path","name":"webhookId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["webhooks:manage"]}],"summary":"Send a test event to a webhook","tags":["Webhooks"],"x-mcp-tool":"test_webhook","x-requires-confirmation":true,"x-required-scope":"webhooks:manage"}},"/api/developers/webhooks/{webhookId}/deliveries":{"get":{"operationId":"list_webhook_deliveries","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The webhook id.","in":"path","name":"webhookId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["webhooks:manage"]}],"summary":"List a webhook's recent deliveries","tags":["Webhooks"],"x-mcp-tool":"list_webhook_deliveries","x-requires-confirmation":false,"x-required-scope":"webhooks:manage"}},"/api/members":{"get":{"operationId":"list_members","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["members:read"]}],"summary":"List the organization's members","tags":["Members"],"x-mcp-tool":"list_members","x-requires-confirmation":false,"x-required-scope":"members:read"},"post":{"description":"Admins only. Emails the person a setup link.","operationId":"add_member","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"description":"The person's email.","type":"string"},"role":{"description":"`admin` or `member`.","type":"string","enum":["admin","member"]}},"required":["email"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["members:manage"]}],"summary":"Add a member","tags":["Members"],"x-mcp-tool":"add_member","x-requires-confirmation":true,"x-required-scope":"members:manage"}},"/api/members/{email}":{"patch":{"operationId":"set_member_role","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The member's email, percent-encoded.","in":"path","name":"email","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"role":{"description":"`admin` or `member`.","type":"string","enum":["admin","member"]}},"required":["role"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["members:manage"]}],"summary":"Change a member's role","tags":["Members"],"x-mcp-tool":"set_member_role","x-requires-confirmation":false,"x-required-scope":"members:manage"},"delete":{"operationId":"remove_member","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The member's email, percent-encoded.","in":"path","name":"email","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["members:manage"]}],"summary":"Remove a member","tags":["Members"],"x-mcp-tool":"remove_member","x-requires-confirmation":true,"x-required-scope":"members:manage"}},"/api/workspace-settings":{"get":{"operationId":"get_workspace_settings","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["settings:read"]}],"summary":"Read workspace settings","tags":["Settings"],"x-mcp-tool":"get_workspace_settings","x-requires-confirmation":false,"x-required-scope":"settings:read"},"put":{"description":"Send the fields you changed with the `baseGeneration` you read; a stale generation is refused.","operationId":"update_workspace_settings","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"description":"The settings object: the fields you changed plus `baseGeneration`, the `generation` you read. A stale generation is refused.","type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["settings:write"]}],"summary":"Change workspace settings","tags":["Settings"],"x-mcp-tool":"update_workspace_settings","x-requires-confirmation":true,"x-required-scope":"settings:write"}},"/api/tool-policy":{"get":{"operationId":"get_tool_policy","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["settings:read"]}],"summary":"Read the tool policy","tags":["Settings"],"x-mcp-tool":"get_tool_policy","x-requires-confirmation":false,"x-required-scope":"settings:read"},"put":{"operationId":"update_tool_policy","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"description":"The tool policy, as returned by get_tool_policy.","type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["settings:write"]}],"summary":"Change the tool policy","tags":["Settings"],"x-mcp-tool":"update_tool_policy","x-requires-confirmation":true,"x-required-scope":"settings:write"}},"/api/models":{"get":{"operationId":"list_models","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["settings:read"]}],"summary":"List available models","tags":["Settings"],"x-mcp-tool":"list_models","x-requires-confirmation":false,"x-required-scope":"settings:read"}},"/api/skills":{"get":{"operationId":"get_skills","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["settings:read"]}],"summary":"Read the workspace skills","tags":["Settings"],"x-mcp-tool":"get_skills","x-requires-confirmation":false,"x-required-scope":"settings:read"}},"/api/harness-profiles":{"get":{"operationId":"get_harness_profiles","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["settings:read"]}],"summary":"Read the harness profiles","tags":["Settings"],"x-mcp-tool":"get_harness_profiles","x-requires-confirmation":false,"x-required-scope":"settings:read"}},"/api/connections":{"get":{"operationId":"list_connections","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["connectors:read"]}],"summary":"List connected providers","tags":["Connections"],"x-mcp-tool":"list_connections","x-requires-confirmation":false,"x-required-scope":"connectors:read"}},"/api/api-keys":{"get":{"operationId":"list_api_key_connections","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["connectors:read"]}],"summary":"List API-key connections (never the keys)","tags":["Connections"],"x-mcp-tool":"list_api_key_connections","x-requires-confirmation":false,"x-required-scope":"connectors:read"}},"/api/api-keys/{slug}":{"delete":{"operationId":"forget_api_key_connection","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The provider slug.","in":"path","name":"slug","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["connectors:manage"]}],"summary":"Forget a saved provider API key","tags":["Connections"],"x-mcp-tool":"forget_api_key_connection","x-requires-confirmation":true,"x-required-scope":"connectors:manage"}},"/api/data-sync":{"get":{"operationId":"get_data_sync_status","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["campaigns:read"]}],"summary":"Read the organization's data-sync status","tags":["Campaigns"],"x-mcp-tool":"get_data_sync_status","x-requires-confirmation":false,"x-required-scope":"campaigns:read"}},"/api/data-sync/overview":{"get":{"operationId":"get_performance_overview","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Reporting range, for example `last_7_days`.","in":"query","name":"range","required":false,"schema":{"description":"Reporting range, for example `last_7_days`.","type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["campaigns:read"]}],"summary":"Read the Performance overview","tags":["Campaigns"],"x-mcp-tool":"get_performance_overview","x-requires-confirmation":false,"x-required-scope":"campaigns:read"}},"/api/data-sync/run":{"post":{"description":"Admins only.","operationId":"run_data_sync","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"source":{"description":"Sync only this source.","type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["campaigns:write"]}],"summary":"Sync data now","tags":["Campaigns"],"x-mcp-tool":"run_data_sync","x-requires-confirmation":true,"x-required-scope":"campaigns:write"}},"/api/data-sync/meta/accounts":{"get":{"operationId":"list_meta_accounts","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["campaigns:read"]}],"summary":"List selectable Meta ad accounts","tags":["Campaigns"],"x-mcp-tool":"list_meta_accounts","x-requires-confirmation":false,"x-required-scope":"campaigns:read"}},"/api/data-sync/meta/publish-context":{"get":{"operationId":"get_meta_publish_context","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Meta ad account id.","in":"query","name":"accountId","required":true,"schema":{"description":"Meta ad account id.","type":"string"}},{"description":"`1` for a lighter response.","in":"query","name":"light","required":false,"schema":{"description":"`1` for a lighter response.","type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["campaigns:read"]}],"summary":"Read what a Meta campaign can be published with","tags":["Campaigns"],"x-mcp-tool":"get_meta_publish_context","x-requires-confirmation":false,"x-required-scope":"campaigns:read"}},"/api/data-sync/meta/history":{"get":{"operationId":"get_meta_history","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Meta ad account id.","in":"query","name":"accountId","required":true,"schema":{"description":"Meta ad account id.","type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["campaigns:read"]}],"summary":"Read Meta publish history","tags":["Campaigns"],"x-mcp-tool":"get_meta_history","x-requires-confirmation":false,"x-required-scope":"campaigns:read"}},"/api/data-sync/meta/series":{"get":{"operationId":"get_meta_series","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Meta ad account id.","in":"query","name":"accountId","required":true,"schema":{"description":"Meta ad account id.","type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["campaigns:read"]}],"summary":"Read Meta performance series","tags":["Campaigns"],"x-mcp-tool":"get_meta_series","x-requires-confirmation":false,"x-required-scope":"campaigns:read"}},"/api/data-sync/meta/publish":{"post":{"description":"Publishes to Meta. Follow docs/ops/meta-campaign-publishing.md.","operationId":"publish_meta_campaign","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"accountId":{"description":"Meta ad account id.","type":"string"},"plan":{"description":"The campaign plan.","additionalProperties":true,"type":"object"}},"required":["accountId","plan"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["campaigns:write"]}],"summary":"Publish a Meta campaign","tags":["Campaigns"],"x-mcp-tool":"publish_meta_campaign","x-requires-confirmation":true,"x-required-scope":"campaigns:write"}},"/api/data-sync/meta/entity":{"post":{"operationId":"update_meta_entity","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"accountId":{"description":"Meta ad account id.","type":"string"},"entityId":{"description":"Campaign, ad set or ad id.","type":"string"},"patch":{"description":"The fields to change.","additionalProperties":true,"type":"object"}},"required":["accountId","entityId","patch"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["campaigns:write"]}],"summary":"Change a Meta campaign, ad set or ad","tags":["Campaigns"],"x-mcp-tool":"update_meta_entity","x-requires-confirmation":true,"x-required-scope":"campaigns:write"}},"/api/credits":{"get":{"description":"Returns the organization's current billing plan (Free 10,000 credits/month, Pro 100,000 credits/month, Operator 1,000,000 credits/month), monthly credit allowance, used and remaining monthly credits, never-expiring credit pack balance, Auto Top-Up settings, approximate LOC capacity (1 credit = 1 LOC), and permanently unlocked template pages with lifetime updates.","operationId":"get_credits_balance","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["org:read"]}],"summary":"Read credits balance and unlocks","tags":["Credits"],"x-mcp-tool":"get_credits_balance","x-requires-confirmation":false,"x-required-scope":"org:read"}},"/api/billing/auto-topup":{"get":{"description":"Read the organization's Auto Top-Up settings, saved payment method summary (card brand and last 4 digits), and current UTC month Auto Top-Up spend against the monthly cap.","operationId":"get_billing_auto_topup","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["org:read"]}],"summary":"Read Auto Top-Up billing settings","tags":["Billing"],"x-mcp-tool":"get_billing_auto_topup","x-requires-confirmation":false,"x-required-scope":"org:read"},"put":{"description":"Update Auto Top-Up settings for the organization. Enabling Auto Top-Up requires a saved payment method (returns 400 PAYMENT_METHOD_REQUIRED otherwise). Organization admins only.","operationId":"update_billing_auto_topup","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"enabled":{"description":"Enable or disable automatic credit pack refills.","type":"boolean"},"monthlyCapCents":{"description":"Maximum monthly Auto Top-Up spend in USD cents (non-negative integer).","type":"integer"},"packId":{"description":"Credit pack to purchase when Auto Top-Up triggers.","type":"string","enum":["pack_50000","pack_200000","pack_500000"]},"thresholdCredits":{"description":"Trigger a refill when remaining credits drop below this threshold (non-negative integer).","type":"integer"}},"type":"object"}}},"required":false},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["org:write"]}],"summary":"Update Auto Top-Up billing settings","tags":["Billing"],"x-mcp-tool":"update_billing_auto_topup","x-requires-confirmation":true,"x-required-scope":"org:write"}},"/api/billing/payment-method/setup":{"post":{"description":"Create a Stripe Checkout Session (`mode=setup`) to save a default payment method for off-session Auto Top-Up refills. Organization admins only.","operationId":"create_billing_payment_method_setup","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"returnPath":{"description":"Internal path to return to after Stripe Checkout setup (defaults to `/app/account`).","type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["org:write"]}],"summary":"Start Stripe payment method setup for Auto Top-Up","tags":["Billing"],"x-mcp-tool":"create_billing_payment_method_setup","x-requires-confirmation":true,"x-required-scope":"org:write"}},"/api/templates/search":{"get":{"description":"Search and paginate Shaw's Template Code Library catalog metadata (free, uses 0 credits). Returns opaque template ids, slugs, titles, channels, and approximate LOC / credit cost.","operationId":"search_templates","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Filter by brand slug or name.","in":"query","name":"brand","required":false,"schema":{"description":"Filter by brand slug or name.","type":"string"}},{"description":"Filter by category group or label.","in":"query","name":"category","required":false,"schema":{"description":"Filter by category group or label.","type":"string"}},{"description":"Filter by surface channel.","in":"query","name":"channel","required":false,"schema":{"description":"Filter by surface channel.","type":"string","enum":["websites","emails","apps","ads"]}},{"description":"Results per page (1-25, default 20).","in":"query","name":"limit","required":false,"schema":{"description":"Results per page (1-25, default 20).","type":"integer"}},{"description":"Pagination offset (default 0).","in":"query","name":"offset","required":false,"schema":{"description":"Pagination offset (default 0).","type":"integer"}},{"description":"Search query across brand, title, surface, or subject.","in":"query","name":"q","required":false,"schema":{"description":"Search query across brand, title, surface, or subject.","type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:read"]}],"summary":"Search Shaw template catalog","tags":["Templates"],"x-mcp-tool":"search_templates","x-requires-confirmation":false,"x-required-scope":"pages:read"}},"/api/templates/detail/{id}":{"get":{"description":"Read detailed metadata, pages, brand DNA, and per-page measured LOC / credit cost for one template (free, uses 0 credits). 1 credit = 1 LOC: emails cost max(2,500, LOC) credits (2,500 credits minimum); website and app pages cost 5,000 to 15,000 credits per page. Pass the opaque template id from search_templates (e.g. tpl_...).","operationId":"get_template","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Template id (`tpl_...`) from search_templates.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Optional page path within the template (defaults to `/`).","in":"query","name":"path","required":false,"schema":{"description":"Optional page path within the template (defaults to `/`).","type":"string"}},{"description":"Optional template version id (YYYY-MM-DD).","in":"query","name":"version","required":false,"schema":{"description":"Optional template version id (YYYY-MM-DD).","type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:read"]}],"summary":"Get template details and LOC credit cost","tags":["Templates"],"x-mcp-tool":"get_template","x-requires-confirmation":false,"x-required-scope":"pages:read"}},"/api/templates/brands":{"get":{"description":"List brands in Shaw's catalog (free, uses 0 credits).","operationId":"list_brands","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:read"]}],"summary":"List catalog brands","tags":["Templates"],"x-mcp-tool":"list_brands","x-requires-confirmation":false,"x-required-scope":"pages:read"}},"/api/templates/notes/{id}":{"get":{"description":"Read AI launch notes and design context for a template (free, uses 0 credits). Pass the opaque template id (`tpl_...`).","operationId":"get_template_notes","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Template id (`tpl_...`) from search_templates.","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:read"]}],"summary":"Read template launch notes","tags":["Templates"],"x-mcp-tool":"get_template_notes","x-requires-confirmation":false,"x-required-scope":"pages:read"}},"/api/templates/use":{"post":{"description":"Unlock a single template page permanently for the organization (with lifetime updates across future versions) and return its HTML and linked CSS bundle. 1 credit = 1 LOC: emails spend max(2,500, LOC) credits; website and app pages spend 5,000 to 15,000 credits based on per-page HTML + CSS LOC. Re-fetching an unlocked page or newer version costs 0 credits forever. Triggers Auto Top-Up if enabled and within cap; returns 402 `You need more credits` when remaining credits are too low.","operationId":"use_template","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"path":{"description":"Page path within the template (defaults to `/`).","type":"string"},"slug":{"description":"Template slug (e.g. `rhode/landing`), if templateId is omitted.","type":"string"},"templateId":{"description":"Template id (`tpl_...`) from search_templates.","type":"string"},"version":{"description":"Optional template version id.","type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:read"]}],"summary":"Unlock and read template source bundle using credits","tags":["Templates"],"x-mcp-tool":"use_template","x-requires-confirmation":true,"x-required-scope":"pages:read"}},"/api/builder/brand-kit":{"get":{"description":"Read the organization's Brand Kit (brand name, domain, tagline, logo, colors, heading/body fonts, and voice tone).","operationId":"get_brand_kit","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:read"]}],"summary":"Read workspace Brand Kit","tags":["Builder"],"x-mcp-tool":"get_brand_kit","x-requires-confirmation":false,"x-required-scope":"pages:read"},"put":{"operationId":"update_brand_kit","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"description":"Complete Brand Kit object (`brandName`, `domain`, `tagline`, `logoUrl`, `primaryColor`, `accentColor`, `backgroundColor`, `textColor`, `headingFont`, `bodyFont`, `tone`).","type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Update workspace Brand Kit","tags":["Builder"],"x-mcp-tool":"update_brand_kit","x-requires-confirmation":false,"x-required-scope":"pages:write"}},"/api/builder/brand-kit/import":{"post":{"operationId":"import_brand_kit","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"save":{"description":"Set true to persist imported values to the Brand Kit.","type":"boolean"},"source":{"description":"Import from a public website URL or connected Shopify store.","type":"string","enum":["url","shopify"]},"url":{"description":"Public `https://` URL or domain when `source` is `url`.","type":"string"}},"required":["source"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Import Brand Kit from website or Shopify","tags":["Builder"],"x-mcp-tool":"import_brand_kit","x-requires-confirmation":false,"x-required-scope":"pages:write"}},"/api/templates/remixes/history":{"get":{"description":"List recent AI remixes created by your account along with your daily remix quota.","operationId":"list_remixes","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:read"]}],"summary":"List your template remixes","tags":["Builder"],"x-mcp-tool":"list_remixes","x-requires-confirmation":false,"x-required-scope":"pages:read"}},"/api/templates/remixes":{"post":{"description":"Create a brand-adapted AI remix of a template page. Spends LOC-based credits on first use of the template (returns 402 `You need more credits` if unaffordable) and counts toward daily remix limits.","operationId":"create_remix","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"imageModel":{"description":"Optional image model id.","type":"string"},"keep":{"description":"Aspects to preserve from the original: `layout`, `colors`, `images`.","items":{},"type":"array"},"notes":{"description":"Additional copy, section, or Brand Kit instructions.","type":"string"},"path":{"description":"Page path to remix (defaults to `/`).","type":"string"},"template":{"description":"Template id (`tpl_...`) or slug to remix.","type":"string"},"version":{"description":"Optional template version id.","type":"string"},"yourBrand":{"description":"Brand name or domain this remix is for.","type":"string"}},"required":["template","yourBrand"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Create a brand remix of a template","tags":["Builder"],"x-mcp-tool":"create_remix","x-requires-confirmation":true,"x-required-scope":"pages:write"}},"/api/templates/remixes/{remixId}/detail":{"get":{"description":"Read the structured copy swaps, color palette, link overrides, and image briefs for a remix you own.","operationId":"get_remix","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The remix id (`rmx_...`).","in":"path","name":"remixId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:read"]}],"summary":"Inspect structured remix details","tags":["Builder"],"x-mcp-tool":"get_remix","x-requires-confirmation":false,"x-required-scope":"pages:read"}},"/api/templates/remixes/{remixId}":{"patch":{"operationId":"update_remix","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"The remix id (`rmx_...`).","in":"path","name":"remixId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"brandName":{"description":"Updated brand name.","type":"string"},"colors":{"description":"Array of `[fromHex, toHex]` color swap pairs.","items":{},"type":"array"},"links":{"description":"Array of `[originalHref, targetHref]` link swap pairs.","items":{},"type":"array"},"texts":{"description":"Array of `[originalText, replacementText]` copy swap pairs.","items":{},"type":"array"}},"type":"object"}}},"required":false},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Edit remix copy, colors, and links","tags":["Builder"],"x-mcp-tool":"update_remix","x-requires-confirmation":false,"x-required-scope":"pages:write"}},"/api/templates/remixes/{remixId}/pictures/{index}":{"post":{"operationId":"draw_remix_picture","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Zero-based picture slot index.","in":"path","name":"index","required":true,"schema":{"type":"string"}},{"description":"The remix id (`rmx_...`).","in":"path","name":"remixId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"imageModel":{"description":"Optional image model id.","type":"string"},"prompt":{"description":"Custom prompt when redrawing.","type":"string"},"redraw":{"description":"Set true to regenerate an existing image.","type":"boolean"}},"type":"object"}}},"required":false},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Generate or redraw one remix picture","tags":["Builder"],"x-mcp-tool":"draw_remix_picture","x-requires-confirmation":false,"x-required-scope":"pages:write"}},"/api/builder/pages":{"get":{"operationId":"list_pages","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:read"]}],"summary":"List hosted landing pages","tags":["Builder"],"x-mcp-tool":"list_pages","x-requires-confirmation":false,"x-required-scope":"pages:read"}},"/api/builder/pages/publish":{"post":{"operationId":"publish_page","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"customDomain":{"description":"Optional verified custom domain hostname to bind.","type":"string"},"description":{"description":"SEO meta description.","type":"string"},"remixId":{"description":"The remix id (`rmx_...`) to publish.","type":"string"},"slug":{"description":"Hosted path slug under `/p/<slug>`.","type":"string"},"title":{"description":"Page title.","type":"string"}},"required":["remixId"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Publish a remix as a hosted Shaw landing page","tags":["Builder"],"x-mcp-tool":"publish_page","x-requires-confirmation":true,"x-required-scope":"pages:write"}},"/api/builder/pages/publish-shopify":{"post":{"operationId":"publish_page_to_shopify","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"existingShopifyPageId":{"description":"Existing Shopify Online Store page GID to update.","type":"string"},"handle":{"description":"Shopify page URL handle.","type":"string"},"isPublished":{"description":"Whether the Shopify page should be published live (default true).","type":"boolean"},"remixId":{"description":"The remix id (`rmx_...`) to publish.","type":"string"},"slug":{"description":"Optional hosted slug for asset paths.","type":"string"},"title":{"description":"Shopify page title.","type":"string"}},"required":["remixId"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Publish a remix to connected Shopify Online Store","tags":["Builder"],"x-mcp-tool":"publish_page_to_shopify","x-requires-confirmation":true,"x-required-scope":"pages:write"}},"/api/builder/pages/{slug}":{"delete":{"operationId":"delete_page","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Hosted landing page slug.","in":"path","name":"slug","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Delete a hosted landing page","tags":["Builder"],"x-mcp-tool":"delete_page","x-requires-confirmation":true,"x-required-scope":"pages:write"}},"/api/builder/domains":{"get":{"operationId":"list_domains","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:read"]}],"summary":"List custom domains","tags":["Builder"],"x-mcp-tool":"list_domains","x-requires-confirmation":false,"x-required-scope":"pages:read"},"post":{"operationId":"add_domain","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"hostname":{"description":"Custom hostname (e.g. `lp.yourbrand.com`).","type":"string"},"pageSlug":{"description":"Optional hosted page slug to bind.","type":"string"}},"required":["hostname"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Add a custom domain for hosted pages","tags":["Builder"],"x-mcp-tool":"add_domain","x-requires-confirmation":true,"x-required-scope":"pages:write"}},"/api/builder/domains/{hostname}/verify":{"post":{"operationId":"verify_domain","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Custom domain hostname.","in":"path","name":"hostname","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Verify DNS for a custom domain","tags":["Builder"],"x-mcp-tool":"verify_domain","x-requires-confirmation":false,"x-required-scope":"pages:write"}},"/api/builder/domains/{hostname}":{"delete":{"operationId":"delete_domain","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Custom domain hostname.","in":"path","name":"hostname","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Remove a custom domain","tags":["Builder"],"x-mcp-tool":"delete_domain","x-requires-confirmation":true,"x-required-scope":"pages:write"}},"/api/email-studio/drafts":{"get":{"operationId":"list_email_drafts","parameters":[{"$ref":"#/components/parameters/Tenant"}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:read"]}],"summary":"List Email Studio drafts","tags":["Email Studio"],"x-mcp-tool":"list_email_drafts","x-requires-confirmation":false,"x-required-scope":"pages:read"}},"/api/email-studio/drafts/{draftId}":{"get":{"operationId":"get_email_draft","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Email draft id.","in":"path","name":"draftId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:read"]}],"summary":"Read an Email Studio draft","tags":["Email Studio"],"x-mcp-tool":"get_email_draft","x-requires-confirmation":false,"x-required-scope":"pages:read"},"put":{"operationId":"save_email_draft","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Email draft id (1-64 alphanumeric, dash, or underscore characters).","in":"path","name":"draftId","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"document":{"description":"Structured EmailDocument payload (`title`, `subject`, `sections`, etc.).","additionalProperties":true,"type":"object"}},"required":["document"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Create or update an Email Studio draft","tags":["Email Studio"],"x-mcp-tool":"save_email_draft","x-requires-confirmation":false,"x-required-scope":"pages:write"},"delete":{"operationId":"delete_email_draft","parameters":[{"$ref":"#/components/parameters/Tenant"},{"description":"Email draft id.","in":"path","name":"draftId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Delete an Email Studio draft","tags":["Email Studio"],"x-mcp-tool":"delete_email_draft","x-requires-confirmation":true,"x-required-scope":"pages:write"}},"/api/email-studio/import-remix":{"post":{"operationId":"import_remix_to_email","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"remixId":{"description":"Email remix id (`rmx_...`) to convert into an Email Studio draft.","type":"string"}},"required":["remixId"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Import an email remix into Email Studio","tags":["Email Studio"],"x-mcp-tool":"import_remix_to_email","x-requires-confirmation":false,"x-required-scope":"pages:write"}},"/api/email-studio/klaviyo/publish":{"post":{"description":"Requires an active Shaw Pro subscription and a connected Klaviyo account.","operationId":"publish_email_to_klaviyo","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"audienceId":{"description":"Klaviyo list or segment id when `mode` is `campaign_draft`.","type":"string"},"document":{"description":"EmailDocument payload; omitted if publishing an existing `draftId`.","additionalProperties":true,"type":"object"},"draftId":{"description":"Saved Email Studio draft id to publish.","type":"string"},"fromEmail":{"description":"Sender email override.","type":"string"},"fromLabel":{"description":"Sender display name override.","type":"string"},"mode":{"description":"Publish a reusable Klaviyo template or a campaign draft.","type":"string","enum":["template","campaign_draft"]},"replyToEmail":{"description":"Reply-to email override.","type":"string"},"templateName":{"description":"Template name in Klaviyo.","type":"string"}},"required":["mode"],"type":"object"}}},"required":true},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Publish an email draft to Klaviyo","tags":["Email Studio"],"x-mcp-tool":"publish_email_to_klaviyo","x-requires-confirmation":true,"x-required-scope":"pages:write"}},"/api/email-studio/klaviyo/publish-template":{"post":{"description":"Import a library email template directly into a connected Klaviyo account without Remix or a Shaw Pro subscription. Spends email LOC credits (1 credit = 1 LOC, 2,500 credits minimum) on first unlock and 0 credits forever across all future versions once unlocked.","operationId":"publish_template_to_klaviyo","parameters":[{"$ref":"#/components/parameters/Tenant"}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"audienceId":{"description":"Klaviyo list or segment id when `mode` is `campaign_draft`.","type":"string"},"excludedAudienceIds":{"description":"Optional list of Klaviyo list or segment ids to exclude from a campaign draft.","items":{},"type":"array"},"existingKlaviyoTemplateId":{"description":"Optional existing Klaviyo template id to update in place.","type":"string"},"fromEmail":{"description":"Sender email override.","type":"string"},"fromLabel":{"description":"Sender display name override.","type":"string"},"mode":{"description":"Publish a reusable Klaviyo CODE template or a Klaviyo draft campaign (defaults to `template`).","type":"string","enum":["template","campaign_draft"]},"previewText":{"description":"Optional inbox preview / preheader text.","type":"string"},"replyToEmail":{"description":"Reply-to email override.","type":"string"},"slug":{"description":"Library email template slug (e.g. `aesop/email-welcome`), if `templateId` is omitted.","type":"string"},"subject":{"description":"Optional email subject line override.","type":"string"},"templateId":{"description":"Library email template id (`tpl_...`) from `search_templates`.","type":"string"},"templateName":{"description":"Template name in Klaviyo.","type":"string"},"useSmartSending":{"description":"Whether Klaviyo Smart Sending is enabled (default true).","type":"boolean"},"version":{"description":"Optional template version id (`YYYY-MM-DD`).","type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"$ref":"#/components/responses/Ok"},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"}},"security":[{"apiKey":[]},{"oauth2":["pages:write"]}],"summary":"Import a library email template directly to Klaviyo","tags":["Email Studio"],"x-mcp-tool":"publish_template_to_klaviyo","x-requires-confirmation":true,"x-required-scope":"pages:write"}}},"security":[{"apiKey":[]},{"oauth2":[]}],"servers":[{"url":"https://shaw.ai"}],"tags":[{"name":"Organization","description":"Inspect your authenticated profile, active workspace memberships, and create or rename organizations."},{"name":"Activity"},{"name":"Sessions"},{"name":"Approvals"},{"name":"Files"},{"name":"Docs"},{"name":"Knowledge"},{"name":"Schedules"},{"name":"Webhooks"},{"name":"Members"},{"name":"Settings"},{"name":"Connections","description":"List connected third-party providers and manage saved provider API-key connections for your workspace."},{"name":"Campaigns"},{"name":"Credits","description":"Inspect your organization's monthly LOC credit allowance, remaining balance, and templates unlocked in the current UTC period."},{"name":"Billing"},{"name":"Templates","description":"Search Shaw's live template catalog, inspect measured LOC credit costs, read launch notes, and unlock source bundles."},{"name":"Builder","description":"Manage your workspace Brand Kit, create and edit AI template remixes, and publish hosted landing pages or custom domains."},{"name":"Email Studio","description":"Create, inspect, and update Email Studio drafts, import email remixes, and publish directly to connected Klaviyo accounts."}],"x-domain-prefixes":[{"prefix":"/api/status","readScope":"org:read","tool":null,"writeScope":"org:read"},{"prefix":"/api/credits","readScope":"org:read","tool":null,"writeScope":"org:read"},{"prefix":"/api/organizations","readScope":"org:read","tool":null,"writeScope":"org:write"},{"prefix":"/api/inbox","readScope":"sessions:read","tool":null,"writeScope":"sessions:write"},{"prefix":"/api/session-history","readScope":"sessions:read","tool":null,"writeScope":"sessions:write"},{"prefix":"/api/artifacts","readScope":"sessions:read","tool":null,"writeScope":"sessions:write"},{"prefix":"/api/activity","readScope":"events:read","tool":null,"writeScope":"events:read"},{"prefix":"/api/files","readScope":"files:read","tool":null,"writeScope":"files:write"},{"prefix":"/api/docs","readScope":"files:read","tool":null,"writeScope":"files:write"},{"prefix":"/api/knowledge","readScope":"memory:read","tool":null,"writeScope":"memory:write"},{"prefix":"/api/schedules","readScope":"schedules:read","tool":null,"writeScope":"schedules:write"},{"prefix":"/api/members","readScope":"members:read","tool":null,"writeScope":"members:manage"},{"prefix":"/api/workspace-settings","readScope":"settings:read","tool":null,"writeScope":"settings:write"},{"prefix":"/api/tool-policy","readScope":"settings:read","tool":null,"writeScope":"settings:write"},{"prefix":"/api/models","readScope":"settings:read","tool":null,"writeScope":"settings:write"},{"prefix":"/api/skills","readScope":"settings:read","tool":"settings_request","writeScope":"settings:write"},{"prefix":"/api/harness-profiles","readScope":"settings:read","tool":"settings_request","writeScope":"settings:write"},{"prefix":"/api/connections","readScope":"connectors:read","tool":null,"writeScope":"connectors:manage"},{"prefix":"/api/api-keys","readScope":"connectors:read","tool":null,"writeScope":"connectors:manage"},{"prefix":"/api/mcp-servers","readScope":"connectors:read","tool":null,"writeScope":"connectors:manage"},{"prefix":"/api/data-sync","readScope":"campaigns:read","tool":"campaigns_request","writeScope":"campaigns:write"},{"prefix":"/api/templates","readScope":"pages:read","tool":"pages_request","writeScope":"pages:write"},{"prefix":"/api/builder","readScope":"pages:read","tool":null,"writeScope":"pages:write"},{"prefix":"/api/email-studio","readScope":"pages:read","tool":null,"writeScope":"pages:write"},{"prefix":"/api/seo","readScope":"reports:read","tool":"reports_request","writeScope":"reports:write"},{"prefix":"/api/developers/webhooks","readScope":"webhooks:manage","tool":null,"writeScope":"webhooks:manage"},{"prefix":"/api/developers/events","readScope":"events:read","tool":null,"writeScope":"events:read"}]}