openapi: 3.1.1 info: title: OpenBot API version: 0.1.0 license: name: MIT identifier: MIT description: |- The one API every OpenBot client uses: the web app, Desktop, mobile and the Recorder. It follows the conventions of CopilotKit Intelligence's v2 API so both read as one API, and OpenBot's resources sit beside Intelligence's under the same organization address (/api/v2/organizations/{organizationId}/...). Errors are RFC 9457 problem details (application/problem+json), lists page with an opaque cursor and a limit, and every write takes an Idempotency-Key. An OpenBot install holds one or more organizations, and a person may be a member of several. Where an install allows more than one, people create others and join them by invitation. On a self-hosted install everybody who signs in is a member of `default`, the one organization they share, unless the install gives everybody an organization of their own as they first sign in, as OpenBot Cloud does. Otherwise, and on an install for one person with no sign-in, everybody works in the organization `default`. organizationId is an organization's id or its slug, and the caller must be a member of it: an organization the caller is not in answers exactly as one that does not exist, `default` included. A program of your own signs its requests in one of two ways. An API key acts as the person who made it, in the organization it was made in, like a personal access token: the address names the organization each request is for. Keys start `obk_` and are sent as `Authorization: Bearer ` or in an `x-api-key` header, on /api/v2 and on the socket a join token is spent on (createConversationJoinToken). To get a first key, open Settings → API keys in OpenBot and create one. The key is shown once. In the team edition, sign in to the web app to manage your keys. API keys and app OAuth tokens can't manage keys. An app that signs people in uses OAuth 2.1 instead, described under the appOAuth security scheme: its client ids, redirect addresses, endpoints, how long tokens last and the four addresses outside /api/v2 a token also works at. In the personal edition, including a local OpenBot Desktop install, the one person can create, list and revoke their own keys in Settings → API keys without signing in. A request that carries a valid key needs no install token: the key alone signs it in, on every `/api/v2` operation that takes an API key. The personal edition has no OAuth sign-in, sign-in sessions or single sign-on. `listSessions`, `deleteSession`, `createIdentityProvider` and `createCompanySignInTicket` answer 404 in this edition. An organization can require its members to sign in through their company's identity provider. A member who hasn't is held out of it: every operation under its address answers 403 with the code SSO_REQUIRED (category permission, not retryable), whose detail tells them to sign in with their work email. getCompanySignIn alone still answers, and says which providers they can use. Every signed-in operation can answer 429 with the code RATE_LIMITED (category rate_limit, retryable) when the caller, a person, an API key or an organization, asks faster than this OpenBot answers for it. Wait the whole seconds its Retry-After header gives, then try again. OpenBot's own apps name themselves on every request in the header `OpenBot-Client`: `/`, where kind is web, desktop, mobile or recorder, such as `OpenBot-Client: desktop/1.1.0`. A header may name more than one, separated by spaces: OpenBot Desktop adds its own to the one its window's page sent. getDeployment says which API versions this OpenBot serves and the oldest release of each app it serves (minimumClients). Every other operation under /api/v2 refuses an app older than that with 400 and the code CLIENT_UPDATE_REQUIRED, whose problem names the app (client) and its minimum (minimumVersion) and whose detail tells the person to update OpenBot. When that minimum was raised because of a security problem in older releases, the problem also says security: true, and getDeployment lists it under securityMinimumClients. A program of your own need not send the header; without it nothing is refused for a version. An app says which newer answers it understands in the header `OpenBot-Capabilities`: lowercase tokens separated by spaces, such as `OpenBot-Capabilities: computer-step-taken`. The server sends a newer shape of an answer only to a request naming its token, and the shape before it to every other request, so an app never gets an answer it can't read, whatever its version. A token the server doesn't know is ignored. The conversation events socket takes the same list in its `capabilities` query parameter, since a browser can't set a header on a WebSocket. The tokens: `computer-step-taken`, a computer step the server already ran or is running is answered as such, `taken` from runComputerStep and the problems COMPUTER_STEP_RUNNING and COMPUTER_STEP_OUTCOME_UNKNOWN from a direct computer call that names its step by threadId and toolCallId; `conversation-work-turn`, a conversation's work can name the person's own turn that the server is carrying on (kind turn); and, on the conversation events socket only, `data-changed`, the socket is sent dataChanged, and `artifact-activity`, the socket is sent artifactActivity (api/asyncapi.yaml). A request without a token is answered as before its shape existed. A program of your own need not send the header. Every answer carries `X-Request-Id`, the id OpenBot's server logs the request under, and a problem's requestId is the same id. So does every other answer under /api, the four addresses outside /api/v2 included. Quote it when reporting a failure, so the request can be found in the server's logs. This file is the single source of truth: the clients, the server's types, the docs and the contract tests are all generated from it or checked against it. A change that breaks an existing client fails the pull request. servers: - url: http://127.0.0.1:3001 description: An OpenBot server on this machine (the default local port). tags: - name: Bots description: 'The Bots a person can see: their own, those shared with them, the ones an administrator assigned them, and the ones that come with OpenBot.' - name: Team Bots description: Bots their owners published to the team, or to named people and directory groups, and the ones an administrator assigned to a group. Each person's conversations with a Team Bot are private to them. - name: Reactions description: The reactions a Bot leaves on a person's message in place of a line of its own, when the message only needs an acknowledgement. - name: Audit events description: 'The audit trail: what people and Bots did in the organization, and what its policy refused, newest first. Only an administrator can read it. It is read-only: events are written by what they record, never through the API.' - name: People description: 'The people in the organization: who they are, what they may do, and what is theirs alone (their standing instructions, preferences and first-run onboarding). An administrator sees everybody; anybody else sees themselves, as me.' - name: Linked accounts description: A person's accounts at other services, such as Slack and GitHub, that OpenBot knows are theirs, so a Bot answering there knows who it is talking to. - name: Identity providers description: The companies' own identity providers registered for single sign-on, by email domain. Only an administrator manages them. - name: API keys description: The keys a person makes for automation. A key acts as them in the organization it was made in. Manage your own keys in Settings → API keys, in the signed-in web app or in your local personal edition. - name: Sessions description: Where a person is signed in to OpenBot, so they can see each browser and device and sign one out. - name: Organization settings description: 'What an administrator sets for everybody, and what this OpenBot offers: sign-in, recording, idle computers, allowlists, the setup checklist, and which models Bots ran on.' - name: Capabilities description: The permission switches that decide what people may do, set for the organization, a role or a directory group, and each person's answer. - name: Network policies description: Where Bot computers may connect, for the organization and for a directory group. - name: Conversations description: A person's conversations with Bots. What a Bot is doing in one streams over a WebSocket, described in api/asyncapi.yaml; the operations here hand out what that socket needs. - name: Tasks description: 'The work a Bot does for a person in a conversation of its own: started from something a check-in found, or handed to the Bot by another. Where a task stands is read from its conversation, never stored.' - name: Voice description: 'Voice calls with a conversation''s Bot: how a call connects, and the calls a person saved in a conversation with their transcripts.' - name: Credentials description: 'The organization''s vault: the model keys, app keys and app tokens OpenBot keeps encrypted for its Bots. A secret goes in and is never read back out. Only an administrator manages them.' - name: Models description: The models Bots can run on, and the one a person chose for each of their conversations. - name: Apps description: The apps the organization has added for its Bots to use, from the directory of apps it can add or by a server's address, and how apps are set up here. - name: Connections description: 'A person''s connections to apps: the accounts they signed in with so their Bots can act there for them, and an app''s one shared account when an administrator connects it for everybody.' - name: Bot grants description: 'What each Bot may use: the app actions, skills and other Bots it was given, and each app as it stands for the person asking.' - name: App access requests description: A person asking an administrator to turn an app on, give it to a Bot, or connect its shared account. - name: Components description: The charts, cards and other components a Bot draws in a conversation instead of answering in text. Most come with OpenBot, and an admin can write more in Playground. An admin decides what each tells the model, which Bots may draw it and which data it may read. - name: Skills description: 'Named instructions a person runs by typing / in a conversation. Anybody can write their own, and an admin writes the organization''s. A skill adds no access: a Bot that runs one uses only the apps it can already use.' - name: Devices description: The phones a person signed in to the OpenBot app on and turned notifications on for, which their Bots send push notifications to. - name: Destinations description: 'Where a person continues a conversation with a Bot outside OpenBot: a Slack or Microsoft Teams chat, or a phone number for text messages.' - name: Deliveries description: What Bots sent a person outside OpenBot, and where each one got to. - name: Notification settings description: 'How a person hears from their Bots while they''re away: which ways each kind of update may use, how much each Bot may send, and which ways this deployment can reach anyone at all.' - name: Routines description: 'A person''s routines: what a Bot does for them on a schedule, in a conversation they share. A routine belongs to the person who made it and answers only them.' - name: Check-ins description: 'A Bot''s check-ins: quiet looks through what a person connected, the items a check-in raised for them, and an administrator''s numbers for how check-ins are going.' - name: Goals description: 'A person''s goals: an outcome a Bot works toward, run on request, on a routine''s schedule or when an outside event arrives through one of the goal''s triggers.' - name: Follow-ups description: Work a Bot scheduled for itself to come back to later in a conversation. - name: Organizations description: The organizations the caller is a member of, and each one's members. An organization keeps its own Bots and conversations, apart from every other's. - name: Teams description: 'An organization''s teams: named groups of its members, and each team''s people. What is granted to a team is its people''s to use, and nobody else''s in the organization. A team is made here or kept in step with a group of the company''s directory.' - name: Approvals description: 'What a person''s Bots are waiting on them for: the actions that ask before they run, the questions a Bot asked, and what the person set for themselves about asking (their preferences, their own rules, and what they allowed for one conversation). Each person''s are theirs alone.' - name: Approval rules description: 'The organization''s approval rules: which actions every member''s Bots take without asking, ask a person about first, or hand to the person. An administrator can describe rules in English, test them against what Bots already did, and save several as one change.' - name: Reviewer guidance description: 'What an administrator tells auto-review, in plain English: what to ask about and what is routine for the organization. Checked by an independent reading before it is saved, and never able to switch built-in safety off.' - name: Boundaries description: The rules that decide what every Bot may do, on its computer and in the apps it calls. A deny rule refuses, an allow rule permits, and an action no rule permits is refused. Only an administrator reads or sets them. - name: What-if description: What OpenBot's controls would decide about one action a Bot might take, and what they say now about one already on the audit trail. Nothing is carried out. Only an administrator can ask. - name: Shared use description: 'A Bot''s use of a shared app''s one account: the audience an administrator approved it for, and the requests a Bot''s owner files when the Bot reaches further than that.' - name: Host access description: The folders on a person's own computer that they gave their Bots through OpenBot Desktop. Each person sees and ends only their own. - name: Computers description: 'The computer a Bot works on for a person: its state, its screen, who is driving it, the actions a Bot takes on it through the app, and for an administrator the organization''s computers. The live screen and terminal stream over WebSockets, described in api/asyncapi.yaml.' - name: Browsers description: 'The browsers people work in: the one on a Bot''s computer, which a person drives and records in while they hold control of it, and the one OpenBot runs for each person, with the OpenBot Recorder in it already connected.' - name: Windows computer description: 'Experimental. A person''s own Windows computer, which they and their Bots take turns on, one in each organization: who is using it, and the recordings the person makes on it for OpenBot to learn from.' - name: Sign-in requests description: A Bot asking the person it works for to sign it in to a website, and the person's answer on a private form. What they type goes to the Bot's browser and nowhere else; the Bot is told only whether the sign-in worked. - name: Saved logins description: The logins a person saved for their Bots to sign in with, by site. A password goes in and is never read back out. - name: Recorder description: 'The OpenBot Recorder, the browser extension a person records what they do with: the browsers connected as a person, their recordings, and the Recorder''s own operations, which it signs with its connection token.' - name: Product events description: 'What a person did with a Bot''s answer, seen on screen or copied, counted so OpenBot knows which answers people use. Best effort: a client never waits on one.' - name: Learning description: 'Automatic learning: the skills Learning proposed, the evidence behind them, approving and rejecting them, and its runs, in the organization''s spaces and each person''s own; which space each Bot learns into, who reviews what people''s recordings propose, each person''s sharing choices, requests to share a skill with every Bot, and the skills delivered to Bots.' - name: Memory description: 'The facts a person''s Bots remember about them, and the app actions those facts are read in from. Each person''s are theirs alone: an administrator can''t read them either.' - name: Agents description: 'The agents an organization''s Bots hand work to: OpenBot''s own, a framework OpenBot runs, or an agent somebody runs at its own address. An administrator adds the organization''s, and anybody may add a private one for their own Bots. A Bot''s delegation says whether it works on one agent or hands work to several, and which.' - name: CopilotKit management description: Connecting a self-hosted OpenBot to CopilotKit's management service, which keeps it up to date in the company's own cluster through an agent installed there. Only the administrators of the organization `default` manage it, and only on the team edition a company runs itself. - name: Web push description: The browsers a person turned notifications on in, which their Bots send push notifications to through each browser's own push service, and the key a browser subscribes with. - name: Moving to OpenBot Cloud description: 'Moving what a person has in an OpenBot on their own computer to an organization on OpenBot Cloud: exporting it there as a bundle, importing the bundle on Cloud, and checking that everything arrived before anything is removed. Connections to apps never carry their sign-in, and a model key moves only when the person chooses, sealed to the import.' - name: Artifacts description: 'The documents, decks, dashboards, sheets, diagrams and pages a Bot or a person makes, each kept with every version: v1, v2, v3 and on. A save built on an older version is refused, a restore adds a new version, and nothing is ever lost from the history.' - name: Artifact sharing description: 'Who can see and edit an artifact: its audience (only its owner, everyone in the organization, or anyone with its link), the people and teams it is shared with as viewers or editors, people outside the organization invited by email with a one-time code, requests for access, and the organization''s artifact policy. Every route that touches an artifact asks the same rule.' - name: Artifact exports description: 'Turning one version of an artifact into a real file to open elsewhere: a document as PDF, Word or Markdown, a deck as PowerPoint, PDF or pictures, a dashboard as PDF or a picture, a sheet as Excel or CSV, a diagram as SVG, a picture or PDF, and a page as one HTML file, PDF or a picture.' - name: Artifact comments description: The comment threads people leave on an artifact, and sending one to a Bot, which answers for the person who sent it. Only people who open the artifact in OpenBot see them. - name: Artifact presence description: Who has an artifact open right now, shown as their pictures in the viewer. An admin can turn it off. - name: Artifact pages description: 'What a page artifact may use while a person views it, with their yes first: data it keeps, the model, their connected apps, and who they are.' paths: /api/v2/organizations/{organizationId}/reactions: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Reactions operationId: listReactions summary: List reactions in a conversation description: Return one page of the reactions Bots left on the caller's messages in one of their conversations, named by its thread. Another person's thread answers with an empty list. A missing cursor starts at the first page and nextCursor null ends the list. Today's server returns every reaction on the first page. security: - webSession: [] - appOAuth: - reactions:read - apiKey: [] parameters: - name: threadId in: query required: true description: The conversation's thread, as its messages name it. schema: type: string minLength: 1 maxLength: 200 - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of reactions. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ReactionPage' examples: lastPage: $ref: '#/components/examples/ReactionPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Bots operationId: listBots summary: List Bots description: 'Return one page of the Bots the caller can see: theirs, the ones shared with them, the ones assigned to them and the ones that come with OpenBot, oldest first, and by id among Bots made at the same moment. Somebody else''s private Bot is never among them, an admin''s list included. hidden=true lists only the Bots the caller hid from their own list instead. scope=organization lists every Bot in the organization, people''s private Bots included, for an admin''s screens that decide what Bots may hold; it is refused to anybody who is not an admin of the organization. Somebody else''s private Bot comes withheld there: its name and avatar, and nothing from inside it (see the Bot''s withheld). A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - bots:read - apiKey: [] parameters: - name: hidden in: query description: List the Bots the caller hid instead of the ones they did not. schema: type: boolean default: false - name: scope in: query description: 'Whose Bots: caller, the Bots the caller can see; organization, every Bot in the organization, for an admin of it only.' schema: type: string enum: - caller - organization default: caller - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of Bots. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotPage' examples: lastPage: $ref: '#/components/examples/BotPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Bots operationId: createBot summary: Create a Bot description: Create a Bot owned by the caller. With no endpoint it runs inside OpenBot on its role description; with one, OpenBot sends each turn to that AG-UI address, which the server checks before saving. A key, when given, is stored encrypted and never returned. Asking for isolated needs the caller's Isolated Bots switch and a deployment that can give a Bot a computer of its own. A repeated request with the same Idempotency-Key and body returns the first result. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateBotRequest' examples: builtIn: summary: A Bot that runs inside OpenBot. value: name: Expense Review title: Finance Operations roleDescription: Review receipts, categorize expenses, and prepare reimbursement reports. visibility: private ownAgent: summary: An agent somebody runs themselves, behind a key. value: name: Expense Review title: '' roleDescription: Review receipts. visibility: private endpoint: https://agents.example.com/ag-ui auth: header: Authorization value: Bearer example-key harness: langgraph responses: '201': description: The Bot was created. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Location: description: The new Bot's address. schema: type: string example: /api/v2/organizations/default/bots/agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotResponse' examples: created: $ref: '#/components/examples/CreatedBot' '400': $ref: '#/components/responses/InvalidBot' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Bots operationId: getBot summary: Read one Bot description: Return one Bot the caller can see. A Bot that does not exist, was deleted, or is private to somebody else is not found. security: - webSession: [] - appOAuth: - bots:read - apiKey: [] responses: '200': description: The Bot. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotResponse' examples: starter: $ref: '#/components/examples/StarterBot' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Bots operationId: updateBot summary: Change a Bot description: Replace a Bot's name, title, role description and visibility, which are all required, and change any optional field that is present. An absent endpoint, key, isolated or default model leaves that setting as it is, so an edit to a name never drops a key or moves a Bot between computers. Only whoever may manage the Bot may change it, and a Bot that comes with OpenBot cannot be changed. Making a Bot public reports what that means for the shared app accounts it uses. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateBotRequest' examples: rename: value: name: Expense Review Desk title: Finance Operations roleDescription: Review receipts, categorize expenses, and prepare reimbursement reports. visibility: private responses: '200': description: The changed Bot. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/UpdateBotResponse' examples: renamed: $ref: '#/components/examples/CreatedBot' published: $ref: '#/components/examples/PublishedBot' '400': $ref: '#/components/responses/InvalidBot' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Bots operationId: deleteBot summary: Delete a Bot description: Delete a Bot for everyone and retire its key. Conversations with it stay readable. Only whoever may manage the Bot may delete it, and a Bot that comes with OpenBot cannot be deleted. A Bot that is already deleted is not found. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The Bot was deleted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/audit-events: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Audit events operationId: listAuditEvents summary: List audit events description: 'Return one page of the organization''s audit trail, newest first, narrowed by the filters given. Each organization has its own trail, and an event is on the trail of the organization it happened in. What happens to the organization itself is on its trail too: organization.created, organization.renamed, organization.member_invited, organization.invitation_canceled, organization.member_joined, organization.member_removed, organization.member_role_changed and organization.deleted, and its teams: team.created, team.updated, team.deleted, team.member_added, team.member_role_changed, team.member_removed and team.models_changed (the models before and after, each null when the team set none). A run refused on its model is model.refused: its payload names the model (provider/model), its source, and the rule that refused it (organization or team); when the rule is team, teams lists the teams whose lists applied to the person then, each with its id and its name as it was then ({ id, name }). An event written before this has no teams. Each filter narrows the events, and a filter that takes several values separated by commas matches any of them. A value that names nothing in the trail matches no event rather than being refused. A missing cursor starts at the newest event and nextCursor null ends the list. A cursor belongs to the filters that made it, so changing a filter starts again without one; limit may change from page to page. Only an administrator of the organization may read its trail.' security: - webSession: [] - appOAuth: - audit-events:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' - $ref: '#/components/parameters/AuditEventTypes' - $ref: '#/components/parameters/AuditExcludedEventTypes' - $ref: '#/components/parameters/AuditExcludedCalls' - $ref: '#/components/parameters/AuditActor' - $ref: '#/components/parameters/AuditInitiatorKinds' - $ref: '#/components/parameters/AuditTargetTypes' - $ref: '#/components/parameters/AuditTargetId' - $ref: '#/components/parameters/AuditBots' - $ref: '#/components/parameters/AuditApps' - $ref: '#/components/parameters/AuditTools' - $ref: '#/components/parameters/AuditEffect' - $ref: '#/components/parameters/AuditIntents' - $ref: '#/components/parameters/AuditRule' - $ref: '#/components/parameters/AuditFrom' - $ref: '#/components/parameters/AuditTo' responses: '200': description: One page of audit events. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AuditEventPage' examples: firstPage: $ref: '#/components/examples/AuditEventPageFirst' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/audit-events/export: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Audit events operationId: exportAuditEvents summary: Export audit events as CSV description: 'Return every event the filters match, newest first, as one CSV file (RFC 4180): the same filters as listing audit events, without its paging, so the file and the list agree. The file holds at most 5,000 events; when more match, OpenBot-Export-Truncated says how many it holds, and narrowing the dates exports the rest. A cell a spreadsheet would run as a formula starts with an apostrophe. Each export is recorded on the trail. Only an administrator of the organization may export its trail.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - audit-events:read - apiKey: [] parameters: - $ref: '#/components/parameters/AuditEventTypes' - $ref: '#/components/parameters/AuditExcludedEventTypes' - $ref: '#/components/parameters/AuditExcludedCalls' - $ref: '#/components/parameters/AuditActor' - $ref: '#/components/parameters/AuditInitiatorKinds' - $ref: '#/components/parameters/AuditTargetTypes' - $ref: '#/components/parameters/AuditTargetId' - $ref: '#/components/parameters/AuditBots' - $ref: '#/components/parameters/AuditApps' - $ref: '#/components/parameters/AuditTools' - $ref: '#/components/parameters/AuditEffect' - $ref: '#/components/parameters/AuditIntents' - $ref: '#/components/parameters/AuditRule' - $ref: '#/components/parameters/AuditFrom' - $ref: '#/components/parameters/AuditTo' responses: '200': description: The matching events as CSV, one header row and one row per event. The columns are id, createdAt, eventType, actorUserId, initiatorKind, initiatorId, targetType, targetId, decisionAllowed, decisionRule, bot and payload, the event's payload as JSON. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Content-Disposition: description: An attachment named after the day it was exported. schema: type: string example: attachment; filename="audit-events-2026-11-14.csv" OpenBot-Export-Truncated: description: 'Present only when more events matched than the file holds: the number of events it holds.' schema: type: integer minimum: 1 example: 5000 X-Request-Id: $ref: '#/components/headers/RequestId' content: text/csv: schema: type: string example: | id,createdAt,eventType,actorUserId,initiatorKind,initiatorId,targetType,targetId,decisionAllowed,decisionRule,bot,payload 0b8f3a52-5d0e-4f5c-9a43-1c2b6c3e9f10,2026-11-14T09:12:44.501Z,computer.action_refused,,routine,routine_7f2c,computer,research-assistant,false,network.deny,research-assistant,"{""bot"":""research-assistant"",""decision"":{""allowed"":false,""rule"":""network.deny""}}" '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/audit-events/vocabulary: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Audit events operationId: getAuditEventVocabulary summary: Read what the audit filters can name description: 'Return what a filter on the audit trail can name in this organization: its Bots, its people, the apps and tools the trail has seen, and the boundary rules, both the policy''s current ones and any that refused something in the trail. These are the only values a question asked of the trail can turn into. Only an administrator may read it.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - audit-events:read - apiKey: [] responses: '200': description: What the audit filters can name. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AuditVocabulary' examples: vocabulary: $ref: '#/components/examples/AuditVocabularyExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/audit-events/ask: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Audit events operationId: askAuditEvents summary: Ask the audit trail a question description: 'Turn a question in English into filters on the audit trail. The deployment''s model chooses the filters and never answers the question itself: the events the filters list are the answer. Every filter is checked against what the trail can name (getAuditEventVocabulary), and filters that still fail on the model''s second try are refused, never guessed at. A second call that never sees the question reads the filters back in one line. Nothing changes but the trail, which records each question with the filters it became. Only an administrator may ask. A repeated request with the same Idempotency-Key and body returns the first answer without asking the model again.' security: - webSession: [] - appOAuth: - audit-events:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AuditQuestion' examples: blocked: value: question: What did the Research Assistant try to do yesterday that was blocked? timeZone: Europe/London responses: '200': description: The filters the question became, or why the trail can't answer it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AuditAnswer' examples: answered: $ref: '#/components/examples/AuditAnswerExample' '400': $ref: '#/components/responses/InvalidAuditQuestion' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '422': $ref: '#/components/responses/AuditQuestionNotUnderstood' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ModelFailed' '503': $ref: '#/components/responses/ModelNotConfigured' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/deployment/audit-events: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Audit events operationId: listDeploymentAuditEvents summary: List this OpenBot's own audit events description: 'Return one page of this OpenBot''s own trail, newest first: what happened to the installation and to no organization. That includes what the server found when it started, a Recorder connect code nobody knows, identity providers registered or removed, and the configuration making somebody the admin who runs this OpenBot. Where this OpenBot keeps one organization, those events are on that organization''s trail, and this list is empty. Only the admin who runs this OpenBot may read it. Where it keeps one organization, that is the organization''s admins. Where it may hold several, it is the people its configuration names (INITIAL_ADMIN_EMAILS), asking in an organization they administer, and any other admin is refused. eventType, from and to narrow the events as they do on an organization''s trail. A missing cursor starts at the newest event, and nextCursor null ends the list. A cursor belongs to the filters that made it, so changing a filter starts again without one; limit may change from page to page. Events older than the audit retention window are removed, as they are from every organization''s trail.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - audit-events:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' - $ref: '#/components/parameters/AuditEventTypes' - $ref: '#/components/parameters/AuditFrom' - $ref: '#/components/parameters/AuditTo' responses: '200': description: One page of this OpenBot's own audit events. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AuditEventPage' examples: firstPage: $ref: '#/components/examples/AuditEventPageFirst' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - People operationId: listPeople summary: List people description: Return one page of the people in the organization, the most recently signed in first. An administrator sees everybody who has signed in; anybody else sees only themselves. search narrows the list to people whose address or name holds it, ignoring case. A missing cursor starts at the first page and nextCursor null ends the list. A cursor belongs to the search that made it, so changing the search starts again without one; limit may change from page to page. security: - webSession: [] - appOAuth: - people:read - apiKey: [] parameters: - name: search in: query description: Part of an address or a name, matched without regard to case. schema: type: string maxLength: 200 pattern: ^[^\x00]*$ - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of people. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonPage' examples: lastPage: $ref: '#/components/examples/PersonPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - People operationId: getPerson summary: Get a person description: 'Return one person: the caller, as me or by their own id, or for an administrator anybody in the organization. Somebody who is not an administrator asking about anybody else is refused, whether or not that person exists. The answer also carries the OpenBot release the server runs, which the apps show under the person''s name.' security: - webSession: [] - appOAuth: - people:read - apiKey: [] responses: '200': description: The person. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GetPersonResponse' examples: me: $ref: '#/components/examples/MePerson' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/PersonForbidden' '404': $ref: '#/components/responses/PersonNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - People operationId: updatePerson summary: Change a person description: 'Change what is sent and leave the rest. A person changes their own name, and nobody else''s. An administrator changes anybody''s role, but not their own away from administrator, and not the role of somebody the deployment''s configuration names as an administrator. Asking for the role a person already has changes nothing and records nothing. role is deprecated: change a member''s role with updateOrganizationMember instead.' security: - webSession: [] - appOAuth: - people:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdatePersonRequest' examples: rename: value: name: Dana Whitfield promote: value: role: admin responses: '200': description: The person as changed. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonResponse' examples: renamed: $ref: '#/components/examples/ChangedPerson' '400': $ref: '#/components/responses/InvalidPerson' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/PersonForbidden' '404': $ref: '#/components/responses/PersonNotFound' '409': $ref: '#/components/responses/PersonConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/revoke-access: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - People operationId: revokePersonAccess summary: Remove a person's access description: 'Remove a person from the organization. Where OpenBot keeps more than one organization (its list of organizations answers canCreate true), this ends their membership of this organization alone: they lose its Bots and conversations from their next request, and their account, sessions, API keys and any other organization they belong to are unchanged. Restoring them puts the membership back with its role and teams. Where OpenBot keeps one organization, it stops the person using OpenBot: their address can''t sign in again, and the sessions, API keys and app sign-ins they hold end at once; restoring their access lets them sign in again. Either way they keep their record and their history, and the credentials they connected here are retired. Only an administrator may do this, never to themselves, never to somebody the deployment''s configuration names as an administrator, and never to the organization''s owner. Removing somebody already removed retires anything left and records nothing new.' security: - webSession: [] - appOAuth: - people:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The person, removed. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonResponse' examples: removed: $ref: '#/components/examples/RemovedPerson' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/PersonNotFound' '409': $ref: '#/components/responses/PersonConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/restore-access: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - People operationId: restorePersonAccess summary: Give a person their access back description: 'Give a removed person their access back. Where OpenBot keeps more than one organization, this puts back their membership of this organization with the role and teams it had; their sessions and API keys, which were never ended, work here again from their next request. Where OpenBot keeps one organization, it lets them sign in again, and what ended when they were removed stays ended: they sign in afresh and make new API keys. Only an administrator may do this. Restoring somebody who was never removed changes nothing and records nothing.' security: - webSession: [] - appOAuth: - people:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The person, with their access back. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonResponse' examples: restored: $ref: '#/components/examples/ChangedPerson' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/PersonNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/onboarding/advance: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - People operationId: advanceOnboarding summary: Move to a step of first-run onboarding description: 'Record the step of first-run onboarding a person is on, so opening it again resumes there. The numbers are the app''s own: each step keeps its number whatever order the steps are shown in, and 0 is not started. Only the person themselves may move their onboarding. Read where they are on the person (getPerson''s onboarding).' security: - webSession: [] - appOAuth: - people:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AdvanceOnboardingRequest' examples: second: value: step: 2 responses: '200': description: Where the person now is in onboarding. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OnboardingResponse' examples: moved: value: onboarding: step: 2 completedAt: null '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/onboarding/complete: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - People operationId: completeOnboarding summary: Finish first-run onboarding description: Mark first-run onboarding finished, so the apps stop opening it. Finishing again keeps the first time it was finished. Only the person themselves may finish their onboarding. security: - webSession: [] - appOAuth: - people:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: Onboarding, finished. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OnboardingResponse' examples: finished: value: onboarding: step: 3 completedAt: '2026-11-14T09:30:00.000Z' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/terms: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - People operationId: getServiceTerms summary: Read the terms a person has to agree to description: 'Return the terms of service this OpenBot asks people to agree to before they use it, the version the person last agreed to and when, and whether they have to agree now. OpenBot Cloud has terms: a Terms of Service and an Acceptable Use Policy, published at the addresses given, under one version. When the version changes, acceptanceNeeded is true again until the person agrees to the new one, and the apps ask them before anything else. An agreement is the person''s own, not an organization''s: it holds in every organization they are in. A self-hosted OpenBot and OpenBot Desktop on its own have no terms: current is null and acceptanceNeeded is false. Only the person themselves may read it.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - people:read - apiKey: [] responses: '200': description: The current terms, the person's last agreement, and whether they have to agree now. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ServiceTerms' examples: toAgree: $ref: '#/components/examples/ServiceTermsToAgreeExample' agreed: $ref: '#/components/examples/ServiceTermsAgreedExample' changed: $ref: '#/components/examples/ServiceTermsChangedExample' none: $ref: '#/components/examples/ServiceTermsNoneExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/PersonNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/terms/accept: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - People operationId: acceptServiceTerms summary: Agree to the current terms description: 'Record that the person agreed to the terms of service, by the version they were shown, and when. The version sent must be the current one (getServiceTerms'' current.version): an older one is refused with the code SERVICE_TERMS_CHANGED, so nobody is recorded as agreeing to terms they never saw. Agreeing again to the version already agreed to keeps the first time. Every agreement is kept, each version with its own time, and recorded on the audit trail. Where this OpenBot has no terms it answers 409 with the code SERVICE_TERMS_NONE. Only the person themselves may agree.' security: - webSession: [] - appOAuth: - people:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AcceptServiceTermsRequest' examples: current: value: version: '2026-11-21' responses: '200': description: The terms, with the person's agreement recorded. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ServiceTerms' examples: agreed: $ref: '#/components/examples/ServiceTermsAgreedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/PersonNotFound' '409': $ref: '#/components/responses/ServiceTermsConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/instructions: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - People operationId: getStandingInstructions summary: Read a person's standing instructions description: 'Return the instructions a person gave every Bot that works for them. Empty means they wrote none. They are the person''s alone: nobody else, an administrator included, may read them.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - people:read - apiKey: [] responses: '200': description: The person's standing instructions. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/StandingInstructions' examples: written: $ref: '#/components/examples/StandingInstructionsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - People operationId: updateStandingInstructions summary: Change a person's standing instructions description: Replace a person's standing instructions with the text sent, trimmed. Empty text clears them. Only the person themselves may change them. The audit trail records that they changed and how long they now are, never what they say. security: - webSession: [] - appOAuth: - people:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/StandingInstructions' examples: written: $ref: '#/components/examples/StandingInstructionsExample' responses: '200': description: The instructions as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/StandingInstructions' examples: written: $ref: '#/components/examples/StandingInstructionsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/preferences: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - People operationId: getPreferences summary: Read a person's preferences description: Return how a person set OpenBot up for themselves, on every device they sign in from, with the default for anything they never chose. Only the person themselves may read them. x-openbot-singleton: true security: - webSession: [] - appOAuth: - people:read - apiKey: [] responses: '200': description: The person's preferences. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Preferences' examples: defaults: $ref: '#/components/examples/PreferencesExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - People operationId: updatePreferences summary: Change a person's preferences description: Change the preferences sent and keep the rest, so two devices saving different preferences at once both keep theirs. At least one is required. Only the person themselves may change them. security: - webSession: [] - appOAuth: - people:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdatePreferencesRequest' examples: skin: value: skin: opendots responses: '200': description: Every preference, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Preferences' examples: defaults: $ref: '#/components/examples/PreferencesExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/api-keys: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - API keys operationId: listApiKeys summary: List a person's API keys description: 'Return one page of the API keys a person made, newest first. Never a key itself: start is its first characters, enough to tell keys apart. Only the person themselves may list them, from the signed-in web app or their local personal edition. API keys and app OAuth tokens can''t list keys. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of API keys. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApiKeyPage' examples: lastPage: $ref: '#/components/examples/ApiKeyPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SignedInOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/SignInUnavailable' default: $ref: '#/components/responses/UnexpectedError' post: tags: - API keys operationId: createApiKey summary: Make an API key description: 'Make an API key that acts as the person on the API, in this organization only: the one it was made in. In any other organization it is refused as if the organization did not exist. The key itself is in this answer and never again: OpenBot keeps only a hash of it. Only the person themselves may make one, from the signed-in web app or their local personal edition. API keys and app OAuth tokens can''t make keys. A key ends when it expires, when it is deleted, or when an administrator removes the person.' security: - webSession: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateApiKeyRequest' examples: script: value: name: Nightly report expiresInDays: 90 responses: '201': description: The key, shown this once. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Location: description: The new key's address. schema: type: string X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CreatedApiKey' examples: made: $ref: '#/components/examples/CreatedApiKeyExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SignedInOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/SignInUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/api-keys/{apiKeyId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/ApiKeyId' delete: tags: - API keys operationId: deleteApiKey summary: Delete an API key description: End an API key so it can no longer authenticate requests. Only the person who made it may delete it, from the signed-in web app or their local personal edition. A key already deleted is not found. security: - webSession: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The key was deleted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SignedInOwnOnly' '404': $ref: '#/components/responses/ApiKeyNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/SignInUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/sessions: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Sessions operationId: listSessions summary: List where a person is signed in description: Return one page of the sessions a person is signed in with, the newest sign-in first, with the one this request came on marked current. Never a session's token. Only the person themselves may list them, signed in to OpenBot. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of sessions. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SessionPage' examples: lastPage: $ref: '#/components/examples/SessionPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SignedInOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/SignInUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/sessions/{sessionId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SessionId' delete: tags: - Sessions operationId: deleteSession summary: Sign a person out of one session description: End one session, signing that browser or device out. Ending the current one signs this caller out. Only the person themselves may end their sessions, signed in to OpenBot. A session already ended is not found. security: - webSession: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The session ended. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SignedInOwnOnly' '404': $ref: '#/components/responses/SessionNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/SignInUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/linked-accounts: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Linked accounts operationId: listLinkedAccounts summary: List a person's linked accounts description: Return one page of a person's accounts at other services that OpenBot knows are theirs, such as their Slack or GitHub account, so a Bot answering there knows who it is talking to. Only the person themselves may list them; there is no administrator view. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - linked-accounts:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of linked accounts. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LinkedAccountPage' examples: lastPage: $ref: '#/components/examples/LinkedAccountPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/LinkedAccountsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/linked-accounts/link: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Linked accounts operationId: linkAccount summary: Start linking an account description: Start linking one of the person's accounts at another service. Slack answers a one-time code the person sends the OpenBot app in Slack, which links the account they send it from. GitHub answers the address of GitHub's own consent page, which sends the person back to OpenBot once they agree. Either way the link is made when the person proves the account is theirs, never here. Only the person themselves may link their accounts, and only a service this deployment can link (listLinkedAccountProviders). security: - webSession: [] - appOAuth: - linked-accounts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/LinkAccountRequest' examples: slack: value: provider: slack responses: '200': description: What the person does next to prove the account is theirs. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AccountLinkStart' examples: slack: $ref: '#/components/examples/SlackLinkCodeExample' github: $ref: '#/components/examples/GitHubLinkExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/LinkProviderUnavailable' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/LinkedAccountsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/linked-accounts/{linkedAccountId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/LinkedAccountId' delete: tags: - Linked accounts operationId: deleteLinkedAccount summary: Unlink an account description: Forget that an account at another service is the person's, and retire the credential the link held. Only the person themselves may unlink their accounts. An account already unlinked is not found, which a client can read as done. security: - webSession: [] - appOAuth: - linked-accounts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The account was unlinked. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/LinkedAccountNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/LinkedAccountsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/linked-account-providers: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Linked accounts operationId: listLinkedAccountProviders summary: List the services a person can link description: 'Return the services this deployment can link a person''s account at. A service appears only when its way back to OpenBot is set up: Slack needs the OpenBot app installed there, and GitHub needs OpenBot''s GitHub App. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - linked-accounts:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of services. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LinkedAccountProviderPage' examples: both: $ref: '#/components/examples/LinkedAccountProviderPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/LinkedAccountsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/identity-providers: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Identity providers operationId: listIdentityProviders summary: List identity providers description: 'Return one page of the identity providers registered for single sign-on, by email domain: a company''s own SAML or OIDC provider, which signs in everybody at its domain. Every administrator sees every provider, whoever registered it. Never a client secret or a signing certificate. Where this OpenBot may keep more than one organization, the list in any organization but `default` also holds the providers registered for the whole OpenBot, marked deployment: they count for this organization''s Require SSO only while it has no provider of its own, and can''t be removed here. Only an administrator may list them. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - identity-providers:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of identity providers. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/IdentityProviderPage' examples: lastPage: $ref: '#/components/examples/IdentityProviderPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Identity providers operationId: createIdentityProvider summary: Register an identity provider description: 'Register a company''s identity provider, so everybody it vouches for at its email domain can sign in. SAML takes the metadata the company''s identity team supplies; OIDC takes the issuer, which describes itself, and a client. Only an administrator may register one, signed in to OpenBot rather than with a key or an app''s sign-in. The audit trail records who registered it. Where people sign in with their OpenBot by CopilotKit account (hostedSignIn in getDeployment), no organization registers a provider of its own: this answers 409 with the code HOSTED_SIGN_IN_ONLY.' security: - webSession: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateIdentityProviderRequest' examples: saml: value: protocol: saml id: acme-okta domain: acme.com issuer: http://www.okta.com/exk1a2b3c4d5e6f7g8h9 entryPoint: https://acme.okta.com/app/acme_openbot/exk1a2b3c4d5e6f7g8h9/sso/saml metadata: responses: '201': description: The provider, registered. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Location: description: The new provider's address. schema: type: string X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/IdentityProviderResponse' examples: saml: $ref: '#/components/examples/IdentityProviderExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SignedInAdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdentityProviderConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/SignInUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/identity-providers/{identityProviderId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/IdentityProviderId' delete: tags: - Identity providers operationId: deleteIdentityProvider summary: Remove an identity provider description: 'Remove an identity provider, whoever registered it, so nobody signs in through it again. Only an administrator may remove one. A provider registered for the whole OpenBot (deployment) is removed only where it was registered: in any other organization it is refused with 403. A provider already removed is not found. Where people sign in with their OpenBot by CopilotKit account (hostedSignIn in getDeployment), this answers 409 with the code HOSTED_SIGN_IN_ONLY and removes nothing.' security: - webSession: [] - appOAuth: - identity-providers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The provider was removed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/IdentityProviderNotRemovable' '404': $ref: '#/components/responses/IdentityProviderNotFound' '409': $ref: '#/components/responses/IdentityProviderRemovalConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/company-sign-in: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - People operationId: getCompanySignIn summary: Read whether a person must use their company sign-in here description: 'Return whether this organization requires its members to sign in through their company''s identity provider, whether the person has, and the providers they can use for it. Any member may read their own, as me or by their own id. It answers even while the organization holds them out for not having signed in that way, when every other request they make in it is refused with SSO_REQUIRED. To use a provider, they sign in through it by its id (POST /api/auth/sign-in/sso with providerId) in a browser where they are signed in, or from an app through createCompanySignInTicket. Where people sign in with their OpenBot by CopilotKit account (hostedSignIn in getDeployment), no organization requires it: required is false and no providers are listed.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - people:read - apiKey: [] responses: '200': description: Whether the person must use their company sign-in here. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CompanySignIn' examples: required: $ref: '#/components/examples/CompanySignInExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/company-sign-in/tickets: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - People operationId: createCompanySignInTicket summary: Get a ticket to link a company account from an app description: 'Return an address for a browser to link the person''s company account at one of the organization''s identity providers, for an app that has no browser session to carry, such as the phone. The app opens it in the system browser, and the person signs in through the provider there. Sent with returnTo app, the browser goes back to the phone app once the account is linked. The address carries a ticket, never the app''s own sign-in. The ticket is the person''s, for this organization and this provider, lasts two minutes, and opens once. Signing in through the provider then links the company account as a signed-in browser''s sign-in does: the provider must give the person''s own email address. Only the person themselves may ask, as me or by their own id, signed in to OpenBot or its app, never with an API key. It answers while the organization holds them out for not having signed in that way. providerId is one of the providers getCompanySignIn lists. Because the answer is a credential shown once, it is not kept: a retry with the same Idempotency-Key is refused as a conflict, so ask again with a new key. Where people sign in with their OpenBot by CopilotKit account (hostedSignIn in getDeployment), there is no company account to link: this answers 409 with the code HOSTED_SIGN_IN_ONLY.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - people:write parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateCompanySignInTicketRequest' examples: okta: value: providerId: acme-okta fromThePhone: value: providerId: acme-okta returnTo: app responses: '201': description: The address to open in the system browser, shown this once. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CompanySignInTicket' examples: ticket: $ref: '#/components/examples/CompanySignInTicketExample' '400': $ref: '#/components/responses/InvalidCompanySignInTicket' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/CompanySignInTicketForbidden' '404': $ref: '#/components/responses/CompanySignInProviderNotFound' '409': $ref: '#/components/responses/CompanySignInTicketConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/SignInUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/deployment: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Organization settings operationId: getDeployment summary: Read what this OpenBot offers description: 'Return what this OpenBot offers and how people sign in to it: the edition, the features the apps draw, how large an attached file may be, and the sign-in options. Anybody may read it, signed in or not, because the sign-in screen reads it first. Signed in, it is answered in an organization the caller is a member of, and an organization they are not in, the organization `default` included, answers exactly as one that does not exist. Nobody signed in reads it in the organization `default`. It names no identity provider and no build: only whether single sign-on is set up and required, and which API versions and which releases of each OpenBot app it serves. It is never refused for the app''s version, so an app reads it first to learn whether it, or the OpenBot, needs an update.' x-openbot-singleton: true security: - {} responses: '200': description: What this OpenBot offers. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Deployment' examples: team: $ref: '#/components/examples/DeploymentExample' '404': $ref: '#/components/responses/OrganizationNotFound' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Organization settings operationId: getOrganizationSettings summary: Read the organization's settings description: 'Return the settings the organization''s administrators set for its members: single sign-on, recording computer actions, stopping idle computers, the model and app allowlists, sharing learned skills, check-ins a day and choosing a model. Each organization has its own, and a new one starts with OpenBot''s defaults. Beside them, read only, what an administrator needs to set them: the model OpenBot runs on, the directory groups of the organization''s members, the apps an allowlist can name, the hosts every computer may reach, and whether SCIM and OpenTelemetry are set up. Only an administrator of the organization may read them.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - settings:read - apiKey: [] responses: '200': description: The organization's settings. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OrganizationSettings' examples: settings: $ref: '#/components/examples/OrganizationSettingsExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Organization settings operationId: updateOrganizationSettings summary: Change the organization's settings description: 'Change the settings sent and keep the rest. The settings sent are saved all or none: if any one is refused, none is saved. context is read-only, and sending it answers 400 with nothing saved. Each change is recorded on the audit trail with what it was before. Requiring single sign-on needs an identity provider registered first, and signs out everybody who signed in another way, apart from the administrators the deployment''s configuration names and the caller. Where this OpenBot may keep more than one organization, requiring single sign-on is each organization''s own rule: its members sign in through an identity provider, and saving it signs out only this organization''s members who signed in another way. Where it keeps only one organization, that organization''s rule holds for everybody who signs in, and sending ssoRequired in any other organization answers 409. Only an administrator of the organization may change them. Where people sign in with their OpenBot by CopilotKit account (hostedSignIn in getDeployment), single sign-on can''t be required: sending ssoRequired true answers 409 with the code HOSTED_SIGN_IN_ONLY.' security: - webSession: [] - appOAuth: - settings:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateOrganizationSettingsRequest' examples: idle: value: inactiveComputerDays: 14 responses: '200': description: Every setting, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OrganizationSettings' examples: settings: $ref: '#/components/examples/OrganizationSettingsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/SettingsConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/SignOutUnfinished' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/stop-inactive-computers: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Organization settings operationId: stopInactiveComputers summary: Stop idle computers now description: Stop now every Bot computer idle for longer than the organization's setting allows, as the hourly sweep does. Nothing is stopped while another server is sweeping or the setting is off, and the answer says so. Only an administrator may do this. security: - webSession: [] - appOAuth: - settings:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The computers stopped, or why none were. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/InactiveComputersStopped' examples: swept: value: stopped: - research-assistant skipped: null '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/apps: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Organization settings operationId: getAppsSetting summary: Read whether the organization's apps are open description: Return whether the organization's apps are open, the default, or locked down (AppsSetting). Every member may read it, so the app can say what giving an app to a Bot will do. In the personal edition apps are always open, and it can't be changed. x-openbot-singleton: true security: - webSession: [] - appOAuth: - settings:read - apiKey: [] responses: '200': description: Whether the organization's apps are open. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppsSetting' examples: open: value: lockedDown: false '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Organization settings operationId: updateAppsSetting summary: Open the organization's apps, or lock them down description: Open the organization's apps or lock them down (AppsSetting). Locking down takes nothing back unless takeBackWhatOpenGave is sent too. The change, and anything taken back, is recorded on the audit trail. Only an administrator of the organization may change it. security: - webSession: [] - appOAuth: - settings:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAppsSettingRequest' examples: lockDown: value: lockedDown: true takeBackWhatOpenGave: true open: value: lockedDown: false responses: '200': description: The setting, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppsSetting' examples: lockedDown: value: lockedDown: true '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/windows-allowlist: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Organization settings operationId: getWindowsAllowlist summary: Read the programs Bots may use on Windows computers description: Return the organization's list of the programs Bots may use on its Windows computers, and whether this OpenBot has Windows computers at all (WindowsAllowlist). Kept apart from the organization's other settings, whose answer the apps already released hold closed to new fields. Only an administrator of the organization may read it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - settings:read - apiKey: [] responses: '200': description: The list, and whether it applies here. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/WindowsAllowlist' examples: 'off': value: enabled: false apps: [] available: true '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Organization settings operationId: updateWindowsAllowlist summary: Choose the programs Bots may use on Windows computers description: Turn OpenBot's list of the programs Bots may use on Windows computers on or off, and set what is on it (WindowsAllowlist). On, it replaces every Windows computer's own list, even when empty, and reaches each computer at once and whenever its link opens. Off, each computer goes back to the list it was installed with. Each name is sent lower case, as the computer compares it, and is saved trimmed and once. The change is recorded on the audit trail. Only an administrator of the organization may change it, and the personal edition keeps it off. security: - webSession: [] - appOAuth: - settings:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateWindowsAllowlistRequest' examples: notepad: value: enabled: true apps: - notepad.exe responses: '200': description: The list, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/WindowsAllowlist' examples: notepad: value: enabled: true apps: - notepad.exe available: true '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/capabilities: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Capabilities operationId: listCapabilities summary: List the permission switches description: 'Return one page of the switches that decide what people may do, each with its default and what the organization, each role and each directory group set it to. A person''s own answer is the most specific one set: their group''s, then their role''s, then the organization''s, then the default. Only an administrator may read them. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - capabilities:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of switches. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CapabilityPage' examples: page: $ref: '#/components/examples/CapabilityPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/capabilities/{capabilityId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CapabilityIdParameter' patch: tags: - Capabilities operationId: updateCapability summary: Change a permission switch description: Set the switch for the organization, a role or a directory group, or clear it with null so the level beneath decides. Only what is sent changes. Each change is recorded on the audit trail. Only an administrator may change a switch. security: - webSession: [] - appOAuth: - capabilities:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateCapabilityRequest' examples: members: value: roles: member: false responses: '200': description: The switch as it now stands. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Capability' examples: answer: $ref: '#/components/examples/CapabilityExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/CapabilityNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/capabilities/batch-update: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Capabilities operationId: batchUpdateCapabilities summary: Change several permission switches at once description: 'Save up to 100 switch changes together, or none: a change the rule would ignore, such as a group nobody is in, refuses them all and says which. The audit trail records each change with what it was before and one id for the batch, and the sentence it was written from when it was described in English. Only an administrator may save them.' security: - webSession: [] - appOAuth: - capabilities:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CapabilityChanges' examples: members: $ref: '#/components/examples/CapabilityChangesExample' responses: '200': description: The changes, saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SavedCapabilityChanges' examples: answer: $ref: '#/components/examples/SavedCapabilityChangesExample' '400': $ref: '#/components/responses/InvalidCapabilityChanges' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/capabilities/translate: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Capabilities operationId: translateCapabilityChanges summary: Write switch changes from a description description: 'Turn a description in English into switch changes, written by the deployment''s model and checked against the rule. Nothing is saved: the answer is a proposal to preview and save. The audit trail records the description and what it became. Only an administrator may ask.' security: - webSession: [] - appOAuth: - capabilities:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ChangeDescription' examples: contractors: value: text: Contractors shouldn't use the password manager. responses: '200': description: The proposed changes, and whether they pass the rule. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CapabilityTranslation' examples: answer: $ref: '#/components/examples/CapabilityTranslationExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ModelFailed' '503': $ref: '#/components/responses/ModelNotConfigured' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/capabilities/preview: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Capabilities operationId: previewCapabilityChanges summary: Preview switch changes description: 'Say what saving these changes would do, without saving them: who gains, loses or keeps each permission, and what the audit trail shows they did with one they would lose in the last 30 days. Only an administrator may ask.' security: - webSession: [] - appOAuth: - capabilities:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CapabilityChangesToPreview' examples: members: $ref: '#/components/examples/CapabilityChangesExample' responses: '200': description: What the changes would do. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CapabilityPreview' examples: answer: $ref: '#/components/examples/CapabilityPreviewExample' '400': $ref: '#/components/responses/InvalidCapabilityChanges' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/capabilities: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Capabilities operationId: getPersonCapabilities summary: Read what a person may do description: Return each permission switch as it applies to one person, so the apps hide what they may not use. The caller reads their own, as me; an administrator of the organization reads any member's. enforced is false where this OpenBot keeps no switches and every default applies. x-openbot-singleton: true security: - webSession: [] - appOAuth: - people:read - apiKey: [] responses: '200': description: What the person may do. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonCapabilities' examples: answer: $ref: '#/components/examples/PersonCapabilitiesExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/PersonForbidden' '404': $ref: '#/components/responses/PersonNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/stop-computers: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Capabilities operationId: stopPersonComputers summary: Stop a person's computers description: Stop the computers of the organization's Bots that one person owns, now, and record it on the audit trail. Their Bots start a computer again when they next need one. A person's own computer is stopped only from the organization `default`. A person who is not a member of the organization is not found (PERSON_NOT_FOUND). Only an administrator of the organization may do this. security: - webSession: [] - appOAuth: - people:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The computers stopped, and any that would not stop. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonComputersStopped' examples: answer: $ref: '#/components/examples/PersonComputersStoppedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/PersonNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/network-policies: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Network policies operationId: listNetworkPolicies summary: List where Bot computers may connect description: 'Return one page of the network policies: where Bot computers may connect, for the organization and for a directory group. A group''s policy applies to its members unless the organization''s is locked. The organization''s first, then each group''s by name. Only an administrator may read them. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - network-policies:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of network policies. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/NetworkPolicyPage' examples: organization: $ref: '#/components/examples/NetworkPolicyPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/network-policies/{networkPolicyId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/NetworkPolicyId' put: tags: - Network policies operationId: replaceNetworkPolicy summary: Set where Bot computers may connect description: Set the organization's network policy, or a directory group's, making it if there is none. The list is checked as the computers read it, and the policy reaches every running computer it covers. The audit trail records the policy, and the sentence it was written from when it was described in English. Only an administrator may set one. security: - webSession: [] - appOAuth: - network-policies:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/NetworkPolicyInput' examples: allowlist: value: mode: allowlist_only rules: - type: domain value: salesforce.com locked: false responses: '200': description: The policy, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/NetworkPolicy' examples: answer: $ref: '#/components/examples/NetworkPolicyExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Network policies operationId: deleteNetworkPolicy summary: Remove a network policy description: 'Remove the organization''s network policy, or a group''s, so the level beneath decides: the group falls back to the organization''s, and the organization to the default list. Recorded on the audit trail. Only an administrator may remove one. One that was never set is not found.' security: - webSession: [] - appOAuth: - network-policies:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The policy was removed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/NetworkPolicyNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/network-policies/translate: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Network policies operationId: translateNetworkPolicy summary: Write a network list from a description description: Turn a description in English into a list of hosts and addresses Bot computers may connect to, written by the deployment's model and checked as a save would check it. Nothing is saved. The audit trail records the description and what it became. Only an administrator may ask. security: - webSession: [] - appOAuth: - network-policies:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ChangeDescription' examples: crm: value: text: Only our CRM and GitHub. responses: '200': description: The proposed list, and what it makes reachable. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/NetworkTranslation' examples: answer: $ref: '#/components/examples/NetworkTranslationExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ModelFailed' '503': $ref: '#/components/responses/ModelNotConfigured' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/network-policies/replay: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Network policies operationId: replayNetworkPolicy summary: Test a network policy against recent page visits description: 'Say what a policy would have done to the pages Bots visited lately, without saving it: which sites it would block that are allowed today, and the other way round. Only an administrator may ask.' security: - webSession: [] - appOAuth: - network-policies:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/NetworkPolicyCandidate' responses: '200': description: What the policy would have done. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/NetworkReplayReport' examples: answer: $ref: '#/components/examples/NetworkReplayReportExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/NoTrailToReplay' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/model-usage: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Organization settings operationId: getModelUsage summary: Read which models Bots ran on description: Return which models the organization's Bots ran on over the last days, with how many runs, refusals and people each had, and the newest 50 runs. Only an administrator of the organization may read it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - model-usage:read - apiKey: [] parameters: - name: days in: query description: How many days back, 1 to 365. schema: type: integer minimum: 1 maximum: 365 default: 30 responses: '200': description: Which models Bots ran on. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ModelUsage' examples: answer: $ref: '#/components/examples/ModelUsageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computer-actions: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Organization settings operationId: listComputerActions summary: List recorded computer actions description: Return one page of the actions recorded on the organization's Bots' computers while recording computer actions is on, newest first. Records are kept for actionRecordRetentionDays. Only an administrator of the organization may read them. A missing cursor starts at the newest and nextCursor null ends the list. security: - webSession: [] - appOAuth: - computer-actions:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of recorded actions. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerActionPage' examples: answer: $ref: '#/components/examples/ComputerActionPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/setup-checklist: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Organization settings operationId: getSetupChecklist summary: Read the setup checklist description: 'Return what this OpenBot has set up and what it still needs, each row with its fix. An administrator, or somebody running OpenBot on their own, reads it as the one who sets it up; anybody else reads which parts work, and that an administrator sets the rest up. On OpenBot Cloud, where each person can connect their own AI, the model row is the reader''s: ready when the AI their runs use, their own or else the organization''s, can answer, and needing setup only when neither can. No model key in this OpenBot''s configuration is needed there.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - setup-checklist:read - apiKey: [] responses: '200': description: The setup checklist. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SetupChecklist' examples: answer: $ref: '#/components/examples/SetupChecklistExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/setup-checklist/check: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Organization settings operationId: checkSetup summary: Check the setup again description: Ask Intelligence, the model provider and the computers again, then return the checklist as getSetupChecklist does. security: - webSession: [] - appOAuth: - setup-checklist:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The setup checklist, checked again. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SetupChecklist' examples: answer: $ref: '#/components/examples/SetupChecklistExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}/join-tokens: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' post: tags: - Conversations operationId: createConversationJoinToken summary: Get a token to watch a conversation live description: 'Make a join token for the conversation''s thread, and say where to use it. The token opens the threadStream channel of api/asyncapi.yaml: a WebSocket that replays the Bot''s runs in the conversation, a run in progress from its start, and then carries on live. The token works once and for about half a minute, so ask for a new one for every connection, and again to reconnect. Only a person in the conversation may have one, and it opens the thread they see there and no other. A conversation no Bot has run in yet has nothing to join (409). Where realtime.clientUrl is on this server, open it with the same credential that made the token: the session, an app''s access token, or an API key, as Authorization: Bearer or x-api-key. So a script that holds only an API key can watch a conversation live.' security: - webSession: [] - appOAuth: - conversations:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: A join token, and where to use it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConversationJoinToken' examples: running: $ref: '#/components/examples/ConversationJoinTokenExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/ConversationNotJoinable' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LiveChannelsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Conversations operationId: listConversations summary: List conversations description: 'Return one page of the caller''s conversations: pinned ones first, then the most recently used. Each says what was last said in it, whether the caller has read it, and what a Bot is still working on there. With q the page holds only the conversations whose name or words match, for a search of the whole list; a search page holds at most 50. With botId it holds only the conversations that Bot takes part in, in the same order. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - conversations:read - apiKey: [] parameters: - name: q in: query description: 'What the person typed to search their conversations: 2 to 200 characters, with no control characters.' schema: type: string minLength: 2 maxLength: 200 - name: botId in: query description: Only the conversations this Bot takes part in, one-Bot and group alike. A Bot the caller has no conversations with answers an empty page. Cannot be combined with q. schema: type: string minLength: 1 maxLength: 200 - $ref: '#/components/parameters/ConversationLimit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of conversations. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConversationPage' examples: example: $ref: '#/components/examples/ConversationPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Conversations operationId: createConversation summary: Start a conversation description: Start a conversation between the caller and one or more Bots they can use. A request with a new `Idempotency-Key` creates a new conversation even if the caller already has one with the same Bots. A retry with the same `Idempotency-Key` and body returns the first result. To resume an existing conversation, call `listConversations` with `botId` and reuse the ID of the conversation you want; that list also holds the Bot's group and task conversations, so check each one's `botIds` and `task`. With `group` set to `true`, two or more Bots answer in the order given on one transcript other people can be added to. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateConversationRequest' responses: '201': description: The conversation. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Location: description: The new conversation's address. schema: type: string example: /api/v2/organizations/default/conversations/5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConversationResponse' examples: example: $ref: '#/components/examples/ConversationResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/route: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Conversations operationId: routeConversationMessage summary: Choose the Bot for a message description: 'Say which of the caller''s Bots should answer a message that names none: the Bot the message mentions, the one whose role fits it, or the caller''s default when nothing decides. With botId it only confirms that Bot is one the caller can use. With skillSlugs only a Bot that offers every one of them is chosen. Nothing is sent and no conversation is made.' security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RouteMessageRequest' responses: '200': description: The Bot to send the message to. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RoutedMessage' examples: example: $ref: '#/components/examples/RoutedMessageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/NoBotToAnswer' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' get: tags: - Conversations operationId: getConversation summary: Get a conversation description: Return one of the caller's conversations, with what a Bot is still working on in it. A conversation the caller is not in is not found. security: - webSession: [] - appOAuth: - conversations:read - apiKey: [] responses: '200': description: The conversation. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConversationResponse' examples: example: $ref: '#/components/examples/ConversationResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Conversations operationId: updateConversation summary: Rename or pin a conversation description: Change what the conversation is called, whether the caller has it pinned, or both. Only the person who started a conversation may rename it; title null, or blank, gives the name back to OpenBot to write. A pin is the caller's own and moves nothing for anybody else. The answer holds what was changed. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateConversationRequest' responses: '200': description: What the conversation is now. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/UpdatedConversation' examples: example: $ref: '#/components/examples/UpdatedConversationExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Conversations operationId: deleteConversation summary: Delete a conversation description: Remove the conversation from the caller's list. Deleting one that is already gone answers the same way. A conversation that comes with OpenBot cannot be deleted. discardFailedStart removes a conversation whose first message never reached its Bot, and only that. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' - name: discardFailedStart in: query description: true when the conversation is one whose first message failed to send, so it is removed only if nothing was ever said in it. schema: type: boolean default: false responses: '204': description: The conversation is gone. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/ConversationConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}/mark-read: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' post: tags: - Conversations operationId: markConversationRead summary: Mark a conversation read description: Record that the caller has the conversation open now, so nothing in it counts as unread for them. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The conversation is read. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}/activity: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' post: tags: - Conversations operationId: recordConversationActivity summary: Report the last thing said in a conversation description: Tell the server what was just said in the conversation, by the person or by a Bot, so the caller's list shows it and orders by it. A time in the future is read as now. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConversationActivity' responses: '204': description: The activity is recorded. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}/signal-busy: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' post: tags: - Conversations operationId: signalConversationBusy summary: Say a Bot started or stopped answering description: Tell the caller's other windows and devices that a Bot started answering in the conversation, or stopped, so each shows it as working without waiting for the answer. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConversationBusy' responses: '204': description: The signal was sent. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}/members: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' get: tags: - Conversations operationId: listConversationMembers summary: List who is in a group conversation description: 'Return one page of a group conversation''s members: its Bots the caller can use, in the order they answer, then its people, in the order they joined. The first person started the group. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - conversations:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of members. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConversationMemberPage' examples: example: $ref: '#/components/examples/ConversationMemberPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Conversations operationId: addConversationMember summary: Add a person to a group conversation description: Add somebody who has signed in to this OpenBot to a group conversation the caller is in, by their email address. They see the whole transcript. Adding somebody already in it changes nothing. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AddConversationMemberRequest' responses: '201': description: The person is in the conversation. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AddedConversationMember' examples: example: $ref: '#/components/examples/AddedConversationMemberExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}/members/{memberId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' - $ref: '#/components/parameters/MemberId' delete: tags: - Conversations operationId: removeConversationMember summary: Leave a group conversation, or take somebody out description: Take a person out of a group conversation. Anybody may take themselves out; only the person who started the group may take out somebody else, and they cannot leave while others are still in it. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The person is out of the conversation. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}/messages: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' get: tags: - Conversations operationId: listConversationMessages summary: List the messages in a conversation description: Return one page of what was said in the conversation, newest first. A group conversation answers its shared transcript, with each Bot's reply and where it stands. Any other conversation answers the caller's own exchange with one of its Bots, named by botId. A reply still being written is empty to everybody but the person whose Bot is writing it. A missing cursor starts at the newest page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - conversations:read - apiKey: [] parameters: - name: botId in: query description: Which Bot's exchange to read, in a conversation that is not a group. Leave it out for a group conversation. schema: type: string minLength: 1 maxLength: 200 - $ref: '#/components/parameters/ConversationLimit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of messages. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConversationMessagePage' examples: example: $ref: '#/components/examples/ConversationMessagePageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ServiceUnavailable' '503': $ref: '#/components/responses/ServiceUnavailable' '504': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Conversations operationId: sendConversationMessage summary: Send a message for the server to answer description: Send the caller's message and have the server run the Bots that answer it, with no window left open. In a group conversation every Bot answers in turn, or only the ones the message names, or the one given as botId. In any other conversation botId says which of its Bots answers. The message's id is the caller's own, so the same id sent again is the same message, not a second one. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SendConversationMessageRequest' responses: '202': description: The message is accepted and waiting for its answer. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SentConversationMessage' examples: example: $ref: '#/components/examples/SentConversationMessageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '402': $ref: '#/components/responses/PlanRequired' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}/refused-turns: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' get: tags: - Conversations operationId: listRefusedTurns summary: List the caller's turns in a conversation that were refused description: 'Return one page of the caller''s own turns in the conversation that were refused before they ran, newest first: a model they may not run (MODEL_NOT_ALLOWED), a permission they don''t have (CAPABILITY_REQUIRED), no OpenBot plan (PLAN_REQUIRED), an AI connection that can''t run now or no default connection to run on (AI_CONNECTION_STOPPED; getModelChoice''s stopped says which), or a Bot whose engine couldn''t take the run (BOT_ENGINE_UNAVAILABLE). Each says what the turn was for (the person''s message, or what a routine or a task asked) and why it was refused, in the words the refusal said. Nothing of a refused turn reaches the conversation''s thread, so a client draws these into the transcript itself: each after the message named by afterMessageId, or after the thread''s messages where that is null. BOT_ENGINE_UNAVAILABLE is the exception: its run started, so the person''s message is in the thread, and the run ended in a RUN_ERROR carrying the same code and words; a client draws the refusal under that message, once, and not as how the run ended. botId narrows the list to one Bot''s. A missing cursor starts at the newest page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - conversations:read - apiKey: [] parameters: - name: botId in: query description: Only the turns of this Bot. Leave it out for every Bot's. schema: type: string minLength: 1 maxLength: 200 - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of refused turns. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RefusedTurnPage' examples: lastPage: $ref: '#/components/examples/RefusedTurnPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}/attachments: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' post: tags: - Conversations operationId: uploadConversationAttachment summary: Attach a file to the next message description: Upload one file to send with the caller's next message in the conversation. The file is held until that message is sent, or removed, or a day has passed. OpenBot refuses a file no Bot could read, and says what the file was. A message takes up to 8 files. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: multipart/form-data: schema: $ref: '#/components/schemas/AttachmentUpload' responses: '201': description: The file is held for the next message. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Attachment' examples: example: $ref: '#/components/examples/AttachmentExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/AttachmentConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/UnsupportedFile' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}/voice-calls: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' post: tags: - Voice operationId: startVoiceCall summary: Start a voice call with a conversation's Bot description: Open a voice call with the Bot of a conversation that has exactly one. Where calls run over WebRTC, send the browser's audio offer as sdp and the answer comes back; where they run over a WebSocket, the answer says where to connect and with what. One call at a time for each person, and a few attempts a minute. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/VoiceCallRequest' responses: '200': description: How to connect the call. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/VoiceConnection' examples: example: $ref: '#/components/examples/VoiceConnectionExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '402': $ref: '#/components/responses/PlanRequired' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/ConversationConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ServiceUnavailable' '503': $ref: '#/components/responses/ServiceUnavailable' '504': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}/voice-sessions: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' get: tags: - Voice operationId: listVoiceSessions summary: List the voice calls saved in a conversation description: Return one page of the voice calls the caller had in the conversation, oldest first, each with its transcript and summary. A page holds at most 50. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - conversations:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of voice calls. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/VoiceSessionPage' examples: example: $ref: '#/components/examples/VoiceSessionPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Voice operationId: saveVoiceSession summary: Save a voice call's transcript description: 'Keep a finished voice call in the conversation: when it ran, and what was said. The server writes its summary before answering. The call''s id is the caller''s own, so saving the same call again returns it rather than keeping it twice. When the summary cannot be written yet the transcript is still saved, and the same request may be sent again.' security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/VoiceSessionInput' responses: '200': description: The saved call, with its summary. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/VoiceSessionResponse' examples: example: $ref: '#/components/examples/VoiceSessionResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/ConversationConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/voice-configuration: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Voice operationId: getVoiceConfiguration summary: Get how voice calls connect description: Say whether this OpenBot's voice calls run over WebRTC or a WebSocket, so the app prepares the right one before starting a call. Unavailable when voice calls are not set up. x-openbot-singleton: true security: - webSession: [] - appOAuth: - conversations:read - apiKey: [] responses: '200': description: How calls connect. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/VoiceConfiguration' examples: example: $ref: '#/components/examples/VoiceConfigurationExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/attachments/{attachmentId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AttachmentId' get: tags: - Conversations operationId: getAttachment summary: Download an attachment description: Return the bytes of a file attached to a message, in the type OpenBot recognised it as. Only somebody in the conversation it was sent in, or the person still holding it to send, can read it. A picture is served to open in place. Every other file, a PDF or a Word, Excel or PowerPoint file among them, is served as a download. security: - webSession: [] - appOAuth: - conversations:read - apiKey: [] responses: '200': description: The file. headers: ETag: description: Names these bytes, for If-None-Match. schema: type: string X-Request-Id: $ref: '#/components/headers/RequestId' content: '*/*': schema: {} '304': description: The copy the caller holds is current. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/AttachmentNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Conversations operationId: deleteAttachment summary: Remove a file that has not been sent description: Take back a file the caller uploaded for a message they have not sent yet. A file that is already part of a sent message stays. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The file is removed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/AttachmentNotFound' '409': $ref: '#/components/responses/AttachmentConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversation-threads: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Conversations operationId: createConversationThread summary: Get a thread id for a chat with one Bot description: Make the id of a new thread for a chat that is kept only as its thread, such as the chat on a Bot's own page. The id belongs to this OpenBot, so two OpenBots sharing one store of threads can tell their conversations apart. Nothing is stored until something is said in it. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: A new thread id. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConversationThread' examples: example: $ref: '#/components/examples/ConversationThreadExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversation-threads/{threadId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationThreadId' get: tags: - Conversations operationId: getConversationThread summary: Check a remembered thread still exists description: Say whether the thread still holds the caller's conversation, so an app that remembers a thread id knows before sending whether its history is still there. known false means the thread is gone for certain; when that could not be checked the answer is a problem, never false. security: - webSession: [] - appOAuth: - conversations:read - apiKey: [] responses: '200': description: Whether the thread is still there. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConversationThreadStatus' examples: example: $ref: '#/components/examples/ConversationThreadStatusExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/tasks: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Tasks operationId: listTasks summary: List tasks description: 'Return one page of the caller''s tasks: the open ones, and the ones marked done in the last 7 days, newest first. Each says where it stands and what it needs from the person. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - tasks:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of tasks. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TaskPage' examples: example: $ref: '#/components/examples/TaskPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/tasks/{taskId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/TaskId' get: tags: - Tasks operationId: getTask summary: Get a task description: Return one of the caller's tasks as it stands now. Another person's task is not found. security: - webSession: [] - appOAuth: - tasks:read - apiKey: [] responses: '200': description: The task. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TaskResponse' examples: example: $ref: '#/components/examples/TaskResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/TaskNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/tasks/{taskId}/turns: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/TaskId' get: tags: - Tasks operationId: listTaskTurns summary: List a task's turns description: 'Return one page of the turns a task has finished, oldest first: each time its Bot worked on something it was asked in the task''s conversation, the Bot''s brief or a line the person said there. Each says how long the Bot worked on it, counting only the time its runs took, never the time it waited on the person, and which model answered. A turn still running is not listed until it ends. Another person''s task is not found. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - tasks:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of the task's turns. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TaskTurnPage' examples: example: $ref: '#/components/examples/TaskTurnPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/TaskNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/tasks/{taskId}/resolve: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/TaskId' post: tags: - Tasks operationId: resolveTask summary: Mark a task done description: Mark the task done. It stays in the list for 7 days, and a new turn in its conversation opens it again. security: - webSession: [] - appOAuth: - tasks:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The task as it stands now. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TaskResponse' examples: example: $ref: '#/components/examples/TaskResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/TaskNotFound' '409': $ref: '#/components/responses/TaskConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/tasks/{taskId}/reopen: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/TaskId' post: tags: - Tasks operationId: reopenTask summary: Reopen a task description: Take back that the task is done, so it stands where its conversation left it. security: - webSession: [] - appOAuth: - tasks:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The task as it stands now. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TaskResponse' examples: example: $ref: '#/components/examples/TaskResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/TaskNotFound' '409': $ref: '#/components/responses/TaskConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/tasks/{taskId}/retry: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/TaskId' post: tags: - Tasks operationId: retryTask summary: Try a failed task again description: Run the task's failed turn once more, in the task's own conversation. Only a task that failed can be tried again. The answer is the task as it stands now, which is working. security: - webSession: [] - appOAuth: - tasks:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The task as it stands now. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TaskResponse' examples: example: $ref: '#/components/examples/TaskResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '402': $ref: '#/components/responses/PlanRequired' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/TaskNotFound' '409': $ref: '#/components/responses/TaskConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/tasks/{taskId}/stop: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/TaskId' post: tags: - Tasks operationId: stopTask summary: Stop a task description: Stop the task's work, as Stop in its conversation does. A step it is in the middle of is cut off; the steps it finished stay done, and its conversation and the one that asked for it say how far it got. What it waits on the person for is no longer asked. Only a task that is working or waiting on the person can be stopped. The answer is the task as it stands now, which is stopped. security: - webSession: [] - appOAuth: - tasks:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The task as it stands now. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TaskResponse' examples: example: $ref: '#/components/examples/TaskResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/TaskNotFound' '409': $ref: '#/components/responses/TaskConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/transcriptions: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Conversations operationId: createTranscription summary: Turn a recording into text description: Transcribe a short recording of the caller speaking, for dictating a message. The recording is WebM, MP4 or WAV audio under 10 MiB, and is not kept. One recording at a time for each person. security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: multipart/form-data: schema: $ref: '#/components/schemas/TranscriptionUpload' responses: '200': description: What was said. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Transcription' examples: example: $ref: '#/components/examples/TranscriptionExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/UnsupportedFile' '422': $ref: '#/components/responses/NoSpeech' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ServiceUnavailable' '503': $ref: '#/components/responses/ServiceUnavailable' '504': $ref: '#/components/responses/ServiceUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/credentials: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Credentials operationId: listCredentials summary: List the credentials in the vault description: 'Return one page of the credentials the organization''s vault keeps, live and revoked, oldest first. Each organization has its own vault, and another organization''s credentials are never listed. A credential says what it is for and whether it is live, and never holds its secret: nothing in the API reads a secret back out. Only an administrator of the organization may list them. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - credentials:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of credentials. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CredentialPage' examples: modelKey: $ref: '#/components/examples/CredentialPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/CredentialsUnavailable' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Credentials operationId: createCredential summary: Add a credential to the vault description: 'Encrypt a secret and keep it in the organization''s vault under one key: a kind, a provider and a key id. A key holds one live credential, so adding one for a key that already has one replaces it, and the one it replaces is revoked in the same write. A model key sent without a key id is filed under the name OpenBot''s own Bots read (getModelKey). The secret is write-only: no answer includes it, now or later. Recorded on the audit trail. Only an administrator of the organization may add one.' security: - webSession: [] - appOAuth: - credentials:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CredentialInput' examples: modelKey: value: kind: model provider: openai secret: sk-example serverToServerClient: value: kind: mcp_oauth_client provider: shopify keyId: server-to-server metadata: clientId: example-client-id secret: example-client-secret responses: '201': description: The credential, as kept. Never its secret. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Credential' examples: modelKey: $ref: '#/components/examples/CredentialExample' '400': $ref: '#/components/responses/InvalidCredential' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/CredentialsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/credentials/{credentialId}/revoke: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CredentialId' post: tags: - Credentials operationId: revokeCredential summary: Revoke a credential description: Stop a live credential being used, and keep its record. Nothing reads a revoked credential again. Recorded on the audit trail. Only an administrator of the organization may revoke one. One that does not exist, is in another organization's vault, or is revoked already, is not found. security: - webSession: [] - appOAuth: - credentials:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The credential, revoked. Never its secret. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Credential' examples: revoked: $ref: '#/components/examples/RevokedCredentialExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/CredentialNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/CredentialsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/model-key: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Credentials operationId: getModelKey summary: Read where the Bots find their model key description: Return the provider OpenBot's own Bots run on, the key id their model key is filed under in the organization's vault, and whether a live key is kept there. Never the key. A model key added without a key id is filed here. Only an administrator of the organization may read it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - credentials:read - apiKey: [] responses: '200': description: Where the Bots find their model key, and whether one is kept there. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ModelKey' examples: kept: $ref: '#/components/examples/ModelKeyExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/ModelKeyNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/CredentialsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/model-catalogue: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Models operationId: getModelCatalogue summary: Read the models Bots can run on description: 'Return the models a person may pick for a conversation, with how hard each can think, the one a run uses when nobody picked, and who serves them. The models come from whatever serves OpenBot''s model, the provider or a gateway in front of it, read in the background. They are narrowed for the caller in two ways. The organization''s: only once an administrator turns on the model allowlist and allows at least one; an empty allowlist means every model. And the caller''s teams'': when any team they are in, or a team above one, lists models (getTeamModels), only the models one of those lists names, within what the organization allows. The default is then one of those when any can run, and nothing is left to pick when none can. With view=all, every model listed before either narrowing, for an administrator choosing which to allow. When the listing can''t be read, the catalogue holds the deployment''s own model and nothing to pick. Where several AI connections are connected, connections lists each with its own models, and the fields beside it describe the default connection.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - model-catalogue:read - apiKey: [] parameters: - $ref: '#/components/parameters/ModelCatalogueView' responses: '200': description: The models Bots can run on. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ModelCatalogue' examples: offered: $ref: '#/components/examples/ModelCatalogueExample' connections: $ref: '#/components/examples/ModelCatalogueConnectionsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/model-choices/{conversationId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/ConversationId' get: tags: - Models operationId: getModelChoice summary: Read the model a person chose for a conversation description: 'Return the model and thinking effort a person chose for one of their conversations, each null for the default. Null too while the choice can''t be used: the model is no longer offered, or the deployment moved to another provider. The choice is kept for when it can be used again. Where several AI connections are connected, connection names the one the model is on, and a connection that was removed is a choice that can''t be used. Only the person themselves may read it.' security: - webSession: [] - appOAuth: - model-choices:read - apiKey: [] responses: '200': description: The person's choice, as a run in the conversation reads it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ModelChoice' examples: chosen: $ref: '#/components/examples/ModelChoiceExample' onConnection: $ref: '#/components/examples/ModelChoiceOnConnectionExample' noDefault: $ref: '#/components/examples/ModelChoiceNoDefaultExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/ConversationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Models operationId: replaceModelChoice summary: Choose the model for a conversation description: Set the model and thinking effort a person's runs in one of their conversations answer on, or null either to go back to the default. The model must be one the catalogue offers (getModelCatalogue), and the effort one that model takes. Every later run in the conversation reads it, from any device. Where several AI connections are connected, connection names the one the model is on, and the model must be one that connection offers; without it, the default connection. Changing the default connection never changes a choice. Only the person themselves may choose, and only while choosing a model is on. security: - webSession: [] - appOAuth: - model-choices:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ModelChoiceInput' examples: chosen: value: model: gpt-6.1-pro effort: xhigh defaults: value: model: null effort: null onConnection: value: model: claude-opus-5-5 effort: high connection: anthropic responses: '200': description: The person's choice, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ModelChoice' examples: chosen: $ref: '#/components/examples/ModelChoiceExample' '400': $ref: '#/components/responses/InvalidModelChoice' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ModelChoiceForbidden' '404': $ref: '#/components/responses/ConversationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/ai-connection: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Models operationId: getAiConnection summary: Read how OpenBot reaches its AI provider description: Return the AI provider OpenBot's Bots run on, the way OpenBot signs in to it, the model or address host where one was named, and whether a run can use it now. Never a key. Also which other connections still have a key kept, so they can be used again without pasting it. Where whoever runs OpenBot sets the provider, editable is false and the connection can't be changed here. Where several AI connections are connected (listAiConnections), this is the default one. Only an administrator of the organization may read it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - ai-connection:read - apiKey: [] responses: '200': description: How OpenBot reaches its AI provider. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiConnection' examples: apiKey: $ref: '#/components/examples/AiConnectionExample' endpoint: $ref: '#/components/examples/AiConnectionEndpointExample' fixed: $ref: '#/components/examples/AiConnectionFixedExample' none: $ref: '#/components/examples/AiConnectionNoneExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Models operationId: replaceAiConnection summary: Change how OpenBot reaches its AI provider description: 'Switch the AI provider OpenBot''s Bots run on, with no restart. OpenBot checks the connection with the provider first: a key, an address or a sign-in it can''t use is refused, nothing is saved, and the connection in use keeps running. Once saved, the next run uses it, and runs already going finish on the one they started with. A key goes into the organization''s vault and is never sent back; the key of the connection it replaces stays kept, so it can be used again (saved). Recorded on the audit trail, never with a key. Only an administrator of the organization may change it, and not where whoever runs OpenBot sets the provider. On OpenBot Cloud an administrator may also share their own plan (openai, anthropic) or provider sign-in (xai) as the organization''s AI: send that login once they have signed in to the provider through OpenBot (startPersonalAiSignIn) and the sign-in is kept for them. Bots across the organization then run on that sign-in for everyone with no AI of their own, and sharedSignIn names whose it is. It stops working if that person removes their own sign-in; another administrator can switch it at any time. With several connections (listAiConnections) this changes the default: the connection saved becomes the default, in place of the provider''s own connection where it already had one (its id stays the provider), and a default of another provider stays connected as one of the others, no longer the default.' security: - webSession: [] - appOAuth: - ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiConnectionInput' examples: apiKey: value: provider: anthropic login: api-key apiKey: sk-ant-example savedKey: value: provider: openai login: api-key useSavedKey: true endpoint: value: provider: google login: endpoint apiKey: example-gemini-key baseUrl: https://generativelanguage.googleapis.com/v1beta/openai model: gemini-3-pro signIn: value: provider: xai login: oauth model: grok-5 plan: value: provider: anthropic login: plan responses: '200': description: The connection, as saved and in use. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiConnection' examples: apiKey: $ref: '#/components/examples/AiConnectionExample' endpoint: $ref: '#/components/examples/AiConnectionEndpointExample' sharedPlan: $ref: '#/components/examples/AiConnectionSharedPlanExample' '400': $ref: '#/components/responses/InvalidAiConnection' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/AiConnectionFixed' '422': $ref: '#/components/responses/AiConnectionRefused' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/CredentialsUnavailable' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Models operationId: deleteAiConnection summary: Disconnect OpenBot's AI provider description: 'Stop the organization''s Bots using the AI connection in use, with no restart, and revoke the key it used. Runs already going finish on it. Keys still kept for other connections stay kept (saved), so a switch to one of them needs no key pasted. With several connections (listAiConnections) this disconnects the default only, and the others stay connected: where exactly one is left it becomes the default; where more are left none is, and a run with no model picked is refused until an administrator makes one the default (makeAiConnectionDefault). With no other connection the organization has no AI afterwards: on OpenBot Cloud a person''s runs use their own AI where they connected one, and nobody else''s run until an administrator connects another (replaceAiConnection). Disconnecting a connection that isn''t there changes nothing. Recorded on the audit trail, never with a key. Only an administrator of the organization may disconnect it, and not where whoever runs OpenBot sets the provider.' security: - webSession: [] - appOAuth: - ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The connection after it was disconnected. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiConnection' examples: disconnected: $ref: '#/components/examples/AiConnectionDisconnectedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/AiConnectionFixed' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/ai-connection: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Models operationId: getPersonalAiConnection summary: Read a person's own AI connection description: 'Return the AI connection a person set for themselves, never its key, and which AI their runs use: their own, the organization''s, or none yet. On OpenBot Cloud each person brings their own AI, and it is theirs alone: it follows them into every organization they are in, no administrator can read or use it, and the organization''s Bots never run on it for anybody else. Where an organization''s AI is the only one (a self-hosted OpenBot, OpenBot Desktop on its own), available is false and the person''s runs use the organization''s. Where the person connected several of their own (listPersonalAiConnections), connection is the default one. Only the person themselves may read it.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - personal-ai-connection:read - apiKey: [] responses: '200': description: The person's own AI connection, and which AI their runs use. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonalAiConnection' examples: own: $ref: '#/components/examples/PersonalAiConnectionExample' organization: $ref: '#/components/examples/PersonalAiConnectionOrganizationExample' none: $ref: '#/components/examples/PersonalAiConnectionNoneExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/PersonNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Models operationId: replacePersonalAiConnection summary: Set a person's own AI connection description: 'Connect the AI a person''s runs use, with their own key or an address, or a key a sign-in through OpenBot kept for them (useSavedKey). OpenBot checks the connection with the provider first: a key, an address or a model it can''t use is refused and nothing is saved. Once saved, the person''s next run uses it, ahead of the organization''s. The key is encrypted and kept for the person alone, never in the organization''s vault, and never sent back. A plan (openai, anthropic) or a provider sign-in (xai) is accepted only once the person has signed in to that provider through OpenBot (startPersonalAiSignIn) and the sign-in was approved: the server keeps that sign-in for them alone and renews it itself. Without one it is refused, since the server runs the person''s Bots and can''t use a sign-in held on a computer. With several connections of their own (listPersonalAiConnections) this changes their default: the connection saved becomes the default, in place of the provider''s own connection where they already had one (its id stays the provider), and a default of another provider stays connected as one of the others, no longer the default. Recorded on the audit trail, never with a key. Only the person themselves may set it, and only where available is true.' security: - webSession: [] - appOAuth: - personal-ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiConnectionInput' examples: apiKey: value: provider: anthropic login: api-key apiKey: sk-ant-example chatgptPlan: value: provider: openai login: plan xaiSignIn: value: provider: xai login: oauth model: grok-4.7 responses: '200': description: The person's own AI connection, as saved and in use. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonalAiConnection' examples: own: $ref: '#/components/examples/PersonalAiConnectionExample' '400': $ref: '#/components/responses/InvalidAiConnection' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/PersonNotFound' '409': $ref: '#/components/responses/PersonalAiConnectionUnavailable' '422': $ref: '#/components/responses/AiConnectionRefused' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Models operationId: deletePersonalAiConnection summary: Remove a person's own AI connection description: Stop a person's runs using their own AI, and revoke every key kept for them. With several connections of their own (listPersonalAiConnections) it removes all of them, not only the default; removePersonalAiConnection removes one. Their next run uses the organization's AI where it has one; where it has none and an AI is required, they connect one again before Bots run for them. Removing a connection that isn't there changes nothing. Recorded on the audit trail. Only the person themselves may remove it. security: - webSession: [] - appOAuth: - personal-ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The person's AI connection after the removal. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonalAiConnection' examples: organization: $ref: '#/components/examples/PersonalAiConnectionOrganizationExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/PersonNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/ai-connection/sign-ins: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Models operationId: startPersonalAiSignIn summary: Start signing in to an AI provider description: 'Start a sign-in to an AI provider that the server runs itself, for a provider PersonalAiConnection lists in signIns. The answer holds the address the person approves it at, in their browser, the code to check there where the provider shows one, and how it finishes. With finish poll, read the sign-in (getPersonalAiSignIn) every interval seconds until it is approved, failed or expired. With finish code, the person approves, copies the code Claude''s page shows them or the address ChatGPT sends their browser to, and sends it back with finishPersonalAiSignIn. Inside OpenBot Desktop nobody copies anything: Desktop listens on the person''s own computer for the provider''s redirect and the app sends what arrives with finishPersonalAiSignIn. For Claude, loopbackPort names the port Desktop listens on; ChatGPT''s browser sign-in always redirects to localhost:1455. Approved, what the provider handed OpenBot is kept for the person alone, never sent to the browser: a Claude or ChatGPT plan''s sign-in (connect with login plan), or an xAI sign-in (connect with login oauth). The server renews a sign-in that expires itself. Only the person themselves may sign in, and only where available is true. Google is refused: Gemini connects with an API key only.' security: - webSession: [] - appOAuth: - personal-ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiSignInInput' examples: xai: value: provider: xai chatgpt: value: provider: openai chatgptWithACode: value: provider: openai method: device claude: value: provider: anthropic claudeInDesktop: value: provider: anthropic loopbackPort: 53682 responses: '201': description: The sign-in, waiting for the person to approve it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiSignIn' examples: waiting: $ref: '#/components/examples/AiSignInExample' chatgpt: $ref: '#/components/examples/AiSignInChatGptBrowserExample' chatgptWithACode: $ref: '#/components/examples/AiSignInChatGptExample' claude: $ref: '#/components/examples/AiSignInClaudeExample' '400': $ref: '#/components/responses/InvalidAiConnection' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/PersonNotFound' '409': $ref: '#/components/responses/PersonalAiConnectionUnavailable' '422': $ref: '#/components/responses/AiConnectionRefused' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/ai-connection/sign-ins/{signInId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SignInId' get: tags: - Models operationId: getPersonalAiSignIn summary: Read a sign-in to an AI provider description: 'Ask the provider once whether the person approved the sign-in, and say where it stands. pending: not yet, read it again after interval seconds. approved: what the provider handed OpenBot is kept for the person, never in this answer. failed or expired: it is over, and detail says why in OpenBot''s own words; start another. Reading it again after it is approved answers approved and asks the provider nothing. Only the person who started it may read it.' security: - webSession: [] - appOAuth: - personal-ai-connection:write - apiKey: [] responses: '200': description: Where the sign-in stands. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiSignInStatus' examples: pending: $ref: '#/components/examples/AiSignInPendingExample' approved: $ref: '#/components/examples/AiSignInApprovedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/AiSignInNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/ai-connection/sign-ins/{signInId}/code: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SignInId' post: tags: - Models operationId: finishPersonalAiSignIn summary: Finish a sign-in with the provider's code description: 'Finish a sign-in whose finish is code: send the code the provider''s page showed the person once they approved it. OpenBot hands it to the provider at once and answers where the sign-in stands: approved, with what the provider handed back kept for the person and never in this answer, or failed with detail saying why in OpenBot''s own words. A sign-in that is already approved answers approved and sends nothing. Only the person who started it may finish it.' security: - webSession: [] - appOAuth: - personal-ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiSignInCodeInput' examples: claude: value: code: Zm9vYmFyLWNvZGU#c3RhdGUtZXhhbXBsZQ responses: '200': description: Where the sign-in stands. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiSignInStatus' examples: approved: $ref: '#/components/examples/AiSignInClaudeApprovedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/AiSignInNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/ai-connections: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Models operationId: listAiConnections summary: List the organization's AI connections description: 'Return one page of the AI connections the organization''s Bots can run on, one per provider, never a key. A person picks a model from any of them for a conversation (replaceModelChoice with connection); a run with no pick uses the one that isDefault, which is the connection getAiConnection describes. When a removal leaves exactly one connection, it becomes the default. With more left and none the default (after an older app disconnected the default, deleteAiConnection), a run with no pick is refused with a stopped choice saying to choose a default (getModelChoice, no-default), and a run whose pick names a connection that is ready still runs. signIns names the providers the server signs in to for the organization itself (startAiSignIn): on OpenBot Cloud and a self-hosted OpenBot. OpenBot Desktop running its own OpenBot keeps its own plan sign-in, and its signIns is empty. Where whoever runs OpenBot sets the provider, the list holds that one connection and none can be added. Only an administrator of the organization may list them. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - ai-connection:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of the organization's AI connections. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiConnectionPage' examples: two: $ref: '#/components/examples/AiConnectionPageExample' noDefault: $ref: '#/components/examples/AiConnectionPageNoDefaultExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Models operationId: connectAiConnection summary: Connect an AI provider for the organization description: 'Connect one more AI provider the organization''s Bots can run on, beside the ones already connected. OpenBot checks the connection with the provider first: a key, an address or a sign-in it can''t use is refused and nothing is saved. Each provider has at most one connection: connecting a provider that already has one replaces it (a key replaced, a plan swapped for a key) and keeps its id, so conversations that picked it keep running on it. The first connection becomes the default; a later one does not (makeAiConnectionDefault). A key goes into the organization''s vault and is never sent back. A plan or a provider sign-in is accepted once an administrator signed in to it for the organization (startAiSignIn). Recorded on the audit trail, never with a key. Only an administrator of the organization may connect one, and not where whoever runs OpenBot sets the provider.' security: - webSession: [] - appOAuth: - ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiConnectionInput' examples: apiKey: value: provider: openai login: api-key apiKey: sk-example plan: value: provider: anthropic login: plan responses: '201': description: The connection, as saved. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiConnectionEntry' examples: connected: $ref: '#/components/examples/AiConnectionEntryExample' '400': $ref: '#/components/responses/InvalidAiConnection' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/AiConnectionFixed' '422': $ref: '#/components/responses/AiConnectionRefused' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/CredentialsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/ai-connections/{connectionId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AiConnectionId' delete: tags: - Models operationId: removeAiConnection summary: Remove one of the organization's AI connections description: 'Stop the organization''s Bots using one AI connection, with no restart, and revoke its key or sign-in. Runs already going finish on it. Conversations that picked it keep their pick, which stops applying: their next run uses the default. The server moves the default only when a removal leaves exactly one connection, which becomes the default. Removing the default with more than one left leaves the organization with no default until an administrator makes another one default (makeAiConnectionDefault), and a client that wants a particular one to take over makes it default first. Recorded on the audit trail, never with a key. Only an administrator of the organization may remove one, and not where whoever runs OpenBot sets the provider.' security: - webSession: [] - appOAuth: - ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The connection was removed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AiConnectionNotFound' '409': $ref: '#/components/responses/AiConnectionFixed' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/ai-connections/{connectionId}/make-default: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AiConnectionId' post: tags: - Models operationId: makeAiConnectionDefault summary: Make one of the organization's AI connections the default description: 'Make a run with no pick use this AI connection, with no restart: getAiConnection describes it from then on, and OpenBot''s own model calls (titles, routing, summaries) use it. Picks people made for their conversations don''t change. A connection that can''t run now (ready false) is refused. Recorded on the audit trail. Only an administrator of the organization may change it.' security: - webSession: [] - appOAuth: - ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The connection, now the default. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiConnectionEntry' examples: default: $ref: '#/components/examples/AiConnectionEntryExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AiConnectionNotFound' '409': $ref: '#/components/responses/AiConnectionNotReady' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/ai-connection-sign-ins: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Models operationId: startAiSignIn summary: Start signing in to an AI provider for the organization description: 'Start a sign-in to an AI provider that the server runs itself, for the organization, for a provider listAiConnections names in signIns. It works as startPersonalAiSignIn does, and what the provider hands back is kept for the organization: connect it with connectAiConnection and login plan or oauth. The server renews it itself. Offered on OpenBot Cloud and a self-hosted OpenBot; OpenBot Desktop running its own OpenBot keeps its own plan sign-in and offers none here. Only an administrator of the organization may sign in for it.' security: - webSession: [] - appOAuth: - ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiSignInInput' examples: claude: value: provider: anthropic claudeInDesktop: value: provider: anthropic loopbackPort: 53682 responses: '201': description: The sign-in, waiting for the administrator to approve it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiSignIn' examples: claude: $ref: '#/components/examples/AiSignInClaudeExample' '400': $ref: '#/components/responses/InvalidAiConnection' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/AiConnectionFixed' '422': $ref: '#/components/responses/AiConnectionRefused' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/ai-connection-sign-ins/{signInId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SignInId' get: tags: - Models operationId: getAiSignIn summary: Read a sign-in to an AI provider for the organization description: Ask the provider once whether the organization's sign-in was approved, and say where it stands, as getPersonalAiSignIn does. Only an administrator of the organization may read it. security: - webSession: [] - appOAuth: - ai-connection:write - apiKey: [] responses: '200': description: Where the sign-in stands. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiSignInStatus' examples: pending: $ref: '#/components/examples/AiSignInPendingExample' approved: $ref: '#/components/examples/AiSignInApprovedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AiSignInNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/ai-connection-sign-ins/{signInId}/code: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SignInId' post: tags: - Models operationId: finishAiSignIn summary: Finish the organization's sign-in with the provider's code description: Finish a sign-in for the organization whose finish is code, as finishPersonalAiSignIn does. Only an administrator of the organization may finish it. security: - webSession: [] - appOAuth: - ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiSignInCodeInput' examples: claude: value: code: Zm9vYmFyLWNvZGU#c3RhdGUtZXhhbXBsZQ responses: '200': description: Where the sign-in stands. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiSignInStatus' examples: approved: $ref: '#/components/examples/AiSignInClaudeApprovedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AiSignInNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/ai-connections: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Models operationId: listPersonalAiConnections summary: List a person's own AI connections description: 'Return one page of the AI connections a person connected for themselves, one per provider, never a key. They are theirs alone, as getPersonalAiConnection describes, and a person''s runs use them ahead of the organization''s: a person with any of their own never runs on the organization''s. A run with no pick uses the one that isDefault; connections can exist with none the default, as listAiConnections describes. signIns names the providers the server signs the person in to itself. Only the person themselves may list them, and only where available is true. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - personal-ai-connection:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of the person's own AI connections. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiConnectionPage' examples: two: $ref: '#/components/examples/AiConnectionPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/PersonNotFound' '409': $ref: '#/components/responses/PersonalAiConnectionUnavailable' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Models operationId: connectPersonalAiConnection summary: Connect an AI provider of a person's own description: 'Connect one more AI provider for a person, beside the ones they already connected, as connectAiConnection does for the organization: checked with the provider first, one connection per provider, a provider already connected replaced with its id kept, and the first one the default. A plan or a provider sign-in is accepted once the person signed in to it through OpenBot (startPersonalAiSignIn). The key is kept for the person alone, never in the organization''s vault, and never sent back. Recorded on the audit trail, never with a key. Only the person themselves may connect one, and only where available is true.' security: - webSession: [] - appOAuth: - personal-ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AiConnectionInput' examples: chatgptPlan: value: provider: openai login: plan responses: '201': description: The connection, as saved. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiConnectionEntry' examples: connected: $ref: '#/components/examples/AiConnectionEntryExample' '400': $ref: '#/components/responses/InvalidAiConnection' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/PersonNotFound' '409': $ref: '#/components/responses/PersonalAiConnectionUnavailable' '422': $ref: '#/components/responses/AiConnectionRefused' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/ai-connections/{connectionId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AiConnectionId' delete: tags: - Models operationId: removePersonalAiConnection summary: Remove one of a person's own AI connections description: 'Stop a person''s runs using one of their own AI connections and revoke its key or sign-in, as removeAiConnection does for the organization: picks on it stop applying, and the default moves as removeAiConnection says: to the one left, when exactly one is left. Removing their last one sends their runs back to the organization''s AI. Recorded on the audit trail. Only the person themselves may remove one.' security: - webSession: [] - appOAuth: - personal-ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The connection was removed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/AiConnectionNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/ai-connections/{connectionId}/make-default: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AiConnectionId' post: tags: - Models operationId: makePersonalAiConnectionDefault summary: Make one of a person's own AI connections the default description: Make the person's runs with no pick use this connection of their own, as makeAiConnectionDefault does for the organization. A connection that can't run now is refused. Only the person themselves may change it. security: - webSession: [] - appOAuth: - personal-ai-connection:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The connection, now the default. Never a key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AiConnectionEntry' examples: default: $ref: '#/components/examples/AiConnectionEntryExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/AiConnectionNotFound' '409': $ref: '#/components/responses/AiConnectionNotReady' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Apps operationId: listApps summary: List the apps added here description: 'Return one page of the apps the organization has added for its Bots: the ones from OpenBot''s catalogue, the ones added from the app directory, and servers added by their address. Each organization has its own apps, and an app added in one is not in another. Each app comes with the actions it offers and the Bots that may use each one. Any member of the organization may read them. Ordered by title, ignoring case, then by id. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - apps:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of apps. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppPage' examples: lastPage: $ref: '#/components/examples/AppPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Apps operationId: createApp summary: Add an app description: 'Add an app in one of two ways. With from=directory, add an entry of listAppDirectory: a catalogue entry, with the instance host or vault credential it needs, or an app from the wider directory. With from=address, add a server by its HTTPS address. The app is added for everyone in the organization. While the organization''s apps are open (getAppsSetting), any member may add one, in the same press that connects it; where they''re locked down only an administrator may, and anybody else is answered 403 PERMISSION_DENIED. Either way only an administrator gives a server a key that everyone''s Bots use (token), or adds an app that needs what only an administrator can enter. OpenBot asks a server added by its address how it is reached first. It refuses an address the MCP allowlist doesn''t approve, a server that needs a key nobody gave, and an address already added, naming that app in the problem''s appId. A server that signs each person in answers with signIn true, and each person then connects their own account. Answers 201 with the app. Adding a directory entry that is already added updates that app with what the request names, and answers it the same way. An entry listAppDirectory offers as a sign-in in place of its key (keyVersion) is added as that sign-in; with connectsWith key it is added with its key instead, as its own app, and each person then connects it with their key. A repeated request with the same Idempotency-Key and body returns the first result.' security: - webSession: [] - appOAuth: - apps:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateAppRequest' examples: catalogue: summary: A catalogue entry reached with a vault credential. value: from: directory directoryEntryId: catalogue:exa-authenticated credentialId: 3b9a5f8e-6c1d-4e2a-9f47-1d2c3b4a5e6f directory: summary: An app from the wider directory. value: from: directory directoryEntryId: directory:linear directoryWithKey: summary: An app the directory offers as a sign-in, added with its key instead. value: from: directory directoryEntryId: directory:posthog connectsWith: key address: summary: A server added by its address. value: from: address title: Acme Wiki url: https://mcp.acme.com/mcp responses: '201': description: The app was added. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Location: description: The new app's address. schema: type: string example: /api/v2/organizations/default/apps/acme-wiki X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/App' examples: address: $ref: '#/components/examples/AddressAppExample' '400': $ref: '#/components/responses/InvalidApp' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AppAddForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/AppAddConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/AppDirectoryUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps/{appId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AppId' get: tags: - Apps operationId: getApp summary: Read one app description: Return one app added here, as listApps answers it. Anybody signed in may read it. security: - webSession: [] - appOAuth: - apps:read - apiKey: [] responses: '200': description: The app. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/App' examples: address: $ref: '#/components/examples/AddressAppExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/AppNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Apps operationId: replaceApp summary: Add or replace a server at a chosen id description: Add a server by its address at an id an administrator chooses, or replace the server at that id. It is for pointing OpenBot at a server of the organization's own, such as one reached as the signed-in person through Microsoft Entra ID (entraScope). Unlike createApp, it doesn't ask the server how it is reached and doesn't check the MCP allowlist. The id is 2 to 40 lower-case letters, numbers and hyphens, and can't be a catalogue entry's, a screen's, or one kept for apps from the directory. credentialId names a vault credential (createCredential) the server is reached with. An absent entraScope keeps the one the server has, and null takes it away. Recorded on the audit trail. Answers the server, whether it was added or replaced. Only an administrator may. security: - webSession: [] - appOAuth: - apps:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ReplaceAppRequest' examples: signedInPerson: summary: A server reached as the signed-in person. value: title: HR url: https://hr.example.com/mcp entraScope: api://hr-api/.default key: summary: A server reached with a vault credential. value: title: Acme Wiki url: https://mcp.acme.com/mcp credentialId: 3b9a5f8e-6c1d-4e2a-9f47-1d2c3b4a5e6f responses: '200': description: The server, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/App' examples: address: $ref: '#/components/examples/AddressAppExample' '400': $ref: '#/components/responses/InvalidAppChange' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/AppConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Apps operationId: updateApp summary: Change who may give an app to a Bot, or give it to every Bot description: 'Change who may give the app to a Bot: any Bot''s owner, for their own Bot (any), only an administrator (admin), or null for the default (AppOwnerGrants). Recorded on the audit trail. When owners stop deciding, the approvals to use the app''s shared account that their gifts made are withdrawn. What they gave stays, for an administrator to keep or take back. everyBot gives the app to every Bot in the organization, Bots made later included, or takes back what giving it to every Bot gave, with one row on the audit trail for the change. Only an administrator may.' security: - webSession: [] - appOAuth: - apps:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateAppRequest' examples: adminOnly: value: ownerGrants: admin default: value: ownerGrants: null everyBot: value: everyBot: true responses: '200': description: The changed app. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/App' examples: catalogue: $ref: '#/components/examples/CatalogueAppExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Apps operationId: deleteApp summary: Remove an app description: Remove an app for everybody in the organization. Every member's connection to it is ended, at the app's own service too, every Bot stops being able to use its actions, and a server's key is retired. Recorded on the audit trail. Removing can stop partway when the service behind the app doesn't answer. The app then stays, and removing it again is safe and finishes the job. Routines can't be removed. An administrator of the organization may. While the organization's apps are open, so may the member who added the app, as addedBy records them. Nobody else may. security: - webSession: [] - appOAuth: - apps:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The app was removed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AppRemovalForbidden' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/AppConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/AppDirectoryUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps/{appId}/refresh: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AppId' post: tags: - Apps operationId: refreshApp summary: Ask an app what it offers now description: Ask the app what actions it offers now, replace the ones OpenBot has recorded, and answer the app. Where asking needs an account, it is asked with the administrator's own. An app that can't be asked still answers 200, with the reason in lastError and its actions as they were. Bots keep any action the app stopped offering, listed in withdrawn. Recorded on the audit trail when that changes. Only an administrator may. security: - webSession: [] - appOAuth: - apps:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The app, with what it offers now. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/App' examples: address: $ref: '#/components/examples/AddressAppExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/AppConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps/{appId}/account-mode: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AppId' put: tags: - Apps operationId: setAppAccountMode summary: Choose whose account an app acts in description: 'Choose whose account an app from the directory acts in: each person''s own (personal), or one account OpenBot holds for everybody in the organization (shared). Every account the switch leaves behind is ended at the app''s service first. Nothing changes unless all of them ended, and the problem''s problems then names each account that didn''t. Switching to shared gives each Bot that uses the app an approval, the one in approvals or its default, and makes the app ask before every action that changes something. With validateOnly true nothing changes, and the answer says what the switch would end and approve. Choosing the mode an app is already in puts back anything that mode needs and is missing. Recorded on the audit trail. Only an administrator may.' security: - webSession: [] - appOAuth: - apps:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AppAccountModeRequest' examples: preview: summary: What switching to shared would do. value: mode: shared validateOnly: true shared: summary: Switch to shared, with one Bot's approval chosen. value: mode: shared approvals: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21: audience: team outsideInput: false members: [] responses: '200': description: What the switch did, or would do. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppAccountModeChange' examples: preview: $ref: '#/components/examples/AppAccountModePreviewExample' applied: $ref: '#/components/examples/AppAccountModeAppliedExample' '400': $ref: '#/components/responses/InvalidAppChange' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/AppAccountModeUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps/{appId}/oauth-client: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AppId' put: tags: - Apps operationId: setAppOAuthClient summary: Set the OAuth client people sign in to an app with description: Set the OAuth client OpenBot signs people in to an app with, for a catalogue app whose vendor doesn't let OpenBot register one itself. Register redirectUri from getAppSetup with the vendor first. Setting a client again replaces the one before. The secret is kept in the vault and never answered. Recorded on the audit trail. Only an administrator may. security: - webSession: [] - appOAuth: - apps:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AppOAuthClientRequest' examples: client: value: clientId: 1234567890-openbot.apps.example.com clientSecret: example-client-secret responses: '204': description: The client was set. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidAppChange' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/AppConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/app-directory: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Apps operationId: listAppDirectory summary: List the apps that can be added description: 'Return one page of what can be added with createApp: the apps in OpenBot''s own catalogue (source catalogue) in the catalogue''s own order, then apps from the wider directory (source directory), the ones a person signs in to before the ones that take a key, each by title, ignoring case, and then by id. So a screen can show the pages as they arrive, in the order it shows them. appId names the app an entry was added as, or is null. An app that connects with a key but signs in through its vendor is listed once, as the sign-in, with keyVersion naming the same app connected with its key. search narrows the list to entries whose name or description holds it, ignoring case. source narrows it to one kind. Anybody signed in may read it, the wider directory included. While the organization''s apps are open (getAppsSetting), anybody may add what they find (createApp); where they''re locked down an administrator adds it, and anybody else asks for it (createAppAccessRequest). Where no directory is set up, the list holds the catalogue only and source=directory is unavailable. In the personal edition the catalogue leaves out entries meant for a team, unless they''re already added. A missing cursor starts at the first page and nextCursor null ends the list. A cursor belongs to the search and source that made it, so changing either starts again without one.' security: - webSession: [] - appOAuth: - apps:read - apiKey: [] parameters: - name: search in: query description: Part of an entry's name or description, matched without regard to case. schema: type: string maxLength: 200 pattern: ^[^\x00]*$ - name: source in: query description: Only the catalogue, or only the wider directory. schema: $ref: '#/components/schemas/AppDirectorySource' - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of what can be added. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppDirectoryPage' examples: lastPage: $ref: '#/components/examples/AppDirectoryPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/AppStateConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/AppDirectoryUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/app-setup: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Apps operationId: getAppSetup summary: Read how apps are set up here description: 'Return how apps are set up on this OpenBot: whether the app directory is available and the service it comes from, the address an administrator registers with an app''s vendor, whether a connection approves one action at a time, and whether a Bot with no key of its own can still use an app''s actions. Anybody signed in may read it. It holds no secret.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - apps:read - apiKey: [] responses: '200': description: How apps are set up here. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppSetup' examples: directory: $ref: '#/components/examples/AppSetupExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/shortened-tool-names: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Apps operationId: getShortenedToolNames summary: Read the action names that were shortened description: Return every app action name that was cut to fit a model's limit of 64 characters, with the whole name it stands for, so a client shows a step by the action's own name. Names only, and nothing about who may use them. Anybody signed in may read them. x-openbot-singleton: true security: - webSession: [] - appOAuth: - apps:read - apiKey: [] responses: '200': description: The shortened names. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ShortenedToolNames' examples: one: $ref: '#/components/examples/ShortenedToolNamesExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/connections: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Connections operationId: listConnections summary: List a person's connections description: 'Return one page of the apps a person connected their own accounts to, so their Bots can act there for them, oldest first. An app''s one shared account is not listed here: read it with getSharedConnection. A connection whose access was withdrawn stays listed, revoked, until the person connects again. Only the person themselves may list them; there is no administrator view. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - connections:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of connections. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConnectionPage' examples: lastPage: $ref: '#/components/examples/ConnectionPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/connections/{appId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AppId' get: tags: - Connections operationId: getConnection summary: Read a person's connection to an app description: Return a person's connection to one app. Not found when they haven't connected it, or when the app uses one shared account, which getSharedConnection reads. Only the person themselves may read it. security: - webSession: [] - appOAuth: - connections:read - apiKey: [] responses: '200': description: The connection. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Connection' examples: checked: $ref: '#/components/examples/ConnectionExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/ConnectionNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/connections/{appId}/connect: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AppId' post: tags: - Connections operationId: connectApp summary: Start connecting a person's account at an app description: 'Start connecting a person''s own account at an app, and say what happens next. consent answers the address of the app''s own sign-in page: the client opens it, and the app sends the person back to the page returnTo names. form answers the boxes an app that takes a key asks for; sending them back as values connects it. connected means the account is connected already. Coming back from a sign-in page proves nothing by itself, so call confirmConnection when the person lands. Connecting over a standing connection asks for more permissions on the same account, unless anotherAccount asks for a second account beside it. Only the person themselves may connect their accounts, and an app with one shared account is connected by an administrator with connectSharedApp. The address and the values are never logged.' security: - webSession: [] - appOAuth: - connections:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConnectAppRequest' examples: signIn: value: returnTo: connections anotherAccount: value: returnTo: connections anotherAccount: true key: value: values: api_key: lin_api_example responses: '200': description: What the person does next. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConnectionStart' examples: consent: $ref: '#/components/examples/ConnectionStartConsent' form: $ref: '#/components/examples/ConnectionStartForm' connected: $ref: '#/components/examples/ConnectionStartConnected' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ConnectionForbidden' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/ConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/connections/{appId}/confirm: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AppId' post: tags: - Connections operationId: confirmConnection summary: Check with the app that a person's account is connected description: 'Ask the app whether the person''s account is really connected, and record its answer: kept when it says yes, forgotten here when it says no. Call it when the person comes back from the app''s sign-in page, and whenever a page shows the connection, because a connection can be ended at the app itself. Asking again records nothing new. When the app can''t be asked, the last answer stands. An app whose sign-in OpenBot keeps itself has nothing to confirm. Only the person themselves may confirm their connections.' security: - webSession: [] - appOAuth: - connections:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: What the app answered. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConnectionConfirmation' examples: connected: $ref: '#/components/examples/ConnectionConfirmed' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/ConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/connections/{appId}/recheck: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AppId' post: tags: - Connections operationId: recheckConnection summary: Check that a person's key still works description: Try the key a person connected an app with, by one safe, read-only call in their account, and record whether it worked and when. For apps that take a key. The call counts against the person's own limits at the app, so make it when the person asks, never on page load. A key the app refuses is answered 400 with the app's reason, and the record keeps that the check failed. checkedAction null means the app offers nothing safe to try. Only the person themselves may check their connections. security: - webSession: [] - appOAuth: - connections:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: What the check found. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConnectionCheck' examples: verified: $ref: '#/components/examples/ConnectionCheckExample' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/ConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/connections/{appId}/disconnect: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AppId' post: tags: - Connections operationId: disconnectApp summary: Disconnect a person's account from an app description: End a person's connection to an app, with every account they connected there. The app is asked to end the access first, then OpenBot forgets the connection. Other apps that share the same sign-in at the app end with it, as getConnectionDisconnectPreview names them. Safe to repeat. revocationRequested is false where the app had nothing to end. For an app OpenBot signs the person in to itself, OpenBot forgets the sign-in even where the app can't be asked to end it (it offers no way to, or doesn't answer). revocationRequested is then false, and the access is ended in the app's own settings. Only the person themselves may disconnect their apps. security: - webSession: [] - appOAuth: - connections:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The connection, ended. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Disconnection' examples: ended: $ref: '#/components/examples/DisconnectionExample' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/ConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/connections/{appId}/disconnect-preview: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AppId' get: tags: - Connections operationId: getConnectionDisconnectPreview summary: Read what disconnecting an app would also end description: Name the other apps a disconnect would also end, because they share this connection's sign-in at the app, and count the ones that couldn't be checked. Changes nothing. Only the person themselves may read it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - connections:read - apiKey: [] responses: '200': description: What a disconnect would also end. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/DisconnectPreview' examples: shared: $ref: '#/components/examples/DisconnectPreviewExample' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/ConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/connections/{appId}/authorizations: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AppId' get: tags: - Connections operationId: getConnectionAuthorizations summary: Read what a person's account at an app allows description: 'Return what a person''s account at an app allows, action by action: authorized, waiting for the person''s consent (authorizeConnectionAction), waiting for an administrator to set something up, or unknown. Every action at once, in one answer. readable is false when the app couldn''t be asked; actions is then empty and reason says why. Only the person themselves may read it.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - connections:read - apiKey: [] responses: '200': description: What the account allows. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ActionAuthorizations' examples: read: $ref: '#/components/examples/ActionAuthorizationsExample' unreadable: $ref: '#/components/examples/ActionAuthorizationsUnreadable' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/ConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/connections/{appId}/authorize: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AppId' post: tags: - Connections operationId: authorizeConnectionAction summary: Start a person's consent for one action description: Start a person's consent for one action of an app that grants access action by action, and answer the address of the app's consent page. The client opens it; the app sends the person back to the page returnTo names, where getConnectionAuthorizations shows the result. A person has one consent in progress at a time, and one left unfinished expires after fifteen minutes. The address is never logged. Only the person themselves may authorize for their accounts. security: - webSession: [] - appOAuth: - connections:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AuthorizeActionRequest' examples: action: value: action: Github.CreateIssue returnTo: connections responses: '200': description: The address of the app's consent page. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AuthorizationStart' examples: consent: $ref: '#/components/examples/AuthorizationStartExample' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/ConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/connections/{appId}/accounts: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AppId' get: tags: - Connections operationId: listConnectedAccounts summary: List a person's accounts at an app description: Return one page of the accounts a person connected at one app, such as a work and a personal mailbox, in the order they connected them. The app is asked each time, so an account connected or ended elsewhere is listed as it stands. isDefault marks the one their Bots use when they name none. Only the person themselves may list them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - connections:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of accounts. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConnectedAccountPage' examples: lastPage: $ref: '#/components/examples/ConnectedAccountPageLast' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/ConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/connections/{appId}/accounts/{accountId}/make-default: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AppId' - $ref: '#/components/parameters/ConnectedAccountId' post: tags: - Connections operationId: makeConnectedAccountDefault summary: Choose the account a person's Bots use at an app description: Make one of a person's accounts at an app the one their Bots use when they name none. Only the person themselves may choose. security: - webSession: [] - appOAuth: - connections:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The account is the default. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/ConnectedAccountNotFound' '409': $ref: '#/components/responses/ConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/connections/{appId}/accounts/{accountId}/disconnect: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/AppId' - $ref: '#/components/parameters/ConnectedAccountId' post: tags: - Connections operationId: disconnectConnectedAccount summary: Disconnect one of a person's accounts at an app description: End one of a person's accounts at an app and keep the others. The app is asked to end that account's access first. Ending the last account ends the connection, as disconnectApp does, and connectionEnded says so. Only the person themselves may disconnect their accounts. security: - webSession: [] - appOAuth: - connections:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The account, ended. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AccountDisconnection' examples: oneOfTwo: $ref: '#/components/examples/AccountDisconnectionExample' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/ConnectedAccountNotFound' '409': $ref: '#/components/responses/ConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps/{appId}/shared-connection: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AppId' get: tags: - Connections operationId: getSharedConnection summary: Read an app's shared account description: 'Return the one account an app in Shared mode acts as for everybody in the organization: whether it is connected, who connected it, and the app''s own name for the account. Each organization connects its own, and one organization''s shared account is never used in another. Any member of the organization may read it. Not found when the app is connected by each person instead, as getConnection reads.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - connections:read - apiKey: [] responses: '200': description: The app's shared account. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SharedConnection' examples: connected: $ref: '#/components/examples/SharedConnectionExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/SharedConnectionNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps/{appId}/shared-connection/connect: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AppId' post: tags: - Connections operationId: connectSharedApp summary: Start connecting an app's shared account description: 'Start connecting the one account an app in Shared mode acts as for everybody in the organization, and say what happens next, as connectApp does: consent answers the address of the app''s sign-in page, form answers the boxes to fill in, connected means it is connected already. The person comes back to the app''s page, where confirmSharedConnection checks the result. Where an app connects once, a shared account already connected is a conflict: disconnect it first. Only an administrator of the organization may connect it. The address and the values are never logged.' security: - webSession: [] - appOAuth: - connections:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConnectSharedAppRequest' examples: signIn: value: returnTo: apps responses: '200': description: What the administrator does next. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConnectionStart' examples: consent: $ref: '#/components/examples/ConnectionStartConsent' connected: $ref: '#/components/examples/ConnectionStartConnected' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/SharedConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps/{appId}/shared-connection/confirm: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AppId' post: tags: - Connections operationId: confirmSharedConnection summary: Check with the app that its shared account is connected description: Ask the app whether its shared account is really connected, and record its answer, as confirmConnection does for a person's own. Call it when the administrator comes back from the app's sign-in page. Asking again records nothing new. Only an administrator may confirm it. security: - webSession: [] - appOAuth: - connections:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: What the app answered. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConnectionConfirmation' examples: connected: $ref: '#/components/examples/ConnectionConfirmed' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/SharedConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps/{appId}/shared-connection/recheck: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AppId' post: tags: - Connections operationId: recheckSharedConnection summary: Check that an app's shared key still works description: Try the key an app's shared account was connected with, by one safe, read-only call, and record whether it worked and when, as recheckConnection does for a person's own. Make it when an administrator asks, never on page load. Only an administrator may check it. security: - webSession: [] - appOAuth: - connections:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: What the check found. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConnectionCheck' examples: verified: $ref: '#/components/examples/ConnectionCheckExample' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/SharedConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps/{appId}/shared-connection/disconnect: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AppId' post: tags: - Connections operationId: disconnectSharedApp summary: Disconnect an app's shared account description: 'End an app''s shared account: the app is asked to end the access first, then OpenBot forgets it. Every Bot using the app loses it until an administrator connects an account again. Other apps that share the same sign-in at the app end with it. Safe to repeat. Only an administrator may disconnect it.' security: - webSession: [] - appOAuth: - connections:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The shared account, ended. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Disconnection' examples: ended: $ref: '#/components/examples/DisconnectionExample' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/SharedConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps/{appId}/shared-connection/authorizations: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AppId' get: tags: - Connections operationId: getSharedConnectionAuthorizations summary: Read what an app's shared account allows description: Return what an app's shared account allows, action by action, as getConnectionAuthorizations does for a person's own. Anybody signed in may read it, since every Bot using the app acts as this account. Every action at once, in one answer. x-openbot-singleton: true security: - webSession: [] - appOAuth: - connections:read - apiKey: [] responses: '200': description: What the shared account allows. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ActionAuthorizations' examples: read: $ref: '#/components/examples/ActionAuthorizationsExample' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/SharedConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps/{appId}/shared-connection/authorize: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AppId' post: tags: - Connections operationId: authorizeSharedConnectionAction summary: Start consent for one action on an app's shared account description: Start consent for one action of an app's shared account, where the app grants access action by action, and answer the address of the app's consent page, as authorizeConnectionAction does for a person's own. Only an administrator may authorize for the shared account. The address is never logged. security: - webSession: [] - appOAuth: - connections:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AuthorizeActionRequest' examples: action: value: action: Github.CreateIssue returnTo: apps responses: '200': description: The address of the app's consent page. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AuthorizationStart' examples: consent: $ref: '#/components/examples/AuthorizationStartExample' '400': $ref: '#/components/responses/ConnectionRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppNotFound' '409': $ref: '#/components/responses/SharedConnectionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/ConnectionsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/grants: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Bot grants operationId: listBotGrants summary: List what a Bot may use description: 'Return one page of everything a Bot was given: each action of an app, each skill, and each other Bot it may hand work to. An action carries what it does while its app offers it. One the app no longer lists is kept but not offered, and its action is null. Reading the list also gives the Bot what OpenBot gives every Bot, such as Routines. Anybody who can use the Bot may list them. Grants come in order of their id. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - bot-grants:read - apiKey: [] parameters: - name: kind in: query description: Only grants of this kind. schema: $ref: '#/components/schemas/BotGrantKind' - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of what the Bot may use. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotGrantPage' examples: lastPage: $ref: '#/components/examples/BotGrantPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/BotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/grants/batch-update: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bot grants operationId: batchUpdateBotGrants summary: Change a Bot's actions in one app at once description: 'Turn several of one app''s actions on and off for a Bot as one change, or none of them: one that can''t be made refuses them all, and problems says which. Each action is checked as replaceBotGrant and deleteBotGrant check it, and an action turned on must be one the app offers now. The audit trail records the change once, with the sentence it was chosen from when it was described in English (translateBotGrants). An administrator may turn actions on and off. A Bot''s owner may only turn on actions of their own app.' security: - webSession: [] - appOAuth: - bot-grants:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BotGrantChanges' examples: described: value: appId: notion add: - notion/notion-search - notion/notion-fetch remove: - notion/notion-update-page authoring: source: english text: It can read Notion but not change it. responses: '200': description: The change, saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotGrantChangesSaved' examples: saved: $ref: '#/components/examples/BotGrantChangesSavedExample' '400': $ref: '#/components/responses/InvalidBotGrantChanges' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotGrantForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/grants/translate: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bot grants operationId: translateBotGrants summary: Choose a Bot's actions in one app from a description description: 'Turn a description in English of what a Bot may do in one app into an exact set of that app''s actions. OpenBot''s model chooses them, they are checked against what the app offers now, and a second call that never sees the description says what the set lets the Bot do. Nothing is saved: batchUpdateBotGrants saves the set. The audit trail records the description and what it became. Only an administrator may ask.' security: - webSession: [] - appOAuth: - bot-grants:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BotGrantDescription' examples: readOnly: value: appId: notion text: It can read Notion but not change it. responses: '200': description: The actions chosen, and what they let the Bot do. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotGrantTranslation' examples: answer: $ref: '#/components/examples/BotGrantTranslationExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/BotOrAppNotFound' '409': $ref: '#/components/responses/BotGrantConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ModelFailed' '503': $ref: '#/components/responses/ModelNotConfigured' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/grants/replay: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bot grants operationId: replayBotGrants summary: Test a Bot's actions in one app against its recent calls description: 'Say what a set of one app''s actions would change for a Bot against what it has now, and what that would have meant for its recent calls to the app: actions it used that the set takes away, and actions it was refused that the set gives. Nothing is saved. report is null where OpenBot keeps no audit trail it can read. Only an administrator may ask.' security: - webSession: [] - appOAuth: - bot-grants:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BotGrantCandidate' examples: readOnly: value: appId: notion grants: - notion/notion-search - notion/notion-fetch responses: '200': description: What the set would change, and what it would have meant. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotGrantReplay' examples: answer: $ref: '#/components/examples/BotGrantReplayExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/BotOrAppNotFound' '409': $ref: '#/components/responses/BotGrantConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/grants/{grantId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - name: grantId in: path required: true description: 'The grant: action:: for one action of an app, skill: for a skill, or bot: for another Bot this Bot may hand work to. Percent-encode it in the path.' schema: type: string minLength: 1 maxLength: 512 pattern: ^(action:[^:]+:|skill:|bot:)\S example: action:notion:notion-search put: tags: - Bot grants operationId: replaceBotGrant summary: Give a Bot an action, a skill or another Bot description: Give a Bot one thing to use, or keep what it has. An administrator may give a Bot an action of an app OpenBot has added, even one the app no longer lists, any skill, or another Bot to hand work to. A Bot's owner may give it their own skill, or one action their own app offers now when the app is open to owners; that action runs on the account of whoever asks. For an action of an app with one shared account, approval says who may have the Bot use that account. Without it, an administrator's grant approves the people who can use the Bot now, unless an administrator already chose. Recorded on the audit trail. security: - webSession: [] - appOAuth: - bot-grants:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/BotGrantInput' examples: plain: value: {} responses: '200': description: The grant, as the Bot has it now. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotGrant' examples: action: $ref: '#/components/examples/BotGrantExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotGrantForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Bot grants operationId: deleteBotGrant summary: Take something from a Bot description: Take one action, skill or Bot from a Bot. An administrator may take any of them, including one whose app or skill is gone. A Bot's owner may take their own skill from it, and takes back the actions they gave with takeBackBotApp. Routines can't be taken. In OpenBot Personal neither can an app's actions or another Bot, since every Bot has them. Recorded on the audit trail. A grant the Bot doesn't have is not found. security: - webSession: [] - appOAuth: - bot-grants:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The Bot no longer has it. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotGrantForbidden' '404': $ref: '#/components/responses/BotGrantNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/apps: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Bot grants operationId: listBotApps summary: List a Bot's apps description: 'Return one page of the apps a Bot was given, each as it stands for the person asking: ready to use, waiting on their own account, waiting on an administrator, or turned off, with the next step and whose it is. An app removed after its actions were given is listed as turned off. Anybody who can use the Bot may list them. Apps come in order of their title, and by id among apps with the same title. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - bot-grants:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of the Bot's apps. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotAppPage' examples: lastPage: $ref: '#/components/examples/BotAppPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/BotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/apps/{appId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - $ref: '#/components/parameters/AppId' get: tags: - Bot grants operationId: getBotApp summary: Read one app as a Bot has it description: 'Return one app as it stands for the person asking on this Bot, whether or not the Bot was given it, so a client can say it is turned off or not given and offer the step that fixes it. The app''s name is read too, as well as its id. With actions, the app is read for those actions: a Bot that was given the app but not every one of them reads as not_granted, or owner_grantable where the person asking may give them, and requestKind is grant. Anybody who can use the Bot may read it.' security: - webSession: [] - appOAuth: - bot-grants:read - apiKey: [] parameters: - name: actions in: query deprecated: true x-deprecation-date: '2026-12-01' x-sunset: '2027-12-01' description: 'Deprecated: send the actions in a body with readBotApp (POST /api/v2/organizations/{organizationId}/bots/{botId}/apps/{appId}/read) instead. Fifty actions of 300 characters make an address longer than proxies carry. Actions of the app the Bot needs, written /, at most 50. One the app doesn''t offer is left out.' style: form explode: false schema: type: array minItems: 1 maxItems: 50 items: type: string minLength: 1 maxLength: 300 pattern: \S responses: '200': description: The app, for the person asking on this Bot. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotApp' examples: notConnected: $ref: '#/components/examples/BotAppExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/BotOrAppNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/apps/{appId}/read: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - $ref: '#/components/parameters/AppId' post: tags: - Bot grants operationId: readBotApp summary: Read one app as a Bot has it, for the actions named in the body description: 'Return one app as it stands for the person asking on this Bot, read for the actions named, as getBotApp does with its actions, but with the actions in the body rather than the address: a Bot that was given the app but not every one of them reads as not_granted, or owner_grantable where the person asking may give them, and requestKind is grant. The app''s name is read too, as well as its id. It writes nothing and keeps no answer: sending it again with the same Idempotency-Key reads the app again. Anybody who can use the Bot may read it.' security: - webSession: [] - appOAuth: - bot-grants:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BotAppActionsRead' examples: request: value: actions: - composio-googlecalendar/GOOGLECALENDAR_PATCH_EVENT responses: '200': description: The app, for the person asking on this Bot. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotApp' examples: notConnected: $ref: '#/components/examples/BotAppExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/BotOrAppNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/apps/{appId}/give: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - $ref: '#/components/parameters/AppId' post: tags: - Bot grants operationId: giveBotApp summary: Give your own app to a Bot you own description: 'Give a Bot you own one of your apps: every action it has, or where the organization''s apps are locked down (getAppsSetting), the actions that only read, or every action of Routines. Actions that change something still ask first wherever the approval rules say so. They run on the account of whoever asks the Bot. The app must be turned on and open to owners, which it is unless an administrator closed it, and an administrator must not have turned this off for you. A Bot that already has the app gets nothing more, and given is empty. With actions, the Bot is given those actions of the app instead, and only the ones it doesn''t have yet are listed in given. Recorded on the audit trail.' security: - webSession: [] - appOAuth: - bot-grants:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/BotAppActionsInput' examples: readOnly: value: {} oneChange: value: actions: - composio-googlecalendar/GOOGLECALENDAR_PATCH_EVENT responses: '200': description: The actions given. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotAppGiven' examples: given: $ref: '#/components/examples/BotAppGivenExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotGrantForbidden' '404': $ref: '#/components/responses/BotOrAppNotFound' '409': $ref: '#/components/responses/BotAppConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/apps/{appId}/take-back: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - $ref: '#/components/parameters/AppId' post: tags: - Bot grants operationId: takeBackBotApp summary: Take back an app you gave a Bot you own description: Take back what you gave a Bot you own in one app. Anything an administrator gave it stays. Recorded on the audit trail. security: - webSession: [] - appOAuth: - bot-grants:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The actions taken back. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotAppTakenBack' examples: takenBack: $ref: '#/components/examples/BotAppTakenBackExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotGrantForbidden' '404': $ref: '#/components/responses/BotOrAppNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/apps/{appId}/approve: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - $ref: '#/components/parameters/AppId' post: tags: - Bot grants operationId: approveBotApp summary: Turn an app on and give it to a Bot description: 'Do in one step what approving a request for this app on this Bot would do: turn the app on if it is off, give the Bot every action of it (the actions that only read where the organization''s apps are locked down), or confirm the app''s shared account is connected. With actions, the Bot is given those actions of the app instead, including to a Bot that already has some of the app. The audit trail reads as a request filed and approved by the same person. When it can''t be done here, nothing is left waiting and the answer says what is missing. An administrator may do it for any Bot. While the organization''s apps are open (getAppsSetting), so may anybody who may give that Bot its apps, as with giveBotApp; connecting a shared account stays an administrator''s.' security: - webSession: [] - appOAuth: - bot-grants:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/BotAppActionsInput' examples: readOnly: value: {} oneChange: value: actions: - composio-googlecalendar/GOOGLECALENDAR_PATCH_EVENT responses: '200': description: What changed, and the request it was recorded as. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppAccessApproval' examples: approved: $ref: '#/components/examples/AppAccessApprovalExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/BotOrAppNotFound' '409': $ref: '#/components/responses/BotAppConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/AppDirectoryUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/apps/{appId}/team-grants: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AppId' get: tags: - Bot grants operationId: getAppTeamGrants summary: Read the teams the app is granted to description: Return the teams the app is granted to, by id. A person in one of those teams, or in a team beneath one, may give the app to a Bot they own without an access request, and the Bot may use it only while they stay in such a team; nobody else in the organization may give it to their own Bot. Only an admin of the organization may read them. x-openbot-singleton: true security: - webSession: [] - appOAuth: - bot-grants:read - apiKey: [] responses: '200': description: The teams the app is granted to. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppTeamGrants' examples: granted: $ref: '#/components/examples/AppTeamGrantsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppOrTeamNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Bot grants operationId: replaceAppTeamGrants summary: Grant an app to teams description: Grant the app to exactly these teams of the organization, taking it from any team left out. An empty list takes it from every team. A person in one of those teams, or in a team beneath one, may give the app to a Bot they own without an access request, and the Bot may use it only while they stay in such a team; nobody else in the organization may give it to their own Bot. A team of another organization is not found. Only an admin of the organization may do this. Recorded on the audit trail. security: - webSession: [] - appOAuth: - bot-grants:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AppTeamGrantsInput' examples: oneTeam: value: teams: - Tm4Qx8LpV2nWc7RbY1sKd0Ze responses: '200': description: The teams the app is now granted to. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppTeamGrants' examples: granted: $ref: '#/components/examples/AppTeamGrantsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppOrTeamNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/giveable-apps: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Bot grants operationId: listGiveableApps summary: List the apps a person could give their own Bots description: 'Return one page of the apps a person could give Bots they own: turned on, open to owners, and connected by them where the app runs on each person''s own account. Empty when an administrator turned this off for them. Only the person themselves may list them. Apps come in order of their title, and by id among apps with the same title. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - bot-grants:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of apps the person could give. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GiveableAppPage' examples: lastPage: $ref: '#/components/examples/GiveableAppPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/app-access-requests: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - App access requests operationId: listAppAccessRequests summary: List requests for apps description: 'Return one page of the organization''s requests waiting for an administrator: all of them for an administrator of the organization, and only their own for anybody else. appId narrows them to one app. Newest first, and by id among requests made at the same moment. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - app-access-requests:read - apiKey: [] parameters: - name: appId in: query description: Only requests for this app. schema: type: string minLength: 1 maxLength: 200 pattern: \S - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of waiting requests. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppAccessRequestPage' examples: lastPage: $ref: '#/components/examples/AppAccessRequestPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - App access requests operationId: createAppAccessRequest summary: Ask an administrator for an app description: 'Ask an administrator to make an app usable on a Bot. OpenBot decides what is asked for from the app''s state: turning it on, giving it to the Bot, or connecting its shared account. Leave botId out to ask for an app nobody has added yet, for everyone in the organization: the request is to turn it on, and its botId is null. With actions, the request is to give the Bot those actions of the app, including a Bot that already has some of the app, and its kind is grant. Asking again answers the same request while it is waiting, with any new actions added to it, and its note and urgent set again. note and urgent are for the administrator who answers. A person may have 20 requests waiting at once. Recorded on the audit trail. Anybody who can use the Bot may ask, and anybody signed in may ask for an app alone. Asking is how a person gets an app while the organization''s apps are locked down (getAppsSetting); while they''re open a person adds and connects an app themselves (createApp, approveBotApp), and asks only for what stays an administrator''s, such as giving an app to a Bot nobody owns (the app''s restrictedBy says why). A waiting request is closed as superseded once nothing is left for an administrator to do.' security: - webSession: [] - appOAuth: - app-access-requests:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AppAccessRequestInput' examples: notion: value: botId: research-assistant appId: notion appAlone: value: appId: slack oneChange: value: botId: research-assistant appId: composio-googlecalendar actions: - composio-googlecalendar/GOOGLECALENDAR_PATCH_EVENT withNote: value: botId: team-assistant appId: composio-youtube note: To pull this week's video stats for the launch report. urgent: true responses: '200': description: The request, filed now or already waiting. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppAccessRequest' examples: filed: $ref: '#/components/examples/AppAccessRequestExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/BotOrAppNotFound' '409': $ref: '#/components/responses/BotAppConflict' '429': $ref: '#/components/responses/TooManyPendingRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/app-access-requests/{appAccessRequestId}: parameters: - $ref: '#/components/parameters/OrganizationId' - name: appAccessRequestId in: path required: true description: The request's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: 6f1c2a9e-4b7d-4e3a-8c5f-0d9e8b7a6c5d delete: tags: - App access requests operationId: deleteAppAccessRequest summary: Withdraw a request for an app description: Withdraw your own request while it is waiting. Somebody else's request is not found, like one that doesn't exist, and one already answered is a conflict. Recorded on the audit trail. security: - webSession: [] - appOAuth: - app-access-requests:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The request was withdrawn. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/AppAccessRequestNotFound' '409': $ref: '#/components/responses/AppAccessRequestConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/app-access-requests/{appAccessRequestId}/approve: parameters: - $ref: '#/components/parameters/OrganizationId' - name: appAccessRequestId in: path required: true description: The request's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: 6f1c2a9e-4b7d-4e3a-8c5f-0d9e8b7a6c5d post: tags: - App access requests operationId: approveAppAccessRequest summary: Approve a request for an app description: 'Do what a request asks: turn the app on, give the Bot its actions, or confirm the app''s shared account is connected. actions names the actions to give. Without it the Bot gets the actions the request names, or, for a request that names none, every action of the app (only the actions that only read where the organization''s apps are locked down). The request is answered before anything changes, so a second answer loses. A change that can''t be made puts the request back to wait, and the answer says what is missing. Recorded on the audit trail. Only an administrator may approve.' security: - webSession: [] - appOAuth: - app-access-requests:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/AppAccessApprovalInput' examples: readOnly: value: {} responses: '200': description: What changed, and the request, answered. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppAccessApproval' examples: approved: $ref: '#/components/examples/AppAccessApprovalExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppAccessRequestNotFound' '409': $ref: '#/components/responses/AppAccessRequestConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/AppServiceFailed' '503': $ref: '#/components/responses/AppDirectoryUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/app-access-requests/{appAccessRequestId}/dismiss: parameters: - $ref: '#/components/parameters/OrganizationId' - name: appAccessRequestId in: path required: true description: The request's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: 6f1c2a9e-4b7d-4e3a-8c5f-0d9e8b7a6c5d post: tags: - App access requests operationId: dismissAppAccessRequest summary: Dismiss a request for an app description: Close a waiting request without changing anything else. Recorded on the audit trail. Only an administrator may dismiss one. security: - webSession: [] - appOAuth: - app-access-requests:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The request, dismissed. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AppAccessRequest' examples: dismissed: $ref: '#/components/examples/DismissedAppAccessRequestExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AppAccessRequestNotFound' '409': $ref: '#/components/responses/AppAccessRequestConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/components: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Components operationId: listComponents summary: List components description: 'Return one page of the components the organization''s Bots draw in conversations: charts, cards and the ones an admin wrote in Playground. Each organization has its own: what a component tells the model, whether it is published, which Bots may draw it and which data it may read are decided in one organization and change nothing in another. An admin of the organization sees every component with its draft, the Bots held back from it and the data it may read. Anybody else sees the published ones only, and those fields are null. kind=playground lists only the components written in Playground, each published one with the source a conversation draws it from. view says how much of each to send: a screen that lists components without drawing or editing them asks for summary, and a conversation that only draws them asks for published. Ordered by kind, then title, then name. A missing cursor starts at the first page and nextCursor null ends the list. The page carries an ETag: a request naming it in If-None-Match is answered 304 with no body while the page is unchanged, so a client reading it again costs little.' security: - webSession: [] - appOAuth: - components:read - apiKey: [] parameters: - $ref: '#/components/parameters/ComponentKind' - $ref: '#/components/parameters/ComponentListView' - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of components. headers: Cache-Control: $ref: '#/components/headers/PrivateRevalidate' ETag: $ref: '#/components/headers/ComponentPageETag' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComponentPage' examples: admin: $ref: '#/components/examples/ComponentPageExample' '304': description: The page the caller holds, named in If-None-Match, is unchanged. headers: ETag: $ref: '#/components/headers/ComponentPageETag' X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/components/announce: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Components operationId: announceComponents summary: Announce the components the app can draw description: 'Tell OpenBot which components this version of the app can draw. A component the organization has not seen before is added and published, so every one of its Bots can draw it at once. One it already has is left exactly as it is: what it tells the model, whether it is published and who may use it were decided here. A description nobody here has edited follows the one this version of OpenBot ships. In OpenBot Personal a component is also given the data it reads. Anybody signed in may announce, and the web app does it on every load. The whole list is refused if one entry is missing a field or has a name that starts with @.' security: - webSession: [] - appOAuth: - components:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComponentAnnouncement' examples: gallery: value: components: - name: showBarChart title: Bar chart kind: chart description: Compare values across categories with a bar chart. - name: showActivityReport title: Activity report kind: card description: Show how many actions each Bot took recently. responses: '200': description: The components this announcement added. Empty when the organization had them all. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AnnouncedComponents' examples: added: $ref: '#/components/examples/AnnouncedComponentsExample' '400': $ref: '#/components/responses/InvalidComponent' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/components/{componentId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ComponentId' get: tags: - Components operationId: getComponent summary: Read a component description: Return one component. An admin sees any component with its draft, the Bots held back from it and the data it may read. Anybody else sees a published one only, without those; an unpublished one is not found. security: - webSession: [] - appOAuth: - components:read - apiKey: [] responses: '200': description: The component. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Component' examples: admin: $ref: '#/components/examples/ComponentExample' member: $ref: '#/components/examples/PublishedComponentExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComponentNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Components operationId: deleteComponent summary: Delete a Playground component description: 'Delete a component an admin wrote in Playground: its source, its draft, and every Bot''s permission to draw it. Conversations stop drawing it. A component that comes with OpenBot can''t be deleted; unpublish it instead. Recorded on the audit trail. Only an admin may delete one.' security: - webSession: [] - appOAuth: - components:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The component was deleted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/ComponentNotFound' '409': $ref: '#/components/responses/ComponentConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/components/{componentId}/draft: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ComponentId' put: tags: - Components operationId: replaceComponentDraft summary: Save a component's draft description: 'Replace a component''s draft. Nothing a Bot sees changes until the component is published. For a component that comes with OpenBot the draft is its description, which the model reads when it decides to draw it; a title or source that differs from what it has is refused. For a Playground component the draft is its title, description and source. Saving one under a new name writes a new Playground component, unpublished: the name is custom_ and then lower-case letters, numbers and underscores. Recorded on the audit trail. Only an admin may save a draft.' security: - webSession: [] - appOAuth: - components:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComponentDraftInput' examples: description: summary: A new description for a component that comes with OpenBot. value: description: Compare values across categories with a bar chart. Use it for up to twelve bars. playground: summary: A Playground component's whole draft. value: title: Weather card description: Show today's weather for one city. source: html:

css: '.card { padding: 12px; }' jsFunctions: document.getElementById("city").textContent = window.__args.city; argumentSchema: type: object properties: city: type: string required: - city sampleArguments: city: Lisbon responses: '200': description: The component, with its draft as saved. A new Playground component is answered the same way, unpublished. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Component' examples: saved: $ref: '#/components/examples/ComponentExample' created: $ref: '#/components/examples/NewPlaygroundComponentExample' '400': $ref: '#/components/responses/InvalidComponent' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/ComponentNotFound' '409': $ref: '#/components/responses/ComponentConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/components/{componentId}/publish: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ComponentId' post: tags: - Components operationId: publishComponent summary: Publish a component description: Publish a component's draft, so every Bot not held back from it can draw it, from its next run. For a Playground component the source and the description are published together; it needs both a description and HTML first. Publishing a draft that is published already changes nothing. Recorded on the audit trail. Only an admin may publish. security: - webSession: [] - appOAuth: - components:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The component, published. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Component' examples: published: $ref: '#/components/examples/ComponentExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/ComponentNotFound' '409': $ref: '#/components/responses/ComponentConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/components/{componentId}/unpublish: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ComponentId' post: tags: - Components operationId: unpublishComponent summary: Unpublish a component description: Stop every Bot drawing a component, from its next run. Which Bots are held back from it, the data it may read and its published copy are kept, so publishing it again restores it as it was. Recorded on the audit trail. Only an admin may unpublish. security: - webSession: [] - appOAuth: - components:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The component, unpublished. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Component' examples: unpublished: $ref: '#/components/examples/UnpublishedComponentExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/ComponentNotFound' '409': $ref: '#/components/responses/ComponentConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/components/{componentId}/functions: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ComponentId' get: tags: - Components operationId: listComponentFunctions summary: List the data a component may read description: Return one page of the data functions this OpenBot ships, each with whether this component may read it. A component reads its own figures through one, so the numbers it shows come from OpenBot and not from the model. Anybody signed in may list them. Ordered by name. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - components:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of data functions. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/DataFunctionPage' examples: activityReport: $ref: '#/components/examples/DataFunctionPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComponentNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/components/{componentId}/functions/{functionId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ComponentId' - $ref: '#/components/parameters/FunctionId' put: tags: - Components operationId: grantComponentFunction summary: Let a component read a data function description: Let a component read one data function, for every Bot that draws it. Letting it read one it reads already changes nothing. Recorded on the audit trail. Only an admin may do this. security: - webSession: [] - appOAuth: - components:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The data function, which the component may now read. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/DataFunction' examples: granted: $ref: '#/components/examples/DataFunctionExample' '400': $ref: '#/components/responses/InvalidComponent' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/ComponentNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Components operationId: revokeComponentFunction summary: Stop a component reading a data function description: Stop a component reading one data function. Where it needs that data it shows why it can't. Stopping one it doesn't read changes nothing. Recorded on the audit trail. Only an admin may do this. security: - webSession: [] - appOAuth: - components:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The component no longer reads it. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/ComponentNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/components: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Components operationId: listBotComponents summary: List the components a Bot may draw description: 'Return one page of the components this Bot may draw now: every published component it isn''t held back from, each with the description the model reads. A client offers the Bot these as tools, and checks again before drawing one (checkBotComponent). Anybody who can use the Bot may list them. Ordered by name. A missing cursor starts at the first page and nextCursor null ends the list. The page carries an ETag: a request naming it in If-None-Match is answered 304 with no body while the page is unchanged.' security: - webSession: [] - appOAuth: - components:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of the Bot's components. headers: Cache-Control: $ref: '#/components/headers/PrivateRevalidate' ETag: $ref: '#/components/headers/ComponentPageETag' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotComponentPage' examples: held: $ref: '#/components/examples/BotComponentPageExample' '304': description: The page the caller holds, named in If-None-Match, is unchanged. headers: ETag: $ref: '#/components/headers/ComponentPageETag' X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/components/{componentId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - $ref: '#/components/parameters/ComponentId' put: tags: - Components operationId: allowBotComponent summary: Let a Bot draw a component description: Stop holding this Bot back from a component. Every Bot may draw a published component unless it is held back, so this undoes withholdBotComponent; the Bot draws it once it is published. Allowing one the Bot may draw already changes nothing. Recorded on the audit trail. Only an admin may do this. security: - webSession: [] - appOAuth: - components:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The Bot is no longer held back from the component. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/BotComponentNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Components operationId: withholdBotComponent summary: Hold a Bot back from a component description: Stop this Bot drawing a component, from its next run. Other Bots are unaffected, and so are Bots added later. Holding it back twice keeps the first date. Recorded on the audit trail. Only an admin may do this. security: - webSession: [] - appOAuth: - components:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The Bot is held back from the component. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/BotComponentNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/components/{componentId}/check: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - $ref: '#/components/parameters/ComponentId' post: tags: - Components operationId: checkBotComponent summary: Check a Bot may draw a component description: 'Ask whether this Bot may draw a component now, and read the data functions named. A Bot''s list of tools is fixed when its run starts, so a client asks again before it draws. The answer is a 200 either way: a refusal says why, in words the model and the person can read, and is recorded on the audit trail. A component that doesn''t exist is refused the same way. Anybody who can use the Bot may ask.' security: - webSession: [] - appOAuth: - components:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComponentCheckRequest' examples: reads: value: functions: - botActivity draws: value: {} responses: '200': description: Whether the Bot may draw it, and why not when it may not. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComponentCheck' examples: allowed: $ref: '#/components/examples/ComponentCheckAllowed' withheld: $ref: '#/components/examples/ComponentCheckRefused' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/components/{componentId}/call: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - $ref: '#/components/parameters/ComponentId' post: tags: - Components operationId: callComponentFunction summary: Read a component's data description: 'Run one data function for a component this Bot draws, and return what it read. It runs only if the Bot may draw the component and the component may read that function. Otherwise the answer is a 200 that says why, recorded on the audit trail like every read. Arguments are held to each function''s own bounds: botActivity reads days (1 to 90, 7 when left out) and recentRefusals reads limit (1 to 50, 10 when left out). Anybody who can use the Bot may call one.' security: - webSession: [] - appOAuth: - components:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComponentCallRequest' examples: week: value: function: botActivity arguments: days: 7 responses: '200': description: What the function read, or why it didn't run. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComponentCall' examples: read: $ref: '#/components/examples/ComponentCallRead' refused: $ref: '#/components/examples/ComponentCallRefused' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/DataReadFailed' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/skills: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Skills operationId: listSkills summary: List skills description: 'Return one page of the skills the caller can see: their own, the ones granted to a team they are in, and the organization''s that are granted to no team. An organization''s skill granted to teams is listed only to those teams'' people. An admin of the organization sees every skill. Another organization''s skills are never listed. Ordered by title, then slug. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - skills:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of skills. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SkillPage' examples: lastPage: $ref: '#/components/examples/SkillPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/skills/{skillId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SkillId' get: tags: - Skills operationId: getSkill summary: Read a skill description: Return one skill the caller can see, as the list shows them. An admin can read any. One the caller can't see is not found. security: - webSession: [] - appOAuth: - skills:read - apiKey: [] responses: '200': description: The skill. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Skill' examples: skill: $ref: '#/components/examples/SkillExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/SkillNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Skills operationId: replaceSkill summary: Save a skill description: 'Write a skill under its slug, the command a person types after /, or rewrite it. A new slug makes a skill that is the caller''s own, or the organization''s when an admin sends forEveryone. Rewriting one keeps whose it is. Anybody signed in may write their own skill. Only an admin may write or change the organization''s, or anybody else''s. A skill adds no access: it can only ask a Bot to use apps the Bot can already use. tools names the actions it needs, each one OpenBot has seen. Recorded on the audit trail.' security: - webSession: [] - appOAuth: - skills:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SkillInput' examples: standup: value: title: Standup summary: Write today's standup from my calendar and my pull requests. instructions: Read my calendar for today and my open pull requests, then write three short lines for yesterday, today and blockers. tools: - google-calendar/list_events responses: '200': description: The skill as saved, new or rewritten. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Skill' examples: saved: $ref: '#/components/examples/SkillExample' '400': $ref: '#/components/responses/InvalidSkill' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SkillForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Skills operationId: deleteSkill summary: Delete a skill description: Delete a skill, and stop every Bot offering it. Anybody may delete their own. Only an admin may delete the organization's or anybody else's. Recorded on the audit trail. security: - webSession: [] - appOAuth: - skills:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The skill was deleted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SkillForbidden' '404': $ref: '#/components/responses/SkillNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/skills/{skillId}/team-grants: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SkillId' get: tags: - Skills operationId: getSkillTeamGrants summary: Read the teams the skill is granted to description: Return the teams the skill is granted to, by id. A person in one of those teams, or in a team beneath one, may put the skill on a Bot they own, and the Bot is offered it only while they stay in such a team. Only an admin of the organization may read them. x-openbot-singleton: true security: - webSession: [] - appOAuth: - skills:read - apiKey: [] responses: '200': description: The teams the skill is granted to. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SkillTeamGrants' examples: granted: $ref: '#/components/examples/SkillTeamGrantsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/SkillOrTeamNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Skills operationId: replaceSkillTeamGrants summary: Grant a skill to teams description: Grant the skill to exactly these teams of the organization, taking it from any team left out. An empty list takes it from every team. A person in one of those teams, or in a team beneath one, may put the skill on a Bot they own, and the Bot is offered it only while they stay in such a team. A team of another organization is not found. Only an admin of the organization may do this. Recorded on the audit trail. security: - webSession: [] - appOAuth: - skills:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SkillTeamGrantsInput' examples: oneTeam: value: teams: - Tm4Qx8LpV2nWc7RbY1sKd0Ze responses: '200': description: The teams the skill is now granted to. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SkillTeamGrants' examples: granted: $ref: '#/components/examples/SkillTeamGrantsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/SkillOrTeamNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/devices: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Devices operationId: listDevices summary: List a person's devices description: Return one page of the phones a person registered for push notifications in this organization, the first registered first. Never a device's push token. Only the person themselves may list them; there is no administrator view. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - devices:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of devices. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/DevicePage' examples: lastPage: $ref: '#/components/examples/DevicePageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/devices/{deviceId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/DeviceId' put: tags: - Devices operationId: registerDevice summary: Register a device for push notifications description: Register one of the person's phones for push notifications under the id the app made for it, or replace what that id holds. A device is registered in one organization, the one the address names, and gets push notifications only from the person's Bots there. A person in several organizations registers the phone in each one they want notifications from, under the same id. The app sends its current push token every time it starts, so a token that changed replaces the old one and the device is never registered twice. Answers 200 whether the id was new or held a registration already. A token another account holds moves only once that account signed out on the phone. Only the person themselves may register their devices, and only where this deployment sends push notifications to phones (its OpenBot phone app's project is set up). security: - webSession: [] - appOAuth: - devices:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RegisterDeviceRequest' examples: iphone: value: token: ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx] projectId: 1f0e6c3a-5b2d-4e8f-9a71-3c4d5e6f7a8b platform: ios responses: '200': description: The device, registered. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/DeviceResponse' examples: device: $ref: '#/components/examples/DeviceResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/TransportUnavailable' '409': $ref: '#/components/responses/DeviceConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Devices operationId: deleteDevice summary: Stop push notifications to a device description: Stop sending push notifications to one of the person's phones from this organization. Its registrations in the person's other organizations stay. The app does this in each organization when the person signs out on it, so another account can register the phone after them. Only the person themselves may remove their devices. A device already removed is not found, which a client can read as done. security: - webSession: [] - appOAuth: - devices:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The device gets no more push notifications. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/DeviceNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/destinations: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Destinations operationId: listDestinations summary: List where a person's Bots reach them description: 'Return one page of the places outside OpenBot a person continues their conversations with Bots: a Slack or Microsoft Teams chat, or a phone number for text messages, each tied to one conversation with one Bot. A Slack account, a Teams account or a phone number is connected in one organization at a time: connecting one that is connected in another organization answers 400 until it is disconnected there. The first connected first. Only the person themselves may list them; there is no administrator view. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - destinations:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of destinations. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/DestinationPage' examples: lastPage: $ref: '#/components/examples/DestinationPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/destinations/link-chat: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Destinations operationId: linkChatDestination summary: Start continuing a conversation in Slack or Teams description: Make a one-time code that ties the person's Slack or Microsoft Teams account to one of their conversations with one Bot. The person sends the command it answers to the OpenBot app in Slack or Teams, and the account they send it from becomes the destination; nothing is connected here. The conversation must be the person's and the Bot one of its own. Only the person themselves may link, only where this deployment is paired with Slack and Teams, and only when an administrator lets them add Bots to Slack and Teams. security: - webSession: [] - appOAuth: - destinations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/LinkChatDestinationRequest' examples: slack: value: platform: slack conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 responses: '200': description: The code, and the command to send with it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ChatLinkCode' examples: slack: $ref: '#/components/examples/ChatLinkCodeExample' '400': $ref: '#/components/responses/InvalidDestination' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/DestinationForbidden' '404': $ref: '#/components/responses/TransportUnavailable' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/destinations/verify-phone: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Destinations operationId: verifyPhoneDestination summary: Text a code to a phone to connect it description: Text a verification code to a phone number, to tie that number to one of the person's conversations with one Bot. Nothing is connected until the code comes back through confirmPhoneDestination within ten minutes. The conversation must be the person's and the Bot one of its own. Only the person themselves may connect a phone, and only where this deployment sends text messages. security: - webSession: [] - appOAuth: - destinations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/VerifyPhoneDestinationRequest' examples: phone: value: phone: '+14155550123' conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 responses: '200': description: The code is on its way; confirm it under this verification. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PhoneVerification' examples: sent: $ref: '#/components/examples/PhoneVerificationExample' '400': $ref: '#/components/responses/InvalidDestination' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/TransportUnavailable' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/TextMessagesUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/destinations/confirm-phone: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Destinations operationId: confirmPhoneDestination summary: Connect a phone with the code it was texted description: Connect the phone a verification was texted to, with the code it received, as a destination for the conversation and Bot the verification named. A verification works once, for ten minutes, and only for the person who started it. Only the person themselves may confirm, and only where this deployment sends text messages. security: - webSession: [] - appOAuth: - destinations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConfirmPhoneDestinationRequest' examples: code: value: verificationId: 7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f code: '482913' responses: '201': description: The phone, connected. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/DestinationResponse' examples: phone: $ref: '#/components/examples/DestinationResponseExample' '400': $ref: '#/components/responses/InvalidDestination' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/TransportUnavailable' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/TextMessagesUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/destinations/{destinationId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/DestinationId' delete: tags: - Destinations operationId: deleteDestination summary: Disconnect a destination description: Stop continuing a conversation in that Slack or Teams chat, or by text to that phone. Only the person themselves may disconnect their destinations. A destination already disconnected is not found, which a client can read as done. security: - webSession: [] - appOAuth: - destinations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The destination was disconnected. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/DestinationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/deliveries: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Deliveries operationId: listDeliveries summary: List what was sent to a person outside OpenBot description: Return one page of the updates Bots sent a person by push notification, Slack, Microsoft Teams or text message, the newest first, each with where it got to and why it failed if it did. Only the person themselves may list them; there is no administrator view. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - deliveries:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of deliveries. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/DeliveryPage' examples: lastPage: $ref: '#/components/examples/DeliveryPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/notification-settings: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Notification settings operationId: getNotificationSettings summary: Read where a person's updates go description: 'Return which ways of reaching the person each kind of update may use, for every one of their Bots at once: progress, decisions, questions, and what their Bots'' check-ins found. For an admin, also where they hear that someone asked for access to an app, and the ways this deployment can tell them. A kind the person never chose for goes every way they can be reached. Only the person themselves may read them.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - notification-settings:read - apiKey: [] responses: '200': description: The person's notification settings. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/NotificationSettings' examples: settings: $ref: '#/components/examples/NotificationSettingsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Notification settings operationId: updateNotificationSettings summary: Change where a person's updates go description: Change where the kinds of update sent go and keep the rest, so two devices saving different kinds at once both keep theirs. At least one kind is required. Only the person themselves may change them. security: - webSession: [] - appOAuth: - notification-settings:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateNotificationSettingsRequest' examples: questions: value: routing: question: - push - slack appAccessRequestsByEmail: value: routing: appAccessRequest: - email responses: '200': description: The person's notification settings, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/NotificationSettings' examples: settings: $ref: '#/components/examples/NotificationSettingsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/bot-notification-settings/{botId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/BotId' get: tags: - Notification settings operationId: getBotNotificationSettings summary: Read how much one Bot may reach a person description: 'Return how much one Bot may reach the person outside OpenBot: everything, only what needs them, or nothing. A Bot they never set may send everything. Badges in OpenBot always show. Only the person themselves may read it, about a Bot they can see.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - notification-settings:read - apiKey: [] responses: '200': description: How much the Bot may reach the person. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotNotificationSettings' examples: needsInput: $ref: '#/components/examples/BotNotificationSettingsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/BotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Notification settings operationId: updateBotNotificationSettings summary: Change how much one Bot may reach a person description: Set how much one Bot may reach the person outside OpenBot. The audit trail records the change. Only the person themselves may change it, about a Bot they can see. security: - webSession: [] - appOAuth: - notification-settings:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateBotNotificationSettingsRequest' examples: needsInput: value: notify: needs_input responses: '200': description: How much the Bot may reach the person, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotNotificationSettings' examples: needsInput: $ref: '#/components/examples/BotNotificationSettingsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/notification-transports: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Notification settings operationId: listNotificationTransports summary: List the ways OpenBot can reach people here description: 'Return the ways this deployment can reach a person outside OpenBot. One appears only once it is set up where OpenBot runs: push is always there for browsers (web push, saveWebPushSubscription) and reaches phones once the OpenBot phone app''s project is set up, Slack and Microsoft Teams need the OpenTag pairing, and text messages need Twilio. A person''s settings keep their choice for one that is not, for when it is. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - notification-settings:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of the ways this deployment can reach people. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/NotificationTransportPage' examples: pushAndSlack: $ref: '#/components/examples/NotificationTransportPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/routines: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Routines operationId: listRoutines summary: List routines description: Return one page of the caller's own routines, newest first. A routine that runs a goal names it in goalId. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - routines:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of routines. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RoutinePage' examples: answer: $ref: '#/components/examples/RoutinePageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Routines operationId: createRoutine summary: Create a routine description: 'Create a routine owned by the caller: the Bot carries out the instruction on the schedule and posts in the conversation, which must be one the caller and the Bot share. With goalId it is the routine that runs that goal on a schedule. A person may have 20 routines switched on, and a routine runs at most once an hour. updateRoutine changes one. A repeated request with the same Idempotency-Key and body returns the first result.' security: - webSession: [] - appOAuth: - routines:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateRoutineRequest' examples: request: value: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 conversationId: 5f0c2a52-3f1e-4a55-9d0a-7f6d2b1c8e90 title: Morning brief instruction: Summarize my unread mail and today's calendar. cron: 0 9 * * 1-5 timezone: America/New_York responses: '201': description: The routine was created. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RoutineResponse' examples: answer: $ref: '#/components/examples/RoutineResponseExample' '400': $ref: '#/components/responses/InvalidRoutine' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/routines/read: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Routines operationId: readRoutineSentence summary: Read a sentence as a routine's answers description: 'Read a sentence in English as New routine''s answers: what the Bot does, when it starts, the schedule and what ends it. It writes nothing. createRoutine, createGoal or createCheckIn makes what it read. A repeated request with the same Idempotency-Key and body returns the first reading without asking the model again.' security: - webSession: [] - appOAuth: - routines:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RoutineSentence' examples: request: value: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 sentence: Summarize my unread mail every weekday at 9. timezone: America/New_York responses: '200': description: What the sentence says, or what is still missing from it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RoutineReading' examples: ready: value: outcome: ready draft: does: act instruction: Summarize my unread mail. title: Morning mail summary starts: schedule cron: 0 9 * * 1-5 timezone: America/New_York doneWhen: '' conversationId: null intervalMinutes: null needsMore: value: outcome: needsMore draft: does: act instruction: Summarize my unread mail. title: Mail summary starts: unsaid cron: null timezone: America/New_York doneWhen: '' conversationId: null intervalMinutes: null missing: time refused: value: outcome: refused detail: A routine can run at most every 15 minutes. fix: null notRoutine: value: outcome: notRoutine '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ModelFailed' '503': $ref: '#/components/responses/ModelNotConfigured' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/routines/{routineId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/RoutineId' patch: tags: - Routines operationId: updateRoutine summary: Change a routine description: 'Change one of the caller''s routines: its name, what the Bot does, its schedule or its time zone. Only the fields sent change. It keeps its id, its conversation and its runs. A new schedule or time zone follows the same rules as a new routine''s, and its next run is worked out from now. One that does not exist, or is somebody else''s, is not found. A repeated request with the same Idempotency-Key and body returns the first result.' security: - webSession: [] - appOAuth: - routines:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateRoutineRequest' examples: request: value: instruction: Summarize my unread mail, today's calendar and the weather. cron: 30 8 * * 1-5 responses: '200': description: The routine, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RoutineResponse' examples: answer: $ref: '#/components/examples/RoutineResponseExample' '400': $ref: '#/components/responses/InvalidRoutine' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/RoutineNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Routines operationId: deleteRoutine summary: Delete a routine description: Delete one of the caller's routines. It never runs again; what its runs already said stays in its conversation. One that does not exist, or is somebody else's, is not found. security: - webSession: [] - appOAuth: - routines:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The routine was deleted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/RoutineNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/routines/{routineId}/pause: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/RoutineId' post: tags: - Routines operationId: pauseRoutine summary: Pause a routine description: Switch one of the caller's routines off. A paused routine keeps its schedule and never runs, by the schedule or by Run now, until it is resumed. Pausing one that is paused already changes nothing. security: - webSession: [] - appOAuth: - routines:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The routine, paused. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RoutineSwitch' examples: answer: $ref: '#/components/examples/RoutineSwitchExample' '400': $ref: '#/components/responses/InvalidRoutine' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/RoutineNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/routines/{routineId}/resume: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/RoutineId' post: tags: - Routines operationId: resumeRoutine summary: Resume a routine description: Switch one of the caller's routines back on, from its next scheduled time. Refused when its goal is complete, when its time zone is one OpenBot does not know, or when the caller already has 20 routines switched on. security: - webSession: [] - appOAuth: - routines:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The routine, switched on. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RoutineSwitch' examples: answer: $ref: '#/components/examples/RoutineSwitchExample' '400': $ref: '#/components/responses/InvalidRoutine' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/RoutineNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/routines/{routineId}/run: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/RoutineId' post: tags: - Routines operationId: runRoutine summary: Run a routine now description: 'Start one run of the routine now. It does real work: the Bot carries out the instruction in the routine''s conversation exactly as a scheduled run would. Accepted, not finished: the run appears in the routine''s runs, and what the Bot says appears in the conversation. A paused routine is refused, and so is a second run while one is still open. Recorded on the audit trail.' security: - webSession: [] - appOAuth: - routines:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '202': description: The run was accepted. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RoutineRunAccepted' examples: answer: $ref: '#/components/examples/RoutineRunAcceptedExample' '400': $ref: '#/components/responses/InvalidRoutine' '401': $ref: '#/components/responses/Unauthenticated' '402': $ref: '#/components/responses/PlanRequired' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/RoutineNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/routines/{routineId}/runs: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/RoutineId' get: tags: - Routines operationId: listRoutineRuns summary: List a routine's runs description: 'Return one page of the routine''s newest runs, newest first: how each ended and what started it. What a run said is not kept here: it is in the routine''s conversation, where the Bot posted it. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - routines:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of runs. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RoutineRunPage' examples: answer: $ref: '#/components/examples/RoutineRunPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/RoutineNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/check-ins: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Check-ins operationId: listCheckIns summary: List check-ins description: Return one page of the caller's own check-ins, newest first, each with how its last check-in ended, and whether an administrator allows the caller's Bots to check in at all. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - check-ins:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of check-ins. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CheckInPage' examples: answer: $ref: '#/components/examples/CheckInPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Check-ins operationId: createCheckIn summary: Turn on a check-in description: Have a Bot check in for the caller on one thing, in a conversation they share. A check-in on a thing the Bot already watches (the same link, or the same subject) is turned back on with what was sent, which is what accepting a Bot's offer means. With refuseExisting=true that one is refused instead, for a screen that asked for a new one. A repeated request with the same Idempotency-Key and body returns the first result. security: - webSession: [] - appOAuth: - check-ins:write - apiKey: [] parameters: - name: refuseExisting in: query description: Refuse, with 409, a check-in on a thing the Bot already watches, instead of turning that one back on. schema: type: boolean default: false - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateCheckInRequest' examples: request: value: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 conversationId: 5f0c2a52-3f1e-4a55-9d0a-7f6d2b1c8e90 subject: Vendor contract renewal focus: Tell me when the vendor replies about the renewal. intervalMinutes: 1440 responses: '201': description: The check-in, on. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CheckInResponse' examples: answer: $ref: '#/components/examples/CheckInResponseExample' '400': $ref: '#/components/responses/InvalidCheckIn' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/CheckInConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/check-ins/{checkInId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CheckInId' patch: tags: - Check-ins operationId: updateCheckIn summary: Change a check-in description: 'Change one of the caller''s check-ins: pause or resume it with enabled, how often it runs, or what it looks for. Only the fields sent change.' security: - webSession: [] - appOAuth: - check-ins:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateCheckInRequest' examples: request: value: enabled: false responses: '200': description: The check-in, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CheckInResponse' examples: answer: $ref: '#/components/examples/CheckInResponseExample' '400': $ref: '#/components/responses/InvalidCheckIn' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/CheckInNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Check-ins operationId: deleteCheckIn summary: Remove a check-in description: Remove one of the caller's check-ins. The Bot stops looking; items it already raised stay until they are started or hidden. security: - webSession: [] - appOAuth: - check-ins:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The check-in was removed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/CheckInNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/check-ins/{checkInId}/run: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CheckInId' post: tags: - Check-ins operationId: runCheckIn summary: Run a check-in now description: Have the Bot check in now. The answer says whether it was queued, or skipped at once for the reason a scheduled check-in would have been skipped anyway. Refused when one is running already, or one ran in the last ten minutes. security: - webSession: [] - appOAuth: - check-ins:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: Queued, or skipped and why. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CheckInRunAnswer' examples: answer: $ref: '#/components/examples/CheckInRunAnswerExample' '400': $ref: '#/components/responses/InvalidCheckIn' '401': $ref: '#/components/responses/Unauthenticated' '402': $ref: '#/components/responses/PlanRequired' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/CheckInNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/check-in-items: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Check-ins operationId: listCheckInItems summary: List what check-ins found description: 'Return one page of the open items the caller''s Bots raised in their check-ins, newest first: what each is, why it was raised and where the Bot read it. Starting or hiding an item takes it off this list. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - check-ins:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of open items. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CheckInItemPage' examples: answer: $ref: '#/components/examples/CheckInItemPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/check-in-items/{checkInItemId}/start: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CheckInItemId' post: tags: - Check-ins operationId: startCheckInItem summary: Start an item as a task description: 'Start an item: its Bot takes it on as a task in a conversation of its own, as the caller''s own turn, so anything it sends or changes still asks first. Starting an item that was started already answers the task the first start opened. One that is no longer open, or is somebody else''s, is refused.' security: - webSession: [] - appOAuth: - check-ins:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The item, started, and the task it opened. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/StartedCheckInItem' examples: answer: $ref: '#/components/examples/StartedCheckInItemExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '402': $ref: '#/components/responses/PlanRequired' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/CheckInItemNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/check-in-items/{checkInItemId}/work-on: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CheckInItemId' post: tags: - Check-ins operationId: workOnCheckInItem summary: Work on an item description: 'Start an item the way this server takes work on. Where the server runs tasks in conversations of their own, it becomes a task, as startCheckInItem makes one, and `task` names it. Where it does not, no task and no conversation is made: the item is started, and `conversation` names the caller''s own conversation with the item''s Bot (made if they have none yet) and the message to send there as the caller''s own, so the Bot works on it in that conversation like any other request. One that is no longer open, or is somebody else''s, is refused.' security: - webSession: [] - appOAuth: - check-ins:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The item, started, with the task it became or the conversation to work on it in. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CheckInItemWork' examples: inConversation: $ref: '#/components/examples/CheckInItemWorkInConversationExample' asTask: $ref: '#/components/examples/CheckInItemWorkAsTaskExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '402': $ref: '#/components/responses/PlanRequired' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/CheckInItemNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/check-in-items/{checkInItemId}/dismiss: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CheckInItemId' post: tags: - Check-ins operationId: dismissCheckInItem summary: Hide an item description: Hide an item. It leaves the list, and later check-ins do not raise the same thing again for 30 days. One that is no longer open, or is somebody else's, is refused. security: - webSession: [] - appOAuth: - check-ins:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The item, hidden. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CheckInItemResponse' examples: answer: $ref: '#/components/examples/CheckInItemResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/CheckInItemNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/check-in-usage: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Check-ins operationId: getCheckInUsage summary: Read how check-ins are going description: 'Return, per Bot in the organization, over the last 7 or 30 days: how its check-ins ended, what they raised, what people did with it and how many notices carried it, with the organization''s daily limit in force. Counts only: no item''s title, source or person. Only an administrator of the organization may read it.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - check-ins:read - apiKey: [] parameters: - name: days in: query description: 'How many days back: 7 or 30.' schema: type: integer enum: - 7 - 30 default: 7 responses: '200': description: How check-ins are going. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CheckInUsage' examples: answer: $ref: '#/components/examples/CheckInUsageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Goals operationId: listGoals summary: List goals description: Return one page of the caller's own goals, newest first. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - goals:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of goals. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalPage' examples: answer: $ref: '#/components/examples/GoalPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Goals operationId: createGoal summary: Create a goal description: Create a goal owned by the caller, for a Bot to work toward in a conversation they share. A goal cannot both repeat and end when it is met, and one that ends when met needs success criteria. When the goal makes a shared app reachable in a new way, the answer says which apps an administrator approved or still has to. A repeated request with the same Idempotency-Key and body returns the first result. security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateGoalRequest' examples: request: value: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 conversationId: 5f0c2a52-3f1e-4a55-9d0a-7f6d2b1c8e90 title: Keep the release notes current instruction: After each merged pull request, add a line to the draft release notes. successCriteria: '' subscriptions: [] recurring: true responses: '201': description: The goal was created. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalResponse' examples: answer: $ref: '#/components/examples/GoalResponseExample' '400': $ref: '#/components/responses/InvalidGoal' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals/{goalId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GoalId' patch: tags: - Goals operationId: updateGoal summary: Change a goal description: Change one of the caller's goals. Only the fields sent change, and at least one must be sent. security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateGoalRequest' examples: request: value: title: Keep the release notes current responses: '200': description: The goal, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalResponse' examples: answer: $ref: '#/components/examples/GoalResponseExample' '400': $ref: '#/components/responses/InvalidGoal' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Goals operationId: deleteGoal summary: Delete a goal description: Delete one of the caller's goals, with its triggers and the routines that run it. security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The goal was deleted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals/{goalId}/pause: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GoalId' post: tags: - Goals operationId: pauseGoal summary: Pause a goal description: Pause one of the caller's goals. A paused goal never runs, whatever asks it to, until it is resumed. security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The goal, paused. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalResponse' examples: answer: $ref: '#/components/examples/GoalResponseExample' '400': $ref: '#/components/responses/InvalidGoal' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals/{goalId}/resume: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GoalId' post: tags: - Goals operationId: resumeGoal summary: Resume a goal description: Make one of the caller's goals active again. security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The goal, active. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalResponse' examples: answer: $ref: '#/components/examples/GoalResponseExample' '400': $ref: '#/components/responses/InvalidGoal' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals/{goalId}/complete: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GoalId' post: tags: - Goals operationId: completeGoal summary: Complete a goal description: Mark one of the caller's goals complete. A completed goal never runs again, and the routines that run it are switched off. security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The goal, completed. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalResponse' examples: answer: $ref: '#/components/examples/GoalResponseExample' '400': $ref: '#/components/responses/InvalidGoal' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals/{goalId}/run: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GoalId' post: tags: - Goals operationId: runGoal summary: Run a goal now description: 'Start one run of the goal now. It does real work. Accepted, not finished: the run appears in the goal''s runs with what the Bot said. A paused or completed goal is refused.' security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '202': description: The run was accepted. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalRunAccepted' examples: answer: $ref: '#/components/examples/GoalRunAcceptedExample' '400': $ref: '#/components/responses/InvalidGoal' '401': $ref: '#/components/responses/Unauthenticated' '402': $ref: '#/components/responses/PlanRequired' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals/{goalId}/runs: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GoalId' get: tags: - Goals operationId: listGoalRuns summary: List a goal's runs description: Return one page of the goal's newest runs, newest first, each with how it ended and what the Bot said. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - goals:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of runs. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalRunPage' examples: answer: $ref: '#/components/examples/GoalRunPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals/{goalId}/triggers: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GoalId' get: tags: - Goals operationId: listGoalTriggers summary: List a goal's triggers description: 'Return one page of the goal''s triggers, oldest first: the registered ways an outside event starts a run of it. Never a trigger''s secret. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - goals:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of triggers. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalTriggerPage' examples: answer: $ref: '#/components/examples/GoalTriggerPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Goals operationId: createGoalTrigger summary: Add a trigger to a goal description: 'Register a way for an outside event to start a run of the goal: a webhook, a GitHub, Linear, Sentry or PagerDuty delivery, an email, or a Slack message. For a webhook or GitHub trigger OpenBot makes the secret and answers it once, here; for the other providers the secret is the one pasted from the provider. When the trigger makes a shared app reachable in a new way, the answer says which apps an administrator approved or still has to.' security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateGoalTriggerRequest' examples: request: value: config: kind: webhook filter: eventTypes: [] responses: '201': description: The trigger, and its secret when OpenBot made one. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalTriggerWithSecret' examples: answer: $ref: '#/components/examples/GoalTriggerWithSecretExample' '400': $ref: '#/components/responses/InvalidGoal' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals/{goalId}/triggers/{goalTriggerId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GoalId' - $ref: '#/components/parameters/GoalTriggerId' patch: tags: - Goals operationId: updateGoalTrigger summary: Change a trigger description: 'Replace a trigger''s configuration: which events fire it. Its kind cannot change. When the change makes a shared app reachable in a new way, the answer says which apps an administrator approved or still has to.' security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateGoalTriggerRequest' examples: request: value: config: kind: webhook filter: eventTypes: - deploy responses: '200': description: The trigger, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalTriggerResponse' examples: answer: $ref: '#/components/examples/GoalTriggerResponseExample' '400': $ref: '#/components/responses/InvalidGoal' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalTriggerNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Goals operationId: deleteGoalTrigger summary: Remove a trigger description: Remove a trigger. Deliveries to its address are refused from then on. security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The trigger was removed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalTriggerNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals/{goalId}/triggers/{goalTriggerId}/enable: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GoalId' - $ref: '#/components/parameters/GoalTriggerId' post: tags: - Goals operationId: enableGoalTrigger summary: Switch a trigger on description: Switch a trigger on, so its deliveries start runs again. security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The trigger, on. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalTriggerResponse' examples: answer: $ref: '#/components/examples/GoalTriggerResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalTriggerNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals/{goalId}/triggers/{goalTriggerId}/disable: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GoalId' - $ref: '#/components/parameters/GoalTriggerId' post: tags: - Goals operationId: disableGoalTrigger summary: Switch a trigger off description: Switch a trigger off. It still acknowledges deliveries and never starts a run. security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The trigger, off. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalTriggerResponse' examples: answer: $ref: '#/components/examples/GoalTriggerResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalTriggerNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals/{goalId}/triggers/{goalTriggerId}/secret: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GoalId' - $ref: '#/components/parameters/GoalTriggerId' get: tags: - Goals operationId: getGoalTriggerSecret summary: Read a trigger's secret description: Return the secret a trigger's sender signs with, for its owner to copy into the sending service. Null for a kind that has none. Read on request and never cached. x-openbot-singleton: true security: - webSession: [] - appOAuth: - goals:write - apiKey: [] responses: '200': description: The secret. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalTriggerSecret' examples: answer: $ref: '#/components/examples/GoalTriggerSecretExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalTriggerNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/goals/{goalId}/triggers/{goalTriggerId}/replace-secret: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GoalId' - $ref: '#/components/parameters/GoalTriggerId' post: tags: - Goals operationId: replaceGoalTriggerSecret summary: Replace a trigger's secret description: Replace a trigger's secret. With no secret sent, OpenBot makes a new one for a webhook or GitHub trigger and answers it once; with one, it stores the secret pasted from the provider. The old secret stops working at once. security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/ReplaceGoalTriggerSecretRequest' examples: request: value: {} responses: '200': description: The trigger, and its new secret when OpenBot made one. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GoalTriggerWithSecret' examples: answer: $ref: '#/components/examples/GoalTriggerWithSecretExample' '400': $ref: '#/components/responses/InvalidGoal' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GoalTriggerNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/github-event-sources: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Goals operationId: listGithubEventSources summary: List GitHub event sources description: Return one page of the GitHub repositories whose events reach the caller's goals, oldest first. Never a webhook secret. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - goals:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of GitHub event sources. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GithubEventSourcePage' examples: answer: $ref: '#/components/examples/GithubEventSourcePageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Goals operationId: createGithubEventSource summary: Connect a GitHub repository's events description: 'Connect a GitHub repository''s webhook to the caller''s goals. The secret is the one set on the repository''s webhook: it is stored encrypted and never returned. The answer names the address to give GitHub.' security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateGithubEventSourceRequest' examples: request: value: repository: acme/storefront secret: example-secret responses: '201': description: The GitHub event source. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/GithubEventSourceResponse' examples: answer: $ref: '#/components/examples/GithubEventSourceResponseExample' '400': $ref: '#/components/responses/InvalidGoal' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/github-event-sources/{githubEventSourceId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/GithubEventSourceId' delete: tags: - Goals operationId: deleteGithubEventSource summary: Disconnect a GitHub repository's events description: Disconnect a GitHub repository's events and revoke its stored webhook secret. security: - webSession: [] - appOAuth: - goals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The source was disconnected. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/GithubEventSourceNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/follow-ups/{followUpId}/cancel: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - $ref: '#/components/parameters/FollowUpId' post: tags: - Follow-ups operationId: cancelFollowUp summary: Cancel a follow-up description: Cancel a follow-up a Bot scheduled for the caller, so the Bot does not come back to it. One that already ran, or was cancelled already, is not found. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The follow-up was cancelled. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/FollowUpCancelled' examples: answer: $ref: '#/components/examples/FollowUpCancelledExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/FollowUpNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/people/me/organizations: get: tags: - Organizations operationId: listOrganizations summary: List the caller's organizations description: 'Return one page of the organizations the caller is a member of, the one they joined first at the top, each with the caller''s role in it. active marks the one the caller''s session is working in, which is where every address outside /api/v2 reads and writes. A request signed in with an API key has no session, so none is active. An app''s token has no session either: for it, active marks the organization its OpenBot-Organization header names; when it sends none, the one the token was signed in to, while the caller is a member of it, else the caller''s own. The header is checked against the caller''s membership, as on every address that names no organization, so one they are not in answers not found. A session and an API key ignore it. To work in another one, set it as the session''s active organization (POST /api/auth/organization/set-active). Made with an app''s token, that call checks that the caller is a member, stores nothing and answers the organization. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - organizations:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' - name: OpenBot-Organization in: header required: false description: 'For a request signed in with an app''s token: the organization it works in, by id or slug, which the list marks active. Without it the caller''s own is active. One the caller is not a member of answers not found, and one that is not a single id or slug 400. Ignored for a session and an API key.' schema: type: string minLength: 1 maxLength: 200 responses: '200': description: One page of organizations. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OrganizationPage' examples: lastPage: $ref: '#/components/examples/OrganizationPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Organizations operationId: createOrganization summary: Create an organization description: 'Create an organization with the caller as its owner. It starts with what a fresh install starts with, its starter Bots included, and no conversations. Anybody signed in may make one where OpenBot keeps more than one organization. Where OpenBot gives everybody an organization of their own when they first sign in, as OpenBot Cloud does, this makes another; on a self-hosted install everybody already shares `default`, and this makes a further one beside it. An OpenBot may limit how many organizations one person owns, any of their own included: at the limit the request is refused with 403 and a detail saying so, and nothing is made. Deleting one they created makes room. While another of the caller''s requests is creating one, the request is refused with 409; send it again once that one has answered. Without a slug, one is made from the name. The caller''s session keeps working where it was. A repeated request with the same Idempotency-Key and body returns the first result.' security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateOrganizationRequest' examples: named: value: name: Acme Research slug: acme-research responses: '201': description: The organization was created. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OrganizationResponse' examples: created: $ref: '#/components/examples/CreatedOrganization' '400': $ref: '#/components/responses/InvalidOrganization' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OrganizationNotAllowed' '409': $ref: '#/components/responses/OrganizationConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/OrganizationNotCreated' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/members: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Organizations operationId: listOrganizationMembers summary: List an organization's members description: 'Return one page of the organization''s members, in the order they joined. Any member can read it. search narrows the list to the members whose name or address matches it, ignoring case, best matches first: those whose name, a word of their name (a first or a last name) or their address starts with it, then those whose name or address holds it, each group in alphabetical order of name, then address. A search finds only this organization''s current members: never somebody it removed, somebody turned away from this OpenBot, or a member of another organization only. A missing cursor starts at the first page and nextCursor null ends the list. A cursor belongs to the search that made it, so changing the search starts again without one.' security: - webSession: [] - appOAuth: - organizations:read - apiKey: [] parameters: - name: search in: query description: The start of a name, a first or last name, or an address, or a part of one, matched without regard to case. Leading and trailing spaces are ignored; empty lists everybody. schema: type: string maxLength: 200 pattern: ^[^\x00]*$ - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of members. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OrganizationMemberPage' examples: lastPage: $ref: '#/components/examples/OrganizationMemberPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/profile: parameters: - $ref: '#/components/parameters/OrganizationId' patch: tags: - Organizations operationId: updateOrganization summary: Rename an organization description: Give the organization a new name. Its id and its slug stay as they are, so every address that names it keeps working. An organization OpenBot named after its person stops following what that person is called once it has been renamed. Only an owner or an admin of this organization can. A repeated request with the same Idempotency-Key and body returns the first result. security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateOrganizationRequest' examples: renamed: value: name: Acme Research Lab responses: '200': description: The organization, renamed. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OrganizationResponse' examples: renamed: $ref: '#/components/examples/RenamedOrganization' '400': $ref: '#/components/responses/InvalidOrganization' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Organizations operationId: deleteOrganization summary: Delete an organization description: 'Delete the organization and what is in it. Nobody can work in it again: its Bots stop, its computers are removed, the API keys made in it stop working, and it leaves every member''s list of organizations. Its members keep their accounts and their other organizations. Only an owner of this organization can. A person''s own organization and `default` stay, and are refused. A repeated request with the same Idempotency-Key returns the first result.' security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The organization is deleted. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnerOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/OrganizationStays' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/OrganizationNotDeleted' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/members/{personId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' patch: tags: - Organizations operationId: updateOrganizationMember summary: Change a member's role description: 'Give a member of the organization another role. An owner or an admin changes anybody between admin and member. Only an owner makes somebody an owner, or changes an owner''s role, their own included, and the organization always keeps an owner: the last one cannot step down. A person''s own organization keeps exactly its one owner. The members list says which roles the caller may give each member, as assignableRoles. A repeated request with the same Idempotency-Key and body returns the first result.' security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateOrganizationMemberRequest' examples: owner: value: role: owner responses: '200': description: The member, with their new role. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OrganizationMemberResponse' examples: owner: $ref: '#/components/examples/PromotedOrganizationMember' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/PersonNotFound' '409': $ref: '#/components/responses/OwnerStays' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Organizations operationId: removeOrganizationMember summary: Remove a member, or leave an organization description: End somebody's membership of the organization. An owner or an admin of it can remove anybody whose membership can end, and any such member can leave by naming themselves or `me`. The owner stays, so nobody leaves their own organization, and so does somebody this OpenBot's settings keep as an admin of it. The person keeps their account and their other organizations, and what they made here stays here. Removing somebody who is not a member answers the same as removing one. security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: They are not a member. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/OwnerStays' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/invitations: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Organizations operationId: listOrganizationInvitations summary: List the invitations an organization has sent description: 'Return one page of the organization''s invitations that have not been accepted or canceled, the newest first: the ones still waiting, the ones that expired and the ones that were declined. Only an owner or an admin of this organization can read it. search narrows the list to the invitations whose address holds it, ignoring case; it finds only this organization''s invitations. A missing cursor starts at the first page and nextCursor null ends the list. A cursor belongs to the search that made it, so changing the search starts again without one.' security: - webSession: [] - appOAuth: - organizations:read - apiKey: [] parameters: - name: search in: query description: Part of an address, matched without regard to case. Leading and trailing spaces are ignored; empty lists every invitation. schema: type: string maxLength: 200 pattern: ^[^\x00]*$ - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of invitations. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OrganizationInvitationPage' examples: lastPage: $ref: '#/components/examples/OrganizationInvitationPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Organizations operationId: createOrganizationInvitation summary: Invite somebody to an organization description: 'Invite the person with this email address to join the organization with a role. They need no account yet: the invitation waits for whoever signs in with that address, and they see it in OpenBot then. Where OpenBot can send email, it also emails them; delivery says which happened, so the inviter knows whether to pass the link on themselves. The invitation lasts seven days. Inviting an address again after its invitation expired or was declined starts a new one. Only an owner or an admin of this organization can. An organization that pays for each member needs a free seat for the person: with none, the invitation is refused with SEAT_REQUIRED and addSeatUrl, and nothing is invited. A repeated request with the same Idempotency-Key and body returns the first result.' security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateOrganizationInvitationRequest' examples: member: value: email: sam.ortiz@acme.com role: member responses: '201': description: The invitation was made. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Location: description: The organization's invitations. schema: type: string example: /api/v2/organizations/Jq3xT9mLw2Vb8RnC5sYd0fKe/invitations X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OrganizationInvitationResponse' examples: invited: $ref: '#/components/examples/CreatedOrganizationInvitation' '400': $ref: '#/components/responses/InvalidOrganizationInvitation' '401': $ref: '#/components/responses/Unauthenticated' '402': $ref: '#/components/responses/SeatRequired' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/OrganizationInvitationConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/invitations/{invitationId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/InvitationId' delete: tags: - Organizations operationId: cancelOrganizationInvitation summary: Cancel an invitation description: Take back an invitation the organization sent, whatever state it is in. It leaves the organization's list and the invited person's. Only an owner or an admin of this organization can. security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The invitation is canceled. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationOrInvitationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/plan: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Organizations operationId: getOrganizationPlan x-openbot-singleton: true summary: Read an organization's plan description: 'Say whether this OpenBot needs an organization to be on a plan before its Bots run, and where this organization stands for the caller: on the free allowance with runs left, on the plan, behind on a payment, or needing a card. The free allowance is a number of runs each person gets, across every organization they are in, so freeRunsUsedPercent is the caller''s own. An OpenBot that needs no plan (every self-hosted install and OpenBot Desktop) answers not_required. Any member can read it. addCardUrl is where an owner or an admin goes, in the browser, to add a card and start or keep the plan; it is null for everyone else.' security: - webSession: [] - appOAuth: - organizations:read - apiKey: [] responses: '200': description: The organization's plan. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OrganizationPlan' examples: free: $ref: '#/components/examples/OrganizationPlanFree' freeRunsUsedUp: $ref: '#/components/examples/OrganizationPlanFreeRunsUsedUp' copilotKitEmployee: $ref: '#/components/examples/OrganizationPlanCopilotKitEmployee' active: $ref: '#/components/examples/OrganizationPlanActive' notRequired: $ref: '#/components/examples/OrganizationPlanNotRequired' trialing: $ref: '#/components/examples/OrganizationPlanTrialing' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/people/me/invitations: get: tags: - Organizations operationId: listInvitations summary: List the caller's invitations description: Return one page of the invitations sent to the caller's email address that they have not answered, the newest first, each with the organization and who invited them. One that ran out of time is listed as expired until it is canceled or replaced. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - organizations:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of invitations. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/InvitationPage' examples: lastPage: $ref: '#/components/examples/InvitationPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/people/me/invitations/{invitationId}: parameters: - $ref: '#/components/parameters/InvitationId' get: tags: - Organizations operationId: getInvitation summary: Read one of the caller's invitations description: Return an invitation sent to the caller's email address, in whatever state it is in, so the page a link opens can say what happened to it. An invitation sent to another address answers as one that does not exist. security: - webSession: [] - appOAuth: - organizations:read - apiKey: [] responses: '200': description: The invitation. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/InvitationResponse' examples: waiting: $ref: '#/components/examples/WaitingInvitation' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/InvitationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/people/me/invitations/{invitationId}/accept: parameters: - $ref: '#/components/parameters/InvitationId' post: tags: - Organizations operationId: acceptInvitation summary: Accept an invitation description: Join the organization the invitation is for, with the role it offers. The caller's session keeps working where it was; switch to the new organization to work in it. An invitation that expired, was canceled or was already answered is refused in words. A repeated request with the same Idempotency-Key returns the first result. security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The caller is now a member of the organization. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/OrganizationResponse' examples: joined: $ref: '#/components/examples/JoinedOrganization' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/InvitationNotFound' '409': $ref: '#/components/responses/InvitationNotWaiting' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/people/me/invitations/{invitationId}/decline: parameters: - $ref: '#/components/parameters/InvitationId' post: tags: - Organizations operationId: declineInvitation summary: Decline an invitation description: Turn the invitation down. It leaves the caller's list, and the organization sees that it was declined. A repeated request with the same Idempotency-Key returns the first result. security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The invitation is declined. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/InvitationNotFound' '409': $ref: '#/components/responses/InvitationNotWaiting' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/people/me/account-deletion: get: tags: - People operationId: getAccountDeletion summary: Read what stops the caller's account being deleted description: 'Return what stops the caller''s account being deleted now, and whether a deletion they confirmed is still finishing. An account belongs to the person, not to an organization, so this sits outside every organization''s address. blockers lists each organization the person has to deal with first, as GitHub does: one where they are the only owner (only_owner), which they hand to another owner or delete, and one where they are an owner beside others (owner_must_leave), which they leave, and one with no owner where they are the only admin (only_admin, as a self-hosted OpenBot''s one organization is run), where they make another member an admin. Other memberships end with the account and block nothing; so does the person''s own organization when they are its only member. status is deleting only when a deletion stopped partway (the server was interrupted): the server finishes it on its own, and requestAccountDeletion finishes it at once. While it is deleting, every other operation answers 403 with the code ACCOUNT_PENDING_DELETION; this one and requestAccountDeletion still answer, and so do listOrganizations and getPerson for the person themselves, so an app opened afresh knows who they are. Only the person themselves may read it, signed in to OpenBot or its app, never with an API key.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - people:read responses: '200': description: Where deleting the account stands. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/AccountDeletion' examples: blocked: $ref: '#/components/examples/AccountDeletionBlockedExample' clear: $ref: '#/components/examples/AccountDeletionClearExample' deleting: $ref: '#/components/examples/AccountDeletionDeletingExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AccountDeletionSignInOnly' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - People operationId: requestAccountDeletion summary: Delete the caller's account description: 'Delete the caller''s account now, in this request. There is no wait and nothing to cancel: when it answers 200 the account is gone, with every sign-in, API key and app sign-in it had, and nothing of the person''s is kept to restore it. Their conversations nobody else is in, memory, Bots nobody else uses, skills, routines, saved logins, connections, files and computers are deleted for good. What other people still need stays without their name: what they said in conversations others are in, shown as from Deleted user; a Bot others use, which passes to the organization''s owner; and the organization''s security log, kept for 180 days. The person confirms by sending the email address they sign in with and the words delete my account, both typed by them, with immediate true; either one missing or wrong is refused with 422 and deletes nothing. A request without immediate true is an app from before deleting was immediate, whose person may have chosen a 14-day wait: it is refused with 422 and the code ACCOUNT_DELETION_NOT_CONFIRMED, saying to update OpenBot, and deletes nothing. The session must have signed in within the last 10 minutes: an older one is refused with 403 and the code REAUTHENTICATE, and the apps send the person through sign-in again. An organization that blocks it (getAccountDeletion''s blockers) refuses it with 409 and the code ACCOUNT_DELETION_BLOCKED, listing them. Safe to send again: a deletion that stopped partway answers 503 with the code ACCOUNT_DELETION_INCOMPLETE, and sending it again (or the server, on its own) finishes it from where it stopped. While another request is deleting the account it answers 409 with the code ACCOUNT_DELETION_UNDER_WAY; send it again in a moment. An answer lost on the way back is followed by 401 on the next request, because the account is gone. Only the person themselves may do this, signed in to OpenBot or its app, never with an API key.' security: - webSession: [] - appOAuth: - people:write parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RequestAccountDeletionRequest' examples: confirmed: value: confirmEmail: dana@acme.com confirmPhrase: delete my account immediate: true responses: '200': description: The account is deleted. Every sign-in it had has ended, so the app signs out and goes to sign-in. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/DeletedAccount' examples: deleted: value: status: deleted '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AccountDeletionForbidden' '409': $ref: '#/components/responses/AccountDeletionConflict' '422': $ref: '#/components/responses/AccountDeletionNotConfirmed' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/AccountDeletionIncomplete' default: $ref: '#/components/responses/UnexpectedError' /api/v2/people/me/account-deletion/cancel: post: tags: - People operationId: cancelAccountDeletion summary: Cancel deleting the caller's account (deprecated) deprecated: true x-deprecation-date: '2026-11-30' x-sunset: '2027-12-01' description: 'Deprecated: deleting an account is immediate, so there is nothing to cancel. Kept for apps from 1.2.1 to 1.2.3, whose page for a deletion still finishing offers Cancel deletion. It always answers 409 with the code ACCOUNT_DELETION_UNDER_WAY and changes nothing; such an app shows the answer''s words. Use requestAccountDeletion to finish a deletion that stopped partway. Only the person themselves may call it, signed in to OpenBot or its app, never with an API key.' security: - webSession: [] - appOAuth: - people:write parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AccountDeletionSignInOnly' '409': $ref: '#/components/responses/AccountDeletionUnderWay' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/teams: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Teams operationId: listTeams summary: List an organization's teams description: Return one page of the organization's teams, in the order they were created. Any member of the organization can read it. Each team says the caller's own role in it and whether the caller may manage it. search narrows the list to the teams whose name holds it, ignoring case; it finds only this organization's teams. A missing cursor starts at the first page and nextCursor null ends the list. A cursor belongs to the search that made it, so changing the search starts again without one. security: - webSession: [] - appOAuth: - organizations:read - apiKey: [] parameters: - name: search in: query description: Part of a team's name, matched without regard to case. Leading and trailing spaces are ignored; empty lists every team. schema: type: string maxLength: 200 pattern: ^[^\x00]*$ - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of teams. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TeamPage' examples: lastPage: $ref: '#/components/examples/TeamPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Teams operationId: createTeam summary: Create a team description: Create a team in the organization. Only an owner or an admin of the organization can. A team's name is unique in its organization, whatever its case. A team may sit under a parent team, and then its members can use everything granted to the parent as well. A repeated request with the same Idempotency-Key and body returns the first result. security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateTeamRequest' examples: named: value: name: Sales description: Everybody who sells. responses: '201': description: The team was created. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Location: description: The new team. schema: type: string example: /api/v2/organizations/default/teams/Tm4Qx8LpV2nWc7RbY1sKd0Ze X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TeamResponse' examples: created: $ref: '#/components/examples/CreatedTeam' '400': $ref: '#/components/responses/InvalidTeam' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/TeamConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/teams/{teamId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/TeamId' get: tags: - Teams operationId: getTeam summary: Read one team description: Return one of the organization's teams. Any member of the organization can read it. A team of another organization is not found. security: - webSession: [] - appOAuth: - organizations:read - apiKey: [] responses: '200': description: The team. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TeamResponse' examples: team: $ref: '#/components/examples/CreatedTeam' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/TeamNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Teams operationId: updateTeam summary: Change a team description: Change a team's name, its description or its parent team; a field that is absent stays as it is, and a null parent takes the team out from under its parent. An owner or an admin of the organization can, and so can one of the team's maintainers, except that only an owner or an admin changes its parent. A team that comes from the company's directory keeps the directory's name. A team can't be put under itself or under a team beneath it. security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateTeamRequest' examples: renamed: value: name: Sales EMEA responses: '200': description: The team as it now is. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TeamResponse' examples: changed: $ref: '#/components/examples/CreatedTeam' '400': $ref: '#/components/responses/InvalidTeam' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/TeamForbidden' '404': $ref: '#/components/responses/TeamNotFound' '409': $ref: '#/components/responses/TeamConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Teams operationId: deleteTeam summary: Delete a team description: Delete a team. Its members stay in the organization and lose what was granted to the team, at once. Teams under it move up to its own parent. Only an owner or an admin of the organization can. A team that comes from the company's directory is removed there, not here. Deleting a team that is not there changes nothing. security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The team is gone. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/TeamForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/teams/{teamId}/members: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/TeamId' get: tags: - Teams operationId: listTeamMembers summary: List a team's members description: 'Return one page of the people in a team, in the order they joined it. Any member of the organization can read it. People who are only in a team beneath this one are not listed, and nor is anybody who is not a member of the organization now: somebody removed from it is listed again once they are restored. search narrows the list to the people whose address or name holds it, ignoring case. A missing cursor starts at the first page and nextCursor null ends the list. A cursor belongs to the search that made it, so changing the search starts again without one.' security: - webSession: [] - appOAuth: - organizations:read - apiKey: [] parameters: - name: search in: query description: Part of an address or a name, matched without regard to case. Leading and trailing spaces are ignored; empty lists everybody. schema: type: string maxLength: 200 pattern: ^[^\x00]*$ - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of the team's members. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TeamMemberPage' examples: lastPage: $ref: '#/components/examples/TeamMemberPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/TeamNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/teams/{teamId}/members/{memberId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/TeamId' - $ref: '#/components/parameters/TeamMemberId' put: tags: - Teams operationId: putTeamMember summary: Add a person to a team, or change their role in it description: Put a member of the organization in the team with a role, or change the role of somebody already in it. What is granted to the team is theirs from their next request. An owner or an admin of the organization can, and so can one of the team's maintainers. A team that comes from the company's directory takes its people from the directory, so nobody is added to it here. security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutTeamMemberRequest' examples: member: value: role: member responses: '200': description: The person as a member of the team. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TeamMemberResponse' examples: added: $ref: '#/components/examples/AddedTeamMember' '400': $ref: '#/components/responses/InvalidTeamMember' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/TeamForbidden' '404': $ref: '#/components/responses/TeamOrPersonNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Teams operationId: removeTeamMember summary: Take a person out of a team description: Take a person out of the team. They stay in the organization and lose what was granted to the team from their next request. An owner or an admin of the organization can, so can one of the team's maintainers, and anybody can take themselves out. A team that comes from the company's directory takes its people from the directory, so nobody is removed from it here. Removing somebody who is not in the team changes nothing. security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: They are not in the team. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/TeamForbidden' '404': $ref: '#/components/responses/TeamNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/teams/{teamId}/models: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/TeamId' get: tags: - Teams operationId: getTeamModels summary: Read which models a team's people may run description: 'Return the models a team allows its people to run, or null when the team sets none. A person in teams with lists may run any model one of those lists names (their teams'' parents'' lists included), within what the organization allows: its model allowlist when that narrows anything, otherwise every model. A team with no list sets nothing, and a person in no team with a list runs what the organization allows. Admins and owners are held to it like anyone else. Any member of the organization can read it. A team of another organization is not found.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - organizations:read - apiKey: [] responses: '200': description: The team's models, or that it sets none. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TeamModels' examples: limited: $ref: '#/components/examples/LimitedTeamModels' none: $ref: '#/components/examples/NoTeamModels' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/TeamNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Teams operationId: replaceTeamModels summary: Set which models a team's people may run description: 'Replace the models a team allows its people to run. At least one, each one the organization''s model catalogue offers (getModelCatalogue with view=all), named as the organization''s model allowlist names models: provider/model. A model the organization''s allowlist leaves out may be listed, and runs only once the organization allows it too. From the next request, the team''s people (and the people of the teams beneath it) run only models one of their teams allows. Only an owner or an admin of the organization can, for a team made here or one from the company''s directory alike. A repeated request with the same Idempotency-Key and body returns the first result.' security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/TeamModelsInput' examples: two: value: models: - openai/gpt-5.6-terra - anthropic/claude-sonnet-5 responses: '200': description: The team's models, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TeamModels' examples: limited: $ref: '#/components/examples/LimitedTeamModels' '400': $ref: '#/components/responses/InvalidTeamModels' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/TeamModelsAdminOnly' '404': $ref: '#/components/responses/TeamNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Teams operationId: deleteTeamModels summary: Stop limiting a team's models description: Clear a team's models, so the team sets none again and its people run what their other teams and the organization allow. Only an owner or an admin of the organization can. Clearing a team that sets none changes nothing. security: - webSession: [] - appOAuth: - organizations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The team sets no models. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/TeamModelsAdminOnly' '404': $ref: '#/components/responses/TeamNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/approvals: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Approvals operationId: listApprovals summary: List a person's approvals description: 'Return one page of the actions a person''s Bots asked them about before running: the ones still waiting, and the recent ones already decided, newest first, up to the last hundred. What an action was called with is cut short for showing, with values that look like secrets masked. Only the person themselves may read them. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - approvals:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of approvals. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalPage' examples: waiting: $ref: '#/components/examples/ApprovalPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/approvals/{approvalId}/decide: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/ApprovalId' post: tags: - Approvals operationId: decideApproval summary: Decide an approval description: 'Answer one waiting action: allow it once, for the rest of its conversation, or always; deny it; or, for an action handed to the person, say they did it themselves. An allowed action runs once and its conversation carries on. Always allowing saves a rule of the person''s own, which needs the Custom rules switch. An action the organization set to ask every time, or one a task started from a check-in asked about, takes allow_once or deny only. An approval already decided is refused. Recorded on the audit trail. Only the person themselves may decide it.' security: - webSession: [] - appOAuth: - approvals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/DecideApprovalRequest' examples: allowOnce: value: decision: allow_once responses: '200': description: The approval, as decided. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Approval' examples: allowedOnce: $ref: '#/components/examples/ApprovalDecidedExample' '400': $ref: '#/components/responses/ApprovalRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsForbidden' '404': $ref: '#/components/responses/ApprovalNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/questions: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Approvals operationId: listQuestions summary: List the questions a person's Bots asked description: Return one page of the questions a person's Bots asked them and still wait on, newest first, up to the last hundred. Only the person themselves may read them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - approvals:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of questions. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/QuestionPage' examples: waiting: $ref: '#/components/examples/QuestionPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/questions/{questionId}/respond: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/QuestionId' post: tags: - Approvals operationId: respondToQuestion summary: Answer a Bot's question description: 'Answer a question a Bot asked, so the work that asked carries on with the answer. Sent from the open conversation (inConversation), a question the person''s own turn asked is closed and that conversation runs the answer as its next turn: continueHere says which happened. A question already answered is refused. Only the person themselves may answer it.' security: - webSession: [] - appOAuth: - approvals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RespondToQuestionRequest' examples: answer: value: response: Q4, please. responses: '200': description: The question was answered. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/QuestionAnswer' examples: queued: $ref: '#/components/examples/QuestionAnswerExample' '400': $ref: '#/components/responses/ApprovalRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsOwnOnly' '404': $ref: '#/components/responses/QuestionNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/questions/{questionId}/dismiss: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/QuestionId' post: tags: - Approvals operationId: dismissQuestion summary: Put a Bot's question down unanswered description: Stop a question waiting on the person without answering it. The work that asked has already ended, so nothing is carried on and the Bot is told nothing. Only the person themselves may dismiss it. security: - webSession: [] - appOAuth: - approvals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The question no longer waits. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsOwnOnly' '404': $ref: '#/components/responses/QuestionNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/approval-preferences: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Approvals operationId: getApprovalPreferences summary: Read a person's approval preferences description: 'Return what a person set for themselves about asking: whether their Bots ask before making changes, whether the reviewer decides what is safe, and commands on their own computer, with that last one as it applies after the organization''s limit. A person who never chose reads the defaults. Only the person themselves may read them.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - approvals:read - apiKey: [] responses: '200': description: The person's approval preferences. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalPreferences' examples: asks: $ref: '#/components/examples/ApprovalPreferencesExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Approvals operationId: updateApprovalPreferences summary: Change a person's approval preferences description: Change the preferences sent and keep the rest. At least one is required. Turning asking off closes the approvals that were only waiting because of it, and their conversations carry on. Recorded on the audit trail. Needs the Custom rules switch. Only the person themselves may change them. security: - webSession: [] - appOAuth: - approvals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateApprovalPreferencesRequest' examples: askFirst: value: enabled: true responses: '200': description: Every approval preference, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalPreferences' examples: asks: $ref: '#/components/examples/ApprovalPreferencesExample' '400': $ref: '#/components/responses/ApprovalRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/approval-rules: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Approvals operationId: listPersonApprovalRules summary: List a person's own approval rules description: Return one page of the rules a person saved for their own Bots' actions, newest first. The organization's rules (listApprovalRules) come ahead of them. Only the person themselves may read them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - approvals:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of the person's rules. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonApprovalRulePage' examples: one: $ref: '#/components/examples/PersonApprovalRulePageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Approvals operationId: createPersonApprovalRule summary: Save an approval rule of a person's own description: 'Save a rule for the person''s own Bots: which Bot, tool, effect and target it covers, each an exact value or a pattern, and what happens to an action it covers. A rule that allows closes the approvals it now covers that were only waiting on the person, and their conversations carry on. Recorded on the audit trail. Needs the Custom rules switch, and is refused while the organization has switched people''s own rules off. Only the person themselves may save one.' security: - webSession: [] - appOAuth: - approvals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ApprovalRuleInput' examples: allowGmail: value: toolRef: mcp/gmail/send_email behaviour: allow responses: '201': description: The rule was saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Location: description: The new rule's address. schema: type: string example: /api/v2/organizations/default/people/me/approval-rules/1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonApprovalRule' examples: saved: $ref: '#/components/examples/PersonApprovalRuleExample' '400': $ref: '#/components/responses/ApprovalRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/approval-rules/{approvalRuleId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/ApprovalRuleId' patch: tags: - Approvals operationId: updatePersonApprovalRule summary: Change an approval rule of a person's own description: Change the fields sent on one of the person's own rules and keep the rest. At least one is required. Recorded on the audit trail. Needs the Custom rules switch, and is refused while the organization has switched people's own rules off. Only the person themselves may change it. security: - webSession: [] - appOAuth: - approvals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ApprovalRuleChange' examples: ask: value: behaviour: ask responses: '200': description: The rule, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonApprovalRule' examples: saved: $ref: '#/components/examples/PersonApprovalRuleExample' '400': $ref: '#/components/responses/ApprovalRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsForbidden' '404': $ref: '#/components/responses/ApprovalRuleNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Approvals operationId: deletePersonApprovalRule summary: Remove an approval rule of a person's own description: Remove one of the person's own rules, so the actions it covered are decided without it. Recorded on the audit trail. Only the person themselves may remove it. security: - webSession: [] - appOAuth: - approvals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The rule was removed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsOwnOnly' '404': $ref: '#/components/responses/ApprovalRuleNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/conversation-grants: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Approvals operationId: listConversationGrants summary: List what a person allowed for a conversation description: Return one page of the person's "Allow for this conversation" answers still in force, in every conversation, newest first, up to the last hundred. One ends when the person turns it off or deletes its conversation. Only the person themselves may read them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - approvals:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of conversation approvals. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConversationGrantPage' examples: one: $ref: '#/components/examples/ConversationGrantPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/conversation-grants/{conversationGrantId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/ConversationGrantId' delete: tags: - Approvals operationId: deleteConversationGrant summary: Turn off what a person allowed for a conversation description: Turn off one "Allow for this conversation", so the next such action in that conversation asks again. Recorded on the audit trail. Only the person themselves may turn it off. security: - webSession: [] - appOAuth: - approvals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: It was turned off. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsOwnOnly' '404': $ref: '#/components/responses/ConversationGrantNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/approval-modes/{conversationId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/ApprovalConversationId' get: tags: - Approvals operationId: getApprovalMode summary: Read how a conversation asks description: Say whether one of the person's conversations asks before every step, which the conversation of a task started from a check-in does, whatever the person's rules say. A client asks before it sends a Bot's look at a page straight to the computer. Anybody else's conversation, and one that does not exist, reads as one that does not. Only the person themselves may ask. security: - webSession: [] - appOAuth: - approvals:read - apiKey: [] responses: '200': description: How the conversation asks. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalMode' examples: ordinary: $ref: '#/components/examples/ApprovalModeExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/computer-steps: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Approvals operationId: runComputerStep summary: Take a step on a Bot's computer, asking first when it must description: 'Run one computer action a Bot called from the person''s open conversation, through the same approval rules every other action goes through. The body names the Bot and carries the conversation with the unanswered call in it. The answer says what came of it: done, with what the computer answered; waiting, when the person must approve it first, and then the decision runs it once and carries the conversation on; held, when the computer is held for a person, with what to tell them; or taken, when the server already ran, or is running, this step (the same tool call in the same conversation), so it is not run a second time, with the first run''s result once it has one. Only computer tools may be called this way, and the call must match an unanswered one in the conversation. Only the person themselves may take a step.' security: - webSession: [] - appOAuth: - approvals:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerStepRequest' examples: click: value: botId: research-assistant conversation: runId: run_41c7 threadId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 toolCallId: call_8c1f toolName: computer_click args: ref: e12 messages: - id: msg_1 role: user content: Open the report. - id: msg_2 role: assistant toolCalls: - id: call_8c1f type: function function: name: computer_click arguments: '{"ref":"e12"}' context: [] responses: '200': description: What came of the step. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerStepOutcome' examples: done: $ref: '#/components/examples/ComputerStepDoneExample' waiting: $ref: '#/components/examples/ComputerStepWaitingExample' held: $ref: '#/components/examples/ComputerStepHeldExample' taken: $ref: '#/components/examples/ComputerStepTakenExample' takenRunning: $ref: '#/components/examples/ComputerStepTakenRunningExample' '400': $ref: '#/components/responses/ApprovalRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/approval-settings: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Approval rules operationId: getApprovalSettings summary: Read the organization's approval settings description: 'Return what the organization decides about asking, for everybody: whether the reviewer reads every action, whether people may save rules of their own, the most a person may allow for commands on their own computer, and what people may do about each kind of action OpenBot asks about by name. Everybody in the organization may read them, because they decide what each person''s own choices come to.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - approval-rules:read - apiKey: [] responses: '200': description: The organization's approval settings. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalSettings' examples: payments: $ref: '#/components/examples/ApprovalSettingsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Approval rules operationId: updateApprovalSettings summary: Change the organization's approval settings description: Change the settings sent and keep the rest, one kind of action at a time. At least one is required. Setting a kind to ask leaves allow once and deny as its only answers, for everybody; hand_off leaves it to the person. Recorded on the audit trail. Only an administrator may change them. security: - webSession: [] - appOAuth: - approval-rules:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateApprovalSettingsRequest' examples: closePayments: value: actionKinds: payments: hand_off responses: '200': description: Every approval setting, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalSettings' examples: payments: $ref: '#/components/examples/ApprovalSettingsExample' '400': $ref: '#/components/responses/ApprovalRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/approval-rules: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Approval rules operationId: listApprovalRules summary: List the organization's approval rules description: Return one page of the rules the organization set for everybody's Bots' actions, newest first. They come ahead of a person's own rules. Everybody in the organization may read them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - approval-rules:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of the organization's rules. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalRulePage' examples: one: $ref: '#/components/examples/ApprovalRulePageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Approval rules operationId: createApprovalRule summary: Save an approval rule for the organization description: 'Save a rule for everybody''s Bots: which Bot, tool, effect and target it covers, each an exact value or a pattern, and what happens to an action it covers. The audit trail records the rule, and the organization''s rules before and after. Only an administrator may save one.' security: - webSession: [] - appOAuth: - approval-rules:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ApprovalRuleInput' examples: askGmail: value: toolRef: mcp/gmail/* behaviour: ask responses: '201': description: The rule was saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Location: description: The new rule's address. schema: type: string example: /api/v2/organizations/default/approval-rules/7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalRule' examples: saved: $ref: '#/components/examples/ApprovalRuleExample' '400': $ref: '#/components/responses/ApprovalRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/approval-rules/{approvalRuleId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ApprovalRuleId' patch: tags: - Approval rules operationId: updateApprovalRule summary: Change an approval rule of the organization's description: Change the fields sent on one of the organization's rules and keep the rest. At least one is required. The audit trail records the change, and the organization's rules before and after. Only an administrator may change one. security: - webSession: [] - appOAuth: - approval-rules:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ApprovalRuleChange' examples: handOff: value: behaviour: hand_off responses: '200': description: The rule, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalRule' examples: saved: $ref: '#/components/examples/ApprovalRuleExample' '400': $ref: '#/components/responses/ApprovalRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/ApprovalRuleNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Approval rules operationId: deleteApprovalRule summary: Remove an approval rule of the organization's description: Remove one of the organization's rules, so the actions it covered are decided without it. The audit trail records the removal, and the organization's rules before and after. Only an administrator may remove one. security: - webSession: [] - appOAuth: - approval-rules:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The rule was removed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/ApprovalRuleNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/approval-rules/translate: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Approval rules operationId: translateApprovalRules summary: Write approval rules from a description description: Turn a description in English into approval rules for the organization, written by the deployment's model and checked against the tools, kinds of action and Bots this OpenBot has. Rules that check are read back by a second call that never saw the description, so the explanation says what they do, not what was asked for. Nothing is saved. The audit trail records the description and what it became. Only an administrator may ask. security: - webSession: [] - appOAuth: - approval-rules:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ApprovalRuleDraftDescription' examples: salesforce: value: text: Ask before any Bot changes anything in Salesforce. responses: '200': description: The proposed rules, whether they check, and what they do. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalRuleDraftTranslation' examples: answer: $ref: '#/components/examples/ApprovalRuleDraftTranslationExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ModelFailed' '503': $ref: '#/components/responses/ModelNotConfigured' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/approval-rules/replay: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Approval rules operationId: replayApprovalRules summary: Test approval rules against what Bots already did description: 'Say what candidate rules would have changed about the actions the approval gate already decided, without saving them: the asks they would remove, the asks they would add, and the actions whose answer no rule changes. Also says whether the rules check against this OpenBot''s tools and Bots. Only an administrator may ask.' security: - webSession: [] - appOAuth: - approval-rules:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ApprovalRuleDraftReplayInput' examples: salesforce: value: rules: - botId: '*' toolRef: composio-salesforce/* effect: write scope: composio-salesforce behaviour: allow responses: '200': description: Whether the rules check, and what they would have changed. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalRuleDraftReplay' examples: answer: $ref: '#/components/examples/ApprovalRuleDraftReplayExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/NoTrailToReplay' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/approval-rules/batch-create: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Approval rules operationId: batchCreateApprovalRules summary: Save several approval rules as one change description: 'Add several rules to the organization''s approval rules together. Every rule is checked first against this OpenBot''s tools, kinds of action and Bots, and none is saved unless all of them check: a rule that matches nothing would read as protection and protect nothing. The audit trail records the save once, with the rules before and after and the sentence they were written from when they were described in English. Only an administrator may save them.' security: - webSession: [] - appOAuth: - approval-rules:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ApprovalRuleDraftBatch' examples: described: value: rules: - botId: '*' toolRef: composio-salesforce/* effect: write scope: composio-salesforce behaviour: ask authoring: source: english text: Ask before any Bot changes anything in Salesforce. responses: '201': description: The rules, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalRuleDraftSavedRules' examples: answer: $ref: '#/components/examples/ApprovalRuleDraftSavedRulesExample' '400': $ref: '#/components/responses/InvalidApprovalRuleDrafts' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/reviewer-guidance: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Reviewer guidance operationId: getReviewerGuidance summary: Read the guidance for auto-review description: Return the guidance an administrator wrote for auto-review, as it is in force now, or null when there is none. Only an administrator may read it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - approval-rules:read - apiKey: [] responses: '200': description: The guidance in force, or null. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ReviewerGuidance' examples: guidance: $ref: '#/components/examples/ReviewerGuidanceExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Reviewer guidance operationId: replaceReviewerGuidance summary: Save the guidance for auto-review description: 'Save the guidance auto-review reads, in place of any saved before. The words are read again by the deployment''s model on every save, by a call given nothing else, and refused unless they still read as guidance about reviewing a Bot''s actions: words that try to switch built-in safety off, or that are about something else, are not saved. The audit trail records the words before and after and how they were read. Only an administrator may save it.' security: - webSession: [] - appOAuth: - approval-rules:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ReviewerGuidanceInput' examples: deals: value: text: Ask before any Bot changes a deal worth over $100,000. responses: '200': description: The guidance, as saved, and how it was read. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ReviewerGuidanceSaved' examples: answer: $ref: '#/components/examples/ReviewerGuidanceSavedExample' '400': $ref: '#/components/responses/ReviewerGuidanceRefused' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ModelFailed' '503': $ref: '#/components/responses/ModelNotConfigured' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Reviewer guidance operationId: deleteReviewerGuidance summary: Remove the guidance for auto-review description: Remove the guidance, so auto-review reads only its own instructions again. Recorded on the audit trail. Only an administrator may remove it. security: - webSession: [] - appOAuth: - approval-rules:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: There is no guidance now. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/reviewer-guidance/check: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Reviewer guidance operationId: checkReviewerGuidance summary: Check guidance for auto-review before saving it description: Read words an administrator means to save as guidance, with the deployment's model, in a call given the words and nothing else. The answer says what auto-review would do differently, and whether the words read as guidance at all. Nothing is saved. Only an administrator may ask. security: - webSession: [] - appOAuth: - approval-rules:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ReviewerGuidanceInput' examples: deals: value: text: Ask before any Bot changes a deal worth over $100,000. responses: '200': description: How the words read, and whether they can be saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ReviewerGuidanceReading' examples: answer: $ref: '#/components/examples/ReviewerGuidanceReadingExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ModelFailed' '503': $ref: '#/components/responses/ModelNotConfigured' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/reviewer-guidance/replay: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Reviewer guidance operationId: getReviewerGuidanceReplaySample summary: Count the requests a replay of the guidance would cover description: Say how many of the requests people decided lately a replay would cover, and so how many model calls it would make, without making any. Requests a built-in safety requirement decides first are passed over and counted apart. Only an administrator may ask. x-openbot-singleton: true security: - webSession: [] - appOAuth: - approval-rules:read - apiKey: [] parameters: - $ref: '#/components/parameters/ReviewerGuidanceReplaySize' responses: '200': description: How many requests a replay would cover. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ReviewerGuidanceReplaySample' examples: answer: value: calls: 25 skippedSafety: 3 '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/NoTrailToReplay' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Reviewer guidance operationId: replayReviewerGuidance summary: Test guidance for auto-review against recent requests description: 'Run auto-review, with these words as its guidance, over the newest requests people decided, and set what it would have done against what each person did: where it agrees, what it would have let through that a person denied, and what it would have asked about that a person allowed. One model call a request. Nothing is saved. Only an administrator may ask.' security: - webSession: [] - appOAuth: - approval-rules:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ReviewerGuidanceReplayInput' examples: deals: value: text: Ask before any Bot changes a deal worth over $100,000. responses: '200': description: What auto-review would have done, beside what people did. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ReviewerGuidanceReplay' examples: answer: $ref: '#/components/examples/ReviewerGuidanceReplayExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ReviewerGuidanceReplayUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/boundaries: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Boundaries operationId: getBoundaries summary: Read the boundaries description: 'Return the boundaries in force: the mode, the deny rules, the allow rules, and each rule''s name and description. Only an administrator may read them.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - boundaries:read - apiKey: [] responses: '200': description: The boundaries in force. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Boundaries' examples: boundaries: $ref: '#/components/examples/BoundariesExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Boundaries operationId: replaceBoundaries summary: Set the boundaries description: 'Replace the boundaries whole: the mode and both lists of rules, in the order given. Every rule added must be one OpenBot can evaluate, so a rule with a mistake in it is refused and nothing is saved. The new boundaries apply to every Bot''s next action. The audit trail records who changed them, the rules added and removed, and the sentence a rule was written from when it was described in English. Only an administrator may set them.' security: - webSession: [] - appOAuth: - boundaries:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BoundariesInput' examples: oneRule: value: mode: enforce deny: - intent == "run_command" && initiator.kind != "person" allow: - 'true' labels: intent == "run_command" && initiator.kind != "person": name: No commands when nobody is watching description: Stops a Bot running a shell command in a run nobody started by hand. responses: '200': description: The boundaries, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Boundaries' examples: boundaries: $ref: '#/components/examples/BoundariesExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/BoundariesNotSaved' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/boundaries/translate: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Boundaries operationId: translateBoundary summary: Write a boundary rule from a description description: Turn a description in English into one rule, written by the deployment's model and checked as a save would check it. A second call that never sees the description reads the rule back, so the explanation says what the rule does, not what was asked for. Nothing is saved. The audit trail records the description and what it became. Only an administrator may ask. security: - webSession: [] - appOAuth: - boundaries:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ChangeDescription' examples: commands: value: text: No shell commands when nobody is watching. responses: '200': description: The proposed rule, and what it does. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BoundaryTranslation' examples: answer: $ref: '#/components/examples/BoundaryTranslationExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ModelFailed' '503': $ref: '#/components/responses/ModelNotConfigured' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/boundaries/replay: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Boundaries operationId: replayBoundaries summary: Test boundaries against recent actions description: 'Say what a set of boundaries would have decided about the actions Bots took lately, on their computers and in apps, without saving it: each action it would refuse that was allowed, and the other way round, with the rule that decides it. Nothing is saved and nothing is recorded. Only an administrator may ask.' security: - webSession: [] - appOAuth: - boundaries:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BoundaryReplayRequest' examples: candidate: value: boundaries: mode: enforce deny: - intent == "run_command" && initiator.kind != "person" allow: - 'true' responses: '200': description: What the boundaries would have decided. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BoundaryReplayReport' examples: answer: $ref: '#/components/examples/BoundaryReplayReportExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/NoTrailToReplay' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/what-if/vocabulary: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - What-if operationId: getWhatIfVocabulary summary: Read what an action can name description: 'Return what an action can name in this organization: its Bots and their owners, its people, its directory groups, and its apps with their tools. These are the only values an action may hold. Only an administrator may read it.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - audit-events:read - apiKey: [] responses: '200': description: What an action can name. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/WhatIfVocabulary' examples: vocabulary: $ref: '#/components/examples/WhatIfVocabularyExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/what-if/ask: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - What-if operationId: askWhatIf summary: Read a question as one action description: 'Turn a question in English into the one action it asks about. The deployment''s model only names the action and never answers the question: checkWhatIf does that. The action is checked against what the organization has (getWhatIfVocabulary), and one that still fails on the model''s second try is refused, never guessed at. The audit trail records each question with the action it became. Only an administrator may ask. A repeated request with the same Idempotency-Key and body returns the first answer without asking the model again.' security: - webSession: [] - appOAuth: - audit-events:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/WhatIfQuestion' examples: routine: value: question: Could a routine send email from the Sales Bot? responses: '200': description: The action the question asks about, or why it names none. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/WhatIfReading' examples: understood: $ref: '#/components/examples/WhatIfReadingExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '422': $ref: '#/components/responses/WhatIfActionNotUnderstood' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ModelFailed' '503': $ref: '#/components/responses/ModelNotConfigured' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/what-if/check: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - What-if operationId: checkWhatIf summary: Say what every control decides about an action description: Put one action to the controls a real action passes through, in the order OpenBot applies them, and return what each one decides and which one settles it. No model is asked and nothing is carried out. The audit trail records the check. Only an administrator may ask. security: - webSession: [] - appOAuth: - audit-events:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/WhatIfCheckRequest' examples: email: value: action: bot: sales person: user_8d2f group: '' initiator: routine surface: app app: composio-gmail tool: send_email intent: '' host: '' label: '' command: '' file: '' question: Could a routine send email from the Sales Bot? responses: '200': description: What each control decides. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/WhatIfCheck' examples: refused: $ref: '#/components/examples/WhatIfCheckExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/what-if/explanations/{auditEventId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/AuditEventId' get: tags: - What-if operationId: explainAuditEvent summary: Explain one event on the audit trail description: Put the action one audit event recorded to the controls as they are now, and return what each one decides beside what the event recorded at the time. It answers for a Bot's computer actions and app calls; no control decides any other kind of event. No model is asked. The audit trail records the check. Only an administrator may ask. x-openbot-singleton: true security: - webSession: [] - appOAuth: - audit-events:read - apiKey: [] responses: '200': description: What the event recorded, and what each control decides now. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/WhatIfExplanation' examples: refused: $ref: '#/components/examples/WhatIfExplanationExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/AuditEventNotFound' '422': $ref: '#/components/responses/AuditEventNotExplainable' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/shared-use-requests: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Shared use operationId: listSharedUseRequests summary: List the requests to use a shared app account description: 'Return one page of the requests still waiting for an answer: a Bot''s owner asking that the Bot may use a shared app''s one account for the people who can use the Bot now. Each carries what is asked for and what the Bot is approved for already. Newest first. Only an administrator may read them. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - shared-use:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of waiting requests. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SharedUseRequestPage' examples: waiting: $ref: '#/components/examples/SharedUseRequestPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Shared use operationId: createSharedUseRequest summary: Ask that a Bot may use a shared app account description: 'Ask an administrator to approve a Bot''s use of a shared app''s one account. What is asked for is never sent: it is the Bot''s audience as the server reads it now, so a request can''t be worded wider than the Bot is. A request already waiting for the same audience is answered again rather than filed twice, and one waiting for a different audience is replaced. Recorded on the audit trail. Only the Bot''s owner or an administrator may ask. Asking matters only where the organization''s apps are locked down (getAppsSetting): while they''re open, anybody who can use a Bot may use its shared accounts, and there is nothing to approve.' security: - webSession: [] - appOAuth: - shared-use:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateSharedUseRequestRequest' examples: publish: value: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 serverId: composio-github reason: publish responses: '200': description: The request, and whether this call filed it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SharedUseRequestFiled' examples: filed: $ref: '#/components/examples/SharedUseRequestFiledExample' '400': $ref: '#/components/responses/InvalidSharedUseRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SharedUseOwnerOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/shared-use-requests/{sharedUseRequestId}/approve: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SharedUseRequestId' post: tags: - Shared use operationId: approveSharedUseRequest summary: Approve a request to use a shared app account description: Approve a waiting request, so the Bot may use the shared app's account for exactly the audience the request names. Recorded on the audit trail. Only an administrator may approve one. A request that is not waiting, because it was answered, replaced or never filed, is refused as already decided. security: - webSession: [] - appOAuth: - shared-use:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The request, approved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SharedUseRequest' examples: approved: $ref: '#/components/examples/SharedUseRequestApprovedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/SharedUseRequestDecided' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/shared-use-requests/{sharedUseRequestId}/decline: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SharedUseRequestId' post: tags: - Shared use operationId: declineSharedUseRequest summary: Decline a request to use a shared app account description: Decline a waiting request, leaving what the Bot is approved for as it is. Recorded on the audit trail. Only an administrator may decline one. A request that is not waiting, because it was answered, replaced or never filed, is refused as already decided. security: - webSession: [] - appOAuth: - shared-use:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The request, declined. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SharedUseRequest' examples: declined: $ref: '#/components/examples/SharedUseRequestDeclinedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/SharedUseRequestDecided' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/shared-use: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Shared use operationId: getBotSharedUse summary: Read a Bot's use of shared app accounts description: Return the shared apps a Bot holds, each with the audience it is approved for, the audience the Bot needs now, and whether the first covers the second, and the Bot's requests still waiting for an administrator. A Bot that holds no shared app answers with none. While the organization's apps are open (getAppsSetting), every shared app reads as covered. Only the Bot's owner or an administrator may read it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - shared-use:read - apiKey: [] responses: '200': description: The Bot's shared apps and its waiting requests. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotSharedUse' examples: oneApp: $ref: '#/components/examples/BotSharedUseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SharedUseOwnerOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/host-access: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Host access operationId: getHostAccess summary: Read a person's folder access description: Return the folders on a person's own computer that they gave their Bots, what is waiting for an answer in OpenBot Desktop, whether Desktop is connected, and whether this OpenBot runs in Desktop at all. A folder is named as the person sees it, never by its path. Only the person themselves may read it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - host-access:read - apiKey: [] responses: '200': description: The person's folder access. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/HostAccess' examples: oneFolder: $ref: '#/components/examples/HostAccessExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/HostAccessOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/host-access/grants: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Host access operationId: createHostAccessGrant summary: Give a Bot a folder on this computer description: Ask OpenBot Desktop to open its folder chooser, and wait for the person to pick a folder there for the Bot. The answer arrives when they choose, turn it down, or the chooser runs out of time, which can take up to two minutes. Recorded on the audit trail with the folder's name, never its path. Only the person themselves may ask, for a Bot they can use, where an administrator lets them use this computer, and only where this OpenBot runs in Desktop and Desktop is connected. security: - webSession: [] - appOAuth: - host-access:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateHostAccessGrantRequest' examples: bot: value: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 responses: '201': description: The folder the person chose. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/HostAccessGrant' examples: granted: $ref: '#/components/examples/HostAccessGrantExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/HostAccessForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/HostAccessConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/host-access/grants/{hostAccessGrantId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/HostAccessGrantId' delete: tags: - Host access operationId: deleteHostAccessGrant summary: Take a folder away from a Bot description: End a Bot's access to one folder, and stop anything it was doing there. Recorded on the audit trail. Only the person who gave the folder may take it away; anybody else's, or one that was never given, is not found. security: - webSession: [] - appOAuth: - host-access:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The Bot no longer has the folder. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/HostAccessOwnOnly' '404': $ref: '#/components/responses/HostAccessGrantNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/host-access/stop: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Host access operationId: stopHostAccess summary: Stop a person's folder access description: End every folder a person gave their Bots, stop anything the Bots were doing in them, and tell OpenBot Desktop to stop too. Recorded on the audit trail with the folders it ended. Only the person themselves may stop it. Stopping when nothing is open is still a stop. security: - webSession: [] - appOAuth: - host-access:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: Folder access was stopped. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/HostAccessOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/test-connection: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Bots operationId: testBotConnection summary: Test a Bot's address description: 'Send one short run to an AG-UI address from where OpenBot''s runs will reach it, before a Bot is saved with it, and say what came back. The address is checked as saving checks it, so this can''t reach an address a Bot could not be saved with. A failed test is an answer, not an error: ok is false and reason says what went wrong in words a person can act on. An address this deployment runs is tried with the token its runs use. Nothing is saved.' security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BotConnectionTestRequest' examples: withKey: value: endpoint: https://agents.example.com/ag-ui headers: Authorization: Bearer example-key responses: '200': description: What the address answered, or why it couldn't be reached. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotConnectionTest' examples: answered: $ref: '#/components/examples/BotConnectionAnswered' refused: $ref: '#/components/examples/BotConnectionRefused' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/duplicate: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: duplicateBot summary: Duplicate a Bot description: Make a private copy of a Bot the caller can see, owned by the caller, with its address and its key. The copy keeps a computer of its own only when the caller may give it one. Needs the caller's Bots switch. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: The copy. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Location: description: The copy's address. schema: type: string example: /api/v2/organizations/default/bots/agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotResponse' examples: copied: $ref: '#/components/examples/CreatedBot' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/hide: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: hideBot summary: Hide a Bot from the caller's list description: Take a Bot the caller can see out of their own list, for them only; listBots with hidden=true lists it. Nobody else's list changes. Hiding a hidden Bot changes nothing. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The Bot, hidden. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotResponse' examples: hidden: $ref: '#/components/examples/CreatedBot' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/BotAssigned' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/unhide: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: unhideBot summary: Put a Bot back in the caller's list description: Put a Bot the caller hid back in their own list. Showing a Bot that is not hidden changes nothing. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The Bot, back in the list. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotResponse' examples: shown: $ref: '#/components/examples/CreatedBot' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/pin: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: pinBot summary: Pin a Bot to the top of the caller's list description: Pin a Bot the caller can see to the top of their own list, for them only. Pinning a pinned Bot changes nothing. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The Bot, pinned. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotResponse' examples: pinned: $ref: '#/components/examples/CreatedBot' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/unpin: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: unpinBot summary: Unpin a Bot description: Unpin a Bot from the top of the caller's own list. Unpinning a Bot that is not pinned changes nothing. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The Bot, unpinned. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotResponse' examples: unpinned: $ref: '#/components/examples/CreatedBot' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/issue-callback-token: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: issueBotCallbackToken summary: Issue a Bot's callback token description: 'Give a Bot a new credential for calling OpenBot''s tools back, and return it this once: it is never returned again, and the audit trail records that one was issued, never what it is. Issuing one for a Bot that has one replaces it, which is how a leaked token is retired. Only whoever may manage the Bot may issue one.' security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The new token, shown once. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotCallbackToken' examples: issued: $ref: '#/components/examples/BotCallbackTokenExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/revoke-callback-token: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: revokeBotCallbackToken summary: Revoke a Bot's callback token description: Take away a Bot's credential for calling OpenBot's tools back. It can still hold a conversation; it can't reach anything outside one. Only whoever may manage the Bot may revoke it. Revoking a token that is not there changes nothing. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The Bot, with no callback token. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotResponse' examples: revoked: $ref: '#/components/examples/CreatedBot' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/remove-key: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: removeBotKey summary: Remove a Bot's key description: Stop sending a key to the address a Bot runs at, and retire the key so it can't be read or used again. Its runs then reach the address with no key. Setting or replacing a key is updateBot's auth. Only whoever may manage the Bot may remove it. Removing a key that is not there changes nothing. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The Bot, with no key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotResponse' examples: removed: $ref: '#/components/examples/CreatedBot' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/report-decline: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: reportBotDecline summary: Record that a Bot declined a request description: 'Put on the audit trail that a Bot declined something it was asked to do, in its own words. The Bot reports it through the conversation it is in, so the row says the Bot reported it itself: it is evidence of what the Bot is being asked, not a control, and a Bot that declines without reporting writes nothing. Only a Bot the caller can reach can be reported on.' security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BotDeclineReport' examples: declined: value: reason: Sending money is outside what I'm for. request: Wire the vendor's invoice amount. responses: '204': description: Recorded. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/handoff: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Bots operationId: getBotHandoff summary: Read which Bots a Bot may hand work to description: Return which Bots this Bot may hand work to today, whether the deployment lets any Bot hand work on at all, whether this Bot can be given that permission, and whether the caller may change it. An administrator grants it, as an app grant of kind bot. x-openbot-singleton: true security: - webSession: [] - appOAuth: - bots:read - apiKey: [] responses: '200': description: The Bot's handoff permissions. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotHandoff' examples: granted: $ref: '#/components/examples/BotHandoffExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/lifecycle: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Bots operationId: getBotLifecycle summary: Read whether a Bot is paused for the caller description: 'Return the caller''s own state with a Bot: whether they paused it, and how loudly it may reach them. It is theirs alone: pausing a shared Bot stops the work it does for them, not for anybody else.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - bots:read - apiKey: [] responses: '200': description: The caller's state with the Bot. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotLifecycle' examples: running: $ref: '#/components/examples/BotLifecycleRunning' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/pause: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: pauseBot summary: Pause a Bot for the caller description: 'Stop the work a Bot does for the caller: its turns running for them now are stopped, and nothing it was going to do for them starts until they resume it. Nobody else''s work with the Bot changes. Pausing a paused Bot stops anything that started since and keeps it paused.' security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The caller's state with the Bot, and how many turns were stopped. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotPause' examples: paused: $ref: '#/components/examples/BotPaused' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/resume: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: resumeBot summary: Resume a Bot for the caller description: Let a Bot the caller paused work for them again. Resuming a Bot that is not paused changes nothing. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The caller's state with the Bot. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotLifecycle' examples: running: $ref: '#/components/examples/BotLifecycleRunning' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/reset: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: resetBot summary: Reset what a Bot knows about the caller description: 'Delete what a Bot holds for the caller: their conversations with it (any shared with other people are kept), its memory of them, their routines, goals and follow-ups with it, the research it did for them and the approvals they gave it. Nobody else''s is touched. The request says validateOnly every time: true counts what a reset would delete and deletes nothing, false deletes it. Both answer the same counts.' security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BotResetRequest' examples: preview: summary: Count it first. value: validateOnly: true reset: summary: Delete it. value: validateOnly: false responses: '200': description: What the reset deleted, or with validateOnly what it would delete. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotReset' examples: preview: $ref: '#/components/examples/BotResetPreview' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/activity: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Bots operationId: getBotActivity summary: Read what a Bot is doing for the caller description: 'Return what a Bot is doing for the caller, in four sections: in progress, scheduled, goals that run only when asked, and recently completed. Each section holds at most its newest items, so this is one view rather than a list to page through. Only the caller''s own work with the Bot is in it.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - bots:read - apiKey: [] responses: '200': description: The Bot's activity for the caller. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotActivity' examples: working: $ref: '#/components/examples/BotActivityExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/stop-handoff: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Bots operationId: stopBotHandoff summary: Stop work a Bot handed to another Bot description: Stop a task this Bot handed to another Bot for the caller, while it is still running or queued, named by its id in the Bot's activity (an item that is stoppable). A task that has finished, was stopped already, or is not the caller's is not found. security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/StopBotHandoffRequest' examples: stop: value: handoffId: handoff:hop_3c1d responses: '204': description: Stopped. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/HandoffNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/bot-attention: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Bots operationId: listBotAttention summary: List what each Bot has waiting on a person description: 'Return one page of the Bots that need the person, have something unread for them, or that they paused: per Bot, its questions, approvals, stalled handoffs, check-in items and tasks waiting on them. Each page also carries the person''s newest ping, so a client notifies once per ping however many items it carried. Ordered by the Bot''s name, then its id. It is the person''s own: nobody else, an administrator included, may read it. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - bots:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of what the person's Bots have waiting on them. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotAttentionPage' examples: lastPage: $ref: '#/components/examples/BotAttentionPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/team-bots: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Team Bots operationId: listTeamBots summary: List Team Bots description: 'Return one page of the published Bots the caller may use or manages: their own publications, the ones published to them by name, to a group or team they are in or to everyone in the organization, and the ones an administrator assigned them. An administrator sees every one. Who a Team Bot reaches (people, groups and assignments) is shown only to its owner and administrators. Ordered by name, then the Bot''s id. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - team-bots:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of Team Bots. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TeamBotPage' examples: lastPage: $ref: '#/components/examples/TeamBotPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/team-bots/{botId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Team Bots operationId: getTeamBot summary: Read one Team Bot description: Return one published Bot the caller may use or manages. A Bot that is not published, or not published to the caller, is not found. security: - webSession: [] - appOAuth: - team-bots:read - apiKey: [] responses: '200': description: The Team Bot. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/TeamBotResponse' examples: published: $ref: '#/components/examples/TeamBotExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/TeamBotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Team Bots operationId: publishTeamBot summary: Publish a Bot to everyone in the organization, or to some of them description: Publish one of the caller's own Bots to everyone in the organization, or to named people, teams and directory groups, or change who it is published to. Each person's conversations with it are private to them; its owner can't read them. Needs the caller's Team Bots switch, and a Bot with a real name and a description, which is how the people it is published to tell it apart. Every person named must have signed in here. Publishing can widen who reaches the shared app accounts the Bot uses, and the answer says which an administrator still has to approve. security: - webSession: [] - appOAuth: - team-bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/TeamBotPublication' examples: team: summary: To everyone in the organization. value: audience: team people: summary: To a person and a group. value: audience: people emails: - maya@example.com groups: - finance responses: '200': description: The Team Bot, and what publishing it means for its shared apps. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PublishedTeamBot' examples: published: $ref: '#/components/examples/PublishedTeamBotExample' '400': $ref: '#/components/responses/InvalidTeamBot' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/TeamBotForbidden' '404': $ref: '#/components/responses/TeamBotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Team Bots operationId: unpublishTeamBot summary: Unpublish a Team Bot description: 'Stop publishing a Bot: the people it was published to can''t use it until it is published again, and its assignments wait, doing nothing. Its owner or an administrator may unpublish it. Unpublishing a Bot that is not published changes nothing.' security: - webSession: [] - appOAuth: - team-bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: Unpublished. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/TeamBotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/team-bots/{botId}/group-assignments/{group}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - $ref: '#/components/parameters/DirectoryGroup' put: tags: - Team Bots operationId: assignTeamBot summary: Assign a Team Bot to a group description: Put a published Bot in the Bots list of everybody in a directory group, or of everybody with *, where they can't hide it. Only an administrator may assign, and only a published Bot. Assigning it to a group it is assigned to changes nothing. The answer says what the wider reach means for the shared app accounts the Bot uses. security: - webSession: [] - appOAuth: - team-bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The Team Bot, and what the assignment means for its shared apps. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PublishedTeamBot' examples: assigned: $ref: '#/components/examples/PublishedTeamBotExample' '400': $ref: '#/components/responses/InvalidTeamBot' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/TeamBotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Team Bots operationId: unassignTeamBot summary: Take a Team Bot's assignment away from a group description: Stop putting a Team Bot in a group's Bots lists. Only an administrator may do this. Removing an assignment that is not there changes nothing. security: - webSession: [] - appOAuth: - team-bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The group no longer has it assigned. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/team-bots/{botId}/answer-consent: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Team Bots operationId: answerTeamBotConsent summary: Answer whether a Team Bot may use the caller's account description: 'Record the caller''s answer when a Team Bot somebody else published asks to use one of the caller''s own app accounts: this once, always for this Bot, always for every Team Bot, or skip, which takes back an earlier answer for this Bot. It is the caller''s own answer and binds nobody else. Allowing is only for an app the Bot uses, one it holds a tool of; any other app is refused with VALIDATION_ERROR. Skip is accepted for any app.' security: - webSession: [] - appOAuth: - team-bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/TeamBotConsentAnswer' examples: always: value: serverId: composio-gmail decision: allow_always responses: '204': description: Recorded. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/TeamBotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/clear-team-bot-consents: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Team Bots operationId: clearTeamBotConsents summary: Forget every answer a person gave Team Bots description: 'Forget every answer the person gave a Team Bot about using their own app accounts, so each Team Bot asks again. It is the person''s own: nobody else, an administrator included, may do it for them.' security: - webSession: [] - appOAuth: - team-bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: Forgotten. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Computers operationId: listComputers summary: List the organization's computers description: 'Return one page of the computers the organization''s Bots run on: each person''s, and each isolated Bot''s. Where every person''s Bots share one computer, each entry is one person''s seat on one Bot there. A computer another organization''s Bots run on is never listed. Ordered by whose computer it is, then by Bot. Only an administrator of the organization may read them. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - computers:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of computers, and how they are separated. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerPage' examples: answer: $ref: '#/components/examples/ComputerPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/stop: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Computers operationId: stopComputer summary: Stop a computer description: Stop one computer from the list now, and record it on the audit trail. Its files and sign-ins stay, and it starts again when a Bot next needs it. The computer is named by whose it is, person: or bot:; botId names one Bot's seat on a shared computer. A computer that is not one of the organization's is not found. Only an administrator of the organization may do this. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerTarget' examples: request: value: computer: person:user_2b8kq4 responses: '200': description: Whether it was running. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerStopped' examples: answer: $ref: '#/components/examples/ComputerStoppedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationComputerNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/reset: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Computers operationId: resetComputer summary: Reset a computer description: Delete one computer's browser profile, and every sign-in with it, and record it on the audit trail. The computer is named by whose it is, person: or bot:; botId names one Bot's seat on a shared computer. A computer that is not one of the organization's is not found. Only an administrator of the organization may do this. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerTarget' examples: request: value: computer: person:user_2b8kq4 responses: '200': description: Whether there was a profile to delete. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerReset' examples: answer: $ref: '#/components/examples/ComputerResetExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationComputerNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/update: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Computers operationId: updateComputer summary: Update a computer description: Move one computer onto the image this OpenBot now runs, and record it on the audit trail. Files and sign-ins stay; a running computer restarts. The computer is named by whose it is, person: or bot:. A computer that is not one of the organization's is not found. Only an administrator of the organization may do this. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerTarget' examples: request: value: computer: person:user_2b8kq4 responses: '200': description: Whether it moved, and whether it was running. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerUpdated' examples: answer: $ref: '#/components/examples/ComputerUpdatedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationComputerNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Computers operationId: getComputer summary: Read a Bot's computer description: 'Say where the Bot''s computer is in its life for the caller: absent (not running, and it starts on the Bot''s next action), starting, ready or unreachable. Reading it never starts the computer.' security: - webSession: [] - appOAuth: - computers:read - apiKey: [] responses: '200': description: The computer's state. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerStatus' examples: answer: $ref: '#/components/examples/ComputerStatusExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/wake: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: wakeComputer summary: Start a Bot's computer description: Start the Bot's computer when it is off, because a person opened its screen or terminal, and answer at once with its state without waiting for it to come up. The audit trail records a computer resumed this way. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The computer's state, starting for one just started. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerStatus' examples: answer: $ref: '#/components/examples/ComputerStatusExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/workspace-snapshots: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Computers operationId: getWorkspaceSnapshots x-openbot-singleton: true summary: Read a computer's saved copies description: 'Return the saved copies of the computer this Bot runs on for the caller, newest first, and the latest restore of it. OpenBot saves each computer''s files and browser sign-ins once a day and keeps the last 7, and saves it again just before every restore. computer names another person''s computer the Bot runs on (person: or bot:), which only an administrator of the organization may read. available is false where this OpenBot keeps no copies. canRestore says whether the caller may restore it: an administrator of the organization, or the person whose computer it is when they own the Bot (an isolated Bot''s computer is its owner''s). Reading it never starts the computer.' security: - webSession: [] - appOAuth: - computers:read - apiKey: [] parameters: - name: computer in: query required: false description: Whose computer, as person: or bot:. Absent, the one this Bot runs on for the caller. schema: type: string minLength: 1 maxLength: 300 pattern: ^(person|bot):\S+$ responses: '200': description: The computer's saved copies and its latest restore. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/WorkspaceSnapshots' examples: answer: $ref: '#/components/examples/WorkspaceSnapshotsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/restore: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: restoreComputer summary: Restore a computer from a saved copy description: 'Put the computer this Bot runs on back the way it was in one of its saved copies, and record it on the audit trail. Nothing is restored unless someone asks: OpenBot first saves the computer as it is now (kept as a copy of kind before-restore), then replaces every file and browser sign-in on it with the copy''s and starts it again. Every Bot on that computer goes back, and routines that use it wait until it is back. The answer comes at once, with the restore running; read getWorkspaceSnapshots for how it ends. computer names another person''s computer, as in getWorkspaceSnapshots. Only an administrator of the organization, or the person whose computer it is when they own the Bot, may do this. One restore of a computer runs at a time.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerRestoreRequest' examples: request: value: snapshotId: snap_20261121t0300z_4kq2 responses: '202': description: The restore, started. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerRestore' examples: answer: $ref: '#/components/examples/ComputerRestoreExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/WorkspaceSnapshotNotFound' '409': $ref: '#/components/responses/ComputerRestoreConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/screenshot: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Computers operationId: getComputerScreenshot summary: Read one frame of a Bot's screen description: 'Return a picture of the Bot''s screen as it is now, as a base64 PNG in JSON. A computer that is asleep or starting is not woken: the answer is ready false with its state.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - computers:read - apiKey: [] responses: '200': description: The frame, or the state of a computer that is not ready. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerScreenshot' examples: answer: $ref: '#/components/examples/ComputerScreenshotExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/page-frames/{toolCallId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - $ref: '#/components/parameters/ComputerToolCallId' get: tags: - Computers operationId: getComputerPageFrame summary: Read the frame kept when a page was opened description: Return the picture taken when one tool call of the caller's opened its page, for reading a conversation back. frame is null when none was kept. Only the caller's own frames are ever returned. security: - webSession: [] - appOAuth: - computers:read - apiKey: [] responses: '200': description: The frame, or null when none was kept. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerPageFrameAnswer' examples: answer: $ref: '#/components/examples/ComputerPageFrameExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/page: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Computers operationId: readComputerPage summary: Read the page a Bot's browser is on description: Return the text of the page the Bot's browser is showing, with its address and title. Asked with the Bot's threadId and toolCallId, the step runs once, however many times it is asked. x-openbot-singleton: true security: - webSession: [] - appOAuth: - computers:read - apiKey: [] parameters: - $ref: '#/components/parameters/ComputerStepThreadIdQuery' - $ref: '#/components/parameters/ComputerStepToolCallIdQuery' responses: '200': description: The page's address, title and text. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerPageText' examples: answer: $ref: '#/components/examples/ComputerPageTextExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerActionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/control: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Computers operationId: getComputerControl summary: Read who is driving a Bot's computer description: Say whether the Bot or a person holds the mouse and keyboard, and any request the Bot has made for a person's help. With requestId, the state as that request sees it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - computers:read - apiKey: [] parameters: - $ref: '#/components/parameters/ComputerControlRequestId' responses: '200': description: Who is driving, and what has been asked. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerControl' examples: answer: $ref: '#/components/examples/ComputerControlExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerControlConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/control/request: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: requestComputerControl summary: Ask a person to take over a Bot's computer description: 'Raise a request for a person to drive the Bot''s computer: the Bot asking for help with something it cannot do, or a person asking to take over themselves (source manual).' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerControlAsk' examples: request: value: reason: Sign in to the bank, then hand it back. responses: '200': description: The control state, with the request. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerControl' examples: answer: $ref: '#/components/examples/ComputerControlExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerControlConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/control/take: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: takeComputerControl summary: Take over a Bot's computer description: Give the caller the mouse and keyboard for a request. The Bot's actions are refused until it is handed back. The audit trail records the takeover. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerControlRequestRef' examples: request: value: requestId: 6f1c2b9a-0d4e-4e1b-9a53-1f2e3d4c5b6a responses: '200': description: The control state afterwards. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerControl' examples: answer: $ref: '#/components/examples/ComputerControlExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerControlConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/control/release: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: releaseComputerControl summary: Hand a Bot's computer back description: Hand the mouse and keyboard back to the Bot. Any recording in the Bot's browser ends, and a task that stopped for the person carries on. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerControlRequestRef' examples: request: value: requestId: 6f1c2b9a-0d4e-4e1b-9a53-1f2e3d4c5b6a responses: '200': description: The control state afterwards. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerControl' examples: answer: $ref: '#/components/examples/ComputerControlExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerControlConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/control/cancel: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: cancelComputerControl summary: Decline a request to take over description: Decline the Bot's request without taking over. A task that stopped for the person carries on from the refusal. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerControlRequestRef' examples: request: value: requestId: 6f1c2b9a-0d4e-4e1b-9a53-1f2e3d4c5b6a responses: '200': description: The control state afterwards. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerControl' examples: answer: $ref: '#/components/examples/ComputerControlExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerControlConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/control/secret: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: requestComputerSecret summary: Ask a person for a value a Bot must not be told description: 'A Bot''s tool call: ask the person to type a password or other secret into one field of the page, named by a ref from the Bot''s latest snapshot. The Bot never sees the value. Needs the password manager to be on for the caller.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerSecretAsk' examples: request: value: ref: e12 snapshotId: 4 label: your bank password responses: '200': description: The control state, waiting on the person. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerControl' examples: answer: $ref: '#/components/examples/ComputerControlExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ComputerSecretsOff' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerActionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/human-input/secret: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: supplyComputerSecret summary: Type the value a Bot asked for description: 'Type the secret the Bot asked for into the field it named. The value goes to the page and nowhere else: it is not logged, not recorded and never answered back. Needs the password manager to be on for the caller. What is typed is never kept, not even to recognise a retry: a request sent again with the same Idempotency-Key is matched to the first by everything but its text.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerSecretValue' responses: '200': description: That it was typed, and how many characters. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerSecretSupplied' examples: answer: $ref: '#/components/examples/ComputerSecretSuppliedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ComputerSecretsOff' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerActionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/human-input/{kind}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' - $ref: '#/components/parameters/ComputerHumanInputKind' post: tags: - Computers operationId: sendComputerHumanInput summary: Send a person's own mouse or keyboard input description: 'Send one gesture from the person driving the Bot''s computer: a click at a point, text to type, a key, or a scroll. Only while the caller holds control. What a person types is not recorded; the takeover is. What is typed is never kept, not even to recognise a retry: a request sent again with the same Idempotency-Key is matched to the first by everything but its text.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerHumanInput' examples: request: value: x: 412 'y': 220 responses: '200': description: What was done, and the page's address. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerHumanInputResult' examples: answer: $ref: '#/components/examples/ComputerHumanInputResultExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerActionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/snapshot: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: snapshotComputer summary: List what a Bot can act on in the page description: 'Return the page''s elements a Bot can click or type into, each with a ref, and the snapshotId those refs belong to. A Bot''s tool call made through the app: the answer is the tool''s outcome, and a refusal or failure is a problem. The boundary decides the action and the audit trail records it before the computer is asked. The answer is what the page held, so it is never kept: the action runs once per Idempotency-Key, and sending the same key again answers 409 ANSWER_NOT_KEPT, not the answer a second time. It was done; send a new key to do it again. The body is optional: sent with the Bot''s threadId and toolCallId, the step runs once, however many times it is asked.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/ComputerSnapshotAsk' examples: request: value: threadId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 toolCallId: call_8c1f responses: '200': description: The elements, and the snapshot they belong to. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerSnapshot' examples: answer: $ref: '#/components/examples/ComputerSnapshotExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerAnswerNotKept' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/navigate: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: navigateComputer summary: Open a web address in a Bot's browser description: 'Open a web address and return the page''s text. With toolCallId, a picture of the page is kept for reading the conversation back. A Bot''s tool call made through the app: the answer is the tool''s outcome, and a refusal or failure is a problem. The boundary decides the action and the audit trail records it before the computer is asked.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerNavigate' examples: request: value: url: https://example.com/pricing responses: '200': description: The page that opened. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerNavigation' examples: answer: $ref: '#/components/examples/ComputerNavigationExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ComputerActionRefused' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerActionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/click: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: clickComputer summary: Click an element in a Bot's browser description: 'Click the element a ref from the latest snapshot names. A Bot''s tool call made through the app: the answer is the tool''s outcome, and a refusal or failure is a problem. The boundary decides the action and the audit trail records it before the computer is asked.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerClick' examples: request: value: ref: e12 snapshotId: 4 responses: '200': description: What was done, and the page's address. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerActionResult' examples: answer: $ref: '#/components/examples/ComputerActionResultExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ComputerActionRefused' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerActionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/type: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: typeComputer summary: Type into an element in a Bot's browser description: 'Type text into the field a ref from the latest snapshot names, and with submit, send its form. A Bot''s tool call made through the app: the answer is the tool''s outcome, and a refusal or failure is a problem. The boundary decides the action and the audit trail records it before the computer is asked. What is typed is never kept, not even to recognise a retry: a request sent again with the same Idempotency-Key is matched to the first by everything but its text.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerType' examples: request: value: ref: e7 snapshotId: 4 text: quarterly report responses: '200': description: What was done, and the page's address. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerActionResult' examples: answer: $ref: '#/components/examples/ComputerActionResultExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ComputerActionRefused' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerActionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/key: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: pressComputerKey summary: Press a key in a Bot's browser description: 'Press a key such as Enter or Tab, on the element a ref names or on the page. A Bot''s tool call made through the app: the answer is the tool''s outcome, and a refusal or failure is a problem. The boundary decides the action and the audit trail records it before the computer is asked.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerKey' examples: request: value: key: Enter responses: '200': description: What was done, and the page's address. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerActionResult' examples: answer: $ref: '#/components/examples/ComputerActionResultExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ComputerActionRefused' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerActionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/scroll: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: scrollComputer summary: Scroll the page in a Bot's browser description: 'Scroll the page by deltaY pixels, or by the computer''s own default distance when none is given. A Bot''s tool call made through the app: the answer is the tool''s outcome, and a refusal or failure is a problem. The boundary decides the action and the audit trail records it before the computer is asked.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerScroll' examples: request: value: deltaY: 600 responses: '200': description: What was done, and the page's address. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerActionResult' examples: answer: $ref: '#/components/examples/ComputerActionResultExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ComputerActionRefused' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerActionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/exec: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: runComputerCommand summary: Run a command on a Bot's computer description: 'Run a shell command in the Bot''s workspace and return what it printed. timeoutMs is between 1000 and 600000. A Bot''s tool call made through the app: the answer is the tool''s outcome, and a refusal or failure is a problem. The boundary decides the action and the audit trail records it before the computer is asked. The answer is what the command printed, so it is never kept: the action runs once per Idempotency-Key, and sending the same key again answers 409 ANSWER_NOT_KEPT, not the answer a second time. It was done; send a new key to do it again.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerCommand' examples: request: value: command: ls -la responses: '200': description: The command's exit code and output. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerCommandResult' examples: answer: $ref: '#/components/examples/ComputerCommandResultExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ComputerActionRefused' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerAnswerNotKept' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/files/list: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: listComputerFiles summary: List a Bot's files description: 'List the files and folders in the Bot''s workspace, or in one folder of it. A Bot''s tool call made through the app: the answer is the tool''s outcome, and a refusal or failure is a problem. The boundary decides the action and the audit trail records it before the computer is asked. The answer is the names of a person''s files, so it is never kept: the action runs once per Idempotency-Key, and sending the same key again answers 409 ANSWER_NOT_KEPT, not the answer a second time. It was done; send a new key to do it again.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerFilesList' examples: request: value: path: reports responses: '200': description: The folder's entries. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerFiles' examples: answer: $ref: '#/components/examples/ComputerFilesExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ComputerActionRefused' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerAnswerNotKept' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/files/read: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: readComputerFile summary: Read one of a Bot's files description: 'Return the text of one file in the Bot''s workspace. A Bot''s tool call made through the app: the answer is the tool''s outcome, and a refusal or failure is a problem. The boundary decides the action and the audit trail records it before the computer is asked. The answer is the file''s text, so it is never kept: the action runs once per Idempotency-Key, and sending the same key again answers 409 ANSWER_NOT_KEPT, not the answer a second time. It was done; send a new key to do it again.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerFileRead' examples: request: value: path: reports/q3.md responses: '200': description: The file's text. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerFileText' examples: answer: $ref: '#/components/examples/ComputerFileTextExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ComputerActionRefused' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerAnswerNotKept' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/files/write: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Computers operationId: writeComputerFile summary: Write one of a Bot's files description: 'Write or append text to one file in the Bot''s workspace. A Bot''s tool call made through the app: the answer is the tool''s outcome, and a refusal or failure is a problem. The boundary decides the action and the audit trail records it before the computer is asked.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ComputerFileWrite' examples: request: value: path: reports/q3.md contents: '# Q3' responses: '200': description: The file written, and its size. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ComputerFileWritten' examples: answer: $ref: '#/components/examples/ComputerFileWrittenExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ComputerActionRefused' '404': $ref: '#/components/responses/ComputerBotNotFound' '409': $ref: '#/components/responses/ComputerActionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/browser: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Browsers operationId: getBotBrowser summary: Read a Bot's browser description: 'Return the browser on a Bot''s computer as the caller sees it: whether it is open, its tabs, what the Recorder in it is doing, whether the caller holds control of it, and whether a recording running there is theirs. Of somebody else''s recording it says only that one is running. Reading it never starts the computer or opens the browser.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - computers:read - apiKey: [] responses: '200': description: The Bot's browser. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotBrowser' examples: answer: $ref: '#/components/examples/BotBrowserExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/BotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/BrowserUnfinished' '504': $ref: '#/components/responses/BrowserNotAnswering' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/browser/tabs: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Browsers operationId: changeBotBrowserTabs summary: Open, switch to or close a tab in a Bot's browser description: Open a new tab, switch to a tab or close one in a Bot's browser. Only the person holding control of the Bot's computer may; anybody else is refused with a conflict. Only web addresses open. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BrowserTabsRequest' examples: newTab: value: action: new url: https://www.salesforce.com switch: value: action: activate tabId: tab_2 responses: '200': description: The Bot's browser after the change. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotBrowser' examples: answer: $ref: '#/components/examples/BotBrowserExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/BrowserConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/BrowserRequestNotJson' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/BrowserUnfinished' '502': $ref: '#/components/responses/BrowserUnreachable' '503': $ref: '#/components/responses/BrowserUnavailable' '504': $ref: '#/components/responses/BrowserNotAnswering' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/browser/navigate: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Browsers operationId: navigateBotBrowser summary: Go to an address in a Bot's browser description: Open an address in the tab the person is on in a Bot's browser, or go back, forward or reload. Only the person holding control of the Bot's computer may; anybody else is refused with a conflict. Only web addresses open. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BrowserNavigateRequest' examples: address: value: url: salesforce.com/reports back: value: action: back responses: '200': description: The Bot's browser after it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotBrowser' examples: answer: $ref: '#/components/examples/BotBrowserExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/BrowserConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/BrowserRequestNotJson' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/BrowserUnfinished' '502': $ref: '#/components/responses/BrowserUnreachable' '503': $ref: '#/components/responses/BrowserUnavailable' '504': $ref: '#/components/responses/BrowserNotAnswering' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/browser/recording: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Browsers operationId: recordInBotBrowser summary: Start or stop recording in a Bot's browser description: 'Start recording what the caller does in a Bot''s browser, or stop their recording. Only the person is recorded, never the Bot: a start is for the person holding control, while nothing else records there, and the recording ends when control goes back to the Bot. Only the person who started a recording can stop it. Where Bots share one computer nothing can be recorded in a Bot''s browser, and a start is refused. Whether the person narrates is not read here: a Bot''s browser is narrated from the page.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BrowserRecordingRequest' examples: start: value: action: start title: File the weekly pipeline report language: en-US stop: value: action: stop responses: '200': description: The Bot's browser, with the recording started or stopped. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotBrowser' examples: answer: $ref: '#/components/examples/BotBrowserExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/BrowserConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/BrowserRequestNotJson' '429': $ref: '#/components/responses/BrowserTooManyConnections' '500': $ref: '#/components/responses/BrowserUnfinished' '502': $ref: '#/components/responses/BrowserUnreachable' '503': $ref: '#/components/responses/BrowserUnavailable' '504': $ref: '#/components/responses/BrowserNotAnswering' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/browser/narration: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Browsers operationId: narrateInBotBrowser summary: Add narration to a recording in a Bot's browser description: 'Send one thing the caller said while recording in a Bot''s browser: a finished phrase with when it started and ended, or that they began or stopped speaking. Times are the sender''s clock; the server moves them onto its own from when the request arrived and sentAt. Only the person whose recording is running may.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BrowserNarrationRequest' examples: phrase: value: text: Now I open last week's report. startedAt: 1794650400000 endedAt: 1794650403500 sentAt: 1794650403600 startedSpeaking: value: speaking: true since: 1794650405000 sentAt: 1794650405100 responses: '200': description: The narration was taken. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BrowserNarrationTaken' examples: answer: $ref: '#/components/examples/BrowserNarrationTakenExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/BrowserConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/BrowserRequestNotJson' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/BrowserUnfinished' '502': $ref: '#/components/responses/BrowserUnreachable' '503': $ref: '#/components/responses/BrowserUnavailable' '504': $ref: '#/components/responses/BrowserNotAnswering' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/computers/{botId}/browser/clear: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' post: tags: - Browsers operationId: clearBotBrowser summary: Clear a Bot's browser description: 'Wipe a Bot''s browser: its cookies, saved passwords, history and site storage, which signs it out of everything. A recording running there ends first. The browser starts again, fresh, under the person holding control, who is the only one who may clear it. The audit trail records it.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The fresh browser. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotBrowser' examples: answer: $ref: '#/components/examples/BotBrowserExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/BrowserConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/BrowserUnfinished' '502': $ref: '#/components/responses/BrowserUnreachable' '503': $ref: '#/components/responses/BrowserUnavailable' '504': $ref: '#/components/responses/BrowserNotAnswering' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/browser: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Browsers operationId: getPersonBrowser summary: Read a person's own browser description: 'Return the browser OpenBot runs for a person: whether this OpenBot can run one at all, where it shows, whether it is open, its tabs, what the Recorder in it is doing, and what any of the person''s Recorders is recording. It is the person''s alone: nobody else, an administrator included, may read it. Reading it never starts a computer or opens the browser.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - computers:read - apiKey: [] responses: '200': description: The person's browser. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonBrowser' examples: answer: $ref: '#/components/examples/PersonBrowserExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/BrowserUnfinished' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/browser/open: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Browsers operationId: openPersonBrowser summary: Open a person's own browser description: Open the caller's browser, or bring it forward when it is already open, with the Recorder in it connected as them. On OpenBot Desktop it may instead bring the person's everyday Chrome or Edge forward, or open the Recorder's store page in it; the answer says which. Only the person themselves may. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: What opened. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonBrowserOpened' examples: answer: $ref: '#/components/examples/PersonBrowserOpenedExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/BrowserConflict' '429': $ref: '#/components/responses/BrowserTooManyConnections' '500': $ref: '#/components/responses/BrowserUnfinished' '502': $ref: '#/components/responses/BrowserUnreachable' '503': $ref: '#/components/responses/BrowserUnavailable' '504': $ref: '#/components/responses/BrowserNotAnswering' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/browser/tabs: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Browsers operationId: changePersonBrowserTabs summary: Open, switch to or close a tab in a person's own browser description: Open a new tab, switch to a tab or close one in the caller's browser. Only web addresses open. Only the person themselves may. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BrowserTabsRequest' examples: newTab: value: action: new url: https://www.salesforce.com switch: value: action: activate tabId: tab_2 responses: '200': description: The person's browser after the change. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonBrowser' examples: answer: $ref: '#/components/examples/PersonBrowserExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/BrowserConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/BrowserRequestNotJson' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/BrowserUnfinished' '502': $ref: '#/components/responses/BrowserUnreachable' '503': $ref: '#/components/responses/BrowserUnavailable' '504': $ref: '#/components/responses/BrowserNotAnswering' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/browser/navigate: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Browsers operationId: navigatePersonBrowser summary: Go to an address in a person's own browser description: Open an address in the tab the caller is on in their browser, or go back, forward or reload. Only web addresses open. Only the person themselves may. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BrowserNavigateRequest' examples: address: value: url: salesforce.com/reports back: value: action: back responses: '200': description: The person's browser after it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonBrowser' examples: answer: $ref: '#/components/examples/PersonBrowserExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/BrowserConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/BrowserRequestNotJson' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/BrowserUnfinished' '502': $ref: '#/components/responses/BrowserUnreachable' '503': $ref: '#/components/responses/BrowserUnavailable' '504': $ref: '#/components/responses/BrowserNotAnswering' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/browser/recording: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Browsers operationId: recordInPersonBrowser summary: Start or stop recording in a person's own browser description: Start recording what the caller does in their browser, named for the task, or stop the recording. A start connects the Recorder again first when its connection has gone. Only the person themselves may. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BrowserRecordingRequest' examples: start: value: action: start title: File the weekly pipeline report language: en-US stop: value: action: stop responses: '200': description: The person's browser, with the recording started or stopped. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonBrowser' examples: answer: $ref: '#/components/examples/PersonBrowserExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/BrowserConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/BrowserRequestNotJson' '429': $ref: '#/components/responses/BrowserTooManyConnections' '500': $ref: '#/components/responses/BrowserUnfinished' '502': $ref: '#/components/responses/BrowserUnreachable' '503': $ref: '#/components/responses/BrowserUnavailable' '504': $ref: '#/components/responses/BrowserNotAnswering' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/browser/narration: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Browsers operationId: narrateInPersonBrowser summary: Add narration to a recording in a person's own browser description: 'Send one thing the caller said while recording in their browser: a finished phrase with when it started and ended, or that they began or stopped speaking. Times are the sender''s clock; the server moves them onto its own from when the request arrived and sentAt. Only the person themselves may.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BrowserNarrationRequest' examples: phrase: value: text: Now I open last week's report. startedAt: 1794650400000 endedAt: 1794650403500 sentAt: 1794650403600 startedSpeaking: value: speaking: true since: 1794650405000 sentAt: 1794650405100 responses: '200': description: The narration was taken. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BrowserNarrationTaken' examples: answer: $ref: '#/components/examples/BrowserNarrationTakenExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/BrowserConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/BrowserRequestNotJson' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/BrowserUnfinished' '502': $ref: '#/components/responses/BrowserUnreachable' '503': $ref: '#/components/responses/BrowserUnavailable' '504': $ref: '#/components/responses/BrowserNotAnswering' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/browser/clear: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Browsers operationId: clearPersonBrowser summary: Clear a person's own browser description: 'Wipe the caller''s browser: its cookies, saved passwords, history and site storage, which signs it out of everything, and ends the Recorder''s connection there. One that was open opens again, fresh. The audit trail records it. Only the person themselves may.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The person's browser after it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonBrowser' examples: answer: $ref: '#/components/examples/PersonBrowserExample' '400': $ref: '#/components/responses/BrowserInvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BrowserForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/BrowserConflict' '429': $ref: '#/components/responses/BrowserTooManyConnections' '500': $ref: '#/components/responses/BrowserUnfinished' '502': $ref: '#/components/responses/BrowserUnreachable' '503': $ref: '#/components/responses/BrowserUnavailable' '504': $ref: '#/components/responses/BrowserNotAnswering' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/windows-computer: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Windows computer operationId: getWindowsComputer summary: Read the caller's Windows computer description: 'Say whether the caller''s Windows computer is ready, who is using it, the caller or their Bot, and what is being recorded on it. Each person reads only their own: a person has one in each organization.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - computers:read - apiKey: [] responses: '200': description: The Windows computer, who is using it, and its recording. headers: X-Request-Id: $ref: '#/components/headers/RequestId' Cache-Control: $ref: '#/components/headers/PrivateNoStore' content: application/json: schema: $ref: '#/components/schemas/WindowsComputer' examples: answer: $ref: '#/components/examples/WindowsComputerExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/WindowsComputerNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/windows-computer/control/take: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Windows computer operationId: takeWindowsComputerControl summary: Take over the Windows computer description: Give the caller the Windows computer's mouse and keyboard. The Bot's actions are refused until it is handed back. The audit trail records the takeover. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: Who is using the Windows computer afterwards. headers: X-Request-Id: $ref: '#/components/headers/RequestId' Cache-Control: $ref: '#/components/headers/PrivateNoStore' content: application/json: schema: $ref: '#/components/schemas/WindowsComputerControl' examples: answer: $ref: '#/components/examples/WindowsComputerControlTakenExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/WindowsComputerNotFound' '409': $ref: '#/components/responses/WindowsComputerConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/WindowsComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/windows-computer/control/release: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Windows computer operationId: releaseWindowsComputerControl summary: Hand the Windows computer back description: Hand the Windows computer's mouse and keyboard back to the Bot. The Bot looks at the screen again before its next action. The audit trail records the hand-back. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: Who is using the Windows computer afterwards. headers: X-Request-Id: $ref: '#/components/headers/RequestId' Cache-Control: $ref: '#/components/headers/PrivateNoStore' content: application/json: schema: $ref: '#/components/schemas/WindowsComputerControl' examples: answer: $ref: '#/components/examples/WindowsComputerControlReleasedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/WindowsComputerNotFound' '409': $ref: '#/components/responses/WindowsComputerConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/WindowsComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/windows-computer/recording/start: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Windows computer operationId: startWindowsComputerRecording summary: Start recording on the Windows computer description: Start recording what the caller does in the named apps on their Windows computer, so OpenBot can learn how they do the task. What they type into a password field, or a field whose kind can't be told, is never recorded. The recording goes to the caller's own Learning space. Saying what you are showing, in narration, is what OpenBot learns most from. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/WindowsComputerRecordingStart' examples: start: value: title: Save a meeting note narration: I open Notepad, type the note, press Ctrl+S and save it under the meeting's date. apps: - notepad.exe responses: '200': description: The recording, started. headers: X-Request-Id: $ref: '#/components/headers/RequestId' Cache-Control: $ref: '#/components/headers/PrivateNoStore' content: application/json: schema: $ref: '#/components/schemas/WindowsComputerRecording' examples: answer: $ref: '#/components/examples/WindowsComputerRecordingStartedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/WindowsComputerNotFound' '409': $ref: '#/components/responses/WindowsComputerConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/WindowsComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/windows-computer/recording/stop: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Windows computer operationId: stopWindowsComputerRecording summary: Stop recording on the Windows computer description: Stop the recording, send what is left of it to Learning, and say whether the task worked. Answers once everything recorded has been sent, or once it has waited long enough; what could not be sent is counted in gaps. security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/WindowsComputerRecordingStop' examples: worked: value: outcome: succeeded failed: value: outcome: failed reason: The save dialog asked for a folder I don't have. responses: '200': description: The recording, stopped. headers: X-Request-Id: $ref: '#/components/headers/RequestId' Cache-Control: $ref: '#/components/headers/PrivateNoStore' content: application/json: schema: $ref: '#/components/schemas/WindowsComputerRecording' examples: answer: $ref: '#/components/examples/WindowsComputerRecordingStoppedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/WindowsComputerNotFound' '409': $ref: '#/components/responses/WindowsComputerConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/WindowsComputerUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/windows-computer/enrollment-codes: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Windows computer operationId: createWindowsComputerEnrollmentCode summary: Make a code that connects a Windows computer description: 'Make a one-time code that connects a Windows computer to the caller: OpenBot''s program on that computer exchanges it (exchangeWindowsComputerEnrollmentCode) and from then on connects to OpenBot by itself, so OpenBot never has to reach into the computer''s network. The code is in this answer and never again, works once and expires in fifteen minutes. Because it is a credential the answer is not kept: a retry with the same Idempotency-Key is refused as a conflict rather than answered with the code again, so make a new code with a new key. A person makes codes only for their own Windows computer, and only so many at once.' security: - webSession: [] - appOAuth: - computers:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '201': description: The code, shown this once. headers: X-Request-Id: $ref: '#/components/headers/RequestId' Cache-Control: $ref: '#/components/headers/PrivateNoStore' content: application/json: schema: $ref: '#/components/schemas/WindowsComputerEnrollmentCode' examples: answer: $ref: '#/components/examples/WindowsComputerEnrollmentCodeExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/WindowsComputerNotFound' '409': $ref: '#/components/responses/WindowsComputerConflict' '429': $ref: '#/components/responses/TooManyWindowsComputerEnrollmentCodes' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/windows-computer/connections: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Windows computer operationId: exchangeWindowsComputerEnrollmentCode summary: Connect a Windows computer with a code description: 'Exchange an enrollment code (createWindowsComputerEnrollmentCode) for the Windows computer''s own credential, shown this once, which it opens its link to OpenBot with from now on (the windowsComputerLink socket). Nobody is signed in here: the code in the body is the credential and works once. organizationId is `default` or the code''s own organization, and either way the Windows computer is connected in the organization the code was made in. A Windows computer connected before, for the same person, is disconnected: a person has one. Every refusal is written to the audit trail. The answer is never kept, because it holds the credential.' security: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/WindowsComputerEnrollmentExchange' examples: exchange: value: code: obwe_3q2-7wEXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLE0 name: DESKTOP-4F2K9QA responses: '201': description: The Windows computer's credential, shown this once. headers: X-Request-Id: $ref: '#/components/headers/RequestId' Cache-Control: $ref: '#/components/headers/PrivateNoStore' content: application/json: schema: $ref: '#/components/schemas/WindowsComputerConnectionGrant' examples: answer: $ref: '#/components/examples/WindowsComputerConnectionGrantExample' '400': $ref: '#/components/responses/InvalidWindowsComputerEnrollmentCode' '404': $ref: '#/components/responses/OrganizationNotFound' '413': $ref: '#/components/responses/PayloadTooLarge' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/sign-in-requests: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Sign-in requests operationId: listSignInRequests summary: List a person's open sign-in requests description: 'Return one page of the sign-in requests a person''s Bots are waiting on: the ones still open (pending, code_required or taken_over) and not yet expired, newest first. Never a credential. Only the person themselves may list them. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - sign-in-requests:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of open sign-in requests. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SignInRequestPage' examples: example: $ref: '#/components/examples/SignInRequestPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Sign-in requests operationId: createSignInRequest summary: Ask a person to sign a Bot in to a website description: 'Open a sign-in request: a Bot in the person''s open conversation asking them to sign it in to one website. The person answers it on a private form, and what they type goes to the Bot''s browser and nowhere else. The request names the site by its origin, and expires if it is not answered. Only the person themselves may open one, for a Bot whose computer they may use. On an OpenBot with no computers for Bots there is nowhere to sign a Bot in, and the answer is 503, as the computers answer there: nothing was opened. The deployment''s botComputers says so beforehand.' security: - webSession: [] - appOAuth: - sign-in-requests:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateSignInRequestRequest' examples: example: value: botId: research-bot site: https://example.com/login reason: To read your invoices. responses: '201': description: The request that was opened. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SignInRequestEnvelope' examples: example: $ref: '#/components/examples/SignInRequestExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/SignInBotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/SignInComputersUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/sign-in-requests/{signInRequestId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SignInRequestId' get: tags: - Sign-in requests operationId: getSignInRequest summary: Read a sign-in request description: 'Return one sign-in request as its private form shows it: where it has got to, the last thing that happened, and the usernames of the person''s saved logins for that site while the password manager is on. Never a credential. Only the person it was opened for may read it; anybody else''s is not found. A request belongs to the organization the Bot asked in, and is not found in any other, so the link a Bot hands the person (/sign-in/{signInRequestId}) opens only while they are working in that organization.' security: - webSession: [] - appOAuth: - sign-in-requests:read - apiKey: [] responses: '200': description: The request. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SignInRequestEnvelope' examples: example: $ref: '#/components/examples/SignInRequestExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/SignInRequestNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/sign-in-requests/{signInRequestId}/submit: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SignInRequestId' post: tags: - Sign-in requests operationId: submitSignIn summary: Sign in with a typed login description: 'Type a username and password into the site in the Bot''s browser. The credential goes to that browser and nowhere else: it is never written to the conversation, the audit trail, a log or the record of this write. The answer says whether the site took it: signed_in, code_required when the site then asked for a verification code, or pending again with why it did not work. With save, and the password manager on, a login the site accepted is kept for next time.' security: - webSession: [] - appOAuth: - sign-in-requests:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SubmitSignInRequest' examples: example: value: username: sam@example.com password: correct horse battery staple save: false responses: '200': description: The request as this left it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SignInRequestEnvelope' examples: example: $ref: '#/components/examples/SignInRequestExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SignInForbidden' '404': $ref: '#/components/responses/SignInRequestNotFound' '409': $ref: '#/components/responses/SignInRequestConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/sign-in-requests/{signInRequestId}/code: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SignInRequestId' post: tags: - Sign-in requests operationId: submitSignInCode summary: Enter the verification code a site sent description: 'Type the verification code the site asked for, once the request is code_required. The code goes to the Bot''s browser and nowhere else, and is never saved: a code is good once.' security: - webSession: [] - appOAuth: - sign-in-requests:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SubmitSignInCodeRequest' examples: example: value: code: '482913' responses: '200': description: The request as this left it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SignInRequestEnvelope' examples: example: $ref: '#/components/examples/SignInRequestExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SignInForbidden' '404': $ref: '#/components/responses/SignInRequestNotFound' '409': $ref: '#/components/responses/SignInRequestConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/sign-in-requests/{signInRequestId}/use-saved: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SignInRequestId' post: tags: - Sign-in requests operationId: useSavedLogin summary: Sign in with a saved login description: Sign in with one of the person's saved logins for exactly this site, which is the person's confirmation to use it this once. Refused while the password manager is off, and for a login saved for any other site. security: - webSession: [] - appOAuth: - sign-in-requests:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UseSavedLoginRequest' examples: example: value: savedLoginId: 7b1d6f0e-3c2a-4b5d-8e9f-0a1b2c3d4e5f responses: '200': description: The request as this left it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SignInRequestEnvelope' examples: example: $ref: '#/components/examples/SignInRequestExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SignInForbidden' '404': $ref: '#/components/responses/SignInRequestNotFound' '409': $ref: '#/components/responses/SignInRequestConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/sign-in-requests/{signInRequestId}/take-over: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SignInRequestId' post: tags: - Sign-in requests operationId: takeOverSignIn summary: Sign in by hand instead description: Hand the person the Bot's browser so they sign in themselves, from a request that is pending or waiting on a verification code. The request becomes taken_over and names the control request that hands the browser over. security: - webSession: [] - appOAuth: - sign-in-requests:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The request as this left it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SignInRequestEnvelope' examples: example: $ref: '#/components/examples/SignInRequestExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SignInForbidden' '404': $ref: '#/components/responses/SignInRequestNotFound' '409': $ref: '#/components/responses/SignInRequestConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/sign-in-requests/{signInRequestId}/finish: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SignInRequestId' post: tags: - Sign-in requests operationId: finishSignIn summary: Say the sign-in by hand is done description: After taking the browser over, say the person is signed in, so the Bot carries on. Refused unless the request is taken_over. security: - webSession: [] - appOAuth: - sign-in-requests:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The request as this left it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SignInRequestEnvelope' examples: example: $ref: '#/components/examples/SignInRequestExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SignInForbidden' '404': $ref: '#/components/responses/SignInRequestNotFound' '409': $ref: '#/components/responses/SignInRequestConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/sign-in-requests/{signInRequestId}/cancel: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SignInRequestId' post: tags: - Sign-in requests operationId: cancelSignIn summary: Decline a sign-in request description: Decline to sign the Bot in. The Bot is told the person chose not to, and not to ask for the login another way. Refused once the request is no longer open. security: - webSession: [] - appOAuth: - sign-in-requests:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The request as this left it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SignInRequestEnvelope' examples: example: $ref: '#/components/examples/SignInRequestExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SignInForbidden' '404': $ref: '#/components/responses/SignInRequestNotFound' '409': $ref: '#/components/responses/SignInRequestConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/saved-logins: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Saved logins operationId: listSavedLogins summary: List a person's saved logins description: 'Return one page of the logins a person saved for their Bots to sign in with, by site and username, and whether the password manager is on for them. Never a password: one goes in and is never read back out. Only the person themselves may list them. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - saved-logins:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of saved logins. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SavedLoginPage' examples: example: $ref: '#/components/examples/SavedLoginPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/saved-logins/{savedLoginId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SavedLoginId' delete: tags: - Saved logins operationId: deleteSavedLogin summary: Delete a saved login description: Forget a saved login, password included. Only the person who saved it may delete it. One already deleted is not found, which a client can read as done. security: - webSession: [] - appOAuth: - saved-logins:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The saved login was deleted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/SavedLoginNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/saved-logins/purge: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Saved logins operationId: purgeSavedLogins summary: Delete the saved logins nobody may use description: 'Delete, passwords included, the saved logins in the organization that nobody may use any more, in two groups. The first is every current member the Password manager switch is off for. The switch is read for each person as it applies to them, by their role, directory groups and teams, as getPersonCapabilities answers it: a group or team that turns it back on for its members keeps their logins. The second is every person removed from the organization: somebody who is no longer a member of it, or whose address can''t sign in to this OpenBot any more. Every other saved login stays. The answer counts what was deleted in each group, 0 where there was nothing to delete, and the purge is recorded on the audit trail. The second group is almost always 0: removing somebody already deletes their saved logins, and a daily sweep deletes any left behind. It is a safety net, so a 0 there is expected. getUnusableSavedLogins reads the same two counts without deleting anything. Only an administrator of the organization may do this. The personal edition has no switches to set and nobody to remove, so it doesn''t serve this and answers 404.' security: - webSession: [] - appOAuth: - saved-logins:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: How many saved logins were deleted in each group. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SavedLoginsPurged' examples: answer: $ref: '#/components/examples/SavedLoginsPurgedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/saved-logins/unusable: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Saved logins operationId: getUnusableSavedLogins summary: Count the saved logins nobody may use description: 'Count, without deleting anything, the saved logins in the organization that nobody may use any more: exactly what purgeSavedLogins would delete at this moment, in the same two groups. The first is every current member the Password manager switch is off for, read for each person by their role, directory groups and teams, as getPersonCapabilities answers it. The second is every person removed from the organization: somebody who is no longer a member of it, or whose address can''t sign in to this OpenBot any more. Each count is 0 where there is nothing to delete. The second group is almost always 0: removing somebody already deletes their saved logins, and a daily sweep deletes any left behind. It is a safety net, so a 0 there is expected. A client reads this to say how many a purge will delete before asking for one. Only an administrator of the organization may read it. The personal edition has no switches to set and nobody to remove, so it doesn''t serve this and answers 404.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - saved-logins:read - apiKey: [] responses: '200': description: How many saved logins a purge would delete in each group. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SavedLoginCounts' examples: answer: $ref: '#/components/examples/UnusableSavedLoginsExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/recorder-connect-codes: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Recorder operationId: createRecorderConnectCode summary: Make a code that connects a browser's Recorder description: 'Make a one-time code the OpenBot Recorder in a browser exchanges for a connection as this person (exchangeRecorderConnectCode). The code is in this answer and never again, works once and expires in five minutes. Because it is a credential the answer is not kept: a retry with the same Idempotency-Key is refused as a conflict rather than answered with the code again, so make a new code with a new key. Only the person themselves may make one, and only so many at once.' security: - webSession: [] - appOAuth: - recorder:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateRecorderConnectCodeRequest' examples: example: value: via: web responses: '201': description: The code, shown this once. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RecorderConnectCode' examples: example: $ref: '#/components/examples/RecorderConnectCodeExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/RecorderSecretConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/RecorderJsonOnly' '429': $ref: '#/components/responses/TooManyRecorderConnectCodes' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/recorder-connections: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Recorder operationId: listRecorderConnections summary: List a person's connected browsers description: Return one page of the browsers whose Recorder is connected as this person, oldest first, each with whether it is recording now by its own latest report, and the Recorder extension ids this OpenBot trusts. Never a connection's token. Only the person themselves may list them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - recorder:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of connected browsers. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RecorderConnectionPage' examples: example: $ref: '#/components/examples/RecorderConnectionPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/recorder-connections/{recorderConnectionId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/RecorderConnectionId' delete: tags: - Recorder operationId: deleteRecorderConnection summary: Disconnect a browser description: 'End one of the person''s Recorder connections from OpenBot: from now on that browser''s Recorder is refused as signed out, and where OpenBot can reach the browser it is told at once. Only the person themselves may disconnect their browsers. One already ended is not found, which a client can read as done.' security: - webSession: [] - appOAuth: - recorder:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The browser was disconnected. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/RecorderConnectionNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/recordings: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Recorder operationId: listRecordings summary: List a person's recordings description: Return one page of the recordings a person made with the Recorder, newest first, each with how it ended. Only the person themselves may list them. A page that could not be read in full says so in unavailable and keeps its cursor, so asking again retries it. A missing cursor starts at the first page and nextCursor null ends the list. A page holds at most 50 recordings, whatever limit asks for. security: - webSession: [] - appOAuth: - recorder:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of recordings. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RecordingPage' examples: example: $ref: '#/components/examples/RecordingPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/RecordingsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/recorder-connections: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Recorder operationId: exchangeRecorderConnectCode summary: Connect a browser's Recorder with a code description: 'Exchange a connect code (createRecorderConnectCode) for a connection: the token the Recorder signs its own requests with from now on, shown this once. Nobody is signed in here: the code in the body is the credential, it works once, and only the OpenBot Recorder extension may ask, by its browser Origin. Every refusal is written to the audit trail. The code working once is what makes this write happen once; the Idempotency-Key is required as on every write, and the answer is never kept, because it holds the token.' security: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ExchangeRecorderConnectCodeRequest' examples: example: value: code: obc_3q2-7wEXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLE0 label: Chrome on Sam's Mac installId: 0123456789abcdef0123456789abcdef responses: '201': description: The connection, with its token shown this once. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RecorderConnectionGrant' examples: example: $ref: '#/components/examples/RecorderConnectionGrantExample' '400': $ref: '#/components/responses/InvalidRecorderConnectCode' '403': $ref: '#/components/responses/RecorderOriginRefused' '404': $ref: '#/components/responses/OrganizationNotFound' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/RecorderJsonOnly' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/recorder-connections/current: parameters: - $ref: '#/components/parameters/OrganizationId' delete: tags: - Recorder operationId: deleteCurrentRecorderConnection summary: Disconnect this browser's Recorder description: 'End the connection the request is signed with: the Recorder''s own Disconnect. Signed with the Recorder''s connection token and nothing else. organizationId is `default` or the connection''s own organization, and either way the call acts in the connection''s organization.' security: - recorderConnection: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: This browser was disconnected. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/RecorderSignedOut' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/RecorderConnectionNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/RecorderAuthorityUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/recorder/me: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Recorder operationId: getRecorderIdentity summary: Read who a Recorder is connected as description: Return the person this Recorder's connection acts as, and the connection's id. Signed with the Recorder's connection token and nothing else. organizationId is `default` or the connection's own organization, and either way the answer is for the connection's organization. A connection that has ended is refused as signed out, with why. x-openbot-singleton: true security: - recorderConnection: [] responses: '200': description: The person and the connection. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RecorderIdentity' examples: example: $ref: '#/components/examples/RecorderIdentityExample' '401': $ref: '#/components/responses/RecorderSignedOut' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/RecorderAuthorityUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/recorder/learning: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Recorder operationId: getRecorderLearning summary: Read where a Recorder's recordings are learned from description: Return whether the recordings this Recorder's person makes land in their own Learning space, which is made on first need. Signed with the Recorder's connection token and nothing else. organizationId is `default` or the connection's own organization, and either way the answer is for the connection's organization. x-openbot-singleton: true security: - recorderConnection: [] responses: '200': description: The person's Learning space. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RecorderLearning' examples: example: $ref: '#/components/examples/RecorderLearningExample' '401': $ref: '#/components/responses/RecorderSignedOut' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/RecorderAuthorityUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/recorder/activity: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Recorder operationId: reportRecorderActivity summary: Say what a Recorder is doing now description: 'Report what this browser''s Recorder is doing, which it says whenever its recording phase changes and every 30 seconds while a recording runs, so OpenBot can show a recording wherever the person made it. Kept against the connection in place of the last report, and never audited: it is a heartbeat. Signed with the Recorder''s connection token and nothing else. organizationId is `default` or the connection''s own organization, and either way the report is kept in the connection''s organization.' security: - recorderConnection: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RecorderActivity' examples: example: value: phase: recording recordingId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 title: File an expense startedAt: 1794650000000 actions: 12 responses: '204': description: The report was kept. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/RecorderSignedOut' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '415': $ref: '#/components/responses/RecorderJsonOnly' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/RecorderAuthorityUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/product-events: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Product events operationId: recordProductEvent summary: Record that the caller saw or copied a Bot's answer description: 'Tell OpenBot that the caller saw a Bot''s answer on screen, or copied it, so OpenBot can count which answers people use. It is best effort: a client sends one for each answer it shows or copies, waits on nothing, and sends it with keepalive so it still leaves when the page closes. The event counts for the caller, and names only the answer. Where this OpenBot has product telemetry switched off, it is accepted and dropped.' security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ProductEvent' examples: viewed: $ref: '#/components/examples/ProductEventViewed' responses: '204': description: The event is accepted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/app-errors: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Product events operationId: recordAppError summary: Report an error the app did not handle description: 'Tell OpenBot about an error the app hit and did not handle: one its error screen caught, or one the page threw or left unhandled. OpenBot forwards it with the rest of its product telemetry, so the app never holds a telemetry key, and takes out of its message and stack anything that could name a person, quote what they wrote, or carry a secret before it leaves. It is best effort: a client sends one per error, waits on nothing, and sends it with keepalive. Where this OpenBot has product telemetry switched off, it is accepted and dropped.' security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AppError' examples: errorScreen: $ref: '#/components/examples/AppErrorBoundary' responses: '204': description: The error is accepted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/app-errors: post: tags: - Product events operationId: recordSignedOutAppError summary: Report an error the app hit before anyone signed in description: 'Tell OpenBot about an error the app hit and did not handle before anyone is signed in to an organization: while signing in, or on the sign-in page. A signed-in app keeps using recordAppError. Nobody is signed in here, so the report names nobody: OpenBot attaches no person and no organization to it. As with recordAppError, OpenBot forwards it with the rest of its product telemetry and takes out of its message and stack anything that could name a person, quote what they wrote, or carry a secret before it leaves. It is best effort: a client sends one per error, waits on nothing, and sends it with keepalive. Where this OpenBot has product telemetry switched off, it is accepted and dropped. OpenBot limits how many it takes from one address and in all, and answers 429 past either. The Idempotency-Key is required as on every write, and the answer is never kept.' security: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AppError' examples: errorScreen: $ref: '#/components/examples/AppErrorBoundary' responses: '204': description: The error is accepted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '413': $ref: '#/components/responses/PayloadTooLarge' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/nudge-events: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Product events operationId: recordNudgeEvent summary: Record what the caller did with a nudge description: 'Tell OpenBot that a nudge (a notice OpenBot shows a person once, such as the ask to star OpenBot on GitHub) was shown to the caller, that they followed it, or that they dismissed it, and where. OpenBot adds the moment that made it due, from what it already knows about the caller, so the counts say which moment works. It is best effort: a client sends one per show or answer and waits on nothing. Saving the answer is a separate change to the caller''s preferences (`dismissedNotices`). The event counts for the caller and names nothing else. Where this OpenBot has product telemetry switched off, it is accepted and dropped.' security: - webSession: [] - appOAuth: - conversations:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/NudgeEvent' examples: clicked: $ref: '#/components/examples/NudgeClicked' responses: '204': description: The event is accepted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/learning: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Learning operationId: getLearningSettings summary: Read the organization's Learning settings description: 'Return whether Automatic learning is on, the Learning space every Bot learns into and each Bot''s own, who reviews what people''s recordings propose, and what OpenBot last found when it looked for the space it assigns by itself. Only an administrator may read them. A single-person OpenBot has no such settings: it answers not found.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - learning:read - apiKey: [] responses: '200': description: The Learning settings. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningConfiguration' examples: assigned: $ref: '#/components/examples/LearningConfigurationExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Learning operationId: updateLearningSettings summary: Change the organization's Learning settings description: Change the settings sent and keep the rest. bots replaces every Bot's own space at once. At least one is required. Only an administrator may change them. Recorded on the audit trail. security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateLearningSettingsRequest' examples: people: value: personalReview: people 'on': value: enabled: true defaultTarget: containerId: openbot responses: '200': description: The Learning settings, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningConfiguration' examples: assigned: $ref: '#/components/examples/LearningConfigurationExample' '400': $ref: '#/components/responses/InvalidLearningSettings' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/learning/create-container: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Learning operationId: createAutomaticLearningSpace summary: Create the Learning space OpenBot assigns by itself description: Create, in the organization's backend, the Learning space OpenBot assigns when nobody chose one, with the credential this deployment holds for it, then assign it. Offered only where the settings say canCreate. Only an administrator may. Recorded on the audit trail. security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: What OpenBot found once it tried. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningAutomaticResult' examples: assigned: value: automatic: state: assigned containerId: openbot '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/AutomaticLearningOff' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/learning/overview: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Learning operationId: getLearningOverview summary: Read how Learning is going for a space description: 'Return how Learning stands in the space every Bot learns into, or in one Bot''s own: whether it is set up, how much waits for review, how many skills and insights it published, whether a run is going, links into the backend dashboard where there is one, and why Learning can''t run on this machine''s model where that is known. A backend with no dashboard can''t count waiting conversations, published skills or insights: those are null then, and so is every link. Only an administrator may read it.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - $ref: '#/components/parameters/LearningBotFilter' responses: '200': description: How Learning stands. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningOverview' examples: configured: $ref: '#/components/examples/LearningOverviewExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningAdminOnly' '404': $ref: '#/components/responses/LearningSpaceNotFound' '409': $ref: '#/components/responses/LearningOff' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/learning/skills: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Learning operationId: listPublishedSkills summary: List the skills published to a space description: Return one page of the skills Learning published to the space every Bot learns into, or to one Bot's own, by name, as OpenBot delivers them to Bots. containerId is null, and the list empty, where no space is assigned. Only an administrator may list them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - $ref: '#/components/parameters/LearningBotFilter' - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of published skills. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PublishedSkillPage' examples: lastPage: $ref: '#/components/examples/PublishedSkillPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/LearningUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/learning/skills/{skillName}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SkillName' get: tags: - Learning operationId: getPublishedSkill summary: Read a skill published to a space description: Return one skill Learning published to the space every Bot learns into, or to one Bot's own, with its files. Only an administrator may read it. security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - $ref: '#/components/parameters/LearningBotFilter' responses: '200': description: The skill and its files. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearnedSkill' examples: skill: $ref: '#/components/examples/LearnedSkillExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/LearnedSkillNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/LearningUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/personal-learning-proposals: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Learning operationId: listPersonalLearningProposals summary: List what people's recordings proposed description: Return one page of the people whose recordings Learning reads, each with their own Learning space and the proposals in it that wait for review. A person whose space could not be read has proposals null; one who never recorded has none. Only an administrator may list them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of people. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningPersonPage' examples: lastPage: $ref: '#/components/examples/LearningPersonPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/LearningUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/learning-status: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Learning operationId: getBotLearningStatus summary: Read how a Bot's learned skills reach it description: Return whether a Bot learns into a space, which revision of that space's skills it last received, whether that is out of date, and why the last check failed. Only an administrator may read it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - learning:read - apiKey: [] responses: '200': description: How the Bot's learned skills reach it. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SkillDelivery' examples: current: value: configured: true containerId: openbot revision: '17' initialized: true stale: false lastCheckedAt: '2026-11-14T09:00:00.000Z' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/skill-sharing-requests: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Learning operationId: listSkillSharingRequests summary: List requests to share a skill with every Bot description: Return one page of the requests people made to open a skill they approved for themselves to every Bot, oldest first. Only an administrator may list them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of sharing requests. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SkillSharingRequestPage' examples: lastPage: value: requests: - id: dXNlcl8zZjFjOWEAV2Vla2x5IHJlcG9ydA personId: user_3f1c9a name: Ada Lovelace skillName: Weekly report requestedAt: '2026-11-14T08:30:00.000Z' nextCursor: null '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/skill-sharing-requests/{skillSharingRequestId}/approve: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SkillSharingRequestId' post: tags: - Learning operationId: approveSkillSharing summary: Share a learned skill with every Bot description: 'Approve a person''s request to open a skill they approved for themselves to every Bot. requestedAt is the request as the administrator read it: a skill that changed since is refused, so the administrator reads it again. Only an administrator may. Recorded on the audit trail.' security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SkillSharingDecision' examples: asRead: value: requestedAt: '2026-11-14T08:30:00.000Z' responses: '200': description: The request is approved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SkillSharingOutcome' examples: approved: value: skillName: Weekly report sharing: approved '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/SharingRequestNotFound' '409': $ref: '#/components/responses/SharingRequestChanged' '413': $ref: '#/components/responses/PayloadTooLarge' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/skill-sharing-requests/{skillSharingRequestId}/decline: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SkillSharingRequestId' post: tags: - Learning operationId: declineSkillSharing summary: Keep a learned skill with its person's Bots description: 'Decline a person''s request to open a skill to every Bot: it stays with their own Bots. requestedAt is the request as the administrator read it. Only an administrator may. Recorded on the audit trail.' security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SkillSharingDecision' examples: asRead: value: requestedAt: '2026-11-14T08:30:00.000Z' responses: '200': description: The request is declined. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SkillSharingOutcome' examples: declined: value: skillName: Weekly report sharing: declined '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/SharingRequestNotFound' '409': $ref: '#/components/responses/SharingRequestChanged' '413': $ref: '#/components/responses/PayloadTooLarge' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/learning-settings: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Learning operationId: getPersonLearningSettings summary: Read a person's Learning choices and skills description: Return who else's Bots use the skills learned in a person's own Learning space, whether an administrator lets people open skills to every Bot, and the skills published in the person's spaces with what they chose for each. skills is null, and unavailable says why, when they could not be read. Only the person themselves may read it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - learning:read - apiKey: [] responses: '200': description: The person's Learning choices and skills. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonLearning' examples: closed: $ref: '#/components/examples/PersonLearningExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Learning operationId: updatePersonLearningSettings summary: Change a person's Learning choices description: Change who else's Bots use the skills learned in the person's own space, and, in a single-person OpenBot, whether proposals are approved without a review. Opening skills to every Bot waits for an administrator to allow it; closing them never does. At least one is required. Only the person themselves may change them. Recorded on the audit trail. security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdatePersonLearningRequest' examples: open: value: mode: open responses: '200': description: The person's Learning choices, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonLearningChoices' examples: open: value: mode: open autoApprove: null '400': $ref: '#/components/responses/InvalidLearningChoice' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SharingNotAllowed' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/learning-review: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Learning operationId: getPersonLearningReview summary: Read what a person's Learning spaces proposed description: Return each Learning space the person reviews (always their own, which their recordings join, and in a single-person OpenBot the spaces its Bots learn into), with the proposals in it that wait for review and its latest run, and whether the person may decide on them themselves. In a single-person OpenBot with automatic approval on, reading it first approves what waits. Only the person themselves may read it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - learning:read - apiKey: [] responses: '200': description: The person's Learning spaces and what waits in them. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/PersonLearningReview' examples: waiting: $ref: '#/components/examples/PersonLearningReviewExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/LearningUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/learning-proposals: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Learning operationId: listPersonLearningProposals summary: List the skills Learning proposed from one recording description: Return one page of the proposals in the person's own spaces made since a recording of theirs stopped whose evidence cites a recording of theirs by that title, newest first and a few at most, each with the Learning space it is in. Rejected proposals and removals are left out, and a recording that isn't theirs never matches. Only the person themselves may list them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - name: recordingTitle in: query required: true description: The recording's title. schema: type: string minLength: 1 maxLength: 200 pattern: \S - name: since in: query required: true description: When the recording stopped, in milliseconds since 1970. schema: type: integer minimum: 0 - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of proposed skills. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RecordingSkillPage' examples: none: value: skills: [] nextCursor: null '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' '503': $ref: '#/components/responses/LearningUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/recording-titles: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Learning operationId: getRecordingTitles summary: Read the titles of a person's recordings (deprecated) deprecated: true x-deprecation-date: '2026-12-01' x-sunset: '2027-12-01' description: 'Deprecated: send the ids in a body with readRecordingTitles (POST /api/v2/organizations/{organizationId}/people/{personId}/recording-titles/read) instead, so no list of ids rides in the address. Return the title of each recording named, by the id the backend gives it, so a proposal''s evidence can name the recordings it was learned from. A recording that isn''t the person''s is left out. The person themselves or an administrator may read them.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - name: ids in: query required: true description: The recordings, by the backend's id, at most 50. style: form explode: false schema: type: array minItems: 1 maxItems: 50 items: type: string format: uuid responses: '200': description: The titles of the person's recordings among those named. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RecordingTitles' examples: titled: value: recordings: - id: 4b6f0a3e-2c1d-4e5f-8a9b-0c1d2e3f4a5b title: File an expense report '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/PersonForbidden' '404': $ref: '#/components/responses/PersonNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/recording-titles/read: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Learning operationId: readRecordingTitles summary: Read the titles of a person's recordings, named in the body description: 'Return the title of each recording named, by the id the backend gives it, so a proposal''s evidence can name the recordings it was learned from. The ids travel in the body, never the address. A recording that isn''t the person''s is left out. It writes nothing and keeps no answer: sending it again with the same Idempotency-Key reads the titles again. The person themselves or an administrator may read them.' security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RecordingTitlesRequest' examples: request: value: ids: - 4b6f0a3e-2c1d-4e5f-8a9b-0c1d2e3f4a5b responses: '200': description: The titles of the person's recordings among those named. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RecordingTitles' examples: titled: value: recordings: - id: 4b6f0a3e-2c1d-4e5f-8a9b-0c1d2e3f4a5b title: File an expense report '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/PersonForbidden' '404': $ref: '#/components/responses/PersonNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/learned-skills/{skillName}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SkillName' get: tags: - Learning operationId: getLearnedSkill summary: Read a skill learned in a person's spaces description: Return one skill published in a person's Learning spaces, with its files, and, for the person themselves, the recordings of theirs it was learned from where those can be read. The person themselves or an administrator may read it. security: - webSession: [] - appOAuth: - learning:read - apiKey: [] responses: '200': description: The skill and its files. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearnedSkill' examples: skill: $ref: '#/components/examples/LearnedSkillExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/PersonForbidden' '404': $ref: '#/components/responses/LearnedSkillNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/LearningUnavailable' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Learning operationId: updateLearnedSkill summary: Open or close a learned skill to every Bot description: Open one of the person's learned skills to every Bot, where they choose skill by skill, or take it back to their own Bots. Opening waits for an administrator to allow sharing; closing never does, and accepts a skill that has since left their space. Only the person themselves may. Recorded on the audit trail. security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateLearnedSkillRequest' examples: open: value: open: true responses: '200': description: Whether the skill is open, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearnedSkillOpen' examples: open: value: name: Weekly report open: true '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SharingNotAllowed' '404': $ref: '#/components/responses/LearnedSkillNotFound' '409': $ref: '#/components/responses/LearningOffForPerson' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/LearningUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/learned-skills/{skillName}/share: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/SkillName' post: tags: - Learning operationId: requestSkillSharing summary: Ask to share a learned skill with every Bot description: 'Ask an administrator to open a skill the person approved for themselves to every Bot. A request already made, or already approved, is answered as it stands. A skill an administrator approved needs no request: its Open switch shares it. Not in a single-person OpenBot, and not while an administrator hasn''t allowed sharing. Only the person themselves may ask. Recorded on the audit trail.' security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: Where the request stands. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/SkillSharingOutcome' examples: requested: value: skillName: Weekly report sharing: requested '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/SharingNotAllowed' '404': $ref: '#/components/responses/LearnedSkillNotFound' '409': $ref: '#/components/responses/SharingNotNeeded' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/learning/proposals: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Learning operationId: listLearningProposals summary: List what Learning proposed in a space description: Return one page of the skill changes Learning proposed in the space every Bot learns into, or in one Bot's own, newest first, reviewed ones included. The list is empty where no space is assigned. Only an administrator may list them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - $ref: '#/components/parameters/LearningBotFilter' - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of proposals. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningProposalPage' examples: none: value: proposals: [] nextCursor: null '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningAdminOnly' '404': $ref: '#/components/responses/LearningSpaceNotFound' '409': $ref: '#/components/responses/LearningOff' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/learning/proposals/{proposalId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ProposalId' get: tags: - Learning operationId: getLearningProposal summary: Read a proposal in a space description: Return one proposal in the space every Bot learns into, or in one Bot's own, with every file it would publish and the insights behind it. Read each insight's evidence with getLearningEvidence. Only an administrator may read it. security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - $ref: '#/components/parameters/LearningBotFilter' responses: '200': description: The proposal, its files and its insights. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningProposalDetail' examples: waiting: $ref: '#/components/examples/LearningProposalExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningAdminOnly' '404': $ref: '#/components/responses/LearningProposalNotFound' '409': $ref: '#/components/responses/LearningOff' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/learning/proposals/{proposalId}/approve: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ProposalId' post: tags: - Learning operationId: approveLearningProposal summary: Approve a proposal in a space description: Approve a proposal in the space every Bot learns into, or in one Bot's own, which publishes the skill change to every Bot that learns there. Approving it again answers the same review. Only an administrator may. Recorded on the audit trail. security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/LearningBotFilter' - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The proposal, approved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningReview' examples: approved: $ref: '#/components/examples/LearningReviewApprovedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningAdminOnly' '404': $ref: '#/components/responses/LearningProposalNotFound' '409': $ref: '#/components/responses/LearningProposalReviewed' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/learning/proposals/{proposalId}/reject: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ProposalId' post: tags: - Learning operationId: rejectLearningProposal summary: Reject a proposal in a space description: 'Reject a proposal in the space every Bot learns into, or in one Bot''s own: nothing is published. Rejecting it again answers the same review; rejecting an approved one is refused. Only an administrator may. Recorded on the audit trail.' security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/LearningBotFilter' - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The proposal, rejected. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningReview' examples: rejected: $ref: '#/components/examples/LearningReviewRejectedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningAdminOnly' '404': $ref: '#/components/responses/LearningProposalNotFound' '409': $ref: '#/components/responses/LearningProposalReviewed' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/learning/insights/{insightId}/evidence: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/InsightId' get: tags: - Learning operationId: getLearningEvidence summary: Read what an insight in a space was learned from description: 'Return the evidence behind one insight in the space every Bot learns into, or in one Bot''s own: the messages it cites from conversations and the events it cites from recordings, each saying whether it can still be read. Only an administrator may read it.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - $ref: '#/components/parameters/LearningBotFilter' responses: '200': description: The insight's evidence. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningEvidenceList' examples: recording: $ref: '#/components/examples/LearningEvidenceExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningAdminOnly' '404': $ref: '#/components/responses/LearningInsightNotFound' '409': $ref: '#/components/responses/LearningOff' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/learning/runs: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Learning operationId: listOrganizationLearningRuns summary: List Learning's runs over a space description: Return one page of the runs over the space every Bot learns into, or over one Bot's own, newest first, each with why it stopped if it failed. The list is empty where no space is assigned. Only an administrator may list them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - $ref: '#/components/parameters/LearningBotFilter' - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of runs. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningRunPage' examples: lastPage: $ref: '#/components/examples/LearningRunPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningAdminOnly' '404': $ref: '#/components/responses/LearningSpaceNotFound' '409': $ref: '#/components/responses/LearningOff' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Learning operationId: startOrganizationLearningRun summary: Learn now in a space description: Start Learning over the space every Bot learns into, or over one Bot's own, on every finished conversation not yet learned from. A run already going is answered instead of starting another. Only an administrator may. Recorded on the audit trail. security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/LearningBotFilter' - $ref: '#/components/parameters/IdempotencyKey' responses: '202': description: The run, queued or already going. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningRun' examples: queued: $ref: '#/components/examples/LearningRunQueuedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningAdminOnly' '404': $ref: '#/components/responses/LearningSpaceNotFound' '409': $ref: '#/components/responses/LearningCannotRun' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/learning-proposals/{proposalId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/ProposalId' get: tags: - Learning operationId: getPersonLearningProposal summary: Read a proposal in a person's space description: Return one proposal in one of a person's own Learning spaces, with every file it would publish and the insights behind it. Read each insight's evidence with getPersonLearningEvidence. The person themselves or an administrator may read it. security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - $ref: '#/components/parameters/PersonLearningSpace' responses: '200': description: The proposal, its files and its insights. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningProposalDetail' examples: waiting: $ref: '#/components/examples/LearningProposalExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/PersonForbidden' '404': $ref: '#/components/responses/LearningProposalNotFound' '409': $ref: '#/components/responses/LearningOff' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/learning-proposals/{proposalId}/approve: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/ProposalId' post: tags: - Learning operationId: approvePersonLearningProposal summary: Approve a proposal in a person's space description: Approve a proposal in one of a person's own Learning spaces, which publishes it there. The person themselves may where they review their own (an administrator's choice, and always in a single-person OpenBot); an administrator may for anyone. A skill approved from a person's recordings is recorded as approved by whoever approved it, which decides who else's Bots may use it. Recorded on the audit trail. security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/PersonLearningSpace' - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The proposal, approved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningReview' examples: approved: $ref: '#/components/examples/LearningReviewApprovedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningReviewNotYours' '404': $ref: '#/components/responses/LearningProposalNotFound' '409': $ref: '#/components/responses/LearningProposalReviewed' '422': $ref: '#/components/responses/LearningProposalUnnamed' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/learning-proposals/{proposalId}/reject: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/ProposalId' post: tags: - Learning operationId: rejectPersonLearningProposal summary: Reject a proposal in a person's space description: 'Reject a proposal in one of a person''s own Learning spaces: nothing is published. Who may is as for approving. Recorded on the audit trail.' security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/PersonLearningSpace' - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The proposal, rejected. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningReview' examples: rejected: $ref: '#/components/examples/LearningReviewRejectedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningReviewNotYours' '404': $ref: '#/components/responses/LearningProposalNotFound' '409': $ref: '#/components/responses/LearningProposalReviewed' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/learning-insights/{insightId}/evidence: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/InsightId' get: tags: - Learning operationId: getPersonLearningEvidence summary: Read what an insight in a person's space was learned from description: 'Return the evidence behind one insight in one of a person''s own Learning spaces: the messages it cites from conversations and the events it cites from recordings. The person themselves or an administrator may read it.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - learning:read - apiKey: [] parameters: - $ref: '#/components/parameters/PersonLearningSpace' responses: '200': description: The insight's evidence. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningEvidenceList' examples: recording: $ref: '#/components/examples/LearningEvidenceExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/PersonForbidden' '404': $ref: '#/components/responses/LearningInsightNotFound' '409': $ref: '#/components/responses/LearningOff' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/learning-runs: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' post: tags: - Learning operationId: startPersonLearningRun summary: Learn now in a person's space description: Start Learning over one of the person's own spaces. Only the person themselves may, and only where they review their own (an administrator's choice, and always in a single-person OpenBot). A run already going is answered instead of starting another. Recorded on the audit trail. security: - webSession: [] - appOAuth: - learning:write - apiKey: [] parameters: - $ref: '#/components/parameters/PersonLearningSpace' - $ref: '#/components/parameters/IdempotencyKey' responses: '202': description: The run, queued or already going. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/LearningRun' examples: queued: $ref: '#/components/examples/LearningRunQueuedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/LearningReviewNotYours' '404': $ref: '#/components/responses/LearningSpaceNotFound' '409': $ref: '#/components/responses/LearningCannotRun' '429': $ref: '#/components/responses/LearningBusy' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/LearningUnreachable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/memories: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Memory operationId: listMemories summary: List a person's memories description: 'Return one page of what a person''s Bots remember about them in this organization, and in no other they belong to, most recently changed first: the ones they wrote, the ones their Bots formed and are waiting for their review, the ones read in from their sources, and the ones the backend holds for them that OpenBot formed no record of, after OpenBot''s own. Paused memories are included; forgotten ones are not. Only the person themselves may list them: an administrator can''t either. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - memories:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of memories. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/MemoryPage' examples: lastPage: $ref: '#/components/examples/MemoryPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/MemoryOwnOnly' '404': $ref: '#/components/responses/MemoryNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Memory operationId: createMemory summary: Remember a fact description: Write a memory the person's Bots recall from now on. A memory the person writes is theirs and reviewed. Where the backend keeps memory, it is copied there too. Only the person themselves may write one. security: - webSession: [] - appOAuth: - memories:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateMemoryRequest' examples: fact: value: content: I prefer meetings after 10am. responses: '201': description: The memory, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Memory' examples: saved: $ref: '#/components/examples/MemoryExample' '400': $ref: '#/components/responses/InvalidMemory' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/MemoryOwnOnly' '404': $ref: '#/components/responses/MemoryNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/memories/{memoryId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/MemoryId' patch: tags: - Memory operationId: updateMemory summary: Change a memory description: Edit a memory's words, pause or resume it, or accept one a Bot formed or read in. A memory the backend holds that OpenBot formed no record of can be edited, not paused or reviewed. Editing one replaces the copy the backend holds. Only the person themselves may change their memories. security: - webSession: [] - appOAuth: - memories:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateMemoryRequest' examples: pause: value: enabled: false accept: value: reviewState: confirmed responses: '200': description: The memory, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Memory' examples: saved: $ref: '#/components/examples/MemoryExample' '400': $ref: '#/components/responses/InvalidMemory' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/MemoryOwnOnly' '404': $ref: '#/components/responses/MemoryNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/MemoryUnavailable' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Memory operationId: deleteMemory summary: Forget a memory description: 'Forget a memory: no Bot recalls it again, the backend''s copy is retired, and a fact read in from a source stays forgotten when the source syncs again. Only the person themselves may forget their memories.' security: - webSession: [] - appOAuth: - memories:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The memory is forgotten. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/MemoryOwnOnly' '404': $ref: '#/components/responses/MemoryNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/MemoryUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/memory-sources: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' get: tags: - Memory operationId: listMemorySources summary: List a person's memory sources description: Return one page of the app actions a person's Bots read facts in from, newest first, each with how its last sync went. Only the person themselves may list them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - memories:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of memory sources. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/MemorySourcePage' examples: lastPage: $ref: '#/components/examples/MemorySourcePageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/MemoryOwnOnly' '404': $ref: '#/components/responses/MemoryNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Memory operationId: createMemorySource summary: Add a memory source description: Let one of the person's Bots read facts in from one of its app's read actions, and read them in at once. The Bot must be the person's, hold that action, and the app must be connected for them. What it reads in waits for the person's review before any Bot recalls it. Only the person themselves may add a source. security: - webSession: [] - appOAuth: - memories:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateMemorySourceRequest' examples: docs: value: botId: general-assistant toolRef: google-drive/search_files title: 'Google Drive: Search files' args: query: team handbook responses: '201': description: The source, and how many facts its first sync read in. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/MemorySourceSync' examples: synced: $ref: '#/components/examples/MemorySourceSyncExample' '400': $ref: '#/components/responses/InvalidMemorySource' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/MemoryOwnOnly' '404': $ref: '#/components/responses/MemoryNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/memory-sources/{memorySourceId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/MemorySourceId' patch: tags: - Memory operationId: updateMemorySource summary: Switch a memory source on or off description: Stop a source reading facts in, or start it again; a source switched on syncs at its next turn. What it already read in stays. Only the person themselves may change their sources. security: - webSession: [] - appOAuth: - memories:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateMemorySourceRequest' examples: 'off': value: enabled: false responses: '200': description: The source, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/MemorySource' examples: source: $ref: '#/components/examples/MemorySourceExample' '400': $ref: '#/components/responses/InvalidMemorySource' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/MemoryOwnOnly' '404': $ref: '#/components/responses/MemorySourceNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Memory operationId: deleteMemorySource summary: Remove a memory source description: 'Remove a source and forget every fact it read in. Removing one turns that app down for that Bot: OpenBot never adds it back on its own. Only the person themselves may remove their sources.' security: - webSession: [] - appOAuth: - memories:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The source and what it read in are gone. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/MemoryOwnOnly' '404': $ref: '#/components/responses/MemorySourceNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/memory-sources/{memorySourceId}/sync: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/MemorySourceId' post: tags: - Memory operationId: syncMemorySource summary: Sync a memory source now description: Read a source's facts in now rather than at its next turn. A source that is off or already syncing is refused. What it reads in waits for the person's review. Only the person themselves may sync their sources. security: - webSession: [] - appOAuth: - memories:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The source, and how many facts this sync read in. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/MemorySourceSync' examples: synced: $ref: '#/components/examples/MemorySourceSyncExample' '400': $ref: '#/components/responses/InvalidMemorySource' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/MemoryOwnOnly' '404': $ref: '#/components/responses/MemorySourceNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/memory-source-tools: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Memory operationId: listMemorySourceTools summary: List what a Bot could read facts in from description: 'Return one page of the read actions a Bot holds that can be a memory source for the caller: actions that only read and change nothing. The caller must be able to use the Bot. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - memories:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of read actions. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/MemorySourceToolPage' examples: lastPage: $ref: '#/components/examples/MemorySourceToolPageExample' '400': $ref: '#/components/responses/InvalidMemorySource' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/MemoryNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bot-agents: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Agents operationId: listBotAgents summary: List agents description: 'Return one page of the agents the caller can see: the organization''s public agents and the caller''s own private ones, oldest first, and by id among agents made at the same moment. Somebody else''s private agent is never among them. scope=organization lists every agent in the organization, people''s private ones included, for an admin''s screens; it is refused to anybody who is not an admin of the organization. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - bot-agents:read - apiKey: [] parameters: - name: scope in: query description: 'Whose agents: caller, the agents the caller can see; organization, every agent in the organization, for an admin of it only.' schema: type: string enum: - caller - organization default: caller - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of agents. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotAgentPage' examples: lastPage: $ref: '#/components/examples/BotAgentPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Agents operationId: createBotAgent summary: Add an agent description: Add an agent for Bots to hand work to. kind openbot runs inside OpenBot, on the model given or the organization's default. kind address runs at an AG-UI address, which the server checks before saving; a key, when given, is stored encrypted and never returned. Anybody may add a private agent, for their own Bots; only an admin of the organization may add a public one, which every member's Bots may use. A repeated request with the same Idempotency-Key and body returns the first result. security: - webSession: [] - appOAuth: - bot-agents:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateBotAgentRequest' examples: openbot: summary: OpenBot's own agent, on a model of its own. value: name: Researcher description: Deep research on the web and in the person's apps, with sources. visibility: public kind: openbot model: null address: summary: An agent somebody runs themselves, behind a key. value: name: Pipeline analyst description: Reads the sales pipeline and forecasts the quarter. visibility: private kind: address endpoint: https://agents.example.com/ag-ui auth: header: Authorization value: Bearer example-key harness: langgraph skills: - name: Forecast description: Forecasts the quarter from the open deals. examples: - What will we close this quarter? responses: '201': description: The agent was added. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Location: description: The new agent's address. schema: type: string example: /api/v2/organizations/default/bot-agents/bag_4f7c1e2a9d0b4c63 X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotAgentResponse' examples: created: $ref: '#/components/examples/CreatedBotAgent' '400': $ref: '#/components/responses/InvalidBotAgent' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotAgentForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bot-agents/{botAgentId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotAgentId' get: tags: - Agents operationId: getBotAgent summary: Read one agent description: Return one agent the caller can see. An agent that does not exist, was deleted, or is private to somebody else is not found. security: - webSession: [] - appOAuth: - bot-agents:read - apiKey: [] responses: '200': description: The agent. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotAgentResponse' examples: openbot: $ref: '#/components/examples/OpenBotAgent' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotAgentNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Agents operationId: updateBotAgent summary: Change an agent description: 'Replace an agent''s name, description and visibility, which are all required, and change any optional field that is present. An absent endpoint, key, model or skills leaves that setting as it is, so an edit to a name never drops a key. Only whoever may manage the agent may change it: its owner for a private one, an admin for a public one. Only an admin may make an agent public. kind cannot change. Every Bot that uses the agent runs on the change from its next turn.' security: - webSession: [] - appOAuth: - bot-agents:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateBotAgentRequest' examples: rename: value: name: Research desk description: Deep research on the web and in the person's apps, with sources. visibility: public responses: '200': description: The changed agent. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotAgentResponse' examples: renamed: $ref: '#/components/examples/CreatedBotAgent' '400': $ref: '#/components/responses/InvalidBotAgent' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotAgentForbidden' '404': $ref: '#/components/responses/BotAgentNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Agents operationId: deleteBotAgent summary: Delete an agent description: 'Delete an agent and retire its key and callback token. It is taken off every Bot that may use it. Refused, with BOT_AGENT_IN_USE, while it is the only agent of any Bot, deleted Bots aside: give that Bot another agent first. The refusal names those Bots the caller can see and only counts the rest. Only whoever may manage the agent may delete it. Task threads it worked in stay readable. An agent that is already deleted is not found.' security: - webSession: [] - appOAuth: - bot-agents:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The agent was deleted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotAgentForbidden' '404': $ref: '#/components/responses/BotAgentNotFound' '409': $ref: '#/components/responses/BotAgentInUse' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bot-agents/{botAgentId}/issue-callback-token: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotAgentId' post: tags: - Agents operationId: issueBotAgentCallbackToken summary: Issue an agent's callback token description: 'Give an agent at an address a new credential for calling OpenBot''s tools back, and return it this once: it is never returned again, and the audit trail records that one was issued, never what it is. Issuing one for an agent that has one replaces it, which is how a leaked token is retired. A call made with it is allowed only for a run of a Bot that may use this agent, as the person that run is for. Only whoever may manage the agent may issue one. An agent that runs inside OpenBot, or at an address OpenBot runs itself, needs none and is refused.' security: - webSession: [] - appOAuth: - bot-agents:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The new token, shown once. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotAgentCallbackToken' examples: issued: $ref: '#/components/examples/BotAgentCallbackTokenExample' '400': $ref: '#/components/responses/InvalidBotAgent' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotAgentForbidden' '404': $ref: '#/components/responses/BotAgentNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bot-agents/{botAgentId}/revoke-callback-token: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotAgentId' post: tags: - Agents operationId: revokeBotAgentCallbackToken summary: Revoke an agent's callback token description: Take away an agent's credential for calling OpenBot's tools back. It still answers in a conversation; it can't reach anything outside one. Only whoever may manage the agent may revoke it. Revoking a token that is not there changes nothing. security: - webSession: [] - appOAuth: - bot-agents:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The agent, with no callback token. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotAgentResponse' examples: revoked: $ref: '#/components/examples/CreatedBotAgent' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotAgentForbidden' '404': $ref: '#/components/responses/BotAgentNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/bots/{botId}/delegation: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/BotId' get: tags: - Agents operationId: getBotDelegation x-openbot-singleton: true summary: Read a Bot's delegation description: 'Return how a Bot the caller can see works: on its own agent (mode self, every Bot made before agents were a list), or handing work to the agents it may use (mode orchestrate). The first agent is its default: a Bot in mode self runs on it, and a Bot in mode orchestrate hands it work the Bot names no agent for and every run nobody is waiting on (a routine, a check-in, a goal, another Bot''s hand-off, a group conversation). Whoever uses a Bot uses its agents: an agent that is private to the Bot''s owner still does the work for everybody the Bot is shared with, and to anybody else it is named Private agent, with its description withheld. An agent that was deleted, or that the Bot''s owner can no longer use, is listed with available false, and the Bot hands it nothing.' security: - webSession: [] - appOAuth: - bots:read - apiKey: [] responses: '200': description: The Bot's delegation. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotDelegation' examples: self: $ref: '#/components/examples/SelfBotDelegation' orchestrate: $ref: '#/components/examples/OrchestratingBotDelegation' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/BotNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Agents operationId: replaceBotDelegation summary: Set a Bot's delegation description: 'Replace how a Bot works. Mode self takes exactly one agent, which the Bot runs on with its apps, as every Bot did before agents were a list. Mode orchestrate takes one to twenty agents, in order, the first being the default: the Bot then answers on its own model with only the tools for replying, reacting, finding a task''s thread and handing work to an agent, plus reading the person''s memory, and each agent works with the Bot''s apps as the person who asked. model and effort are the Bot''s own when it orchestrates, one the model catalogue offers, or null for the organization''s default; they are ignored in mode self. instructions steer how it hands work out and answers, and are read only in mode orchestrate. Every agent named must be one the caller can see, or one the Bot already has. Only whoever may manage the Bot may change it, and a Bot that comes with OpenBot cannot be changed.' security: - webSession: [] - appOAuth: - bots:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ReplaceBotDelegationRequest' examples: orchestrate: value: mode: orchestrate model: null effort: null instructions: Hand research to Researcher and anything about the pipeline to Pipeline analyst. Answer greetings yourself. agentIds: - bag_4f7c1e2a9d0b4c63 - bag_9a2d7e1c3b5f4086 responses: '200': description: The Bot's delegation after the change. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/BotDelegation' examples: orchestrate: $ref: '#/components/examples/OrchestratingBotDelegation' '400': $ref: '#/components/responses/InvalidBotDelegation' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/BotForbidden' '404': $ref: '#/components/responses/BotNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/management: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - CopilotKit management operationId: getManagementEnrollment summary: Read whether this OpenBot is connected to CopilotKit management description: 'Return where connecting this OpenBot to CopilotKit''s management service stands: not connected; connecting by itself, by its licence, with the management agent OpenBot''s own chart installed; waiting for somebody at CopilotKit''s page to approve the code; waiting for the management agent to be installed in the cluster with the Helm command given; connected, with the agent''s last heartbeat and version; or opted out, after an administrator disconnected it. A team OpenBot whose chart installs the management agent connects by itself when it starts, and tries again every hour until it is connected, unless an administrator disconnected it or the chart turned management off (`management.enabled: false`). Management is for the whole OpenBot, so it is answered only in the organization `default`, and only to its administrators. It applies only to the team edition that a company runs itself: on the personal edition, on OpenBot Cloud, and in any other organization it answers 404 with the code MANAGEMENT_UNAVAILABLE, which a client reads as nothing to show.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - settings:read - apiKey: [] responses: '200': description: Where connecting this OpenBot stands. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ManagementEnrollment' examples: notConnected: $ref: '#/components/examples/ManagementNotConnectedExample' waitingForApproval: $ref: '#/components/examples/ManagementWaitingForApprovalExample' waitingForAgent: $ref: '#/components/examples/ManagementWaitingForAgentExample' connected: $ref: '#/components/examples/ManagementConnectedExample' connecting: $ref: '#/components/examples/ManagementConnectingExample' optedOut: $ref: '#/components/examples/ManagementOptedOutExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/ManagementUnavailable' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/management/enrollment: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - CopilotKit management operationId: startManagementEnrollment summary: Start connecting this OpenBot to CopilotKit management description: 'Ask CopilotKit''s management service to connect this OpenBot. OpenBot sends its CopilotKit licence and its name. Where OpenBot''s own chart installs the management agent (agentInstalledByChart true), it connects by licence: a team licence is accepted at once, with no code to approve, OpenBot collects the install''s one-time token on its own, the agent picks it up, and the answer is connecting. This also ends an opt-out: after an administrator disconnected OpenBot, this is how managed updates are turned back on, and OpenBot connects by itself again from then on. Where the chart turned the agent off, it is the approval flow: OpenBot gets back a short code and the page where somebody signed in to CopilotKit, as an admin of the organization the licence names, approves it (the OAuth device authorization grant, RFC 8628); OpenBot then waits for the approval on its own, and once approved the answer carries the Helm command that installs the agent, with nothing secret in it. Read getManagementEnrollment to follow either. A licence the service refuses answers 409 with the service''s sentence, and the state keeps lastErrorCode. Started again while it is already under way, it changes nothing and answers where it stands. Already connected answers 409. Only an administrator of the organization `default` may start it, and only where getManagementEnrollment applies.' security: - webSession: [] - appOAuth: - settings:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: Where connecting this OpenBot stands now. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ManagementEnrollment' examples: waitingForApproval: $ref: '#/components/examples/ManagementWaitingForApprovalExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/ManagementUnavailable' '409': $ref: '#/components/responses/ManagementConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ManagementServiceFailed' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - CopilotKit management operationId: cancelManagementEnrollment summary: Stop connecting this OpenBot to CopilotKit management description: 'Stop a connection that is under way, or disconnect a connected one, and record that an administrator opted out, so OpenBot doesn''t connect itself again (opted-out) until somebody starts it again with startManagementEnrollment. Stopping forgets the code and the one-time token, so the agent can no longer collect it. CopilotKit''s management service is told: a code nobody approved yet is withdrawn, so its approval page refuses it, and an install it already made is retired. Nothing is changed in the cluster. Not connected answers 204 too, and records the opt-out. Connected with the agent OpenBot''s chart installed (agentInstalledByChart true), it retires the install at the service at once, which stops the agent''s managed updates though it keeps running, and answers 204. The same goes for an agent the chart installed before management was turned off with Helm (agentRemovedWithChart true): that upgrade already removed it. Connected with an agent installed as its own Helm release, it finishes disconnecting after that agent is uninstalled with Helm: while the service still hears from the agent it answers 409, and once the agent hasn''t reported in for more than five minutes it retires the install at the service, forgets the connection and answers 204, so OpenBot can be connected again later. Telling the service is best effort: out of reach, OpenBot stops anyway and lastError says the service wasn''t told. Connected with the service out of reach, the last heartbeat OpenBot saw decides, and a recent one answers 502. Only an administrator of the organization `default` may stop it, and only where getManagementEnrollment applies.' security: - webSession: [] - appOAuth: - settings:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: OpenBot is not connecting to CopilotKit management. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/ManagementUnavailable' '409': $ref: '#/components/responses/ManagementConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ManagementServiceFailed' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/export-estimate: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Moving to OpenBot Cloud operationId: getExportEstimate summary: Read what moving to OpenBot Cloud would take description: 'Count what an export would hold, without making one: the caller''s Bots, their skills, conversations and messages, memories, routines, goals and check-ins, files and settings, and, when the caller is an administrator, the organization''s own skills. Also says roughly how big the bundle will be, how much space this OpenBot holds for it on disk (what the move frees once the local OpenBot is removed), which apps the person will need to connect again on OpenBot Cloud, and whether a model key could come along. Served only by an OpenBot that runs on the person''s own computer; elsewhere it answers 404 with the code MOVE_UNAVAILABLE.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - exports:read - apiKey: [] responses: '200': description: What an export would hold. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ExportEstimate' examples: example: $ref: '#/components/examples/ExportEstimateExample' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/MoveUnavailable' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/exports: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Moving to OpenBot Cloud operationId: createExport summary: Start exporting what the caller has here description: |- Start writing a bundle of everything the caller has in this organization, to move it to OpenBot Cloud: their Bots (settings, instructions and skills), conversations with every message, memories, routines, goals and check-ins, files, standing instructions and preferences, and, when the caller is an administrator, the organization's own skills. A connection to an app the person signed in to travels as its app and account name only: no token or password ever leaves, and it is listed in reconnect so the person signs in again on Cloud. A connection made with a key this OpenBot holds travels connected when recipientKey is given: its key is sealed to recipientKey, the app is listed in carried, and the import connects it on Cloud with that key. Without recipientKey it is listed in reconnect like any other. A model key travels only when includeModelKeys is true, and then only sealed to recipientKey, the key the import on Cloud gave (createImport). The bundle never holds a key readable. The bundle is written in the background; read getExport until status is ready. It is cut into parts of at most 32 MiB, each with its size and SHA-256, so a dropped download resumes where it stopped. One export is kept for each person: starting another removes the one before. An export is removed 7 days after it was made, or with deleteExport. Served only by an OpenBot that runs on the person's own computer; elsewhere it answers 404 with the code MOVE_UNAVAILABLE. security: - webSession: [] - appOAuth: - exports:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ExportInput' examples: withModelKeys: $ref: '#/components/examples/ExportInputExample' responses: '202': description: The export has started. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Export' examples: preparing: $ref: '#/components/examples/ExportPreparingExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/MoveUnavailable' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyMoves' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/exports/{exportId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ExportId' get: tags: - Moving to OpenBot Cloud operationId: getExport summary: Read an export description: Return where the caller's export stands. Once ready it lists the bundle's parts with their sizes and SHA-256, its total size, and the count of everything in it by kind, which are the counts getImportVerification is compared with. Only the person who made it reads it; anybody else is answered 404. security: - webSession: [] - appOAuth: - exports:read - apiKey: [] responses: '200': description: The export. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Export' examples: preparing: $ref: '#/components/examples/ExportPreparingExample' ready: $ref: '#/components/examples/ExportReadyExample' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ExportNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Moving to OpenBot Cloud operationId: deleteExport summary: Remove an export description: Remove the caller's export and its bundle from disk. Nothing it was made from changes. One already gone answers 204 too. security: - webSession: [] - appOAuth: - exports:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The export is gone. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/MoveUnavailable' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/exports/{exportId}/parts/{partNumber}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ExportId' - $ref: '#/components/parameters/PartNumber' get: tags: - Moving to OpenBot Cloud operationId: downloadExportPart summary: Download one part of an export's bundle description: Return one part of a ready export's bundle, as bytes to hand to uploadImportPart unchanged. A Range header of one byte range (bytes=N- or bytes=N-M) answers 206 with that range, so a dropped download resumes where it stopped. The SHA-256 of the whole part is in the export's parts and in the ETag. Only the person who made the export downloads it. x-openbot-singleton: true security: - webSession: [] - appOAuth: - exports:read - apiKey: [] parameters: - name: Range in: header required: false description: One byte range of the part, as RFC 9110 writes it. schema: type: string pattern: ^bytes=[0-9]+-[0-9]*$ maxLength: 64 responses: '200': description: The whole part. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: $ref: '#/components/headers/PartETag' Accept-Ranges: $ref: '#/components/headers/AcceptRanges' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/octet-stream: schema: type: string format: binary '206': description: The range asked for. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: $ref: '#/components/headers/PartETag' Content-Range: description: Which bytes of the part this is, and the part's size. schema: type: string example: bytes 1048576-33554431/33554432 X-Request-Id: $ref: '#/components/headers/RequestId' content: application/octet-stream: schema: type: string format: binary '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ExportNotFound' '409': $ref: '#/components/responses/ExportNotReady' '416': $ref: '#/components/responses/RangeNotSatisfiable' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/imports: parameters: - $ref: '#/components/parameters/OrganizationId' post: tags: - Moving to OpenBot Cloud operationId: createImport summary: Start importing a bundle into this organization description: |- Start an import of what the caller is moving from an OpenBot on their own computer into this organization, the caller's own organization by default. Everything imported belongs to the caller, in this organization only. The answer carries recipientKey, a public key made for this import alone: pass it to createExport, and a model key in the bundle is sealed to it, readable only by this import. The answer also says how big a bundle and a part may be. Then upload the export's parts with uploadImportPart and apply them with applyImport. Importing is safe to repeat: an import of the same OpenBot into the same organization (an export made again, or a new import after a dropped one) adds only what isn't here yet and duplicates nothing. Served only by OpenBot Cloud; elsewhere it answers 404 with the code MOVE_UNAVAILABLE. A person starts at most 10 imports a day. With fromOrganizationId, the import moves what the caller has in another of their organizations into this one, and OpenBot Cloud packs it up there itself: no part is uploaded, the import answers ready, and applyImport starts it. See ImportInput. Moving in follows this organization's own rules: a caller it doesn't let use Bots is answered 403 with the code MOVE_NOT_ALLOWED before anything moves. The caller's list of organizations says this ahead of time (Organization.canMoveIn). security: - webSession: [] - appOAuth: - imports:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/ImportInput' responses: '201': description: The import, waiting for its bundle. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Import' examples: waiting: $ref: '#/components/examples/ImportWaitingExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/MoveNotAllowed' '404': $ref: '#/components/responses/MoveUnavailable' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyMoves' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' get: tags: - Moving to OpenBot Cloud operationId: listImports summary: List the caller's imports into this organization description: List the imports the caller started in this organization, newest first, so an app that lost track of one after a drop finds it again. Only the caller's own. Served only by OpenBot Cloud. security: - webSession: [] - appOAuth: - imports:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: A page of imports. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ImportPage' examples: page: $ref: '#/components/examples/ImportPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/MoveUnavailable' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/imports/{importId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ImportId' get: tags: - Moving to OpenBot Cloud operationId: getImport summary: Read an import description: 'Return where the caller''s import stands: which parts have arrived, how far applying them has got by kind, and once imported, the summary: what was imported, what was imported differently or left out on OpenBot Cloud and why (notes), and which apps to connect again (reconnect). Only the person who started it reads it.' security: - webSession: [] - appOAuth: - imports:read - apiKey: [] responses: '200': description: The import. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Import' examples: waiting: $ref: '#/components/examples/ImportWaitingExample' imported: $ref: '#/components/examples/ImportImportedExample' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ImportNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/imports/{importId}/parts/{partNumber}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ImportId' - $ref: '#/components/parameters/PartNumber' put: tags: - Moving to OpenBot Cloud operationId: uploadImportPart summary: Upload one part of the bundle description: Upload one part of the export's bundle, exactly as downloadExportPart gave it. Part 1 carries the bundle's manifest, so it is uploaded first; after it the parts go in any order, and the import's expectedParts says how many there are and the SHA-256 of each. A part whose bytes don't match the manifest is refused (IMPORT_PART_MISMATCH) and can be uploaded again. Uploading a part that already arrived changes nothing and answers 200 again, so after a drop an app sends whatever receivedParts doesn't list. A part is at most 32 MiB, and a bundle at most maxBundleBytes. At most 120 parts a minute for each person. security: - webSession: [] - appOAuth: - imports:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/octet-stream: schema: type: string format: binary responses: '200': description: The part arrived (or had already arrived). headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Import' examples: receiving: $ref: '#/components/examples/ImportReceivingExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ImportNotFound' '409': $ref: '#/components/responses/ImportConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '422': $ref: '#/components/responses/ImportBundleRefused' '429': $ref: '#/components/responses/TooManyMoves' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/imports/{importId}/apply: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ImportId' post: tags: - Moving to OpenBot Cloud operationId: applyImport summary: Import the uploaded bundle description: |- Once every part has arrived, import the bundle into this organization in the background: every id is given a new one here, everything is owned by the caller, and nothing reaches another organization. Every file is stored where a file uploaded here is, in this organization's own place in OpenBot's file store, and the uploaded parts are removed once the import is done. Read getImport until status is imported or failed. Applying again while it runs, or after it finished, changes nothing and answers where it stands; applying a failed import tries again from where it stopped, and nothing already imported is imported twice. A missing part answers 409 with IMPORT_INCOMPLETE. What OpenBot Cloud doesn't have comes in differently, and the summary says so in notes: a Bot that ran on its own isolated computer comes in as an ordinary Bot; a feature that needs the Business plan, in an organization that isn't on it, is left out. A model key in the bundle becomes the caller's own AI connection, unless they have one here already, which is kept. For a move from another organization (fromOrganizationId), applying packs up what the caller has there, imports it here and checks it here as getImportVerification does. Only once that check says everything arrived is it removed from the other organization, and only then is the import imported. A check that doesn't match leaves the other organization as it was, and the import failed: applying again goes on from there and adds nothing twice. security: - webSession: [] - appOAuth: - imports:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '202': description: Importing, or where the import stands. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/Import' examples: importing: $ref: '#/components/examples/ImportImportingExample' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ImportNotFound' '409': $ref: '#/components/responses/ImportConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/imports/{importId}/verification: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ImportId' get: tags: - Moving to OpenBot Cloud operationId: getImportVerification summary: Check that everything arrived description: Count, by kind, what from this import's OpenBot is in this organization now, read from what is stored here rather than from the import's own tally, beside what the bundle held. matches is true only when every kind is all here, apart from what the notes say OpenBot Cloud left out on purpose. OpenBot Desktop removes nothing on the person's computer until it does. Also lists the apps to connect again. x-openbot-singleton: true security: - webSession: [] - appOAuth: - imports:read - apiKey: [] responses: '200': description: The counts. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ImportVerification' examples: matches: $ref: '#/components/examples/ImportVerificationExample' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ImportNotFound' '409': $ref: '#/components/responses/ImportConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/conversations/{conversationId}/runs/{runId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ConversationId' - $ref: '#/components/parameters/ConversationRunId' get: tags: - Conversations operationId: getConversationRun summary: See how a Bot's run in a conversation ended description: 'Say how one of a Bot''s runs in the conversation ended, as the run''s own last event said: it finished, it stopped to ask a person, it was stopped, or it failed. The run is named by the runId its events carry (RUN_STARTED on the threadStream channel of api/asyncapi.yaml). A client that stopped hearing a run before its end asks this, once createConversationJoinToken says the conversation has no run going, to tell a run that finished from one that stopped part way. outcome is null while the run is going, and for a run that ended without saying how (its server stopped under it). A run this server keeps no record of, or one of another conversation, is not found. Only a person in the conversation may ask, about the thread they see there.' security: - webSession: [] - appOAuth: - conversations:read - apiKey: [] responses: '200': description: The run, and how it ended. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ConversationRunResponse' examples: finished: $ref: '#/components/examples/ConversationRunResponseExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ConversationRunNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/conversations/{conversationId}/approvals: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/ApprovalConversationId' get: tags: - Approvals operationId: listConversationApprovals summary: List a person's approvals in one conversation description: 'Return one page of the actions a person''s Bots asked them about in one of their conversations, however long ago: the ones still waiting and every one already decided, newest first. Unlike the person''s whole list, which keeps only the last hundred, this reaches every approval the conversation has, so an old conversation can still show what the person answered. What an action was called with is cut short for showing, with values that look like secrets masked. Only the person themselves may read them, and only the approvals they were asked: anybody else''s conversation, and one that does not exist, reads as an empty list. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - approvals:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of the conversation's approvals. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ApprovalPage' examples: answered: $ref: '#/components/examples/ConversationApprovalPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ApprovalsOwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/web-push-key: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Web push operationId: getWebPushKey summary: Read the key a browser subscribes to push notifications with description: 'Return this OpenBot''s public application server key (VAPID, RFC 8292), the key a browser passes as applicationServerKey when it subscribes to push notifications, so that only this OpenBot can send to the subscription. It is the same in every organization here and stays the same across restarts and upgrades. A browser holding a subscription made with a different key unsubscribes and subscribes again with this one. Anybody signed in to the organization may read it: it is public by design.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - devices:read - apiKey: [] responses: '200': description: The key. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/WebPushKey' examples: key: $ref: '#/components/examples/WebPushKeyExample' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/people/{personId}/web-push-subscriptions/{subscriptionId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/PersonId' - $ref: '#/components/parameters/WebPushSubscriptionId' put: tags: - Web push operationId: saveWebPushSubscription summary: Save this browser's push subscription description: 'Save the push subscription a browser made, under the id the app made for that browser, so the person''s Bots send push notifications to it from this organization: replies, questions, approvals and sign-in requests, as the person''s notification settings route push. Saving again replaces what the id holds; the app saves on every start, so a subscription the browser renewed replaces the old one. A subscription is saved once in each organization: saving its address under another id, or as another person, moves it there, so a browser that changes hands notifies only whoever saved it last. The address must be a browser push service''s (Apple''s, Google''s, Mozilla''s or Microsoft''s). A subscription the push service says has ended is removed when the next notification to it is refused. Only the person themselves may save their subscriptions.' security: - webSession: [] - appOAuth: - devices:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SaveWebPushSubscriptionRequest' examples: chrome: value: endpoint: https://fcm.googleapis.com/fcm/send/dQw4w9WgXcQ:APA91bHPRgkF3JUikC4ENAHEeMrd41Zxv3hVZjC9KtT8OvPVGJ-hQMRKRrZuJAEcl7B338qju59zJMjw2DELjzEvxwYv7hH5Ynpc1ODQ0aT4U4OFEeBkpI1ffakVCgWq4CwOI5tHxN3n keys: p256dh: BNcRdreALRFXTkOOUHK1EtK2wtaz5Ry4YfYCA_0QTpQtUbVlUls0VJXg7A8u-Ts1XbjhazAkj7I99e8QcYP7DkM auth: tBHItJI5svbpez7KI4CCXg responses: '200': description: The subscription, saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/WebPushSubscriptionResponse' examples: saved: $ref: '#/components/examples/WebPushSubscriptionResponseExample' '400': $ref: '#/components/responses/InvalidWebPushSubscription' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Web push operationId: deleteWebPushSubscription summary: Stop push notifications to this browser description: Stop sending push notifications to a browser from this organization. Its subscriptions in the person's other organizations stay. The app does this when the person turns notifications off in that browser and when they sign out of it. Only the person themselves may remove their subscriptions. One already removed is not found, which a client can read as done. security: - webSession: [] - appOAuth: - devices:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The browser gets no more push notifications from this organization. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/OwnOnly' '404': $ref: '#/components/responses/WebPushSubscriptionNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Artifacts operationId: listArtifacts summary: List artifacts description: 'Return one page of the artifacts the caller can open in this organization, most recently changed first. view narrows it: all is every artifact the caller can open, mine the ones they own, shared the ones somebody else owns that the caller can open, and pinned the ones the caller pinned. search narrows it to the artifacts whose title holds it, ignoring case, and kind to the artifacts of those kinds. A missing cursor starts at the first page and nextCursor null ends the list. A cursor belongs to the view, search and kinds that made it.' security: - webSession: [] - appOAuth: - artifacts:read - apiKey: [] parameters: - name: view in: query description: Which artifacts to list. all when absent. schema: $ref: '#/components/schemas/ArtifactListView' - name: search in: query description: Part of an artifact's title, matched without regard to case. Leading and trailing spaces are ignored; empty lists every one. schema: type: string maxLength: 200 pattern: ^[^\x00]*$ - name: kind in: query description: Only artifacts of these kinds. Every kind when absent. style: form explode: true schema: type: array maxItems: 20 items: $ref: '#/components/schemas/ArtifactKind' - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of artifacts. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactPage' examples: lastPage: $ref: '#/components/examples/ArtifactPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Artifacts operationId: createArtifact summary: Create an artifact description: Create an artifact owned by the caller, with its first version (v1) holding content. It is private to the caller until they share it. content is the kind's own document (see ArtifactContent). source names the conversation and the Bot's turn that made it, when one did. The answer carries the artifact and its first version, and its ETag is that version for the next save's If-Match. A repeated request with the same Idempotency-Key and body returns the first result. security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateArtifactRequest' examples: document: value: title: Q4 launch plan kind: document content: markdown: |- # Q4 launch plan Three launches, one a month. note: First draft responses: '201': description: The artifact and its first version. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: $ref: '#/components/headers/ArtifactVersionETag' Location: description: The new artifact. schema: type: string example: /api/v2/organizations/default/artifacts/q7JvXh2cR0aW9mBkTn4sLe X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactWriteResult' examples: created: $ref: '#/components/examples/CreatedArtifact' '400': $ref: '#/components/responses/InvalidArtifact' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '422': $ref: '#/components/responses/ArtifactContentInvalid' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ArtifactId' get: tags: - Artifacts operationId: getArtifact summary: Read an artifact description: |- Return an artifact's record and its current version's number. Its content is read with getArtifactContent. An artifact the caller can't open is not found, the same as one that doesn't exist. On the artifacts address, somebody outside the organization reads it too: with nobody signed in when it is open to anyone with the link, with an invitation's cookie (artifactInvite) when an invitation is for it, or signed in to OpenBot without being a member. Their answer has no source (never the conversation it was made in), the owner's name null, pinned and every can field false. Turning the artifact private, taking the invitation back, or an admin switching public links or outside invitations off ends it from the next read. security: - webSession: [] - appOAuth: - artifacts:read - apiKey: [] - artifactInvite: [] - {} responses: '200': description: The artifact. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: $ref: '#/components/headers/ArtifactVersionETag' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactResponse' examples: artifact: $ref: '#/components/examples/ArtifactExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ArtifactNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Artifacts operationId: updateArtifact summary: Rename an artifact, or pin it description: Change an artifact's title, or pin or unpin it for the caller. A field that is absent stays as it is. Renaming needs the right to edit it and makes no new version, so it takes no If-Match; its open viewers are told on the artifact's events socket and read it again. Pinning is the caller's own and needs only the right to open it. security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateArtifactRequest' examples: renamed: value: title: Q4 launch plan, final pinned: value: pinned: true responses: '200': description: The artifact as it now is. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: $ref: '#/components/headers/ArtifactVersionETag' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactResponse' examples: artifact: $ref: '#/components/examples/ArtifactExample' '400': $ref: '#/components/responses/InvalidArtifact' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactForbidden' '404': $ref: '#/components/responses/ArtifactNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Artifacts operationId: deleteArtifact summary: Delete an artifact description: Delete an artifact with every version of it and every image it uses. Nobody can open it from then on, its link included. Only its owner can. Deleting one that is not there changes nothing. security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The artifact is gone. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactForbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/content: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ArtifactId' get: tags: - Artifacts operationId: getArtifactContent summary: Read an artifact's current content description: Return the content of the artifact's current version, with that version. The ETag is the version, for the next save's If-Match. Somebody outside the organization reads it on the artifacts address as getArtifact says, with the version's author unnamed and its note null, and a page's contentUrl with no ticket. x-openbot-singleton: true security: - webSession: [] - appOAuth: - artifacts:read - apiKey: [] - artifactInvite: [] - {} responses: '200': description: The current version and its content. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: $ref: '#/components/headers/ArtifactVersionETag' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactVersionContent' examples: current: $ref: '#/components/examples/ArtifactVersionContentExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ArtifactNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Artifacts operationId: saveArtifactContent summary: Save a new version description: Save the whole content as a new version. If-Match names the version the content was built on; when that is no longer the current version the save is refused with 412 and the current version (ARTIFACT_VERSION_CONFLICT), so the caller reads it, merges and saves again. content is checked against the artifact's kind. The answer carries the new version, and its ETag is that version. security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' - $ref: '#/components/parameters/ArtifactIfMatch' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SaveArtifactContentRequest' examples: rewrite: value: content: markdown: |- # Q4 launch plan Four launches now. note: Added the December launch responses: '200': description: The new version. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: $ref: '#/components/headers/ArtifactVersionETag' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactWriteResult' examples: saved: $ref: '#/components/examples/SavedArtifact' '400': $ref: '#/components/responses/InvalidArtifact' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactForbidden' '404': $ref: '#/components/responses/ArtifactNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '412': $ref: '#/components/responses/ArtifactVersionConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '422': $ref: '#/components/responses/ArtifactContentInvalid' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/edits: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ArtifactId' post: tags: - Artifacts operationId: applyArtifactEdits summary: Change part of an artifact description: 'Replace exact pieces of text in the current version and save the result as a new version. Each edit''s oldText must appear exactly once in the text as it stands after the edits before it, and is replaced by its newText. The edits apply all or none: when one finds no match (ARTIFACT_EDIT_NOT_FOUND) or more than one (ARTIFACT_EDIT_NOT_UNIQUE), nothing is saved and the problem names that edit by editIndex. The text an edit works on is the document''s Markdown, the diagram''s source, or one file of a page (path, the page''s entry when absent); for slides, a dashboard or a sheet it is the content written as JSON with two-space indents, as getArtifactContent''s content reads when written that way, and the result must still be JSON of the kind. If-Match names the version the edits were made against, as for a save.' security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' - $ref: '#/components/parameters/ArtifactIfMatch' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ApplyArtifactEditsRequest' examples: one: value: edits: - oldText: Three launches, one a month. newText: Four launches, one every three weeks. note: Moved to a three-week cadence responses: '200': description: The new version. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: $ref: '#/components/headers/ArtifactVersionETag' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactWriteResult' examples: saved: $ref: '#/components/examples/SavedArtifact' '400': $ref: '#/components/responses/InvalidArtifact' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactForbidden' '404': $ref: '#/components/responses/ArtifactNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '412': $ref: '#/components/responses/ArtifactVersionConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '422': $ref: '#/components/responses/ArtifactEditFailed' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/patches: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ArtifactId' post: tags: - Artifacts operationId: applyArtifactPatch summary: Change an artifact's content with JSON Patch description: 'Apply a JSON Patch (RFC 6902) to the current version''s content and save the result as a new version. Made for slides, dashboards and sheets, where one value changes without the rest being sent; it works on every kind''s content. The operations apply all or none: when one can''t apply (a path that isn''t there, or a test that fails) or the result isn''t content of the kind, nothing is saved and the problem names that operation by operationIndex (ARTIFACT_PATCH_FAILED). If-Match names the version the patch was made against, as for a save.' security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' - $ref: '#/components/parameters/ArtifactIfMatch' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ApplyArtifactPatchRequest' examples: retitle: value: operations: - op: replace path: /slides/0/blocks/0/text value: Q4 launch plan note: New title slide responses: '200': description: The new version. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: $ref: '#/components/headers/ArtifactVersionETag' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactWriteResult' examples: saved: $ref: '#/components/examples/SavedArtifact' '400': $ref: '#/components/responses/InvalidArtifact' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactForbidden' '404': $ref: '#/components/responses/ArtifactNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '412': $ref: '#/components/responses/ArtifactVersionConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '422': $ref: '#/components/responses/ArtifactPatchFailed' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/versions: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ArtifactId' get: tags: - Artifacts operationId: listArtifactVersions summary: List an artifact's versions description: 'Return one page of the artifact''s versions, newest first: each one''s number, who made it (a person, a Bot for a person, or a connected Bot), its note, when it was made and its size. Every version is kept; a restore adds a new one and removes none. A missing cursor starts at the newest and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - artifacts:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of versions. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: $ref: '#/components/headers/ArtifactVersionETag' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactVersionPage' examples: lastPage: $ref: '#/components/examples/ArtifactVersionPageLast' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ArtifactNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/versions/{versionNumber}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ArtifactId' - $ref: '#/components/parameters/ArtifactVersionNumber' get: tags: - Artifacts operationId: getArtifactVersion summary: Read one version of an artifact description: Return one version of the artifact with its content, exactly as it was saved. A version never changes. A chat card shows the version that existed when it was drawn by reading it here. Somebody outside the organization reads the current version here on the artifacts address, as getArtifactContent says; any other version is not found for them. security: - webSession: [] - appOAuth: - artifacts:read - apiKey: [] - artifactInvite: [] - {} responses: '200': description: The version and its content. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactVersionContent' examples: version: $ref: '#/components/examples/ArtifactVersionContentExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ArtifactVersionNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/versions/{versionNumber}/restore: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ArtifactId' - $ref: '#/components/parameters/ArtifactVersionNumber' post: tags: - Artifacts operationId: restoreArtifactVersion summary: Restore an earlier version description: 'Make an earlier version''s content the current one, as a new version on top: restoring v2 of an artifact at v5 makes v6, a copy of v2. No version is removed. If-Match names the current version, as for a save, so a restore never undoes a save the caller hasn''t seen.' security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' - $ref: '#/components/parameters/ArtifactIfMatch' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/RestoreArtifactVersionRequest' examples: note: value: note: Back to the version the team signed off responses: '200': description: The new version, a copy of the one restored. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: $ref: '#/components/headers/ArtifactVersionETag' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactWriteResult' examples: restored: $ref: '#/components/examples/RestoredArtifact' '400': $ref: '#/components/responses/InvalidArtifact' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactForbidden' '404': $ref: '#/components/responses/ArtifactVersionNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '412': $ref: '#/components/responses/ArtifactVersionConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/diff: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ArtifactId' get: tags: - Artifacts operationId: diffArtifactVersions summary: Compare two versions description: 'Say what changed from one version to another. For a document, a diagram or a page it is a text diff (format text): one unified diff for each text that changed, the Markdown, the source, or each file of a page. For slides, a dashboard or a sheet it is a JSON Patch (format json) that turns the from version''s content into the to version''s. to is the current version when absent.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - artifacts:read - apiKey: [] parameters: - name: from in: query required: true description: The earlier version's number. schema: type: integer minimum: 1 maximum: 1000000 - name: to in: query description: The later version's number. The current version when absent. schema: type: integer minimum: 1 maximum: 1000000 responses: '200': description: What changed. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactDiff' examples: text: $ref: '#/components/examples/ArtifactTextDiff' json: $ref: '#/components/examples/ArtifactJsonDiff' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ArtifactVersionNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/duplicate: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ArtifactId' post: tags: - Artifacts operationId: duplicateArtifact summary: Duplicate an artifact description: 'Make a new artifact owned by the caller from one they can open: a copy of its current version (or of version, when given) as v1 of the copy, with the images it uses. The copy is private to the caller and starts its own history. Its title is the original''s with "(copy)" after it unless title is given.' security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: false content: application/json: schema: $ref: '#/components/schemas/DuplicateArtifactRequest' examples: titled: value: title: Q1 launch plan responses: '201': description: The copy and its first version. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: $ref: '#/components/headers/ArtifactVersionETag' Location: description: The copy. schema: type: string example: /api/v2/organizations/default/artifacts/Zb3kP0qWm8nVx5cT2rYhJd X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactWriteResult' examples: created: $ref: '#/components/examples/CreatedArtifact' '400': $ref: '#/components/responses/InvalidArtifact' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ArtifactVersionNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/assets: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ArtifactId' post: tags: - Artifacts operationId: uploadArtifactAsset summary: Add an image or other file an artifact uses description: Store a file the artifact's content refers to, such as an image on a slide, by the SHA-256 of its bytes. The same bytes are stored once, so uploading them again changes nothing and answers the same asset. An asset never changes, so a version that names it always shows the same file. Content names an asset by the ref in the answer (asset:). At most 20 MiB. Needs the right to edit the artifact. security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: multipart/form-data: schema: $ref: '#/components/schemas/ArtifactAssetUpload' responses: '201': description: The asset. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactAsset' examples: image: $ref: '#/components/examples/ArtifactAssetExample' '400': $ref: '#/components/responses/InvalidArtifact' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactForbidden' '404': $ref: '#/components/responses/ArtifactNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '413': $ref: '#/components/responses/PayloadTooLarge' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/assets/{assetSha256}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ArtifactId' - $ref: '#/components/parameters/ArtifactAssetSha256' get: tags: - Artifacts operationId: downloadArtifactAsset summary: Download an asset description: Return the bytes of a file the artifact uses, with the type it was uploaded as. The ETag is its SHA-256. Somebody outside the organization who may read the artifact (getArtifact) downloads its files too, on the artifacts address. security: - webSession: [] - appOAuth: - artifacts:read - apiKey: [] - artifactInvite: [] - {} responses: '200': description: The asset's bytes. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' ETag: description: The asset's SHA-256 in hex, quoted. schema: type: string example: '"3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b"' X-Content-Type-Options: description: Always nosniff. schema: type: string const: nosniff X-Request-Id: $ref: '#/components/headers/RequestId' content: application/octet-stream: schema: type: string format: binary '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/ArtifactAssetNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/sharing: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SharedArtifactId' get: tags: - Artifact sharing operationId: getArtifactSharing summary: Read who can see and edit an artifact description: 'Return an artifact''s sharing: its audience (only its owner, everyone in the organization, or anyone with the link), the people and teams it is shared with and their roles, the outside people invited by email, the pending requests for access, what the organization''s policy allows, and the caller''s own access with what it comes from. Anybody in the organization who can view the artifact can read it; only its owner and its editors are shown the invitations and the requests for access. An artifact the caller can''t view answers 404, exactly as one that does not exist.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - artifacts:read - apiKey: [] responses: '200': description: The artifact's sharing. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactSharing' examples: shared: $ref: '#/components/examples/ArtifactSharingExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/SharedArtifactNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/sharing/visibility: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SharedArtifactId' put: tags: - Artifact sharing operationId: setArtifactVisibility summary: Set who an artifact is open to description: 'Set an artifact''s audience: private (its owner and the people and teams it is shared with), organization (everyone in the organization can view it) or public (anyone with its link can view it, signed in or not). Only its owner can. Public needs the organization''s policy to allow public links (PUBLIC_LINKS_OFF) and an OpenBot that serves artifacts at a public address (PUBLIC_LINKS_UNAVAILABLE, as on OpenBot Desktop). Taking an artifact off public ends every outside viewer''s access at once: open viewers close, and its cached public pages are purged. Setting the audience it already has changes nothing. Returns the sharing as it now is.' security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SetArtifactVisibilityRequest' examples: organization: value: visibility: organization responses: '200': description: The artifact's sharing, as it now is. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactSharing' examples: shared: $ref: '#/components/examples/ArtifactSharingExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactShareForbidden' '404': $ref: '#/components/responses/SharedArtifactNotFound' '409': $ref: '#/components/responses/ArtifactSharingConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/sharing/people/{personId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SharedArtifactId' - $ref: '#/components/parameters/ArtifactGranteePersonId' put: tags: - Artifact sharing operationId: shareArtifactWithPerson summary: Share an artifact with a person description: 'Give a member of the organization access to an artifact as a viewer or an editor, or change the role they have. A viewer can read the artifact and its versions; an editor can also change it and share it. Its owner and its editors can, and an editor can''t change the owner''s access. The person can use it from their next request, and a request for access they made is answered by it. Somebody who is not a member of the organization is not found: invite them by email instead (createArtifactInvite).' security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ArtifactGrantRequest' examples: editor: value: role: editor responses: '200': description: The artifact's sharing, as it now is. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactSharing' examples: shared: $ref: '#/components/examples/ArtifactSharingExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactShareForbidden' '404': $ref: '#/components/responses/ArtifactGranteeNotFound' '409': $ref: '#/components/responses/ArtifactSharingConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Artifact sharing operationId: unshareArtifactWithPerson summary: Stop sharing an artifact with a person description: 'Take away the access a person was given to an artifact. It ends at once: their open viewers close, and their next request is refused. They keep any access that comes from elsewhere: a team they are in, or the artifact''s audience. Its owner and its editors can, and anybody can take away their own. Taking away access nobody gave changes nothing. Returns the sharing as it now is, or 204 when the caller took away their own and can no longer view it.' security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The artifact's sharing, as it now is. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactSharing' examples: shared: $ref: '#/components/examples/ArtifactSharingExample' '204': description: The caller took away their own access and can no longer view the artifact. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactShareForbidden' '404': $ref: '#/components/responses/SharedArtifactNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/sharing/teams/{teamId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SharedArtifactId' - $ref: '#/components/parameters/ArtifactGranteeTeamId' put: tags: - Artifact sharing operationId: shareArtifactWithTeam summary: Share an artifact with a team description: Give a team of the organization access to an artifact as a viewer or an editor, or change the role it has. Everybody in the team, and in the teams beneath it, has that access while they are in it, and loses it the moment they leave. Its owner and its editors can. A team of another organization is not found. security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ArtifactGrantRequest' examples: viewer: value: role: viewer responses: '200': description: The artifact's sharing, as it now is. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactSharing' examples: shared: $ref: '#/components/examples/ArtifactSharingExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactShareForbidden' '404': $ref: '#/components/responses/ArtifactGranteeNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Artifact sharing operationId: unshareArtifactWithTeam summary: Stop sharing an artifact with a team description: Take away the access a team was given to an artifact. It ends at once for everybody who had it only through the team. Its owner and its editors can. Taking away access nobody gave changes nothing. security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The artifact's sharing, as it now is. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactSharing' examples: shared: $ref: '#/components/examples/ArtifactSharingExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactShareForbidden' '404': $ref: '#/components/responses/SharedArtifactNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/sharing/invites: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SharedArtifactId' post: tags: - Artifact sharing operationId: createArtifactInvite summary: Invite somebody outside the organization by email description: 'Invite somebody outside the organization to view an artifact. They are emailed a link and a one-time code, which lets them open the artifact without an OpenBot account. A code works once and runs out after expiresAt; once used, their access lasts until it is taken away. Inviting an address that already has a pending invitation sends a new code and the old one stops working. An address of a member of the organization is refused (INVITEE_IS_MEMBER): share with them instead. Its owner and its editors can, when the organization''s policy allows outside invitations (OUTSIDE_INVITES_OFF). At most 50 outside people per artifact. The answer carries the link with its code this once, so the inviter can pass it on when the email wasn''t sent (emailed false).' security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateArtifactInviteRequest' examples: viewer: value: email: dana@example.com responses: '201': description: The invitation, and its link this once. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/CreatedArtifactInvite' examples: created: $ref: '#/components/examples/CreatedArtifactInviteExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactShareForbidden' '404': $ref: '#/components/responses/SharedArtifactNotFound' '409': $ref: '#/components/responses/ArtifactSharingConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/sharing/invites/{inviteId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SharedArtifactId' - $ref: '#/components/parameters/ArtifactInviteId' delete: tags: - Artifact sharing operationId: revokeArtifactInvite summary: Take back an outside invitation description: 'Take back an invitation to somebody outside the organization. Its code stops working, and if they already used it their access ends at once: their open viewers close and their next request is refused. Its owner and its editors can. Taking back one that is already taken back changes nothing.' security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The artifact's sharing, as it now is. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactSharing' examples: shared: $ref: '#/components/examples/ArtifactSharingExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactShareForbidden' '404': $ref: '#/components/responses/ArtifactInviteNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/sharing/access-requests/{requestId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SharedArtifactId' - $ref: '#/components/parameters/ArtifactAccessRequestId' delete: tags: - Artifact sharing operationId: dismissArtifactAccessRequest summary: Turn down a request for access description: Turn down a request for access to an artifact without sharing it. The person who asked is not told. To say yes, share the artifact with them (shareArtifactWithPerson), which answers their request too. Its owner and its editors can. Turning down one already answered changes nothing. security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The artifact's sharing, as it now is. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactSharing' examples: shared: $ref: '#/components/examples/ArtifactSharingExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactShareForbidden' '404': $ref: '#/components/responses/SharedArtifactNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/access-requests: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/SharedArtifactId' post: tags: - Artifact sharing operationId: requestArtifactAccess summary: Ask for access to an artifact description: Ask an artifact's owner for access, as a viewer or an editor. Any member of the organization can. The owner is told by email where OpenBot can send mail, and sees the request in the artifact's Share dialog. Asking again while a request is pending changes its role and message. The answer is the same whether or not the artifact exists or the caller can already see it, so asking reveals nothing. security: - webSession: [] - appOAuth: - artifacts:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RequestArtifactAccessRequest' examples: view: value: role: viewer message: I'm preparing the board update and need the latest numbers. responses: '202': description: The request was taken. If the artifact exists, its owner is asked. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactAccessRequested' examples: requested: value: requested: true '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/artifacts: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Artifact sharing operationId: getArtifactPolicy summary: Read the organization's artifact policy description: 'Return what the organization allows its members to do with artifacts: public links, invitations to people outside it, connected apps inside artifact pages, and how long artifact versions are kept. A new organization starts with everything on and versions kept for good. Only an admin of the organization can read it; everybody else sees what applies to them in an artifact''s sharing.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - settings:read - apiKey: [] responses: '200': description: The organization's artifact policy. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactPolicy' examples: defaults: $ref: '#/components/examples/ArtifactPolicyExample' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Artifact sharing operationId: updateArtifactPolicy summary: Change the organization's artifact policy description: 'Change the settings sent and keep the rest. Only an admin of the organization can. Turning public links off ends every public link in the organization at once: outside viewers lose access, open viewers close and cached public pages are purged, while everyone in the organization can still view those artifacts. Turning outside invitations off ends every outside person''s access the same way. Turning either back on gives back what it took away. Each change is recorded on the audit trail with what it was before.' security: - webSession: [] - appOAuth: - settings:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateArtifactPolicyRequest' examples: noPublicLinks: value: publicLinks: false responses: '200': description: The policy, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactPolicy' examples: defaults: $ref: '#/components/examples/ArtifactPolicyExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/artifact-invites/redeem: post: tags: - Artifact sharing operationId: redeemArtifactInvite summary: Open an artifact with an invitation's code description: 'Use the one-time code from an invitation email to open an artifact without an OpenBot account. Called on the artifacts address (the host of the artifact''s link), which answers with a cookie of its own that lets this browser view that one artifact. The code works once: used again, run out or taken back, it answers 404 with INVITE_CODE_INVALID, the same answer as a code that never existed. Anybody may call it, signed in or not. Repeated wrong codes are slowed down (RATE_LIMITED).' security: - {} parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/RedeemArtifactInviteRequest' examples: code: value: artifactId: 6Qm2vX9kLp4Rt8Wz1Nc7Hb code: K7QXM-2RTPB-9WNCD-4HJLF responses: '200': description: The code was taken, and this browser can now view the artifact. The cookie that says so is set on this answer. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Set-Cookie: description: A cookie for the artifacts address alone (no Domain), HttpOnly, Secure where the address is https, SameSite=Lax, naming this invitation. It grants viewing this one artifact and nothing else. schema: type: string X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/RedeemedArtifactInvite' examples: redeemed: value: artifactId: 6Qm2vX9kLp4Rt8Wz1Nc7Hb organizationId: org_8sQ2 role: viewer url: https://artifacts.open.bot/6Qm2vX9kLp4Rt8Wz1Nc7Hb '400': $ref: '#/components/responses/InvalidRequest' '404': $ref: '#/components/responses/ArtifactInviteCodeInvalid' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/ArtifactInviteRateLimited' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/exports: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ExportArtifactId' post: tags: - Artifact exports operationId: createArtifactExport summary: Turn a version of an artifact into a file description: |- Start making a file of one version of the artifact, in a format its kind takes: a document as pdf, docx or markdown; slides as pptx, pdf or png (a .zip with one picture per slide); a dashboard as pdf or png; a sheet as xlsx or csv (a .zip with one file per tab when it has more than one); a diagram as svg, png or pdf; a page as html (one self-contained file), pdf or png. version defaults to the artifact's current version. PowerPoint, Word and Excel files are native: a deck's text, tables and charts are PowerPoint's own and stay editable, a sheet keeps its column types, frozen header and formulas, and every such file is opened again and checked before it is offered. PDF and PNG are drawn the way OpenBot shows the artifact. Pictures an artifact links from the web are not fetched for a file; pictures stored with the artifact are. The file is made in the background: read getArtifactExport until its status is ready, then downloadArtifactExport. A version never changes, so the same version and format is made once and answered ready at once after that. One that failed, or that an earlier OpenBot made, is made again. Anybody who can open the artifact can export it. The file is kept with the artifact and removed with it. Somebody outside the organization who may read the artifact on the artifacts address (getArtifact) can make a file of its current version there, and of no other version. Their Idempotency-Key is checked but not kept: asking again answers the same export. security: - webSession: [] - appOAuth: - artifacts:read - apiKey: [] - artifactInvite: [] - {} parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateArtifactExportRequest' examples: deck: $ref: '#/components/examples/CreateArtifactExportExample' responses: '202': description: 'The export: preparing while the file is made, or ready when that version was already exported to that format.' headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Location: description: The export's address, to read with getArtifactExport. schema: type: string example: /api/v2/organizations/default/artifacts/q7JvXh2cR0aW9mBkTn4sLe/exports/v3-pptx X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactExport' example: id: v3-pptx artifactId: q7JvXh2cR0aW9mBkTn4sLe version: 3 format: pptx status: preparing createdAt: '2026-11-30T14:02:11Z' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ExportArtifactNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '422': $ref: '#/components/responses/ArtifactExportFormatUnsupported' '429': $ref: '#/components/responses/ArtifactExportsBusy' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactExportsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/exports/{exportId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ExportArtifactId' - $ref: '#/components/parameters/ArtifactExportId' get: tags: - Artifact exports operationId: getArtifactExport summary: Read an artifact export description: 'Return where an export stands: preparing, ready (with the file''s name, type, size and SHA-256) or failed (with a sentence saying why; createArtifactExport makes it again). Anybody who can open the artifact can read its exports; anybody else is answered 404. Somebody outside the organization reads the exports of its current version, on the artifacts address.' security: - webSession: [] - appOAuth: - artifacts:read - apiKey: [] - artifactInvite: [] - {} responses: '200': description: The export. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactExport' examples: preparing: $ref: '#/components/examples/ArtifactExportPreparingExample' ready: $ref: '#/components/examples/ArtifactExportReadyExample' failed: $ref: '#/components/examples/ArtifactExportFailedExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactExportNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactExportsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/exports/{exportId}/file: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/ExportArtifactId' - $ref: '#/components/parameters/ArtifactExportId' get: tags: - Artifact exports operationId: downloadArtifactExport summary: Download an artifact export's file description: 'Return a ready export''s file, streamed as bytes, as an attachment named after the artifact (Content-Disposition) with the extension of its format: .pptx, .docx, .xlsx, .pdf, .png, .svg, .html, .md, .csv, or .zip for a deck''s slides as pictures or a sheet''s tabs as CSV. The export''s mediaType says what the file is. The ETag is the file''s SHA-256. A Range header of one byte range (bytes=N- or bytes=N-M) answers 206 with that range, so a dropped download of a large file resumes where it stopped. Anybody who can open the artifact can download it, somebody outside the organization the file of its current version, on the artifacts address.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - artifacts:read - apiKey: [] - artifactInvite: [] - {} parameters: - name: Range in: header required: false description: One byte range of the file, as RFC 9110 writes it. schema: type: string pattern: ^bytes=[0-9]+-[0-9]*$ maxLength: 64 responses: '200': description: The file. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Content-Disposition: $ref: '#/components/headers/ArtifactExportDisposition' ETag: $ref: '#/components/headers/ArtifactExportETag' X-Content-Type-Options: description: The browser keeps to the media type given. schema: type: string const: nosniff X-Request-Id: $ref: '#/components/headers/RequestId' content: application/octet-stream: schema: type: string format: binary '206': description: The range asked for. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' Content-Range: description: Which bytes of the file this is, and the file's size. schema: type: string example: bytes 1048576-2097151/4194304 ETag: $ref: '#/components/headers/ArtifactExportETag' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/octet-stream: schema: type: string format: binary '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactExportNotFound' '409': $ref: '#/components/responses/ArtifactExportNotReady' '416': $ref: '#/components/responses/ArtifactExportRangeNotSatisfiable' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '503': $ref: '#/components/responses/ArtifactExportsUnavailable' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/comment-threads: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' get: tags: - Artifact comments operationId: listArtifactCommentThreads summary: List an artifact's comment threads description: Return one page of the artifact's comment threads, newest first, each with every comment in it. Open threads only unless status says otherwise. Anybody signed in who may view the artifact may list them. A missing cursor starts at the first page and nextCursor null ends the list. security: - webSession: [] - appOAuth: - artifact-comments:read - apiKey: [] parameters: - name: status in: query description: Which threads to list. open by default. schema: type: string enum: - open - resolved - all default: open - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of comment threads. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactCommentThreadPage' examples: lastPage: $ref: '#/components/examples/ArtifactCommentThreadPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactCommentsNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' post: tags: - Artifact comments operationId: createArtifactCommentThread summary: Start a comment thread description: Start a thread on the artifact with its first comment, on the version the person is looking at, and optionally on a stretch of its text or one of its elements. With sendToBot, the thread is handed to a Bot at once, as sendArtifactCommentThreadToBot does. Anybody signed in who may view the artifact may start one. security: - webSession: [] - appOAuth: - artifact-comments:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateArtifactCommentThreadRequest' examples: onText: value: version: 3 body: Can we say this in one sentence? anchor: kind: text exact: Revenue grew in every region except the north prefix: 'In the third quarter, ' suffix: ', where' toBot: value: version: 3 body: Make the chart a line chart. sendToBot: {} responses: '201': description: The thread, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactCommentThread' examples: saved: $ref: '#/components/examples/ArtifactCommentThreadExample' '400': $ref: '#/components/responses/InvalidArtifactComment' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactCommentsNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/comment-threads/{threadId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' - $ref: '#/components/parameters/ArtifactCommentThreadId' get: tags: - Artifact comments operationId: getArtifactCommentThread summary: Read a comment thread description: Return one thread with every comment in it, open or resolved. Anybody signed in who may view the artifact may read it. security: - webSession: [] - appOAuth: - artifact-comments:read - apiKey: [] responses: '200': description: The thread. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactCommentThread' examples: thread: $ref: '#/components/examples/ArtifactCommentThreadExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactCommentsNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/comment-threads/{threadId}/comments: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' - $ref: '#/components/parameters/ArtifactCommentThreadId' post: tags: - Artifact comments operationId: createArtifactComment summary: Reply in a comment thread description: Add a comment to a thread. A reply to a resolved thread opens it again. Anybody signed in who may view the artifact may reply. security: - webSession: [] - appOAuth: - artifact-comments:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CreateArtifactCommentRequest' examples: reply: value: body: Agreed, and drop the second paragraph too. responses: '201': description: The thread, with the new comment last. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactCommentThread' examples: saved: $ref: '#/components/examples/ArtifactCommentThreadExample' '400': $ref: '#/components/responses/InvalidArtifactComment' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactCommentsNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/comment-threads/{threadId}/comments/{commentId}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' - $ref: '#/components/parameters/ArtifactCommentThreadId' - $ref: '#/components/parameters/ArtifactCommentId' delete: tags: - Artifact comments operationId: deleteArtifactComment summary: Delete a comment description: Delete one of the caller's own comments. Deleting a thread's only comment deletes the thread. Only the person who wrote it may delete it, and a Bot's reply is deleted by the person it answered for. security: - webSession: [] - appOAuth: - artifact-comments:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The comment is deleted. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactCommentNotYours' '404': $ref: '#/components/responses/ArtifactCommentsNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/comment-threads/{threadId}/resolve: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' - $ref: '#/components/parameters/ArtifactCommentThreadId' post: tags: - Artifact comments operationId: resolveArtifactCommentThread summary: Resolve a comment thread description: Mark a thread resolved. Resolving one already resolved changes nothing. The person who started it, and anybody who may edit the artifact, may resolve it. security: - webSession: [] - appOAuth: - artifact-comments:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The thread, resolved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactCommentThread' examples: resolved: $ref: '#/components/examples/ArtifactCommentThreadExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactCommentNotYours' '404': $ref: '#/components/responses/ArtifactCommentsNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/comment-threads/{threadId}/reopen: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' - $ref: '#/components/parameters/ArtifactCommentThreadId' post: tags: - Artifact comments operationId: reopenArtifactCommentThread summary: Reopen a comment thread description: Open a resolved thread again. Reopening one already open changes nothing. Anybody who may resolve it may reopen it. security: - webSession: [] - appOAuth: - artifact-comments:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The thread, open. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactCommentThread' examples: open: $ref: '#/components/examples/ArtifactCommentThreadExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactCommentNotYours' '404': $ref: '#/components/responses/ArtifactCommentsNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/comment-threads/{threadId}/send-to-bot: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' - $ref: '#/components/parameters/ArtifactCommentThreadId' post: tags: - Artifact comments operationId: sendArtifactCommentThreadToBot summary: Send a comment thread to a Bot description: Hand the thread to a Bot, which reads it and answers as " for " with the caller's access, and may change the artifact and resolve the thread. The Bot is the one that made the artifact unless botId names another, and must be one the caller may use. The Bot works in a conversation of the caller's own with it, which botRequest.conversationId names. Sending a thread again, after the Bot answered or failed, asks it again. Anybody signed in who may view the artifact may send a thread. security: - webSession: [] - appOAuth: - artifact-comments:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SendArtifactCommentThreadToBotRequest' examples: artifactBot: value: {} anotherBot: value: botId: research-bot responses: '200': description: The thread, waiting on the Bot. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactCommentThread' examples: sent: $ref: '#/components/examples/ArtifactCommentThreadExample' '400': $ref: '#/components/responses/InvalidArtifactComment' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactCommentsNotFound' '409': $ref: '#/components/responses/ArtifactCommentBotUnavailable' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/presence: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' get: tags: - Artifact presence operationId: listArtifactViewers summary: List who has an artifact open description: Return one page of the people who have the artifact open in OpenBot right now, the caller included, longest open first. Somebody counts as open until their viewer stops saying so (joinArtifactPresence) for 60 seconds. Empty while the organization has presence turned off. Anybody signed in who may view the artifact may list them. security: - webSession: [] - appOAuth: - artifact-comments:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of the people who have it open. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactViewerPage' examples: two: $ref: '#/components/examples/ArtifactViewerPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactCommentsNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Artifact presence operationId: joinArtifactPresence summary: Say the caller has an artifact open description: 'Say the caller has the artifact open, and keep saying it: a viewer sends this when it opens the artifact and again every 20 seconds while it stays open. The first one tells the others who have it open, over artifactActivity. Answers the people who have it open now. While the organization has presence turned off, nothing is recorded and the list is empty.' security: - webSession: [] - appOAuth: - artifact-comments:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '200': description: The people who have the artifact open now, the first page. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactViewerPage' examples: two: $ref: '#/components/examples/ArtifactViewerPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactCommentsNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Artifact presence operationId: leaveArtifactPresence summary: Say the caller closed an artifact description: Say the caller closed the artifact, so the others stop seeing them at once instead of after 60 seconds. Closing one not open changes nothing. security: - webSession: [] - appOAuth: - artifact-comments:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The caller no longer has it open. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactCommentsNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/settings/artifact-collaboration: parameters: - $ref: '#/components/parameters/OrganizationId' get: tags: - Organization settings operationId: getArtifactCollaborationSetting summary: Read the organization's artifact collaboration switches description: Return whether people see who else has an artifact open (presence), and whether pages in artifacts may use the viewer's connected apps (appsInPages). Both are on by default. Every member may read them, so the viewer knows what to offer. Kept apart from the organization's other settings, whose answer the apps already released hold closed to new fields. x-openbot-singleton: true security: - webSession: [] - appOAuth: - settings:read - apiKey: [] responses: '200': description: The switches. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactCollaborationSetting' examples: defaults: value: presence: true appsInPages: true '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/OrganizationNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' patch: tags: - Organization settings operationId: updateArtifactCollaborationSetting summary: Turn artifact presence or connected apps in pages on or off description: Turn presence, or pages' use of connected apps, on or off for the organization. Turning presence off clears who has what open at once; turning apps off refuses every page's app call from then on. The change is recorded on the audit trail. Only an administrator of the organization may change them. security: - webSession: [] - appOAuth: - settings:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateArtifactCollaborationSettingRequest' examples: presenceOff: value: presence: false responses: '200': description: The switches, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactCollaborationSetting' examples: presenceOff: value: presence: false appsInPages: true '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/AdminOnly' '404': $ref: '#/components/responses/OrganizationNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/page/permissions: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' get: tags: - Artifact pages operationId: getArtifactPagePermissions summary: Read what a page may use description: 'Return each capability a page can ask for: whether it is available to the caller here, and what the caller answered when the page first asked (null until they do). Anybody signed in who may view the artifact may read their own.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - artifact-pages:read - apiKey: [] responses: '200': description: The capabilities and the caller's answers. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactPagePermissions' examples: firstVisit: $ref: '#/components/examples/ArtifactPagePermissionsExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactPageNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/page/permissions/{capability}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' - $ref: '#/components/parameters/ArtifactPageCapability' put: tags: - Artifact pages operationId: setArtifactPagePermission summary: Allow or refuse a page a capability description: 'Keep the caller''s answer when the page asked for a capability: allow or deny. For apps, botId names which of the caller''s Bots the page acts through, and so whose apps it may use; it must be a Bot they may use. A capability that isn''t available here can''t be allowed. The answer is recorded on the audit trail.' security: - webSession: [] - appOAuth: - artifact-pages:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SetArtifactPagePermissionRequest' examples: allow: value: decision: allow apps: value: decision: allow botId: general-assistant responses: '200': description: Every capability, with the answer kept. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactPagePermissions' examples: allowed: $ref: '#/components/examples/ArtifactPagePermissionsExample' '400': $ref: '#/components/responses/InvalidArtifactPageRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactPageNotFound' '409': $ref: '#/components/responses/ArtifactPageCapabilityUnavailable' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Artifact pages operationId: resetArtifactPagePermission summary: Forget the answer about a capability description: Forget the caller's answer, so the page asks again next time it wants the capability. Forgetting one never given changes nothing. security: - webSession: [] - appOAuth: - artifact-pages:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' responses: '204': description: The answer is forgotten. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '404': $ref: '#/components/responses/ArtifactPageNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/page/data/{scope}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' - $ref: '#/components/parameters/ArtifactPageDataScope' get: tags: - Artifact pages operationId: listArtifactPageDocuments summary: List a page's documents description: 'Return one page of the page''s documents in one place, by key: the caller''s own (mine) or everybody''s (shared). prefix keeps the keys that start with it. Needs the caller''s yes to storage. A missing cursor starts at the first page and nextCursor null ends the list.' security: - webSession: [] - appOAuth: - artifact-pages:read - apiKey: [] parameters: - name: prefix in: query description: Only the keys that start with this. schema: type: string maxLength: 200 - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of documents. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactPageDocumentPage' examples: votes: $ref: '#/components/examples/ArtifactPageDocumentPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactPagePermissionRequired' '404': $ref: '#/components/responses/ArtifactPageNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/page/data/{scope}/{key}: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' - $ref: '#/components/parameters/ArtifactPageDataScope' - $ref: '#/components/parameters/ArtifactPageDocumentKey' get: tags: - Artifact pages operationId: getArtifactPageDocument summary: Read one of a page's documents description: Return one document by its key. Needs the caller's yes to storage. security: - webSession: [] - appOAuth: - artifact-pages:read - apiKey: [] responses: '200': description: The document. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactPageDocument' examples: vote: value: key: votes:user_ana scope: shared value: choice: Thursday version: 1 updatedAt: '2026-11-30T10:00:00.000Z' updatedBy: user_ana '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactPagePermissionRequired' '404': $ref: '#/components/responses/ArtifactPageNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' put: tags: - Artifact pages operationId: putArtifactPageDocument summary: Write one of a page's documents description: Write a document whole, making it if it is new. With ifVersion, the write happens only if the document is still at that version (0 for one that must not exist yet), and otherwise answers 409 ARTIFACT_PAGE_DOCUMENT_CHANGED with nothing written, so two viewers never overwrite each other unseen. A shared write tells everybody with the artifact open, over artifactActivity. Needs the caller's yes to storage. security: - webSession: [] - appOAuth: - artifact-pages:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PutArtifactPageDocumentRequest' examples: vote: value: value: choice: Thursday ifVersion: 0 responses: '200': description: The document, as saved. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactPageDocument' examples: vote: value: key: votes:user_ana scope: shared value: choice: Thursday version: 1 updatedAt: '2026-11-30T10:00:00.000Z' updatedBy: user_ana '400': $ref: '#/components/responses/InvalidArtifactPageRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactPagePermissionRequired' '404': $ref: '#/components/responses/ArtifactPageNotFound' '409': $ref: '#/components/responses/ArtifactPageDocumentChanged' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' delete: tags: - Artifact pages operationId: deleteArtifactPageDocument summary: Delete one of a page's documents description: Delete a document. With ifVersion, only if it is still at that version. Deleting one that doesn't exist changes nothing. Needs the caller's yes to storage. security: - webSession: [] - appOAuth: - artifact-pages:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' - name: ifVersion in: query description: Delete only if the document is still at this version. schema: type: integer minimum: 1 responses: '204': description: The document is gone. headers: X-Request-Id: $ref: '#/components/headers/RequestId' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactPagePermissionRequired' '404': $ref: '#/components/responses/ArtifactPageNotFound' '409': $ref: '#/components/responses/ArtifactPageDocumentChanged' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/page/model: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' post: tags: - Artifact pages operationId: askArtifactPageModel summary: Ask the model for a page description: 'Ask the organization''s model, as the caller and on their model connection, and stream the answer as server-sent events: one `delta` event per piece of text ({"text": "..."}), then one `done` event ({"stopReason": "..."}), or one `error` event ({"detail": "..."}) if the model fails partway. A refusal before the first piece is answered as a problem, never as a broken stream. The organization''s model rules apply as to any use of theirs. Needs the caller''s yes to model.' security: - webSession: [] - appOAuth: - artifact-pages:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/AskArtifactPageModelRequest' examples: summarise: value: system: Answer in one sentence. messages: - role: user content: Summarise this week's votes. responses: '200': description: The answer, streamed as server-sent events. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: text/event-stream: schema: type: string description: 'Events: delta, done and error, each with a JSON data line.' examples: answer: value: |+ event: delta data: {"text":"Thursday won"} event: delta data: {"text":", 6 votes to 4."} event: done data: {"stopReason":"end"} '400': $ref: '#/components/responses/InvalidArtifactPageRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactPagePermissionRequired' '404': $ref: '#/components/responses/ArtifactPageNotFound' '409': $ref: '#/components/responses/IdempotencyConflict' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' '502': $ref: '#/components/responses/ModelFailed' '503': $ref: '#/components/responses/ModelNotConfigured' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/page/apps: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' get: tags: - Artifact pages operationId: listArtifactPageAppActions summary: List the app actions a page may run description: 'Return one page of the app actions the page may run for the caller: those of the Bot they chose when they allowed apps, as that Bot may use them for them now. Needs the caller''s yes to apps, and the organization''s switch for apps in pages on.' security: - webSession: [] - appOAuth: - artifact-pages:read - apiKey: [] parameters: - $ref: '#/components/parameters/Limit' - $ref: '#/components/parameters/Cursor' responses: '200': description: One page of app actions. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactPageAppActionPage' examples: drive: $ref: '#/components/examples/ArtifactPageAppActionPageExample' '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactPagePermissionRequired' '404': $ref: '#/components/responses/ArtifactPageNotFound' '409': $ref: '#/components/responses/ArtifactPageCapabilityUnavailable' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/page/apps/call: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' post: tags: - Artifact pages operationId: callArtifactPageAppAction summary: Run an app action for a page description: 'Run one of the app actions listArtifactPageAppActions lists, as the caller through the Bot they chose: the Bot''s apps, the organization''s boundaries and approval rules decide as for any of the Bot''s actions, and the call is on the audit trail. An action the rules would ask the caller about is refused here, since a page can''t ask; its refusal says so. A refusal is an answer (refused true), not an error. Needs the caller''s yes to apps, and the organization''s switch for apps in pages on.' security: - webSession: [] - appOAuth: - artifact-pages:write - apiKey: [] parameters: - $ref: '#/components/parameters/IdempotencyKey' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/CallArtifactPageAppActionRequest' examples: search: value: action: google-drive/search_files args: query: roadmap responses: '200': description: What the action answered, or why it was refused. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactPageAppActionResult' examples: found: value: refused: false result: '[{"name":"Roadmap 2027","id":"1a2b"}]' needsApproval: value: refused: true result: This action needs your approval, so a page can't run it. Ask your Bot in a conversation instead. '400': $ref: '#/components/responses/InvalidArtifactPageRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactPagePermissionRequired' '404': $ref: '#/components/responses/ArtifactPageNotFound' '409': $ref: '#/components/responses/ArtifactPageCapabilityUnavailable' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' /api/v2/organizations/{organizationId}/artifacts/{artifactId}/page/user: parameters: - $ref: '#/components/parameters/OrganizationId' - $ref: '#/components/parameters/CommentedArtifactId' get: tags: - Artifact pages operationId: getArtifactPageUser summary: Read who is viewing, for a page description: 'Return who the caller is, as a page may know them: their id, name and picture, never their email. Needs the caller''s yes to user.' x-openbot-singleton: true security: - webSession: [] - appOAuth: - artifact-pages:read - apiKey: [] responses: '200': description: The viewer. headers: Cache-Control: $ref: '#/components/headers/PrivateNoStore' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/json: schema: $ref: '#/components/schemas/ArtifactPageUser' examples: ana: value: id: user_ana name: Ana Ruiz image: null isOwner: false '400': $ref: '#/components/responses/InvalidRequest' '401': $ref: '#/components/responses/Unauthenticated' '403': $ref: '#/components/responses/ArtifactPagePermissionRequired' '404': $ref: '#/components/responses/ArtifactPageNotFound' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnexpectedError' components: securitySchemes: webSession: type: apiKey in: cookie name: better-auth.session_token description: 'The web app''s server-side session, so no token ever reaches the browser. Served over HTTPS the cookie is __Secure-better-auth.session_token. The personal edition has no session cookie: it admits its one person''s requests on their own computer, and where the install has a token, only requests that carry it.' appOAuth: type: oauth2 description: |- Desktop and mobile. OAuth 2.1 authorization code with PKCE (RFC 7636, S256 only); the access token is sent as a bearer token. Clients. Three public clients are registered: `openbot-desktop-oauth`, `openbot-mobile` and `openbot-cli`. A public client has no secret and must use PKCE with S256. Dynamic client registration is off, so an app uses one of these ids. Redirect addresses. A client on the person's own computer listens on a loopback address and any port: `http://127.0.0.1:/callback` or `http://[::1]:/callback`. `localhost` is not accepted. Endpoints. The authorization server's metadata (RFC 8414) is at `/.well-known/oauth-authorization-server/api/auth`. The person is sent to `/api/auth/oauth2/authorize`. The code is exchanged, and a token refreshed, at `/api/auth/oauth2/token`, with a form-encoded body (`application/x-www-form-urlencoded`) that carries `client_id` and no secret: the token and revocation endpoints take no client authentication (`none` in the metadata's `token_endpoint_auth_methods_supported`). A wrong `code_verifier` is answered 400 `invalid_grant`, and the code cannot be used again. A token is revoked (RFC 7009) at `/api/auth/oauth2/revoke`; revoking a token the server does not know, or one already revoked, answers 200. Tokens. An access token starts `oba_` and lasts one hour. A refresh token starts `obr_`, is issued only when the `offline_access` scope is asked for, and rotates on every use: each refresh answers a new refresh token and ends the one it was given. Access tokens work on /api/v2, and on four addresses outside it that an app's screens need, each with the scope given: `GET /api/me`, who is signed in (people:read); the chat runtime at `/api/copilotkit` and everything under it (conversations:write); a file's download at `GET /api/attachments/{attachmentId}`, the address a sent message keeps (conversations:read); and the relayed realtime socket at `/api/intelligence/client/websocket` (conversations:read), which is also on /api/v2 at `/api/v2/organizations/{organizationId}/realtime/websocket`. They work nowhere else. Organization. An access token keeps the organization the person signed the app in to: the one they were working in as they allowed it, which on OpenBot Cloud is the one they picked as they signed in. A token refreshed from it keeps it too. An address under `/api/v2/organizations/{organizationId}` names the organization. Where an address names none, such as the list of the person's own organizations, an app sends the header `OpenBot-Organization` with the organization's id. It is checked against the person's membership on every request, and an organization they are not in answers not found. With no header, the app works in the organization it was signed in to, while the person is a member of it, else in the person's own organization. Consent. The person is asked once for each app in each organization they sign it in to, and not again for scopes they already allowed it there. OpenBot's own apps ask for two scopes: `openbot` and `offline_access`. `openbot` is every other scope here, decided as each request is made, so a sign-in also gets scopes added after it was made, and the address the person's browser is sent to stays short. A server that does not list `openbot` in its metadata's `scopes_supported` is asked for every scope it lists instead. A server that lists `openbot` allows a token of OpenBot's own apps every scope, whatever scopes it was granted, so a sign-in made before `openbot` also gets the scopes added after it. A token of any other app is allowed exactly the scopes it was granted. An install for one person on one computer has no sign-in, so it has no OAuth: there is nobody to authorize an app as. flows: authorizationCode: authorizationUrl: /api/auth/oauth2/authorize tokenUrl: /api/auth/oauth2/token refreshUrl: /api/auth/oauth2/token scopes: openbot: Everything the signed-in person can do through OpenBot's own apps, every other scope here, including ones added later, decided as each request is made. Only OpenBot's own apps (`openbot-desktop-oauth`, `openbot-mobile`, `openbot-cli`) may use it; for any other app it allows nothing. conversations:read: Read the signed-in person's conversations, and watch a Bot's runs in them. conversations:write: Start, rename, pin and delete the signed-in person's conversations, and send messages and files in them. tasks:read: Read the signed-in person's tasks. tasks:write: Mark the signed-in person's tasks done, reopen them and try them again. bots:read: Read the Bots the signed-in person can see, and what each is doing for them. bots:write: Create, change and delete the signed-in person's Bots, and pause, reset, hide and pin any Bot they can see, for themselves. team-bots:read: Read the Team Bots the signed-in person may use or manages. team-bots:write: Publish the signed-in person's Bots to the team, answer Team Bots' requests to use their accounts, and for an administrator assign Team Bots to groups. computers:read: Watch the signed-in person's Bots' screens and terminals, read their computers and browsers, and for an administrator list the organization's computers. computers:write: Use the mouse and keyboard on the signed-in person's Bots' computers and browsers, act on them as a Bot, and for an administrator stop, reset and update the organization's computers. reactions:read: Read the reactions Bots left on the signed-in person's messages. audit-events:read: Read the organization's audit trail, when the signed-in person is an administrator. people:read: Read the signed-in person, their standing instructions and preferences, the terms they agreed to, and for an administrator everybody in the organization. people:write: Change the signed-in person's name, onboarding, standing instructions and preferences, agree to the terms for them, and for an administrator anybody's role and access. linked-accounts:read: Read the signed-in person's linked accounts, and which services can be linked. linked-accounts:write: Link and unlink the signed-in person's accounts at other services. identity-providers:read: Read the organization's identity providers, when the signed-in person is an administrator. identity-providers:write: Remove the organization's identity providers, when the signed-in person is an administrator. settings:read: Read the organization's settings, when the signed-in person is an administrator. settings:write: Change the organization's settings and stop idle computers, when the signed-in person is an administrator. capabilities:read: Read the permission switches, and describe and preview changes to them, when the signed-in person is an administrator. capabilities:write: Change the permission switches, when the signed-in person is an administrator. network-policies:read: Read where Bot computers may connect, and describe and test a policy, when the signed-in person is an administrator. network-policies:write: Set and remove where Bot computers may connect, when the signed-in person is an administrator. model-usage:read: Read which models Bots ran on, when the signed-in person is an administrator. computer-actions:read: Read the actions recorded on Bot computers, when the signed-in person is an administrator. setup-checklist:read: Read the setup checklist, and check it again. credentials:read: Read which credentials the vault keeps and where the Bots' model key is filed, never a secret, when the signed-in person is an administrator. credentials:write: Add credentials to the vault and revoke them, when the signed-in person is an administrator. model-catalogue:read: Read the models Bots can run on. model-choices:read: Read the model the signed-in person chose for each of their conversations. model-choices:write: Choose the model the signed-in person's conversations answer on. ai-connection:read: Read how OpenBot reaches its AI provider, never a key, when the signed-in person is an administrator. ai-connection:write: Change how OpenBot reaches its AI provider, when the signed-in person is an administrator. personal-ai-connection:read: Read the signed-in person's own AI connection and which AI their runs use, never a key. personal-ai-connection:write: Set, sign in to or remove the signed-in person's own AI connection. apps:read: Read the apps the organization has added, the directory of apps it can add, and how apps are set up here. apps:write: Add, change, refresh and remove apps, when the signed-in person may. connections:read: Read the signed-in person's connections to apps, and each app's shared account. connections:write: Connect and disconnect the signed-in person's apps, and an app's shared account when the signed-in person is an administrator. bot-grants:read: Read what the signed-in person's Bots may use, and describe or test a change to it. bot-grants:write: Give and take back what the signed-in person's Bots may use. app-access-requests:read: Read requests for apps, the signed-in person's own or, for an administrator, everybody's. app-access-requests:write: Ask for an app, withdraw a request, and for an administrator approve or dismiss one. components:read: Read the components Bots draw, check whether a Bot may draw one, and read the data a component shows. components:write: Tell OpenBot which components the app can draw, and, when the signed-in person is an admin, write, publish and delete components and choose which Bots and data each may use. skills:read: Read the skills the signed-in person can use, and for an admin everybody's. skills:write: Write and delete the signed-in person's skills, and for an admin the organization's and anybody's. devices:read: Read the phones the signed-in person registered for push notifications, and the key a browser subscribes to push notifications with. devices:write: Register the signed-in person's phones and browsers for push notifications, and remove them. destinations:read: Read where the signed-in person continues conversations in Slack, Microsoft Teams and text messages. destinations:write: Connect and disconnect the signed-in person's Slack, Microsoft Teams and text message destinations. deliveries:read: Read what Bots sent the signed-in person outside OpenBot. notification-settings:read: Read where the signed-in person's updates go, how much each Bot may send them, and the ways this deployment can reach people. notification-settings:write: Change where the signed-in person's updates go and how much each Bot may send them. routines:read: Read the signed-in person's routines and their runs. routines:write: Create, pause, resume, run and delete the signed-in person's routines. check-ins:read: Read the signed-in person's check-ins and the items they raised, and for an administrator how check-ins are going. check-ins:write: Turn the signed-in person's check-ins on and off, change and run them, and start or hide the items they raised. goals:read: Read the signed-in person's goals, their runs, their triggers and their GitHub event sources. Reading a trigger's secret needs goals:write. goals:write: Create, change, pause, resume, complete, run and delete the signed-in person's goals, their triggers and their GitHub event sources. organizations:read: Read the organizations the signed-in person is a member of, and their members. organizations:write: Create organizations and add members to them, where the signed-in person may. approvals:read: Read what the signed-in person's Bots are waiting on them for, and their own approval preferences and rules. approvals:write: Decide the signed-in person's approvals, answer their Bots' questions, and change their own approval preferences and rules. approval-rules:read: Read the organization's approval rules and its guidance for auto-review, and describe, check and test them, when the signed-in person is an administrator. approval-rules:write: Save the organization's approval rules and its guidance for auto-review, when the signed-in person is an administrator. boundaries:read: Read the boundaries on what Bots may do, and describe and test a rule, when the signed-in person is an administrator. boundaries:write: Set the boundaries on what Bots may do, when the signed-in person is an administrator. shared-use:read: Read a Bot's use of shared app accounts, when the signed-in person owns the Bot, and the requests waiting for an answer, when they are an administrator. shared-use:write: Ask that a Bot may use a shared app account, when the signed-in person owns the Bot, and approve or decline a request, when they are an administrator. host-access:read: Read the folders on the signed-in person's own computer that they gave their Bots. host-access:write: Give a Bot a folder on the signed-in person's own computer, take one away, and stop folder access. sign-in-requests:read: Read the sign-in requests the signed-in person's Bots are waiting on, never a credential. sign-in-requests:write: Open, answer and decline sign-in requests for the signed-in person. saved-logins:read: Read which logins the signed-in person saved, never a password, and for an administrator how many saved logins nobody in the organization may use any more. saved-logins:write: Delete the signed-in person's saved logins, and for an administrator the saved logins nobody in the organization may use any more. recorder:read: Read the signed-in person's connected browsers and their recordings. recorder:write: Connect and disconnect the signed-in person's browsers. learning:read: Read what Learning proposed in the signed-in person's own spaces, their Learning choices and skills, and for an administrator the organization's Learning settings, spaces, people's proposals and sharing requests. learning:write: Approve and reject what Learning proposed and start Learning in the signed-in person's own spaces, change their Learning choices, and for an administrator change the organization's Learning settings and decide sharing requests. memories:read: Read the signed-in person's memories and memory sources. memories:write: Write, change and forget the signed-in person's memories, and add, change, sync and remove their memory sources. bot-agents:read: Read the agents the signed-in person's Bots may hand work to, and for an administrator every agent in the organization. bot-agents:write: Add, change and delete the signed-in person's own agents and their callback tokens, and for an administrator the organization's. exports:read: Read and download the signed-in person's exports for moving to OpenBot Cloud, and what one would hold. exports:write: Start and remove the signed-in person's exports for moving to OpenBot Cloud. imports:read: Read the signed-in person's imports into OpenBot Cloud and check what arrived. imports:write: Start an import into OpenBot Cloud as the signed-in person, upload its bundle and import it. artifacts:read: Read the artifacts the signed-in person can open, their versions, the files they use and who they are shared with. artifacts:write: Create, save, edit, restore, duplicate, rename, pin, share and delete artifacts as the signed-in person, and ask for access to others. artifact-comments:read: Read the comments on artifacts the signed-in person may view, and who has them open. artifact-comments:write: Comment on artifacts the signed-in person may view, resolve and reopen threads, send them to a Bot, and say the person has an artifact open. artifact-pages:read: Read what page artifacts may use for the signed-in person, and the data, apps and identity they allowed a page. artifact-pages:write: Allow or refuse page artifacts a capability, and write page data, ask the model and run app actions for a page, as the signed-in person. apiKey: type: http scheme: bearer bearerFormat: OpenBot API key description: 'Automation. An API key acts as the person who created it, like a personal access token, in the one organization it was made in. The address of each request names the organization, and any other answers not found. A key starts `obk_` and is sent as `Authorization: Bearer ` or in an `x-api-key` header, on /api/v2 (the relayed realtime socket at `/api/v2/organizations/{organizationId}/realtime/websocket` included) and on the relayed realtime socket at `/api/intelligence/client/websocket`, where a join token the key made is spent (createConversationJoinToken). Create a key in Settings → API keys (createApiKey), in the signed-in web app or in your local personal edition. A valid key works on `/api/v2` without the personal edition''s install token.' recorderConnection: type: http scheme: bearer bearerFormat: OpenBot Recorder connection token description: 'The OpenBot Recorder. A connection token, made when a browser''s Recorder exchanges a connect code (exchangeRecorderConnectCode), acts as the person who connected it, and only on the Recorder''s own operations: the server accepts it nowhere else. It ends when the person disconnects the browser, when their sign-in ends, or when it expires.' artifactInvite: type: apiKey in: cookie name: openbot-artifact-invite description: 'Somebody outside the organization, on the artifacts address (Cloud''s artifacts.open.bot). The cookie the artifacts address sets when an invitation''s code is used (redeemArtifactInvite), named __Host-openbot-artifact-invite over HTTPS. It opens the artifact each invitation is for, to view, for as long as the invitation stands and the organization lets people outside it in, and only the reads an artifact''s link makes: its record, its current version, the files it uses and a file of it.' parameters: OrganizationId: name: organizationId in: path required: true description: The organization, by its id or its slug. One the caller is not a member of answers as one that does not exist, `default` included. schema: type: string minLength: 1 example: default PersonId: name: personId in: path required: true description: 'The person: me for the caller, or a person''s id. A person''s own things (their instructions, preferences, API keys, sessions and linked accounts) answer only the person themselves, by either.' schema: type: string minLength: 1 maxLength: 200 pattern: \S example: me ApiKeyId: name: apiKeyId in: path required: true description: The API key's id. Never the key itself. schema: type: string minLength: 1 maxLength: 200 pattern: \S SessionId: name: sessionId in: path required: true description: The session's id. Never its token. schema: type: string minLength: 1 maxLength: 200 pattern: \S LinkedAccountId: name: linkedAccountId in: path required: true description: The linked account's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S IdentityProviderId: name: identityProviderId in: path required: true description: The identity provider's id, as it was registered. schema: type: string minLength: 1 maxLength: 200 pattern: \S CapabilityIdParameter: name: capabilityId in: path required: true description: The permission switch. schema: $ref: '#/components/schemas/CapabilityId' NetworkPolicyId: name: networkPolicyId in: path required: true description: organization, team: for a team's, or group: for a directory group's. schema: type: string minLength: 1 maxLength: 206 pattern: ^(organization|team:[^\x00]*[^\s\x00][^\x00]*|group:[^\x00]*[^\s\x00][^\x00]*)$ BotId: name: botId in: path required: true description: The Bot's id. schema: type: string minLength: 1 pattern: \S example: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 AppId: name: appId in: path required: true description: The app's id, as listApps answers it. Percent-encode it in the path. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: github Limit: name: limit in: query description: Most items in one page. schema: type: integer minimum: 1 maximum: 100 default: 50 Cursor: name: cursor in: query description: 'Opaque continuation from the previous page''s nextCursor, bound to the organization and the filters that made it. The server only ever issues cursors written in URL-safe base64 (letters, digits, - and _, no padding) and refuses anything else, so the pattern says so. A cursor that fits the pattern can still be refused: one this list never gave out, or one made for another organization or other filters.' schema: type: string minLength: 1 maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ IdempotencyKey: name: Idempotency-Key in: header required: true description: Generated by the caller for each write it means to make once. Reuse the same key and the same request for 24 hours after an uncertain response; the same key with a different request is a conflict. schema: type: string minLength: 1 maxLength: 128 AuditEventTypes: name: eventType in: query description: Events of any of these types, separated by commas, such as computer.action_refused,mcp.call_rejected or organization.member_invited,organization.member_removed. schema: $ref: '#/components/schemas/AuditFilterText' AuditExcludedEventTypes: name: excludeEventType in: query description: Leave out events of these types, separated by commas. schema: $ref: '#/components/schemas/AuditFilterText' AuditExcludedCalls: name: excludeCalls in: query description: 'Leave out the app calls of these tools that succeeded, separated by commas: calls whose change has an event of its own. A call that failed is kept.' schema: $ref: '#/components/schemas/AuditFilterText' AuditActor: name: actorUserId in: query description: Events that ran on this person's authority, by their user id. schema: $ref: '#/components/schemas/AuditFilterText' AuditInitiatorKinds: name: initiatorKind in: query description: 'Events started in any of these ways, separated by commas: person, deployment, routine, responsibility, memory or handoff.' schema: $ref: '#/components/schemas/AuditFilterText' AuditTargetTypes: name: targetType in: query description: Events about any of these kinds of thing, separated by commas, such as agent or computer. schema: $ref: '#/components/schemas/AuditFilterText' AuditTargetId: name: targetId in: query description: Events about this one thing, by its id. schema: $ref: '#/components/schemas/AuditFilterText' AuditBots: name: bot in: query description: 'The events of any of these Bots, by id, separated by commas: what each Bot did and what was done to it.' schema: $ref: '#/components/schemas/AuditFilterText' AuditApps: name: app in: query description: App calls to any of these apps, separated by commas, by the app's key (gmail), whichever way the app was connected. schema: $ref: '#/components/schemas/AuditFilterText' AuditTools: name: tool in: query description: App calls of any of these tools, separated by commas, by the name the trail records, in any case. schema: $ref: '#/components/schemas/AuditFilterText' AuditEffect: name: effect in: query description: App calls that only read (read), or that change something (write). schema: $ref: '#/components/schemas/AuditEffect' AuditIntents: name: intent in: query description: Actions that did any of these, separated by commas, in the boundary's own words (AuditIntent). A word outside those matches nothing. schema: $ref: '#/components/schemas/AuditFilterText' AuditRule: name: rule in: query description: Refusals by this one boundary rule, its text exactly as recorded. One rule, not a list, because a rule can hold commas. schema: $ref: '#/components/schemas/AuditFilterText' AuditFrom: name: from in: query description: Events after this moment. schema: type: string format: date-time AuditTo: name: to in: query description: Events before this moment. schema: type: string format: date-time ConversationId: name: conversationId in: path required: true description: The conversation's id. schema: type: string minLength: 1 pattern: \S example: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 CredentialId: name: credentialId in: path required: true description: The credential's id. schema: type: string format: uuid example: 3b9a5f8e-6c1d-4e2a-9f47-1d2c3b4a5e6f ModelCatalogueView: name: view in: query description: 'offered, the default: the models people may pick, narrowed to the ones an administrator allowed. all: every model the provider or gateway lists, before that narrowing, for an administrator choosing which to allow. Only an administrator may ask for all.' schema: type: string enum: - offered - all default: offered ConversationLimit: name: limit in: query description: Most items in one page. schema: type: integer minimum: 1 maximum: 200 default: 50 MemberId: name: memberId in: path required: true description: The person's id. schema: type: string minLength: 1 maxLength: 256 pattern: \S example: usr_9b1c6f0e AttachmentId: name: attachmentId in: path required: true description: The attachment's id. schema: type: string minLength: 1 maxLength: 256 pattern: \S example: 0b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 ConversationThreadId: name: threadId in: path required: true description: The thread's id. schema: type: string format: uuid example: 6f3d6b1f-6f10-4a53-9d51-5f0d6c0e2f1a TaskId: name: taskId in: path required: true description: The task's id. schema: type: string minLength: 1 maxLength: 256 pattern: \S example: 7c2d6b1f-6f10-4a53-9d51-5f0d6c0e2f1a SignInId: name: signInId in: path required: true description: The sign-in's id, as startPersonalAiSignIn gave it. schema: type: string minLength: 1 maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ AiConnectionId: name: connectionId in: path required: true description: The AI connection's id, as listAiConnections or listPersonalAiConnections gave it. Opaque. schema: type: string minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9_.:-]+$ ConnectedAccountId: name: accountId in: path required: true description: One of the person's accounts at the app, as listConnectedAccounts answers it. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: 5f0c2b7e-3a1d-4e8f-9b6c-2d4a7e1f0c93 ComponentKind: name: kind in: query description: 'List only components of this kind: chart, card and so on, or playground for the ones an admin wrote in Playground.' schema: type: string minLength: 1 pattern: \S example: playground ComponentListView: name: view in: query description: 'How much of each component to send. full, the default, sends everything the caller may see, as before this parameter. summary sends no source and no draft: both are null, for an admin too. published sends no draft (null, for an admin too) and the source of each published Playground component, which is all a conversation draws from.' schema: type: string enum: - full - summary - published default: full example: summary ComponentId: name: componentId in: path required: true description: 'The component''s name: the tool name a Bot draws it by, such as showBarChart, or custom_ and a name for one written in Playground.' schema: type: string minLength: 1 pattern: \S example: showBarChart FunctionId: name: functionId in: path required: true description: The data function's name, such as botActivity. schema: type: string minLength: 1 pattern: \S example: botActivity SkillId: name: skillId in: path required: true description: 'The skill''s slug: the command a person types after /. Lower-case letters, numbers and hyphens, 2 to 40 long, starting and ending with a letter or number.' schema: type: string minLength: 2 maxLength: 40 pattern: ^[a-z0-9][a-z0-9-]{0,38}[a-z0-9]$ example: standup DeviceId: name: deviceId in: path required: true description: 'The device''s id: a UUID the OpenBot app makes once on the phone and keeps, so registering again replaces rather than adds.' schema: type: string format: uuid example: 2b7c4d1e-9f3a-4e6b-8c5d-1a2b3c4d5e6f DestinationId: name: destinationId in: path required: true description: The destination's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S RoutineId: name: routineId in: path required: true description: The routine's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S CheckInId: name: checkInId in: path required: true description: The check-in's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S CheckInItemId: name: checkInItemId in: path required: true description: The item's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S GoalId: name: goalId in: path required: true description: The goal's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S GoalTriggerId: name: goalTriggerId in: path required: true description: The trigger's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S GithubEventSourceId: name: githubEventSourceId in: path required: true description: The GitHub event source's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S FollowUpId: name: followUpId in: path required: true description: The follow-up's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S InvitationId: name: invitationId in: path required: true description: The invitation's id. Opaque. schema: type: string minLength: 1 maxLength: 128 pattern: ^[A-Za-z0-9_-]+$ TeamId: name: teamId in: path required: true description: The team's id. Opaque. schema: type: string minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9_-]+$ example: Tm4Qx8LpV2nWc7RbY1sKd0Ze TeamMemberId: name: memberId in: path required: true description: The person's id, or me for the caller. schema: type: string minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9_-]+$ example: 2fn8w1c6y4tq7h0mbe3s ApprovalId: name: approvalId in: path required: true description: The approval's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: 6f1d2c3b-4a5e-4f60-8a7b-9c0d1e2f3a4b QuestionId: name: questionId in: path required: true description: The question's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S ApprovalRuleId: name: approvalRuleId in: path required: true description: The rule's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f ConversationGrantId: name: conversationGrantId in: path required: true description: The id of one "Allow for this conversation". schema: type: string minLength: 1 maxLength: 200 pattern: \S ApprovalConversationId: name: conversationId in: path required: true description: 'The conversation, by the thread its messages are in: the threadId an approval''s action names.' schema: type: string minLength: 1 maxLength: 200 pattern: \S example: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 ReviewerGuidanceReplaySize: name: limit in: query description: How many requests the replay would cover at most. 25 when absent. schema: type: integer minimum: 1 maximum: 50 default: 25 AuditEventId: name: auditEventId in: path required: true description: The audit event's id. schema: type: string format: uuid example: 0b8f3a52-5d0e-4f5c-9a43-1c2b6c3e9f10 SharedUseRequestId: name: sharedUseRequestId in: path required: true description: The request's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S HostAccessGrantId: name: hostAccessGrantId in: path required: true description: The folder grant's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S DirectoryGroup: name: group in: path required: true description: 'A directory group, by the name the identity provider gives it, or * for everybody. A team is written team: followed by the team''s id, as in team:Tm4Qx8LpV2nWc7RbY1sKd0Ze.' schema: type: string minLength: 1 maxLength: 200 pattern: \S example: finance ComputerToolCallId: name: toolCallId in: path required: true description: The tool call that opened the page. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: call_8fK2mQ ComputerStepThreadIdQuery: name: threadId in: query required: false description: The conversation's thread the Bot's tool call is in. Sent with toolCallId. schema: $ref: '#/components/schemas/ComputerStepThreadId' ComputerStepToolCallIdQuery: name: toolCallId in: query required: false description: The Bot's tool call this step answers. Sent with threadId. schema: $ref: '#/components/schemas/ComputerStepToolCallId' ComputerControlRequestId: name: requestId in: query description: A request for a person's help, by id, to read the state as that request sees it. schema: type: string minLength: 1 maxLength: 200 ComputerHumanInputKind: name: kind in: path required: true description: The gesture. schema: type: string enum: - click - type - key - scroll example: click SignInRequestId: name: signInRequestId in: path required: true description: The sign-in request's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S SavedLoginId: name: savedLoginId in: path required: true description: The saved login's id. Never its password. schema: type: string minLength: 1 maxLength: 200 pattern: \S RecorderConnectionId: name: recorderConnectionId in: path required: true description: The connection's id. Never its token. schema: type: string minLength: 1 maxLength: 200 pattern: \S LearningBotFilter: name: botId in: query description: One Bot's own Learning space. Without it, the space every Bot learns into. schema: type: string minLength: 1 maxLength: 128 SkillName: name: skillName in: path required: true description: 'A learned skill''s name as OpenBot publishes it: 1 to 200 characters, no slash, backslash or control character, not . or .., and no space at either end.' schema: type: string minLength: 1 maxLength: 200 pattern: ^[^/\\\x00-\x1F\x7F]+$ example: Weekly report SkillSharingRequestId: name: skillSharingRequestId in: path required: true description: The request's id, as listSkillSharingRequests gives it. schema: type: string minLength: 1 maxLength: 512 pattern: ^[A-Za-z0-9_-]+$ example: dXNlcl8zZjFjOWEAV2Vla2x5IHJlcG9ydA ProposalId: name: proposalId in: path required: true description: The proposal's id. schema: type: string format: uuid example: 936d0a2e-e252-48be-8803-e2f8ec15343c InsightId: name: insightId in: path required: true description: The insight's id, as a proposal lists it. schema: type: string format: uuid example: 7a2b9c4d-1e3f-4a5b-8c6d-0e1f2a3b4c5d PersonLearningSpace: name: containerId in: query description: Which of the person's own Learning spaces, as their review lists them. Without it, the one their recordings join. A space that isn't one of theirs is not found. schema: type: string minLength: 1 maxLength: 64 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ MemoryId: name: memoryId in: path required: true description: The memory's id. A memory the backend holds that OpenBot formed no record of has an id that starts intelligence:. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: 6b8f2c1e-4d3a-4f6b-9a2e-1c5d7e9f0a3b MemorySourceId: name: memorySourceId in: path required: true description: The memory source's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: 0f3a9c2e-7b1d-4e8a-a6c5-2d9e4f1b8c70 BotAgentId: name: botAgentId in: path required: true description: The agent's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: bag_4f7c1e2a9d0b4c63 ExportId: name: exportId in: path required: true description: The export's id. schema: type: string minLength: 1 maxLength: 64 pattern: ^[A-Za-z0-9_-]+$ example: exp_7d1f2c3b8a4e4b5f PartNumber: name: partNumber in: path required: true description: Which part of the bundle, counted from 1. schema: type: integer minimum: 1 maximum: 10000 example: 1 ImportId: name: importId in: path required: true description: The import's id. schema: type: string minLength: 1 maxLength: 64 pattern: ^[A-Za-z0-9_-]+$ example: imp_0e1f2a3b4c5d6f1d ConversationRunId: name: runId in: path required: true description: The run's id, as its events carry it. schema: type: string minLength: 1 maxLength: 256 pattern: \S example: 0b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 WebPushSubscriptionId: name: subscriptionId in: path required: true description: 'The browser''s id: a UUID the app makes once in that browser and keeps, so saving again replaces rather than adds.' schema: type: string format: uuid example: 6d0f2a4b-8c1e-4f3a-9b5d-7e2c4a6f8b10 ArtifactId: name: artifactId in: path required: true description: 'The artifact''s id: 128 random bits in URL-safe base64. Never names the title and never counts up.' schema: type: string minLength: 16 maxLength: 64 pattern: ^[A-Za-z0-9_-]+$ example: q7JvXh2cR0aW9mBkTn4sLe ArtifactIfMatch: name: If-Match in: header required: true description: 'The version this write was built on, as its ETag: the version''s number in double quotes, such as "3". A write built on a version that is no longer the current one is refused with 412.' schema: type: string pattern: ^"[1-9][0-9]{0,6}"$ maxLength: 9 example: '"3"' ArtifactVersionNumber: name: versionNumber in: path required: true description: The version's number, counted from 1. schema: type: integer minimum: 1 maximum: 1000000 example: 2 ArtifactAssetSha256: name: assetSha256 in: path required: true description: The asset's SHA-256 in lower-case hex. schema: type: string pattern: ^[0-9a-f]{64}$ example: 3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b SharedArtifactId: name: artifactId in: path required: true description: 'The artifact''s id: long, random and opaque, the same id its link carries.' schema: type: string minLength: 16 maxLength: 64 pattern: ^[A-Za-z0-9_-]+$ example: 6Qm2vX9kLp4Rt8Wz1Nc7Hb ArtifactGranteePersonId: name: personId in: path required: true description: The person's id, or me for the caller. schema: type: string minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9_-]+$ example: 2fn8w1c6y4tq7h0mbe3s ArtifactGranteeTeamId: name: teamId in: path required: true description: The team's id. Opaque. schema: type: string minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9_-]+$ example: Tm4Qx8LpV2nWc7RbY1sKd0Ze ArtifactInviteId: name: inviteId in: path required: true description: The invitation's id. Opaque. schema: type: string minLength: 1 maxLength: 64 pattern: ^[A-Za-z0-9_-]+$ example: inv_3hT9qW2mZ ArtifactAccessRequestId: name: requestId in: path required: true description: The request's id. Opaque. schema: type: string minLength: 1 maxLength: 64 pattern: ^[A-Za-z0-9_-]+$ example: req_7Hc2Lm9Qx ExportArtifactId: name: artifactId in: path required: true description: 'The artifact''s id: 128 random bits in URL-safe base64. Never names the title and never counts up.' schema: type: string minLength: 16 maxLength: 64 pattern: ^[A-Za-z0-9_-]+$ example: q7JvXh2cR0aW9mBkTn4sLe ArtifactExportId: name: exportId in: path required: true description: 'The export''s id: the version and the format, such as v3-pptx, as createArtifactExport answered it.' schema: type: string minLength: 4 maxLength: 32 pattern: ^v[1-9][0-9]{0,6}-[a-z]{2,10}$ example: v3-pptx CommentedArtifactId: name: artifactId in: path required: true description: The artifact's id, as its link carries it. schema: type: string minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9_-]+$ example: 7f3kQ9xVb2LmN8pR4sT6wA ArtifactCommentThreadId: name: threadId in: path required: true description: The comment thread's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: 3c1f9a2e-5b7d-4e8a-9f6c-2d4b8e1a7c90 ArtifactCommentId: name: commentId in: path required: true description: The comment's id. schema: type: string minLength: 1 maxLength: 200 pattern: \S example: 9e2b4d6f-1a3c-4e5b-8d7f-0c2a4e6b8d10 ArtifactPageCapability: name: capability in: path required: true description: The capability. schema: type: string enum: - storage - model - apps - user example: storage ArtifactPageDataScope: name: scope in: path required: true description: 'Whose documents: mine, the caller''s own, or shared, everybody''s who views the artifact.' schema: type: string enum: - mine - shared example: shared ArtifactPageDocumentKey: name: key in: path required: true description: 'The document''s key: letters, digits and . _ - : only, so a page can build keys like votes:ana.' schema: type: string minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9._:-]+$ example: votes:ana headers: PrivateNoStore: description: A Bot is private to the caller. schema: type: string const: private, no-store RequestId: description: The id this OpenBot gave the request, the one its server logs file the request under. A problem's requestId is the same id. A client that reports a failure quotes it, so the request can be found in the server's logs. schema: type: string minLength: 1 maxLength: 128 example: req_5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 PrivateRevalidate: description: 'The page is the caller''s alone. private, no-cache when the request sent If-None-Match or named a view: the caller''s own browser may keep the page only to ask with its ETag whether it changed. private, no-store otherwise, as every release before the ETag answered. The ETag, and the 304 to a request naming it, are the same either way, so a client sends If-None-Match itself from the ETag it holds rather than relying on the browser''s cache.' schema: type: string enum: - private, no-store - private, no-cache ComponentPageETag: description: Names this page as the caller sees it. Sent back in If-None-Match, it is answered 304 with no body while the page is unchanged. schema: type: string minLength: 1 example: '"c-3f2a9d81b0e4"' PartETag: description: The part's SHA-256 in hex, quoted. schema: type: string example: '"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"' AcceptRanges: description: A part can be downloaded a byte range at a time. schema: type: string const: bytes ArtifactVersionETag: description: 'The artifact''s current version as an ETag: its number in double quotes. Send it back as If-Match on the next write.' schema: type: string example: '"3"' ArtifactExportDisposition: description: attachment, with the file's name made from the artifact's title, in plain ASCII (filename) and in full (filename*, RFC 6266 and RFC 8187). schema: type: string example: attachment; filename="Q3 review.pptx"; filename*=UTF-8''Q3%20review.pptx ArtifactExportETag: description: The file's SHA-256 in hex, quoted. schema: type: string example: '"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"' schemas: BotVisibility: type: string enum: - public - private description: Public Bots are shared with everybody in the organization. Bot: type: object description: 'A Bot as the caller sees it. canManage, mine, systemOwned and the isolation fields are the server''s verdicts for this caller; a client renders them and never recomputes them. No secret is ever part of a Bot: hasAuth and hasCallbackToken say whether one is set.' required: - id - name - title - roleDescription - avatarSeed - visibility - hidden - pinned - systemOwned - endpoint - hasAuth - hasCallbackToken - isolated - canManage - mine - assignedToMe - builtIn - runsOnOpenBotModel - keyFromOpenBot - isolationActive - isolationOffReason properties: id: type: string description: The Bot's id. name: type: string description: What the Bot is called. title: type: string description: The subtitle under its name. May be empty. roleDescription: type: string description: What it does, in its owner's words. avatarSeed: type: string description: The seed its avatar is drawn from. visibility: $ref: '#/components/schemas/BotVisibility' hidden: type: boolean description: Whether the caller hid it from their own list. pinned: type: boolean description: Whether the caller pinned it to the top of their own list. systemOwned: type: boolean description: Whether it comes with OpenBot rather than belonging to a person. ownerless: type: boolean readOnly: true description: Whether nobody owns it, as with a Bot OpenBot made for everyone in the organization. Only an admin can give such a Bot apps. Absent or false for a Bot a person owns. Never accepted when a Bot is created or changed. packageBotId: type: - string - 'null' readOnly: true description: 'Which of the Bots an OpenBot starts with this one is, so a client recognises it in whichever organization it is in. It is the id that Bot has in the install package: the same as id in the organization `default`, and the package''s id on another organization''s copy, whose own id is generated. Null for a Bot somebody made. Never accepted when a Bot is created or changed.' endpoint: type: - string - 'null' description: The AG-UI address it runs at, as it was stored. Null for a Bot that runs inside OpenBot. Every address saved through this API is an absolute http or https address (see the request's endpoint), but one saved by an older release is returned as it is, so this field states no format. hasAuth: type: boolean description: Whether a key is set for its address. Never the key. Set or replace it with updateBot's auth, and remove it with removeBotKey. A run its address refuses with 401 or 403 ends in a RUN_ERROR whose code is BOT_KEY_REFUSED, so a client can offer the way to this Bot's key. hasCallbackToken: type: boolean description: Whether it holds a credential for calling OpenBot's tools back. Never the credential. isolated: type: boolean description: Whether its owner asked for it to have a computer of its own. isolationActive says whether it has one now. computer: type: string x-extensible-enum: - browser - windows description: 'The computer it works on: browser, the Bot''s own browser computer, which every Bot has unless told otherwise; or windows, the Windows computer of the person it works for: in a conversation, theirs; in a routine, its owner''s. One at a time. Experimental.' instructions: type: string description: What the starter Bot is told, kept apart from its role description. Only the starter Bot has instructions. framework: type: string description: What runs it, by the name a person reads ("LangChain", "OpenBot"). Absent when OpenBot doesn't know. canManage: type: boolean description: Whether the caller may change and delete it. mine: type: boolean description: Whether the caller created it. Separate from canManage, which is also true for an administrator on everybody's Bots. withheld: type: boolean description: 'Whether it is somebody else''s private Bot, listed for an admin''s screens (listBots with scope=organization) and nothing more. Such a Bot carries its id, name, avatar and the caller''s own state with it only: title and roleDescription are empty, endpoint is null, instructions and framework are absent, hasAuth, hasCallbackToken, isolated, builtIn, runsOnOpenBotModel, keyFromOpenBot and canManage are false. Absent or false on every other Bot.' assignedToMe: type: boolean description: Whether an administrator assigned this Bot to the caller. lastConversationAt: type: - string - 'null' format: date-time description: When a conversation of the caller's with this Bot last had a message, the Bot's or anybody's, or was started if it has none yet; null when the caller has none. Counts the conversations listConversations lists. Set on listBots. builtIn: type: boolean description: Whether it runs at the deployment's own managed address, so it needs no callback credential of its own. runsOnOpenBotModel: type: boolean description: Whether it runs on OpenBot's model, so a person can pick the model per conversation. defaultModel: type: - object - 'null' description: The Bot's saved default model and thinking level. Null follows the deployment default. required: - model - effort - source properties: model: type: string effort: type: - string - 'null' source: type: string description: The model connection source when the default was saved. keyFromOpenBot: type: boolean description: Whether OpenBot gives it a key for its tools on every run, because OpenBot runs it. isolationActive: type: boolean description: Whether its next run gets a computer of its own. isolationOffReason: type: - string - 'null' enum: - admin - deployment - null description: 'Why an isolated Bot runs on a shared computer instead. admin: its owner no longer holds Isolated Bots. deployment: this deployment cannot make another computer. Null otherwise.' BotPage: type: object required: - bots - nextCursor properties: bots: type: array items: $ref: '#/components/schemas/Bot' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. Reaction: type: object required: - messageId - agentId - emoji - createdAt properties: messageId: type: string description: The person's message the reaction is on, by the id its conversation gives it. agentId: type: string description: The Bot that reacted. emoji: type: string description: The reaction itself. example: 👍 createdAt: type: string format: date-time ReactionPage: type: object required: - reactions - nextCursor properties: reactions: type: array items: $ref: '#/components/schemas/Reaction' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. BotResponse: type: object required: - bot properties: bot: $ref: '#/components/schemas/Bot' SharedApp: type: object required: - serverId - title properties: serverId: type: string description: The app's id. title: type: string description: The app's name. SharedAppsAfterChange: type: object description: What making a Bot public means for the shared app accounts it uses. An administrator's change approves them; anybody else's lists the ones an administrator still has to approve. While the organization's apps are open (getAppsSetting), nothing needs approving and needsApproval is empty. required: - approved - needsApproval properties: approved: type: array items: $ref: '#/components/schemas/SharedApp' needsApproval: type: array items: $ref: '#/components/schemas/SharedApp' UpdateBotResponse: type: object required: - bot properties: bot: $ref: '#/components/schemas/Bot' sharedApps: $ref: '#/components/schemas/SharedAppsAfterChange' BotKey: type: object description: 'A key the Bot''s address sits behind. Write-only: stored encrypted and never returned. A blank value sets no key.' additionalProperties: false required: - value properties: header: type: string pattern: ^[A-Za-z0-9-]*$ description: The header it is sent in. Blank or absent means Authorization. value: type: string writeOnly: true description: The header's value. BotFields: type: object additionalProperties: false required: - name - title - roleDescription - visibility properties: name: $ref: '#/components/schemas/BotName' title: $ref: '#/components/schemas/BotTitle' roleDescription: $ref: '#/components/schemas/BotRoleDescription' visibility: $ref: '#/components/schemas/BotVisibility' endpoint: $ref: '#/components/schemas/BotEndpoint' auth: $ref: '#/components/schemas/BotKey' isolated: $ref: '#/components/schemas/BotIsolated' computer: $ref: '#/components/schemas/BotComputer' instructions: $ref: '#/components/schemas/BotInstructions' defaultModel: $ref: '#/components/schemas/BotDefaultModelInput' description: A model from the connected provider and its thinking level. Null resets to the deployment default. Omit to keep the current setting. CreateBotRequest: description: 'A new Bot: a Bot''s fields, and the framework it is built on. One closed object, not BotFields with harness added in an allOf, because each closed part of an allOf would refuse the other''s fields.' type: object additionalProperties: false required: - name - title - roleDescription - visibility properties: name: $ref: '#/components/schemas/BotName' title: $ref: '#/components/schemas/BotTitle' roleDescription: $ref: '#/components/schemas/BotRoleDescription' visibility: $ref: '#/components/schemas/BotVisibility' endpoint: $ref: '#/components/schemas/BotEndpoint' auth: $ref: '#/components/schemas/BotKey' isolated: $ref: '#/components/schemas/BotIsolated' instructions: $ref: '#/components/schemas/BotInstructions' defaultModel: $ref: '#/components/schemas/BotDefaultModelInput' description: The Bot's default model and thinking level, checked as updateBot checks it. Omit, or send null, for the deployment default. harness: type: string description: 'The framework an agent somebody runs themselves is built on, by its id in OpenBot''s harness list (shared/harnesses.json), which the server checks every create against. Empty means none was named, as for an agent somebody already runs. "byo-url" is not one: it names no framework. Kept only with an endpoint, with one exception: "langgraph-ts" sent with no endpoint asks for a Bot that runs inside OpenBot on OpenBot''s own LangGraph (TypeScript) engine, which is what the New Bot sheet sends. The deployment decides what each run uses: a Claude plan keeps the Claude Agent SDK engine, a ChatGPT plan signed in on OpenBot Desktop the OpenAI Agents SDK engine, and an administrator may switch new Bots back to the built-in agent.' enum: - '' - crewai - llamaindex - agno - langgraph - langgraph-ts - google-adk - antigravity - pydantic-ai - microsoft-agent-framework - claude-agent-sdk - openai-agents-sdk - strands - ag2 - langroid - mastra UpdateBotRequest: description: A Bot's fields after the change. allOf: - $ref: '#/components/schemas/BotFields' AuditFilterText: type: string maxLength: 4096 pattern: ^[^\x00]*$ description: Text a filter on the audit trail matches. Blank is no filter. It never holds a NUL character, which no event can. AuditEffect: type: string enum: - read - write description: Whether an app call only reads, or changes something. AuditIntent: type: string description: What an action did, in the words of the boundary that judged it. enum: - activate - type - navigate - read - read_file - download_file - write_file - list_files - run_command - read_tool - write_tool AuditEvent: type: object description: One thing that happened, as the trail recorded it. Secrets are redacted from the payload before it is written. required: - id - actorUserId - initiatorKind - initiatorId - eventType - targetType - targetId - payload - createdAt properties: id: type: string description: The event's id. actorUserId: type: - string - 'null' description: The person whose authority it ran on, by user id. Null when it ran on nobody's, such as the deployment acting at start-up. initiatorKind: type: string description: 'What started it: person, deployment, routine, responsibility, memory or handoff. Read back as it was written, so an event from a later release may name another.' initiatorId: type: - string - 'null' description: Which routine, responsibility, memory or Bot started it. Null when a person or the deployment did. eventType: type: string description: What happened, such as computer.action_refused. targetType: type: string description: The kind of thing it happened to, such as agent or computer. targetId: type: - string - 'null' description: The thing it happened to, by id. Null when it names none. payload: type: object additionalProperties: true description: What the event recorded. Its fields depend on eventType. createdAt: type: string format: date-time description: When it happened. AuditEventPage: type: object required: - auditEvents - nextCursor properties: auditEvents: type: array description: Newest first. items: $ref: '#/components/schemas/AuditEvent' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next, older page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. AuditVocabulary: type: object description: What a filter on the audit trail can name in this organization. required: - bots - people - apps - tools - rules properties: bots: type: array items: type: object required: - id - name properties: id: type: string name: type: string people: type: array items: type: object required: - id - name - email properties: id: type: string description: Their user id, as actorUserId names them. name: type: - string - 'null' email: type: string apps: type: array description: Apps by their key (gmail), whichever way they were connected. items: type: object required: - key - name properties: key: type: string name: type: string description: The app's name, as the Apps page shows it. tools: type: array description: The tools of each app, most called first. items: type: object required: - app - tool - calls properties: app: type: string description: The app's key. tool: type: string calls: type: integer minimum: 0 description: How many events the trail holds for it; 0 for a tool never called. rules: type: array description: 'Boundary rules: the policy''s current ones, and any that refused something in the trail.' items: type: object required: - rule - name - refusals properties: rule: type: string description: The rule's text, as the rule filter takes it. name: type: - string - 'null' description: The name an administrator gave it, if any. refusals: type: integer minimum: 0 description: How many refusals by it the trail holds. AuditQuestion: type: object additionalProperties: false required: - question properties: question: type: string minLength: 1 maxLength: 500 pattern: ^[^\x00]*$ description: The question, 1 to 500 characters once trimmed. timeZone: type: string maxLength: 100 description: Where the person asking is, as an IANA time zone (Europe/London), so yesterday is their yesterday. Absent or unknown means UTC. AuditFilters: type: object description: 'Filters on the audit trail, as listing audit events takes them, each list joined with commas: every filter narrows the events, and the values in a list are alternatives. Empty means every event.' properties: eventType: type: array items: type: string bot: type: string description: One Bot, by id. actorUserId: type: string initiatorKind: type: array items: type: string app: type: array items: type: string tool: type: array items: type: string effect: $ref: '#/components/schemas/AuditEffect' intent: type: array items: $ref: '#/components/schemas/AuditIntent' rule: type: string from: type: string format: date-time to: type: string format: date-time AuditFilterLabels: type: object description: 'The names for the values in a set of filters, so each reads as a name: Bots and people by id, apps by key, rules by their text.' required: - bots - people - apps - rules properties: bots: type: object additionalProperties: type: string people: type: object additionalProperties: type: string apps: type: object additionalProperties: type: string rules: type: object additionalProperties: type: string AuditAnswer: type: object description: A question about the trail, as filters. The events the filters list are the answer. required: - answerable - unanswered - filters - reading - labels properties: answerable: type: string enum: - 'yes' - partly - 'no' description: Whether the trail answers all of the question, part of it, or none of it. unanswered: type: - string - 'null' description: What the trail can't answer, and why. Null when it answers all of it. filters: $ref: '#/components/schemas/AuditFilters' reading: type: - string - 'null' description: The filters read back in one line by a call that never saw the question. Null when the trail can't answer any of it. labels: $ref: '#/components/schemas/AuditFilterLabels' PersonRole: type: string enum: - owner - admin - member description: 'The person''s role as a member of the organization. An owner or an admin governs it: its people, its sign-in and its policy. A member uses it. The owner is whoever created the organization; `default` has admins and no owner.' PersonRoleAnswer: type: string x-extensible-enum: - owner - admin - member description: 'The person''s role as a member of the organization, as the server answers it. An owner or an admin governs it: its people, its sign-in and its policy. A member uses it. The list can grow: a client reads a role it doesn''t know as a member.' NoticeId: type: string minLength: 1 maxLength: 64 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ description: 'A notice OpenBot shows a person once, such as a nudge, by its id: star-on-github is the ask to star OpenBot on GitHub.' example: star-on-github AssignableRole: type: string enum: - admin - member description: A role an admin can give a person. OnboardingStatus: type: object description: Where a person is in first-run onboarding. required: - step - completedAt properties: step: type: integer minimum: 0 maximum: 2147483647 description: The step they were last on, by the app's own number for it. 0 is not started. completedAt: type: - string - 'null' format: date-time description: When they finished it. Null until they do, which the apps read as onboarding still to do. Person: type: object description: 'Somebody in the organization. People are here because they signed in, not because they were invited: the identity provider decides who exists, and the organization decides what they may do. role, needsName, revoked and configuredAdmin are the server''s verdicts; a client renders them and never recomputes them.' required: - id - email - name - image - role - needsName - onboarding - providers - lastSignedInAt - revoked - configuredAdmin properties: id: type: string description: The person's id. email: type: string description: The address they sign in with. name: type: - string - 'null' description: What OpenBot calls them. Null when nothing has named them. image: type: - string - 'null' description: The picture their identity provider gave, when it gave one. role: $ref: '#/components/schemas/PersonRoleAnswer' needsName: type: boolean description: Whether they have still to choose what OpenBot calls them, because their name is missing or is only their address. onboarding: description: Where they are in first-run onboarding. Null where the deployment does not track it, which the apps read as nothing to finish. oneOf: - $ref: '#/components/schemas/OnboardingStatus' - type: 'null' providers: type: array description: The identity providers they have signed in through. More than one is normal while a company moves between providers. items: type: string lastSignedInAt: type: - string - 'null' format: date-time description: When they last signed in. Null if never. revoked: type: boolean description: Whether an administrator removed their access. They keep their record and their history. configuredAdmin: type: boolean description: 'Whether the deployment''s configuration names them as an administrator, which nobody can change here: they stay an administrator and keep their access.' PersonPage: type: object required: - people - nextCursor properties: people: type: array description: The most recently signed in first. items: $ref: '#/components/schemas/Person' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. PersonResponse: type: object required: - person properties: person: $ref: '#/components/schemas/Person' GetPersonResponse: type: object required: - person - openbotVersion properties: person: $ref: '#/components/schemas/Person' openbotVersion: type: - string - 'null' description: The OpenBot release the server runs, such as v1.0.3, which the apps show under the person's name. Null when the server was built without one. Only ever given to somebody signed in. UpdatePersonRequest: type: object description: The changes to make. At least one. additionalProperties: false minProperties: 1 properties: name: type: string minLength: 1 maxLength: 100 pattern: ^[^\x00]*$ description: What OpenBot calls the person, 1 to 100 characters once trimmed. Only the person themselves may change it. role: $ref: '#/components/schemas/AssignableRole' deprecated: true x-deprecation-date: '2026-11-19' x-sunset: '2028-05-19' description: Deprecated. Change a member's role with updateOrganizationMember (PATCH /api/v2/organizations/{organizationId}/members/{personId}) instead. AdvanceOnboardingRequest: type: object additionalProperties: false required: - step properties: step: type: integer minimum: 0 maximum: 2147483647 description: The step the person is now on, by the app's own number for it. OnboardingResponse: type: object required: - onboarding properties: onboarding: $ref: '#/components/schemas/OnboardingStatus' StandingInstructions: type: object description: What a person tells every Bot that works for them, in their own words. Empty means they wrote none. additionalProperties: false required: - instructions properties: instructions: type: string maxLength: 4000 pattern: ^[^\x00]*$ description: At most 4,000 characters, kept trimmed. MessageListEmphasis: type: string enum: - agent - thread description: What the conversation list leads with, the Bot or the conversation. OnOff: type: string enum: - 'on' - 'off' SkinId: type: string enum: - openbot - openduet - opendots - openfuse description: How OpenBot looks. openbot is OpenBot as it is without a skin. Preferences: type: object description: How a person set OpenBot up for themselves, on every device they sign in from. required: - messageListEmphasis - selfHostBannerDismissed - dismissedNotices - narration - skin - proactive properties: messageListEmphasis: $ref: '#/components/schemas/MessageListEmphasis' selfHostBannerDismissed: type: boolean description: Whether they closed the banner offering help self-hosting OpenBot. dismissedNotices: type: array maxItems: 64 uniqueItems: true description: The notices they answered, either way, by id. A notice in this list is never shown to them again, on any device. Empty until they answer one. items: $ref: '#/components/schemas/NoticeId' noticesDue: type: array readOnly: true maxItems: 64 uniqueItems: true description: The notices OpenBot would show them now, by id, worked out by the server from the edition and how they have used OpenBot. A notice they dismissed is never here. Absent from a server that works out none. items: $ref: '#/components/schemas/NoticeId' narration: description: Whether they narrate their recordings in OpenBot's browser, which opens the microphone only when on. Null until they choose, which the browser asks before their first recording. oneOf: - $ref: '#/components/schemas/OnOff' - type: 'null' skin: $ref: '#/components/schemas/SkinId' proactive: $ref: '#/components/schemas/OnOff' description: Whether their Bots check in on their behalf at all. off stops every Bot's check-ins, whatever each Bot's own setting says. starterTourChannelId: type: string readOnly: true description: The conversation the starter tour is offered in, set by the server when the person starts their first one. Absent until then. UpdatePreferencesRequest: type: object description: The preferences to change. At least one; the rest stay as they are. additionalProperties: false minProperties: 1 properties: messageListEmphasis: $ref: '#/components/schemas/MessageListEmphasis' selfHostBannerDismissed: type: boolean dismissedNotices: type: array maxItems: 64 uniqueItems: true description: 'Notices they answered, by id. Added to the ones already dismissed: a notice is never taken back off the list.' items: $ref: '#/components/schemas/NoticeId' narration: $ref: '#/components/schemas/OnOff' skin: $ref: '#/components/schemas/SkinId' proactive: $ref: '#/components/schemas/OnOff' ApiKey: type: object description: An API key a person made. Never the key itself. required: - id - name - start - createdAt - expiresAt - lastUsedAt properties: id: type: string description: The key's id. name: type: - string - 'null' description: What the person called it. start: type: - string - 'null' description: The key's first characters, enough to tell keys apart. example: obk_Xy createdAt: type: string format: date-time expiresAt: type: - string - 'null' format: date-time description: When it stops working. Null if it never expires. lastUsedAt: type: - string - 'null' format: date-time description: When it last signed a request. Null if never. organizationId: type: - string - 'null' description: 'The organization this key acts in: the one it was made in. Null for a key made before keys were bound to an organization, which acts in `default`. Absent from an older server.' ApiKeyPage: type: object required: - apiKeys - nextCursor properties: apiKeys: type: array description: Newest first, then by id. items: $ref: '#/components/schemas/ApiKey' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateApiKeyRequest: type: object additionalProperties: false required: - name properties: name: type: string minLength: 1 maxLength: 32 pattern: ^[^\x00]*$ description: What the key is for, so the person can tell it apart later. expiresInDays: type: integer minimum: 1 maximum: 365 description: Days until the key stops working. Absent, it never expires. CreatedApiKey: type: object required: - apiKey - key properties: apiKey: $ref: '#/components/schemas/ApiKey' key: type: string description: 'The key itself, to send as Authorization: Bearer. Shown in this answer and never again.' Session: type: object description: Somewhere a person is signed in. Never the session's token. required: - id - createdAt - lastActiveAt - expiresAt - ipAddress - userAgent - current properties: id: type: string description: The session's id. createdAt: type: string format: date-time description: When they signed in. lastActiveAt: type: string format: date-time description: When the session was last renewed. expiresAt: type: string format: date-time description: When it ends unless it is used again. ipAddress: type: - string - 'null' description: The address they signed in from, when it was known. userAgent: type: - string - 'null' description: The browser or app they signed in with, as it named itself. current: type: boolean description: Whether this request came on this session. SessionPage: type: object required: - sessions - nextCursor properties: sessions: type: array description: The newest sign-in first, then by id, an order that doesn't move while somebody pages. items: $ref: '#/components/schemas/Session' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. LinkedAccountProviderId: type: string enum: - slack - github description: A service a person can link an account at. LinkedAccount: type: object description: A person's account at another service, which OpenBot knows is theirs. Never the credential it holds. required: - id - provider - title - handle - status - createdAt properties: id: type: string description: The link's id. provider: $ref: '#/components/schemas/LinkedAccountProviderId' title: type: string description: The service's name, as a person reads it. handle: type: - string - 'null' description: Who they are there, such as their GitHub login, when the service said. status: type: string x-extensible-enum: - active - needs_reconnect description: needs_reconnect when the service stopped accepting what the link holds, and linking again mends it. createdAt: type: string format: date-time LinkedAccountPage: type: object required: - linkedAccounts - nextCursor properties: linkedAccounts: type: array description: The oldest link first, then by id. items: $ref: '#/components/schemas/LinkedAccount' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. LinkedAccountProvider: type: object required: - id - title properties: id: $ref: '#/components/schemas/LinkedAccountProviderId' title: type: string description: The service's name, as a person reads it. LinkedAccountProviderPage: type: object required: - linkedAccountProviders - nextCursor properties: linkedAccountProviders: type: array items: $ref: '#/components/schemas/LinkedAccountProvider' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. LinkAccountRequest: type: object additionalProperties: false required: - provider properties: provider: $ref: '#/components/schemas/LinkedAccountProviderId' SlackLinkCode: type: object description: A one-time code the person sends the OpenBot app in Slack. required: - provider - code - expiresAt - instruction properties: provider: type: string const: slack code: type: string description: The code. It works once, and only for the person it was made for. expiresAt: type: string format: date-time description: When the code stops working. instruction: type: string description: What to send, and where, as a person reads it. GitHubAuthorization: type: object description: GitHub's consent page, which sends the person back to OpenBot once they agree. required: - provider - authorizationUrl properties: provider: type: string const: github authorizationUrl: type: string format: uri description: The address to open. Always GitHub's own authorize page, over HTTPS. AccountLinkStart: description: What the person does next, by service. oneOf: - $ref: '#/components/schemas/SlackLinkCode' - $ref: '#/components/schemas/GitHubAuthorization' discriminator: propertyName: provider mapping: slack: '#/components/schemas/SlackLinkCode' github: '#/components/schemas/GitHubAuthorization' IdentityProviderProtocol: type: string enum: - saml - oidc description: How the provider speaks. SAML is what most companies' identity teams supply. IdentityProvider: type: object description: A company's own identity provider, registered for single sign-on at its email domain. Never its client secret or signing certificate. required: - id - issuer - domain - protocol - registeredBy properties: id: type: string description: The provider's id, as it was registered. issuer: type: string description: Who issues its sign-ins. domain: type: string description: The email domain that sends somebody to it. protocol: $ref: '#/components/schemas/IdentityProviderProtocol' registeredBy: type: - string - 'null' description: The id of the person who registered it, while they still have an account here. Null once they are gone; the provider stays. deployment: type: boolean description: 'True for a provider registered for the whole OpenBot, listed in another organization: it counts for that organization''s Require SSO only while the organization has no provider of its own, and can''t be removed from it. False or absent for the organization''s own.' IdentityProviderPage: type: object required: - identityProviders - nextCursor properties: identityProviders: type: array description: By domain, then by id. items: $ref: '#/components/schemas/IdentityProvider' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. IdentityProviderResponse: type: object required: - identityProvider properties: identityProvider: $ref: '#/components/schemas/IdentityProvider' IdentityProviderText: type: string minLength: 1 maxLength: 2048 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ IdentityProviderAddress: type: string format: uri minLength: 1 maxLength: 2048 pattern: ^https?://[^\x00\s]+$ SamlIdentityProviderRequest: type: object additionalProperties: false required: - protocol - id - domain - issuer - entryPoint - metadata properties: protocol: type: string const: saml id: $ref: '#/components/schemas/NewIdentityProviderId' domain: $ref: '#/components/schemas/IdentityProviderDomains' issuer: $ref: '#/components/schemas/IdentityProviderAddress' entryPoint: $ref: '#/components/schemas/IdentityProviderAddress' metadata: type: string minLength: 1 maxLength: 200000 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: The provider's SAML metadata XML, as its identity team supplied it. OidcIdentityProviderRequest: type: object additionalProperties: false required: - protocol - id - domain - issuer - clientId - clientSecret properties: protocol: type: string const: oidc id: $ref: '#/components/schemas/NewIdentityProviderId' domain: $ref: '#/components/schemas/IdentityProviderDomains' issuer: $ref: '#/components/schemas/IdentityProviderAddress' clientId: $ref: '#/components/schemas/IdentityProviderText' clientSecret: $ref: '#/components/schemas/IdentityProviderText' NewIdentityProviderId: type: string minLength: 1 maxLength: 200 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: An id for the provider, unique in the organization, such as acme-okta. IdentityProviderDomains: type: string minLength: 1 maxLength: 2048 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: The email domain whose people it signs in, such as acme.com. Several are separated by commas. CreateIdentityProviderRequest: description: A SAML or an OIDC provider, by protocol. oneOf: - $ref: '#/components/schemas/SamlIdentityProviderRequest' - $ref: '#/components/schemas/OidcIdentityProviderRequest' discriminator: propertyName: protocol mapping: saml: '#/components/schemas/SamlIdentityProviderRequest' oidc: '#/components/schemas/OidcIdentityProviderRequest' Deployment: type: object description: What this OpenBot offers and how people sign in to it. required: - edition - localEvaluation - generativeUi - selfHostBanner - transcription - voice - durableHistory - authProviders - ssoConfigured - ssoRequired - builtInBots - isolatedBots - botComputers properties: edition: type: string enum: - team - personal description: team is OpenBot as an organization runs it; personal is one person on their own machine, with no sign-in and none of the screens that govern other people. localEvaluation: type: boolean description: Whether somebody is trying OpenBot on their own machine, with nobody else able to reach it. generativeUi: type: boolean description: Whether a Bot may answer with an interface it wrote itself. selfHostBanner: type: boolean description: Whether to offer help self-hosting OpenBot. transcription: type: boolean description: Whether a person can dictate a message. voice: type: boolean description: Whether a person can talk to a Bot. durableHistory: type: boolean description: Whether conversations are kept between restarts. authProviders: type: array description: The social sign-ins offered, by id. items: type: string enum: - google - microsoft - okta - apple hostedSignIn: type: boolean description: Whether people sign in through OpenBot by CopilotKit's own sign-in, with their account there. The sign-in starts at /api/auth/hosted/sign-in. Absent or false, people sign in only the ways authProviders and ssoConfigured say. ssoConfigured: type: boolean description: Whether a company's own identity provider is registered, so an email address can be sent to it. Never which. Always false where hostedSignIn is true. ssoRequired: type: boolean description: Whether everybody who signs in to this OpenBot must use single sign-on, because its one organization requires it; social sign-in then stays only as the configured administrators' way in. Where this OpenBot may keep more than one organization, each one requires it of its own members in its settings, and this says false. Always false where hostedSignIn is true. builtInBots: type: boolean description: Whether a Bot can run inside OpenBot, with no address of its own. isolatedBots: type: boolean description: Whether this OpenBot can give a Bot a computer of its own. Whether a person may is their Isolated Bots switch. botComputers: type: boolean description: 'Whether this OpenBot has computers for Bots at all. False, a Bot has no computer, browser or sign-in to a website, and the computers answer 503 to every call. Not isolatedBots: an OpenBot whose Bots share one computer has computers (true) and cannot give a Bot one of its own (isolatedBots false).' attachmentLimits: $ref: '#/components/schemas/AttachmentLimits' api: type: array description: 'The API versions this OpenBot serves, by major, such as v2. An app that speaks none of them can''t use it: when they are all newer than the app''s, the app needs an update; when they are all older, this OpenBot does. Absent from a release before it was published, which serves v2.' minItems: 1 items: type: string pattern: ^v[1-9][0-9]{0,3}$ minimumClients: $ref: '#/components/schemas/MinimumClients' securityMinimumClients: $ref: '#/components/schemas/MinimumClients' description: 'The part of minimumClients raised because of a security problem in older releases: for each app named, the minimum is there for security. Absent or empty when none is.' launcherApi: type: integer minimum: 1 description: The version of what OpenBot Desktop supplies when it starts this OpenBot on its own computer. It changes when Desktop must supply something new. extensionApi: type: integer minimum: 1 description: The version of what the OpenBot Recorder and this OpenBot exchange. dataChanged: type: array description: 'The kinds of change this OpenBot sends as a hint on the conversation events socket (dataChanged in api/asyncapi.yaml), to a socket opened with the capability data-changed. A client may stop polling a list whose kind is named here and read it again on the hint instead; a list whose kind is missing is polled as before, slowly. Absent from a release before it was published: a client then takes none as sent.' items: type: string x-extensible-enum: - approvals - needsYou - bots - activity - routines - computers - artifacts - components - grants - deliveries - memory AllowlistEntry: type: string minLength: 1 maxLength: 200 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ OrganizationSettingValues: type: object description: 'The organization''s settings. Context is read only: it comes back with the settings and is never sent.' additionalProperties: false properties: context: $ref: '#/components/schemas/OrganizationSettingsContext' readOnly: true ssoRequired: type: boolean description: Whether people must sign in through the company's identity provider. Where this OpenBot may keep more than one organization, it holds this organization's members. Where it keeps only one, it holds everybody, and is set only in that organization. The administrators the deployment's configuration names keep social sign-in as their way in. actionRecording: type: boolean description: Whether what Bots do on their computers is recorded, to read in computer actions. inactiveComputerDays: type: integer minimum: 0 maximum: 3650 description: Days a Bot computer may sit idle before it is stopped. 0 never stops one. modelAllowlist: type: object additionalProperties: false required: - enabled - models properties: enabled: type: boolean description: Whether the list limits anything. Off, every model is allowed. models: type: array maxItems: 500 description: The models Bots may run on, as provider/model. items: $ref: '#/components/schemas/AllowlistEntry' mcpAllowlist: type: object additionalProperties: false required: - enabled - servers properties: enabled: type: boolean description: Whether the list limits anything. Off, every app is allowed. servers: type: array maxItems: 500 description: The apps Bots may use, by id. items: $ref: '#/components/schemas/AllowlistEntry' skillSharing: type: boolean description: Whether people may open the skills learned from their recordings to every Bot. proactiveDailyRuns: type: integer minimum: 1 maximum: 1440 description: How many check-ins each Bot may run for one person in a day. modelSelection: type: boolean description: Whether people may pick the model a built-in Bot answers on, per conversation. OrganizationSettings: allOf: - $ref: '#/components/schemas/OrganizationSettingValues' - required: - ssoRequired - actionRecording - inactiveComputerDays - modelAllowlist - mcpAllowlist - skillSharing - proactiveDailyRuns - modelSelection - context OrganizationSettingsContext: type: object readOnly: true description: What an administrator needs to set the settings. Read only. required: - builtInModel - directoryGroups - apps - defaultDestinations - scim - otel - actionRecordRetentionDays properties: builtInModel: type: - string - 'null' description: The model OpenBot's own Bots run on, when one is set. directoryGroups: type: array description: The directory groups the organization's members belong to, by name. items: type: string apps: type: array description: The apps an allowlist can name. items: type: object required: - id - title - url properties: id: type: string title: type: string url: type: string defaultDestinations: type: array description: The package registries and source hosts every computer may reach unless the list is the only thing allowed. items: type: string scim: type: object required: - configured - connectionId - baseUrl - rotating properties: configured: type: boolean connectionId: type: string baseUrl: type: - string - 'null' rotating: type: boolean description: Whether a second token is set while the first is being replaced. otel: type: object required: - configured properties: configured: type: boolean actionRecordRetentionDays: type: integer description: How many days recorded computer actions are kept. computerMode: type: string enum: - per-person - shared - none description: 'How Bots get computers here. per-person: each person has a computer of their own, and so does each isolated Bot; an OpenBot only one person uses answers this too. shared: every person''s Bots run on one computer, so a command one Bot runs can read another person''s files there. That suits a proof of concept, not people''s real work. none: Bots have no computers. Absent from a server that predates it.' UpdateOrganizationSettingsRequest: allOf: - $ref: '#/components/schemas/OrganizationSettingValues' description: The settings to change. At least one; the rest stay as they are. minProperties: 1 AppsSetting: type: object description: Whether the organization's apps are open or locked down. It is kept apart from the organization's other settings so every member can read it. required: - lockedDown properties: lockedDown: type: boolean description: 'Whether the organization''s apps are locked down. False, the default, is open: an app a person connects is on for every Bot they own, one press gives a Bot every action of an app, apps are open to Bot owners, the apps that need no sign-in are on for every Bot, any member adds an app the organization hasn''t added in the press that connects it, and a connected shared account is on for every Bot for anybody who can use that Bot. True is locked down: an administrator adds apps and approves access requests and who may use a shared account through a Bot, one press gives an app''s read-only actions, and an app is open to Bot owners only once an administrator opens it. Either way each person''s own account stays theirs, and an administrator connects a shared account. Switching changes what giving does from then on. It doesn''t take anything back unless takeBackWhatOpenGave is sent too. Restrictions an administrator sets on one app or one Bot hold either way.' UpdateAppsSettingRequest: type: object additionalProperties: false required: - lockedDown properties: lockedDown: type: boolean description: True locks the organization's apps down, false opens them (AppsSetting). takeBackWhatOpenGave: type: boolean description: 'Sent with lockedDown true: also take back what OpenBot gave Bots by itself while the organization was open, which is a person''s connected apps on their own Bots and the apps that need no sign-in on every Bot. What an administrator or a Bot''s owner gave by hand stays. Recorded on the audit trail. Ignored with lockedDown false: open apps would give it all again.' InactiveComputersStopped: type: object required: - stopped - skipped properties: stopped: type: array description: The Bots whose computers stopped. items: type: string skipped: type: - string - 'null' description: Why nothing was stopped, when nothing was looked at. PersonComputersStopped: type: object required: - stopped - failed properties: stopped: type: array description: 'The computers stopped: `person:` for the person''s own, which every Bot they use runs on, and `bot:` for each of their Bots that has a computer of its own.' items: type: string failed: type: array description: The ones that would not stop, and why. items: type: object required: - computer - reason properties: computer: type: string description: The computer, named as in `stopped`. reason: type: string CapabilityId: type: string enum: - useBots - cloudBrowser - cloudNetwork - cloudComputer - localComputer - customRules - passwordManager - slackTeams - teamBots - ownerApps - isolatedComputers - proactive description: A permission switch. Capability: type: object description: A permission switch, and what each level set it to. Null at a level means it sets nothing and the level beneath decides. required: - id - title - description - default - organization - roles - groups properties: id: $ref: '#/components/schemas/CapabilityId' title: type: string description: type: string default: type: boolean description: What applies where nothing is set. organization: type: - boolean - 'null' roles: type: object description: What each member role is set to, by role. A role absent sets nothing. properties: owner: type: boolean admin: type: boolean member: type: boolean groups: type: object description: What each directory group is set to, by the group's name. A group absent sets nothing. additionalProperties: type: boolean teams: type: object description: What each team is set to, by the team's id. A team absent sets nothing. A team's switch can only turn a permission on for the people in it, and in the teams beneath it. additionalProperties: type: boolean CapabilityPage: type: object required: - capabilities - nextCursor properties: capabilities: type: array description: In the order the screens show them. items: $ref: '#/components/schemas/Capability' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. SwitchValue: type: - boolean - 'null' description: On, off, or null to clear it so the level beneath decides. UpdateCapabilityRequest: type: object description: The levels to set or clear. At least one. additionalProperties: false minProperties: 1 properties: organization: $ref: '#/components/schemas/SwitchValue' roles: type: object additionalProperties: false minProperties: 1 properties: admin: $ref: '#/components/schemas/SwitchValue' member: $ref: '#/components/schemas/SwitchValue' groups: type: object minProperties: 1 maxProperties: 100 description: By directory group name, 1 to 200 characters. propertyNames: minLength: 1 maxLength: 200 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ additionalProperties: $ref: '#/components/schemas/SwitchValue' teams: type: object minProperties: 1 maxProperties: 100 description: By team id. A team that is not one of this organization's is not found. propertyNames: minLength: 1 maxLength: 200 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ additionalProperties: $ref: '#/components/schemas/SwitchValue' CapabilityChange: type: object additionalProperties: false required: - scopeKind - capability - allowed properties: scopeKind: type: string enum: - organization - role - group - team description: 'Whose switch: the organization''s, a member role''s, a team''s, or a directory group''s.' scopeId: type: string maxLength: 200 pattern: ^[^\x00]*$ description: Empty for the organization; admin or member for a role; a team's id for a team; a directory group's name for a group. capability: $ref: '#/components/schemas/CapabilityId' allowed: $ref: '#/components/schemas/SwitchValue' Authoring: type: object additionalProperties: false required: - source - text description: The sentence in English a change was written from, recorded with it. properties: source: type: string const: english text: type: string minLength: 1 maxLength: 2000 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ CapabilityChangesToPreview: type: object additionalProperties: false required: - changes properties: changes: type: array minItems: 1 maxItems: 100 description: 'Changes to check and preview, as a screen holds them while an admin edits what a description wrote. One that names a permission, role or group that isn''t one is not refused: the answer''s `check` says what is wrong with it.' items: $ref: '#/components/schemas/CapabilityChangeToCheck' CapabilityChangeToCheck: type: object additionalProperties: false required: - scopeKind - capability - allowed properties: scopeKind: type: string enum: - organization - role - group - team description: 'Whose switch: the organization''s, a member role''s, a team''s, or a directory group''s.' scopeId: type: string maxLength: 200 pattern: ^[^\x00]*$ description: Empty for the organization; admin or member for a role; a team's id for a team; a directory group's name for a group. capability: type: string maxLength: 100 pattern: ^[^\x00]*$ description: The permission, by its id. One that isn't a permission is named in `check`. allowed: $ref: '#/components/schemas/SwitchValue' CapabilityChanges: type: object additionalProperties: false required: - changes properties: changes: type: array minItems: 1 maxItems: 100 items: $ref: '#/components/schemas/CapabilityChange' authoring: $ref: '#/components/schemas/Authoring' SavedCapabilityChanges: type: object required: - saved properties: saved: type: array items: $ref: '#/components/schemas/CapabilityChange' ChangeDescription: type: object additionalProperties: false required: - text properties: text: type: string minLength: 1 maxLength: 1000 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: The change in a sentence or two, at most 1,000 characters once trimmed. RuleCheck: type: object description: Whether a proposal passes the rule a save applies, and what is wrong when it doesn't. required: - ok properties: ok: type: boolean error: type: string problems: type: array items: {} CapabilityTranslation: type: object required: - changes - summary - explanation - check - warning properties: changes: type: array description: The changes the model wrote. When `check.ok` is true each is a valid CapabilityChange; when it is false they are as written, so the admin can see what failed, and `check.problems` says which. items: $ref: '#/components/schemas/WrittenCapabilityChange' summary: type: - string - 'null' explanation: type: - string - 'null' check: $ref: '#/components/schemas/RuleCheck' warning: type: - string - 'null' WrittenCapabilityChange: type: object description: A switch change as the model wrote it, before it is checked. required: - scopeKind - scopeId - capability - allowed properties: scopeKind: type: string enum: - organization - role - group - team description: 'Whose switch: the organization''s, a member role''s, a team''s, or a directory group''s.' scopeId: type: string description: Empty for the organization; admin or member for a role; a team's id for a team; a directory group's name for a group. capability: type: string allowed: $ref: '#/components/schemas/SwitchValue' CapabilityAnswer: type: object required: - allowed - decidedBy - scopeId properties: allowed: type: boolean decidedBy: type: string x-extensible-enum: - default - organization - role - group - team scopeId: type: string description: The role, the group's name or the team's id that decided it. Empty otherwise. CapabilityPreview: type: object required: - check - people - counts - activity - warning properties: check: $ref: '#/components/schemas/RuleCheck' people: type: array items: type: object required: - id - email - name - role - groups - capabilities properties: id: type: string email: type: string name: type: - string - 'null' role: $ref: '#/components/schemas/PersonRoleAnswer' groups: type: array items: type: string capabilities: type: array items: type: object required: - capability - title - before - after properties: capability: $ref: '#/components/schemas/CapabilityId' title: type: string before: $ref: '#/components/schemas/CapabilityAnswer' after: $ref: '#/components/schemas/CapabilityAnswer' activity: type: object required: - what - count - more - recent properties: what: type: string count: type: integer more: type: boolean recent: type: array items: $ref: '#/components/schemas/AuditEvent' counts: type: object required: - people - losing - gaining - keeping - unchanged properties: people: type: integer losing: type: integer gaining: type: integer keeping: type: integer unchanged: type: integer activity: type: object required: - days - unmapped properties: days: type: integer unmapped: type: array items: type: object required: - capability - title properties: capability: $ref: '#/components/schemas/CapabilityId' title: type: string warning: type: - string - 'null' PersonCapabilities: type: object required: - capabilities - enforced properties: capabilities: type: object description: Each switch, on or off for this person. additionalProperties: type: boolean enforced: type: boolean description: False where the deployment keeps no switches and every default applies. NetworkMode: type: string enum: - allow_all - defaults_plus_allowlist - allowlist_only description: allow_all lets computers connect anywhere; defaults_plus_allowlist to the list and the default destinations; allowlist_only to the list alone. EgressRule: type: object additionalProperties: false required: - type - value properties: type: type: string enum: - domain - cidr value: type: string minLength: 1 maxLength: 253 description: A host, which covers its subdomains, or an IP range in CIDR form. ports: type: string maxLength: 100 description: Ports, such as 443 or 8000-8100, separated by commas. Absent is every port. WrittenEgressRule: type: object description: An allowlist entry as the model wrote it, before it is parsed. required: - type - value properties: type: type: string value: type: string ports: type: string NetworkPolicy: type: object required: - id - scopeKind - scopeId - mode - rules - locked - updatedBy - updatedAt properties: id: type: string description: organization, team: for a team, or group: for a directory group. scopeKind: type: string x-extensible-enum: - organization - group - team description: 'Whose policy: the organization''s, a team''s, or a directory group''s.' scopeId: type: string description: The team's id, or the directory group's name. Empty for the organization. mode: $ref: '#/components/schemas/NetworkMode' rules: type: array items: $ref: '#/components/schemas/EgressRule' locked: type: boolean description: For the organization's, whether it applies to every group too. updatedBy: type: - string - 'null' updatedAt: type: string format: date-time NetworkPolicyPage: type: object required: - networkPolicies - nextCursor properties: networkPolicies: type: array description: The organization's first, then each group's by name. items: $ref: '#/components/schemas/NetworkPolicy' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. NetworkPolicyInput: type: object additionalProperties: false required: - mode - rules properties: mode: $ref: '#/components/schemas/NetworkMode' rules: type: array maxItems: 5000 items: $ref: '#/components/schemas/EgressRule' locked: type: boolean default: false authoring: $ref: '#/components/schemas/Authoring' NetworkPolicyCandidate: type: object additionalProperties: false required: - scopeKind - mode - rules properties: scopeKind: type: string enum: - organization - group - team description: 'Whose policy: the organization''s, a team''s, or a directory group''s.' scopeId: type: string maxLength: 200 pattern: ^[^\x00]*$ description: The team's id, or the directory group's name. Empty for the organization. mode: $ref: '#/components/schemas/NetworkMode' rules: type: array maxItems: 5000 items: $ref: '#/components/schemas/EgressRule' locked: type: boolean default: false limit: type: integer minimum: 1 maximum: 2000 description: How many recent page visits to test against. 500 when absent. NetworkTranslation: type: object required: - mode - rules - summary - reachable - explanation - check - warning properties: mode: type: string enum: - allowlist_only - defaults_plus_allowlist rules: type: array description: The entries. Parsed and tidied when `check.ok` is true, each then a valid EgressRule; as the model wrote them when it is false, so the admin can see and fix what failed. items: $ref: '#/components/schemas/WrittenEgressRule' summary: type: - string - 'null' reachable: type: array description: What becomes reachable, one line per service. items: type: string explanation: type: - string - 'null' check: $ref: '#/components/schemas/RuleCheck' warning: type: - string - 'null' NetworkReplayReport: type: object required: - scanned - covered - wouldBlock - wouldAllow - undecided - unchanged - hosts - sites properties: scanned: type: integer covered: type: integer wouldBlock: type: integer wouldAllow: type: integer undecided: type: integer unchanged: type: integer hosts: type: array items: type: object required: - host - change - visits - bots - lastVisit properties: host: type: string change: type: string enum: - block - allow visits: type: integer bots: type: array items: type: string lastVisit: type: string sites: type: integer ModelUsage: type: object required: - days - summary - recent properties: days: type: integer summary: type: array items: type: object required: - model - source - runs - refused - people - lastUsedAt properties: model: type: string source: type: string runs: type: integer refused: type: integer people: type: integer lastUsedAt: type: string format: date-time recent: type: array description: The newest 50 runs. items: type: object required: - id - email - agentId - model - source - allowed - createdAt properties: id: type: string email: type: - string - 'null' agentId: type: string model: type: string source: type: string allowed: type: boolean createdAt: type: string format: date-time ComputerAction: type: object required: - id - surface - botId - toolName - command - outcome - createdAt properties: id: type: string surface: type: string enum: - cloud - local botId: type: - string - 'null' toolName: type: string command: type: string outcome: type: string createdAt: type: string format: date-time ComputerActionPage: type: object required: - computerActions - nextCursor properties: computerActions: type: array description: Newest first, then by id. items: $ref: '#/components/schemas/ComputerAction' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. SetupChecklist: type: object required: - audience - rows properties: audience: type: string enum: - admin - member description: Who the checklist was written for. rows: type: array items: type: object required: - id - scope - title - required - status - ready - detail - fix properties: id: type: string enum: - intelligence - model - computer - apps - chat scope: type: string const: deployment title: type: string required: type: boolean status: type: string enum: - ready - needs_setup - not_checked ready: type: boolean detail: type: string fix: oneOf: - type: object required: - kind - names - docsUrl properties: kind: type: string const: env names: type: array items: type: string docsUrl: type: string page: type: object required: - label - path properties: label: type: string path: type: string - type: object required: - kind - label - path properties: kind: type: string const: page label: type: string path: type: string docsUrl: type: string - type: 'null' Problem: type: object description: RFC 9457 problem details, in the shape CopilotKit Intelligence's v2 API uses. status equals the HTTP status; code and type name the same stable error. detail is the sentence a person reads. required: - type - title - status - detail - code - category - retryable - requestId - traceId properties: type: type: string format: uri title: type: string minLength: 1 status: type: integer minimum: 400 maximum: 599 detail: type: string minLength: 1 instance: type: string format: uri-reference code: type: string minLength: 1 category: type: string enum: - validation - auth - permission - not_found - conflict - rate_limit - internal - dependency retryable: type: boolean requestId: type: string minLength: 1 traceId: type: string minLength: 1 capability: type: string description: The switch an administrator can turn on for this person, when the refusal is for want of one (isolatedComputers). restrictedBy: type: string description: On a refusal of a step on an app that only an administrator can take, why it is theirs, as an app's restrictedBy names it (for example bot_ownerless). code stays the refusal's own; this says which rule refused it, so a client can pick its sentence and name the administrators. A later OpenBot may add reasons; read one you don't know as an administrator's step. x-extensible-enum: - bot_ownerless - bot_not_yours - app_admins_only - apps_locked_down - owner_apps_off - needs_admin_setup - shared_account problems: type: array description: 'What is wrong, item by item, when a refusal has more than one reason: each entry names the item and says what is wrong with it.' items: type: object client: type: string x-extensible-enum: - web - desktop - mobile - recorder description: On CLIENT_UPDATE_REQUIRED, the app the OpenBot-Client header named that is older than this OpenBot serves. A later OpenBot may name another app; read one you don't know as other. minimumVersion: type: string description: On CLIENT_UPDATE_REQUIRED, the oldest release of that app this OpenBot serves. security: type: boolean description: On CLIENT_UPDATE_REQUIRED, true when the minimum the app is below was raised because of a security problem in older releases. addCardUrl: type: - string - 'null' format: uri-reference maxLength: 2048 description: On PLAN_REQUIRED, where an owner or an admin goes in the browser to add a card, or to update it after a failed payment. Null for a member, who asks an admin. addSeatUrl: type: - string - 'null' format: uri-reference maxLength: 2048 description: On SEAT_REQUIRED, where an owner or an admin goes in the browser to add one more seat to the organization's plan. It comes back to OpenBot once the seat is added, and the invitation can be sent then. Null for anyone who can't add a seat. ConversationJoinToken: type: object description: 'What a client needs to watch a conversation live: a token, and the socket and topic to use it on (the threadStream channel of api/asyncapi.yaml).' required: - joinToken - expiresAt - threadId - runId - realtime properties: joinToken: type: string minLength: 1 description: Sent as the join_token query parameter when opening the socket. It works once. expiresAt: type: string format: date-time description: After this the token no longer opens a socket. A socket it already opened stays open. threadId: type: string minLength: 1 description: The conversation's thread, as the caller sees it. runId: type: - string - 'null' description: The run in progress in the thread, or null when the Bot is not working. realtime: type: object description: Where to use the token. required: - clientUrl - topic properties: clientUrl: type: string minLength: 1 description: The socket's address, without the /websocket it ends in or its query. A ws or wss address, or a path on this server, which is resolved against the address the API was called at. Where it is on this server, the socket is opened with the credential that made the token (see createConversationJoinToken). topic: type: string pattern: ^thread:.+$ description: 'The topic to join on the socket, as the realtime gateway knows the thread. Use it as given: outside the organization default it does not name threadId, so a topic made from threadId joins nothing.' CredentialKind: type: string description: 'What a credential is for. model: a key OpenBot''s Bots call a model with. connector: an app''s key. mcp: a token for an app''s server. agent: a key for a company''s own agent. mcp_oauth_client: the organization''s registration with an app. mcp_user_token: one person''s sign-in to an app, kept when they connected it.' enum: - model - connector - agent - mcp - mcp_oauth_client - mcp_user_token Credential: type: object description: 'A credential in the organization''s vault as the API shows it: what it is for and whether it is live. Never its secret, which only ever goes in.' required: - id - kind - provider - keyId - metadata - createdAt - revokedAt properties: id: type: string format: uuid kind: $ref: '#/components/schemas/CredentialKind' provider: type: string description: 'Who the secret is for: a model provider such as openai, an app, or an app''s server.' keyId: type: string description: The name it is kept under. A key holds one live credential at a time. metadata: type: object additionalProperties: true description: What was said about it when it was added. Never secret. createdAt: type: string format: date-time revokedAt: type: - string - 'null' format: date-time description: When it was revoked. Null while it is live. CredentialPage: type: object required: - credentials - nextCursor properties: credentials: type: array description: Oldest first, and by id among credentials added at the same moment. items: $ref: '#/components/schemas/Credential' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CredentialInput: type: object additionalProperties: false required: - kind - provider - secret properties: kind: type: string description: 'model, connector, mcp or mcp_oauth_client. mcp_oauth_client is the organization''s own OAuth client for an app that connects with a server-to-server grant: provider is the app''s slug in the app directory, keyId is server-to-server, metadata.clientId is the client''s id and secret is the client''s secret. The organization''s app then connects with that client, and the app is offered to the organization once it is kept. The other kinds are written by what they belong to: an app''s registration when it is added, a person''s sign-in when they connect it.' enum: - model - connector - mcp - mcp_oauth_client provider: type: string minLength: 1 maxLength: 200 pattern: \S description: 'Who the secret is for: for a model key, the provider the Bots run on (getModelKey). Trimmed.' keyId: type: string minLength: 1 maxLength: 200 pattern: \S description: The name to keep it under. Required, except for a model key, which is filed under the name the Bots read (getModelKey). Trimmed. metadata: type: object maxProperties: 20 additionalProperties: type: string maxLength: 1000 description: What to say about it. Never secret. Empty when left out. secret: type: string minLength: 1 maxLength: 65536 writeOnly: true description: 'The secret itself. Encrypted before it is kept, and never sent back: no answer includes it, now or later.' ModelKey: type: object description: Where OpenBot's own Bots find their model key in the vault, and whether one is kept there. Never the key. required: - provider - keyId - set properties: provider: type: string enum: - openai - anthropic description: The provider the Bots run on. keyId: type: string description: The name the key is kept under. set: type: boolean description: Whether a live model key is kept under that name. ModelOption: type: object description: One model a Bot can run on. required: - id - label properties: id: type: string description: What a run sends upstream. label: type: string description: What a model picker shows. vendor: type: string description: Who makes it, as a brand id such as openai or anthropic. Absent for a gateway's own alias, which names no maker. efforts: type: array description: How hard it can be asked to think, weakest first, such as none, minimal, low, medium, high, xhigh and max. Absent when it takes no effort, or nothing says which it takes. items: type: string defaultEffort: type: string description: The effort it thinks at when none is sent, when its provider says. ImageModelOption: type: object description: One model a Bot can make pictures with (the generate_image tool). Never one of the models a Bot runs on. required: - id - label - vendor - edits properties: id: type: string description: What a call sends upstream, such as gpt-image-2. label: type: string description: What a person reads, such as GPT Image 2. vendor: type: string description: Who makes it, as a brand id such as openai or google, in the same words as ModelOption's vendor. edits: type: boolean description: Whether it takes a picture in as well as a prompt, so it can change an earlier picture or one the person attached. ModelCatalogue: type: object description: The models Bots can run on, and which one a run uses by default. required: - provider - source - exposure - default - models - choosable - listed - imageModels - imageModel properties: provider: type: string enum: - openai - anthropic description: 'The provider prefix the model allowlist names models with (provider/model). Not who serves the models: that is source.' source: type: string enum: - openai - anthropic - google - xai - gateway - chatgpt - claude description: 'Who serves the models: a provider''s own API, an OpenAI-compatible gateway in front of one, or a ChatGPT or Claude plan.' exposure: type: string enum: - all - allowed description: 'Who decides what people may pick. all: one person on their own machine, offered every model listed. allowed: a team, offered every model listed until an administrator narrows it with the model allowlist (on, with at least one model allowed).' default: type: string description: What a run uses when nobody picked. Always one of models. models: type: array description: Newest first. items: $ref: '#/components/schemas/ModelOption' choosable: type: boolean description: Whether people have anything to pick. False until an administrator allows a model in a team, or while the listing can't be read. listed: type: boolean description: Whether the listing was read. False means only the deployment's own model is known. connections: type: array description: 'Every AI connection the person''s runs can use, each with its own models, the default first: their own connections where they have any, the organization''s otherwise. The fields above describe the default connection. Absent from an OpenBot older than several connections; a client then offers the models above.' items: $ref: '#/components/schemas/ModelCatalogueConnection' imageModels: type: array description: 'The models Bots can make pictures with now, across the organization''s AI connections: each one a connection lists, says it outputs images, and is reached by a way of calling OpenBot has proven. Newest first. Empty when none can, and then no Bot is offered generate_image.' items: $ref: '#/components/schemas/ImageModelOption' imageModel: type: - string - 'null' description: The id of the image model OpenBot uses when the person names none. Always one of imageModels. Null when imageModels is empty. ModelChoice: type: object description: 'The model and thinking effort a person chose for one conversation. Null model: the default model. Null effort: none is sent, so the model thinks on its own default.' required: - model - effort properties: model: type: - string - 'null' effort: type: - string - 'null' defaultModel: type: object description: The Bot default saved when the conversation was created. Absent when it follows the deployment default. required: - model - effort - source properties: model: type: string effort: type: - string - 'null' source: type: string unverified: $ref: '#/components/schemas/UnverifiedModel' connection: type: - string - 'null' description: The AI connection the chosen model is on, by id. Null for the default connection. Absent from an OpenBot older than several connections. stopped: description: The connection the conversation's next run would use (the choice's, or the default with no choice) when it is connected but can't run now, and why; or, with no choice and no default, that a default has to be chosen (connection null, code no-default). Null when it can run. A client shows this after a refused run instead of reading the refusal's words. oneOf: - $ref: '#/components/schemas/StoppedAiConnection' - type: 'null' ModelChoiceInput: type: object additionalProperties: false required: - model - effort properties: model: type: - string - 'null' minLength: 1 maxLength: 500 pattern: \S description: A model the catalogue offers, or null for the default. Trimmed. effort: type: - string - 'null' minLength: 1 maxLength: 40 pattern: \S description: An effort the model takes, or null for its own. Trimmed, and read in lower case. pinModel: type: boolean description: Keep an explicitly named model as an override even when it is the deployment's default. Omit to use the default as a reset. connection: type: - string - 'null' minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9_.:-]+$ description: 'The AI connection the model is on, by id, one the catalogue lists in connections. Absent or null: the default connection.' SharedAccountApproval: type: object additionalProperties: false description: 'Who may have a Bot use an app''s one shared account, approved by an administrator: only the Bot''s owner, named people, teams and directory groups, or everyone in the organization (team); and whether the Bot may act on what people outside the organization send it. A member of kind team names one of the organization''s teams by id; a team of another organization is not found.' required: - audience - outsideInput - members properties: audience: type: string enum: - owner - people - team outsideInput: type: boolean members: type: array maxItems: 500 items: type: object additionalProperties: false required: - kind - value properties: kind: type: string enum: - user - group - team value: type: string minLength: 1 maxLength: 320 pattern: \S BotName: type: string minLength: 1 maxLength: 80 description: What the Bot is called, 1 to 80 characters once trimmed. BotTitle: type: string maxLength: 120 description: The subtitle under its name, up to 120 characters. May be empty. BotRoleDescription: type: string minLength: 1 maxLength: 5000 description: What it does, 1 to 5000 characters once trimmed. A Bot with no endpoint runs on these words. BotEndpoint: type: string description: 'The AG-UI address it runs at: empty, or an absolute http or https address, the only kinds the server has ever taken. Empty or absent on create means it runs inside OpenBot; empty or absent on a change leaves it as it is. An address that fits can still be refused: the server refuses one this deployment may not reach, such as a private network address on a deployment that keeps Bots off it.' anyOf: - type: string maxLength: 0 - type: string format: uri pattern: ^[Hh][Tt][Tt][Pp][Ss]?:// BotIsolated: type: boolean description: Whether it gets a computer of its own. Absent leaves it as it is. True needs the owner's Isolated Bots switch. BotInstructions: type: string minLength: 1 maxLength: 5000 description: New instructions for the starter Bot, 1 to 5000 characters once trimmed. Absent leaves them as they are; every other Bot ignores them. BotDefaultModelInput: type: - object - 'null' additionalProperties: false description: A model from the connected provider, as the model catalogue names it, and its thinking level. required: - model - effort properties: model: type: string minLength: 1 maxLength: 500 pattern: \S effort: type: - string - 'null' minLength: 1 maxLength: 40 pattern: \S source: type: string minLength: 1 maxLength: 40 pattern: ^[a-z][a-z0-9-]*$ description: Who serves the model, as the catalogue's connections name it (ModelCatalogueConnection source). The default applies for a person with a connection of that kind that can run. Omit for the default connection's. BotComputer: type: string enum: - browser - windows description: The computer it works on. browser unless set; windows, the Windows computer of the person it works for, wherever Windows computers are on. Absent leaves it as it is. Experimental. ServiceTermsVersionId: type: string minLength: 1 maxLength: 64 pattern: ^[A-Za-z0-9._-]+$ description: A version of the terms, such as 2026-11-21. Compared as written, never ordered. example: '2026-11-21' ServiceTermsVersion: type: object description: One version of the terms people agree to before they use OpenBot, and where each part is published. required: - version - termsOfServiceUrl - acceptableUseUrl properties: version: $ref: '#/components/schemas/ServiceTermsVersionId' termsOfServiceUrl: type: string format: uri description: Where the Terms of Service are published. acceptableUseUrl: type: string format: uri description: Where the Acceptable Use Policy is published. ServiceTermsAcceptance: type: object description: A version of the terms the person agreed to, and when. required: - version - acceptedAt properties: version: $ref: '#/components/schemas/ServiceTermsVersionId' acceptedAt: type: string format: date-time description: When they agreed to it. ServiceTerms: type: object description: The terms this OpenBot asks people to agree to, and where the person stands. acceptanceNeeded is the server's verdict; a client renders it and never recomputes it. required: - current - accepted - acceptanceNeeded properties: current: description: The terms in force. Null where this OpenBot has no terms to agree to (a self-hosted OpenBot, OpenBot Desktop on its own). oneOf: - $ref: '#/components/schemas/ServiceTermsVersion' - type: 'null' accepted: description: The version the person last agreed to, which may be older than current. Null if they never agreed to any. oneOf: - $ref: '#/components/schemas/ServiceTermsAcceptance' - type: 'null' acceptanceNeeded: type: boolean description: Whether the person has to agree to the current terms before they use OpenBot. True while there are terms and accepted isn't the current version. The apps ask them first and let them in once they agree. AcceptServiceTermsRequest: type: object additionalProperties: false required: - version properties: version: $ref: '#/components/schemas/ServiceTermsVersionId' CompanySignIn: type: object description: Whether a person must sign in through their company's identity provider to work in this organization, and how they can. required: - required - met - providers properties: required: type: boolean description: Whether this organization requires its members to sign in through an identity provider. met: type: boolean description: 'Whether the person has: they signed in through one of providers, or with the same identity at the same issuer another way, or they are the admin who runs this OpenBot. While required is true and met is false, the organization holds them out.' providers: type: array description: 'The identity providers that count for this organization: its own, or, where it has none and this OpenBot may keep more than one organization, those registered for the whole OpenBot. Empty when there are none.' items: type: object required: - id - domain properties: id: type: string description: The provider's id, which signing in through it takes. domain: type: string description: The email domain it signs in. CreateCompanySignInTicketRequest: type: object additionalProperties: false required: - providerId properties: providerId: type: string minLength: 1 maxLength: 256 description: The identity provider to sign in through, one getCompanySignIn lists. returnTo: type: string enum: - app description: 'app when the phone app asks: once the company account is linked, the browser is sent back to the app at openbotmobile://company-sign-in/linked, which ends its sign-in session. Without it the browser stays on a page saying the account is linked. Nothing else is a place to go back to.' CompanySignInTicket: type: object required: - url - expiresAt properties: url: type: string format: uri description: The address to open in the system browser. It carries the ticket, a credential shown this once. expiresAt: type: string format: date-time description: When the ticket stops opening. AttachmentLimits: type: object description: 'How large a file attached to a message may be, by kind, in bytes. An upload over its kind''s limit is refused. Absent, as from an older OpenBot, the limits are 8388608 for an image or a document (a PDF, or a Word, Excel or PowerPoint file) and 1048576 for any other file. The limits can rise while OpenBot runs, so a client reads them again rather than keeping them for good. What a Bot''s model is shown of a large file is a separate matter: the file is kept and can be downloaded whatever the model can read of it.' required: - imageBytes - documentBytes - fileBytes properties: imageBytes: type: integer minimum: 1 description: The largest image. documentBytes: type: integer minimum: 1 description: 'The largest document: a PDF, or a Word, Excel or PowerPoint file (.docx, .xlsx, .pptx).' fileBytes: type: integer minimum: 1 description: The largest text file, or a file of any other kind. ClientRelease: type: string description: An OpenBot release, such as 1.1.0. pattern: ^\d{1,6}\.\d{1,6}\.\d{1,6}(-[0-9A-Za-z.-]{1,64})?$ examples: - 1.1.0 MinimumClients: type: object description: The oldest release of each OpenBot app this OpenBot serves. An app names itself in the OpenBot-Client header, and one older than its minimum here is refused with CLIENT_UPDATE_REQUIRED, everywhere but this deployment answer. An app not listed has no minimum. An OpenBot serves every app released in the last 12 months, so it names one only where its administrator raised it. Absent from a release before it was published. properties: web: $ref: '#/components/schemas/ClientRelease' desktop: $ref: '#/components/schemas/ClientRelease' mobile: $ref: '#/components/schemas/ClientRelease' recorder: $ref: '#/components/schemas/ClientRelease' WindowsAllowlistApps: type: array maxItems: 200 description: 'The programs, by executable file name, lower case, such as notepad.exe: a file name Windows allows, with no folder. Name the executable that owns the window, not a launcher.' items: type: string pattern: ^[^\\/:*?"<>|\x00-\x1fA-Z]{1,250}\.exe$ WindowsAllowlist: type: object description: The programs Bots may use on Windows computers. Off, the default, each Windows computer keeps the list it was installed with. On, this list replaces every computer's own, even when empty. required: - enabled - apps - available properties: enabled: type: boolean description: Whether OpenBot's list is used. apps: $ref: '#/components/schemas/WindowsAllowlistApps' available: type: boolean readOnly: true description: Whether this OpenBot has Windows computers. False, the list is kept but reaches nothing. UpdateWindowsAllowlistRequest: type: object additionalProperties: false required: - enabled - apps properties: enabled: type: boolean description: True uses OpenBot's list, false hands each computer back its own. apps: $ref: '#/components/schemas/WindowsAllowlistApps' ConversationWork: type: object description: 'Something still owed an answer in a conversation: another Bot that was asked and has not answered (handoff), a routine running into it (routine), or the person''s own turn, which the server is carrying on with no page open (turn).' required: - kind - key - botId - botName - since properties: kind: type: string x-extensible-enum: - handoff - routine - turn description: 'What kind of work it is. turn holds from the turn''s first step the server runs until the Bot answers or the turn waits on the person, between one run and the next too, so a page opened in the middle reads the conversation as working. A kind the app doesn''t know is still work: the conversation is working. The server lists turn only for a caller that names the capability conversation-work-turn in its OpenBot-Capabilities header. Any other caller gets work without the turn, and busy true on the conversation in its list instead, because 1.2.1 drew any work that was not a handoff as a routine.' key: type: string description: Names this piece of work, so two asks of one Bot are two entries. botId: type: string description: The Bot that was asked, that the routine runs as, or that is answering the turn. botName: type: - string - 'null' description: That Bot's name when the work started. since: type: string format: date-time description: When it started. For a turn, when the server took it on. routineId: type: string description: The routine, for a routine. ConversationSummary: type: object description: A conversation as the caller's list shows it. required: - id - name - botIds - threadId - active - lastMessageAt - summary - opening - lastMessage - lastMessageBotId - createdAt - pinned - lastReadAt - canRename - task - work properties: id: type: string description: The conversation's id. name: type: string description: The name OpenBot gave it from its Bots. botIds: type: array description: The Bots in the conversation. items: type: string threadId: type: string description: The caller's own thread in the conversation, which its messages, approvals and reactions name. active: type: boolean description: False once every Bot in it is gone, so nothing more can be said. lastMessageAt: type: - string - 'null' format: date-time description: When something was last said in it. Null for a conversation nobody has used. summary: type: - string - 'null' description: 'What the conversation is called: the name its owner gave it, or the few words OpenBot wrote. Null until it has one.' opening: type: - string - 'null' description: The person's first words in it, which name it until it has a summary. lastMessage: type: - string - 'null' description: The last thing said in it. lastMessageBotId: type: - string - 'null' description: The Bot that said it, or null when a person did. createdAt: type: string format: date-time description: When it was started. pinned: type: boolean description: Whether the caller pinned it. lastReadAt: type: - string - 'null' format: date-time description: When the caller last had it open. Null for never. canRename: type: boolean description: Whether the caller started it, and so may rename it. task: type: boolean description: Whether it is a task's own conversation, which holds one piece of work. work: type: array description: What a Bot is still working on in it. items: $ref: '#/components/schemas/ConversationWork' busy: type: boolean description: Present and true while a Bot is working in it. ConversationPage: type: object required: - conversations - nextCursor properties: conversations: type: array items: $ref: '#/components/schemas/ConversationSummary' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateConversationRequest: type: object required: - botIds additionalProperties: false properties: botIds: type: array description: The Bots to talk to, each once. minItems: 1 maxItems: 20 uniqueItems: true items: type: string minLength: 1 maxLength: 200 pattern: \S group: type: boolean default: false description: 'True for a group conversation: two or more Bots answering in the order given, on one transcript.' Conversation: type: object description: A conversation between the caller and one or more Bots. required: - id - name - botIds - threadId - active - lastMessageAt properties: id: type: string description: The conversation's id. name: type: string description: The name OpenBot gave it from its Bots. botIds: type: array description: The Bots in the conversation. items: type: string threadId: type: string description: The caller's own thread in the conversation, which its messages, approvals and reactions name. active: type: boolean description: False once every Bot in it is gone, so nothing more can be said. lastMessageAt: type: - string - 'null' format: date-time description: When something was last said in it. Null for a conversation nobody has used. work: type: array description: What a Bot is still working on in the conversation. Present when the conversation is read by its id. items: $ref: '#/components/schemas/ConversationWork' ConversationResponse: type: object required: - conversation properties: conversation: $ref: '#/components/schemas/Conversation' RouteMessageRequest: type: object additionalProperties: false required: - text properties: text: type: string description: The message. minLength: 1 maxLength: 10000 pattern: \S botId: type: string minLength: 1 maxLength: 200 description: The Bot the person chose, to confirm they can use it. skillSlugs: type: array description: Skills the message asks for, by their commands. maxItems: 50 items: type: string pattern: ^[a-z0-9][a-z0-9-]*$ maxLength: 200 RoutedMessage: type: object required: - botId - name - reason - fallback - viaMention properties: botId: type: string description: The Bot to send the message to. name: type: string description: Its name. reason: type: string description: Why it was chosen, in a few words. fallback: type: boolean description: True when nothing decided and the default Bot was taken. viaMention: type: boolean description: True when the message named the Bot. undecided: type: - string - 'null' description: Why the choice fell back to the default Bot, when it did and a model was asked. Absent when the person chose the Bot. UpdateConversationRequest: type: object additionalProperties: false minProperties: 1 properties: title: type: - string - 'null' description: The new name, on one line and at most 80 characters as a person counts them. Null or blank lets OpenBot name it. maxLength: 2000 pinned: type: boolean description: Whether the caller has it pinned. UpdatedConversation: type: object description: What was changed, as it now stands. properties: summary: type: - string - 'null' description: What the conversation is called now, when its name was changed. Null when OpenBot has not named it yet. pinned: type: boolean description: Whether the caller has it pinned, when that was changed. ConversationActivity: type: object additionalProperties: false required: - text - botId - at properties: text: type: string description: What was said. minLength: 1 pattern: \S botId: type: - string - 'null' minLength: 1 maxLength: 200 pattern: \S description: The Bot that said it, or null when the person did. at: type: string format: date-time description: When it was said. ConversationBusy: type: object additionalProperties: false required: - busy properties: busy: type: boolean description: True when a Bot started answering, false when it stopped. ConversationMember: type: object description: A Bot or a person in a group conversation. required: - kind - id - name properties: kind: type: string enum: - bot - person id: type: string description: The Bot's id, or the person's. name: type: - string - 'null' description: The Bot's name, or the person's. Null for a person with none. email: type: string description: The person's email address, for a person. creator: type: boolean description: 'For a person: whether they started the group, and so may take others out of it.' ConversationMemberPage: type: object required: - members - nextCursor properties: members: type: array items: $ref: '#/components/schemas/ConversationMember' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. AddConversationMemberRequest: type: object required: - email additionalProperties: false properties: email: type: string description: The email address the person signs in to this OpenBot with. format: email minLength: 3 maxLength: 320 AddedConversationMember: type: object required: - personId properties: personId: type: string description: The person who is now in the conversation. Attachment: type: object description: A file held for a message, or sent with one. required: - id - name - mimeType - sizeBytes properties: id: type: string description: The attachment's id. name: type: string description: The file's name. mimeType: type: string description: The type OpenBot recognised it as. sizeBytes: type: integer minimum: 0 ConversationMessage: type: object description: 'One thing said in a conversation: a person''s message, or one Bot''s reply.' required: - id - role - personId - botId - text - status - createdAt properties: id: type: string description: The message's id. role: type: string enum: - person - bot - tool - system description: Who it is from. tool and system are what a Bot's run recorded beside its reply, in a conversation that is not a group. personId: type: - string - 'null' description: Who sent it, for a person's message; whose turn it answered, for a Bot's reply. botId: type: - string - 'null' description: The Bot that replied. Null for a person's message. text: type: string description: What was said. Empty while another person's Bot is still writing it. status: type: string x-extensible-enum: - queued - running - waiting - completed - failed description: Where a Bot's reply stands. A person's message is completed. createdAt: type: - string - 'null' format: date-time description: When it was said. Null where the time was not kept. reason: type: string description: Why a waiting Bot is waiting, in words for the person reading the conversation. declined: type: boolean description: True on a failed Bot reply in a group that the person whose turn it answered chose not to share. It was a choice, not a fault, and nothing was sent. text says whose choice it was. answeredBy: type: string description: 'For an answer passed on from another Bot: which Bot answered.' consent: type: object description: A Team Bot asking the person whose turn it was to use their own account. required: - botId - serverId properties: botId: type: string serverId: type: string toolCalls: type: integer minimum: 0 description: How many tools the Bot called in this message, when it called any. files: type: array maxItems: 20 description: In a group conversation, the files a Bot sent from its computer with this reply, in the order it sent them. Each is an attachment of the conversation, read at its attachment address by anyone in it. items: $ref: '#/components/schemas/Attachment' ConversationMessagePage: type: object required: - messages - nextCursor properties: messages: type: array items: $ref: '#/components/schemas/ConversationMessage' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. SendConversationMessageRequest: type: object required: - id - text additionalProperties: false properties: id: type: string description: The caller's own id for the message, any string, so a retry in the same conversation is the same message. The conversation's messages list it under this id. minLength: 1 maxLength: 160 text: type: string description: The message. minLength: 1 maxLength: 16000 pattern: \S botId: type: - string - 'null' minLength: 1 maxLength: 200 description: The one Bot to answer. Needed in a conversation that is not a group; in a group, leave it out for every Bot or the ones the message names. SentConversationMessage: type: object required: - queued properties: id: type: string description: The message's id. queued: type: boolean description: True when the message is waiting for its answer. False when the same message was already accepted. RefusedTurnMessage: type: object description: The message a refused turn was for. required: - id - text properties: id: type: - string - 'null' description: The message's id, as the app that sent it named it. Null for what a routine or a task asked. text: type: string description: What it said. RefusedTurn: type: object description: 'One of the caller''s turns that was refused before it ran, so nothing of it is in the conversation''s thread: what it was for, and why.' required: - id - botId - threadId - afterMessageId - message - initiator - code - detail - model - createdAt properties: id: type: string description: The refused turn's id. Opaque. botId: type: string description: The Bot the turn was for. threadId: type: string description: The thread the turn would have run in. afterMessageId: type: - string - 'null' description: 'The id of the thread''s message the turn came after, as the app that sent it held the thread. Null where nothing says (a routine''s or a task''s turn, or the first turn of a thread): draw it after the thread''s messages.' message: oneOf: - $ref: '#/components/schemas/RefusedTurnMessage' - type: 'null' description: 'What the turn was for: the person''s message, or what a routine or a task asked. Null when nothing was said.' initiator: type: string x-extensible-enum: - person - routine - task description: 'Who started the turn: the person (person), a routine, check-in or goal (routine), or a task a Bot handed the work to (task).' code: type: string x-extensible-enum: - MODEL_NOT_ALLOWED - CAPABILITY_REQUIRED - PLAN_REQUIRED - AI_CONNECTION_STOPPED - BOT_ENGINE_UNAVAILABLE description: Why it was refused, as the refusal's problem code. detail: type: string description: The refusal, in the words the person was told. model: type: - string - 'null' description: The model it was refused on, as provider/model, for MODEL_NOT_ALLOWED. Null otherwise. createdAt: type: string format: date-time description: When it was refused. RefusedTurnPage: type: object required: - refusedTurns - nextCursor properties: refusedTurns: type: array description: Newest first. items: $ref: '#/components/schemas/RefusedTurn' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. AttachmentUpload: type: object required: - file properties: file: type: string format: binary description: The file. uploadGroup: type: string description: Names the message being written, so the files of two windows are counted apart. maxLength: 200 VoiceCallRequest: type: object additionalProperties: false properties: sdp: type: string description: The caller's audio offer, where calls run over WebRTC. minLength: 1 maxLength: 65536 VoiceConnection: type: object description: 'How to connect a call. Over WebRTC: the answer to the caller''s offer, as sdp. Over a WebSocket: where to connect, the short-lived secret to connect with, and the session to open.' required: - transport properties: transport: type: string enum: - webrtc - websocket sdp: type: string description: The answer to the caller's offer. url: type: string description: The socket to open. clientSecret: type: string description: A secret that opens that socket once, for a few minutes. session: type: object description: The session to open on the socket, as the voice service reads it. additionalProperties: true VoiceTranscriptEntry: type: object additionalProperties: false required: - id - role - text properties: id: type: string minLength: 1 maxLength: 256 pattern: \S role: type: string enum: - user - assistant description: The person, or the Bot. text: type: string minLength: 1 maxLength: 60000 pattern: \S VoiceSession: type: object description: A saved voice call. required: - id - conversationId - anchorMessageId - startedAt - endedAt - transcript - durationSeconds - summary - summaryStatus properties: id: type: string conversationId: type: string description: The conversation the call was in. anchorMessageId: type: - string - 'null' description: The message the call followed. startedAt: type: string format: date-time description: When the call started. endedAt: type: string format: date-time description: When it ended. transcript: type: array items: $ref: '#/components/schemas/VoiceTranscriptEntry' durationSeconds: type: integer minimum: 0 summary: type: - string - 'null' description: What the call was about, in a few lines. Null when it could not be written. summaryStatus: type: string enum: - ready - failed VoiceSessionPage: type: object required: - sessions - nextCursor properties: sessions: type: array items: $ref: '#/components/schemas/VoiceSession' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. VoiceSessionInput: type: object additionalProperties: false required: - id - anchorMessageId - startedAt - endedAt - transcript properties: id: type: string description: The caller's own id for the call. minLength: 1 maxLength: 256 pattern: \S anchorMessageId: type: - string - 'null' minLength: 1 maxLength: 256 pattern: \S description: The message the call followed, so it is shown after it. Null at the start of a conversation. startedAt: type: string format: date-time description: When the call started. endedAt: type: string format: date-time description: 'When it ended: after it started, within a day.' transcript: type: array minItems: 1 maxItems: 300 description: What was said, in order, at most 60,000 characters in all. items: $ref: '#/components/schemas/VoiceTranscriptEntry' VoiceSessionResponse: type: object required: - session properties: session: $ref: '#/components/schemas/VoiceSession' notice: type: string description: Present when the call is saved but its summary could not be written yet, because too many are being written. Says so, in words for the person. Saving the same call again later writes it. VoiceConfiguration: type: object required: - transport properties: transport: type: string enum: - webrtc - websocket description: How a call connects. ConversationThread: type: object required: - threadId properties: threadId: type: string description: The new thread's id. liveThreadId: type: string description: The id that live updates about this thread carry. Compare an incoming update with this one, and use threadId everywhere else. It is threadId itself in the organization default. Left out by a server that names threads one way only, where it is threadId. ConversationThreadStatus: type: object required: - threadId - known properties: threadId: type: string known: type: boolean description: Whether the thread still holds the caller's conversation. liveThreadId: type: string description: The id that live updates about this thread carry. Compare an incoming update with this one, and use threadId everywhere else. It is threadId itself in the organization default. Left out by a server that names threads one way only, where it is threadId. TaskStatus: type: string x-extensible-enum: - needs_input - working - resolved - failed - ready_for_review description: 'Where a task stands: waiting on the person, being worked on, marked done, failed, or finished and ready to read.' TaskSteer: type: object description: What the person told a task directly in its conversation, as its card says it in the conversation that started the task. required: - text - at properties: text: type: string description: The person's words, on one line and cut short when they run long. at: type: string format: date-time description: When they said it. Task: type: object description: A piece of work a Bot does for a person in a conversation of its own. required: - id - botId - conversationId - threadId - title - why - origin - suggestionId - sourceApp - sourceLink - originConversationId - status - failure - failedAt - next - resolvedAt - createdAt - updatedAt properties: id: type: string description: The task's id. botId: type: string description: The Bot doing it. agent: type: - object - 'null' description: The agent doing the work, when the Bot handed it to one of the agents it may use. Null for a task the Bot does itself, which is every task before agents were a list. Absent from a server that does not name it. additionalProperties: false required: - id - name properties: id: type: string description: The agent's id. name: type: string description: What the agent is called. An agent private to somebody other than the caller is named Private agent. conversationId: type: string description: The task's own conversation, where the person reads it and replies. threadId: type: - string - 'null' description: That conversation's thread. Null once it is gone. title: type: string description: What the task is. why: type: - string - 'null' description: Why it was raised. origin: type: string enum: - check_in - delegated description: Whether the person started it from a check-in, or a Bot was asked to do it. suggestionId: type: - string - 'null' description: The check-in item it was started from. sourceApp: type: - string - 'null' description: The app the item came from. sourceLink: type: - string - 'null' description: Where the item is in that app. originConversationId: type: - string - 'null' description: The conversation a delegated task was asked for in, where its result is said. status: $ref: '#/components/schemas/TaskStatus' failure: type: - string - 'null' description: Why its turn could not finish, while it is failed. failedAt: type: - string - 'null' format: date-time description: When it failed. stoppedAt: type: - string - 'null' format: date-time description: When the person stopped its run. Its status is failed while this is set. Null or absent otherwise, and once it carries on. canTryAgain: type: boolean description: Whether trying a failed task again could change how it ends. False when it couldn't finish for a reason asking again gets the same answer to, such as a Bot it asked that isn't shared with the person, or this Bot no longer being shared with them. Absent from a server that does not say, which reads as true. workingSince: type: - string - 'null' format: date-time description: When the work it is doing now began. Null or absent unless it is working. tryingAgainAt: type: - string - 'null' format: date-time description: When the task's turn will next be tried, while it waits to try again after a failure that passes (a rate limit, a service that did not answer). Null or absent when it is not waiting to try again. lastActivityAt: type: string format: date-time description: When it last did something, a step of its work or a line said in its conversation. Absent from a server that does not record it. next: type: - string - 'null' description: One line on what comes next. resolvedAt: type: - string - 'null' format: date-time description: When the person marked it done. steer: oneOf: - $ref: '#/components/schemas/TaskSteer' - type: 'null' description: The latest thing the person told the task directly in its conversation, when the task had not asked them for anything. Null or absent when they have not. createdAt: type: string format: date-time description: When it was started. updatedAt: type: string format: date-time description: When it last changed. TaskPage: type: object required: - tasks - nextCursor properties: tasks: type: array items: $ref: '#/components/schemas/Task' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. TaskResponse: type: object required: - task properties: task: $ref: '#/components/schemas/Task' TaskTurn: type: object description: One finished turn of a task's work, answering one thing it was asked in its conversation. required: - askId - startedAt - endedAt - workedSeconds - runs - model properties: askId: type: string description: The id of the message the turn answered, as the conversation's history names it. startedAt: type: string format: date-time description: When its first run began. endedAt: type: string format: date-time description: When its last run ended. workedSeconds: type: integer minimum: 0 description: How long its runs took, added up. A wait on the person between two runs (an approval, a question) is not counted. runs: type: integer minimum: 1 description: How many runs it took. More than one when it stopped for the person and carried on after. model: type: - string - 'null' description: The model its last run used. Null when the Bot chooses its own model and did not name it. TaskTurnPage: type: object required: - turns - nextCursor properties: turns: type: array items: $ref: '#/components/schemas/TaskTurn' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. TranscriptionUpload: type: object required: - file properties: file: type: string format: binary description: 'The recording: WebM, MP4 or WAV audio.' Transcription: type: object required: - text properties: text: type: string description: What was said. AiConnectionProviderAnswer: type: string x-extensible-enum: - openai - anthropic - google - xai - trustedrouter - privatemode - openai-compatible description: 'The AI provider OpenBot''s Bots run on, as the server answers it. openai: OpenAI. anthropic: Anthropic. google: Google Gemini. xai: xAI. trustedrouter: TrustedRouter. privatemode: Privatemode. openai-compatible: any server that speaks OpenAI''s API, at an address given. The list can grow: a client shows a provider it doesn''t know by its id. A request still names one of AiConnectionProvider. A connection saved for a provider OpenBot no longer offers is still listed, under the id it was saved with, so it can be removed: it is never ready, its problem is provider-retired, and it is never accepted again.' AiConnectionLogin: type: string description: 'How OpenBot signs in to the provider. plan: the person''s Claude or ChatGPT plan (openai, anthropic). api-key: a key from the provider (openai, anthropic). endpoint: an address and, where it asks for one, a key (google, xai, trustedrouter, privatemode, openai-compatible). oauth: the person''s xAI sign-in (xai). A Google sign-in (google, oauth) saved before Gemini took an API key only is still listed, with the problem sign-in-retired, and is never accepted again.' enum: - plan - api-key - endpoint - oauth AiConnectionProblem: type: object description: Why an AI connection can't run now, in OpenBot's own words. required: - code - detail properties: code: type: string x-extensible-enum: - sign-in-ended - key-refused - unreachable - no-key - no-default - sign-in-retired - provider-retired description: 'sign-in-ended: the provider stopped renewing the sign-in, so it has to be signed in to again. key-refused: the provider refuses its key. unreachable: its address doesn''t answer. no-key: its key is no longer kept. no-default: several connections are connected and none is the default, so a run with no pick has nothing to use until one is made default. sign-in-retired: OpenBot no longer offers this provider''s sign-in (a Google sign-in for Gemini), so it can''t run, and signing in again isn''t offered. Saving a key on the same connection fixes it: its id stays, so every Bot that used it runs on the key with nothing else to change. provider-retired: OpenBot no longer offers the connection''s provider at all, so it can''t run and nothing on it fixes it. It is removed, and another AI connected in its place.' detail: type: string description: One sentence a person reads, saying what to do. ModelCatalogueConnection: type: object description: One AI connection's models, as a person picks from them. Never a key or an address. For a member reading the organization's connections, login is null and a problem's detail says an administrator has to fix it. required: - id - owner - provider - login - source - isDefault - ready - problem - default - models - listed properties: id: type: string description: The connection's id, as a pick names it (replaceModelChoice). owner: type: string x-extensible-enum: - personal - organization description: 'Whose connection it is. personal: the person''s own, which they fix themselves. organization: the organization''s, which an administrator fixes.' provider: $ref: '#/components/schemas/AiConnectionProviderAnswer' login: description: How OpenBot signs in to it. Null for a member reading the organization's. oneOf: - $ref: '#/components/schemas/AiConnectionLogin' - type: 'null' source: type: string x-extensible-enum: - openai - anthropic - google - xai - gateway - chatgpt - claude description: Who serves its models, as ModelCatalogue's source says it. What a Bot's default model is matched on. isDefault: type: boolean description: Whether a run with no pick uses it. ready: type: boolean description: Whether a run can use it now. problem: description: Why it can't run now. Null while ready. oneOf: - $ref: '#/components/schemas/AiConnectionProblem' - type: 'null' default: type: string description: The model a run on it uses when nobody picked one. Always one of models. models: type: array description: Newest first, narrowed to what an administrator allowed. items: $ref: '#/components/schemas/ModelOption' listed: type: boolean description: Whether its listing was read. UnverifiedModel: type: object description: The model a person chose for this conversation, set aside because it hasn't been checked to work with the client this Bot's harness ships. Runs answer on the default model until it has been. Absent when the choice is in use, or set aside for another reason. required: - model - label properties: model: type: string description: The chosen model's id. label: type: string description: Its name, as a model picker shows it. StoppedAiConnection: type: object description: 'Why a conversation''s next run can''t start: the connection it would use can''t run now, or there is no default to use.' required: - connection - problem properties: connection: type: - string - 'null' description: The connection's id. Null when there is no default connection to name (no-default). problem: $ref: '#/components/schemas/AiConnectionProblem' AiConnectionSaved: type: object description: A connection with a key still kept in the vault, which can be used again without pasting the key (useSavedKey). Never the key. required: - provider - login - endpointHost properties: provider: $ref: '#/components/schemas/AiConnectionProviderAnswer' login: $ref: '#/components/schemas/AiConnectionLogin' endpointHost: type: - string - 'null' description: The host of its address, for an endpoint. Null for an API key. AiConnectionSharedSignIn: type: object description: The person whose own sign-in the organization's AI shares. Never a token. required: - personId - name - ready properties: personId: type: string description: The person's id. name: type: string description: Their name as OpenBot shows it, or their email address where they have none. ready: type: boolean description: Whether their sign-in is still kept and can run a Bot. False once they removed it or the provider stopped renewing it. AiConnection: type: object description: 'How OpenBot reaches its AI provider: who, how it signs in, and whether a run can use it now. Never a key.' required: - provider - login - model - endpointHost - keySet - ready - source - editable - saved - changedAt properties: provider: description: The provider. Null while none is chosen yet. oneOf: - $ref: '#/components/schemas/AiConnectionProviderAnswer' - type: 'null' login: description: How OpenBot signs in to it. Null while none is chosen yet. oneOf: - $ref: '#/components/schemas/AiConnectionLogin' - type: 'null' model: type: - string - 'null' description: The model named for an endpoint or a sign-in. Null for an API key or a plan, where the model catalogue offers the provider's models. endpointHost: type: - string - 'null' description: The host of the endpoint's address, never its path, query or anything that signs in. Null unless the login is endpoint. keySet: type: boolean description: Whether a live key for this connection is kept in the vault. ready: type: boolean description: 'Whether a run can use it now: its key is kept, its sign-in can be read, or its plan''s engine answers.' source: type: string enum: - stored - environment - none description: 'stored: set here, or carried over from how OpenBot was set up. environment: set by whoever runs OpenBot, in its configuration. none: nothing set yet.' editable: type: boolean description: 'Whether an administrator can change it here. False where whoever runs OpenBot sets the provider: its key is changed in the vault.' saved: type: array description: The connections with a key still kept in the vault, so a switch to one of them needs no key pasted. items: $ref: '#/components/schemas/AiConnectionSaved' changedAt: type: - string - 'null' format: date-time description: When it was last changed. Null if never. sharedSignIn: description: Whose plan or provider sign-in the organization's AI runs on, when an administrator shared their own on OpenBot Cloud. Null for a key, an address, a sign-in held on this computer, or none. A server older than this field leaves it out. oneOf: - $ref: '#/components/schemas/AiConnectionSharedSignIn' - type: 'null' AiConnectionProvider: type: string description: 'The AI provider OpenBot''s Bots run on. openai: OpenAI. anthropic: Anthropic. google: Google Gemini. xai: xAI. trustedrouter: TrustedRouter. privatemode: Privatemode. openai-compatible: any server that speaks OpenAI''s API, at an address given.' enum: - openai - anthropic - google - xai - trustedrouter - privatemode - openai-compatible AiConnectionInput: type: object additionalProperties: false description: 'The connection to switch to. openai and anthropic take plan or api-key; xai takes endpoint or oauth; google, trustedrouter, privatemode and openai-compatible take endpoint. Any other pair is refused: google with oauth is refused with the words of the problem sign-in-retired.' required: - provider - login properties: provider: $ref: '#/components/schemas/AiConnectionProvider' login: $ref: '#/components/schemas/AiConnectionLogin' apiKey: type: string minLength: 1 maxLength: 65536 writeOnly: true description: 'The provider''s key. Required for api-key unless useSavedKey; optional for an endpoint that asks for none. Encrypted into the vault before anything else, and never sent back: no answer includes it, now or later.' useSavedKey: type: boolean description: Use the key already kept for this provider (and, for an endpoint, this address) instead of sending one. baseUrl: type: string format: uri maxLength: 2048 pattern: ^https?://[^@/?#]+([/?#].*)?$ description: The endpoint's address, http or https, with nothing in it that signs in. Required for endpoint. model: type: string minLength: 1 maxLength: 500 pattern: \S description: The model to run on. Required for endpoint and oauth. Trimmed. OrganizationAiSummary: type: object description: 'Whether the organization has an AI for everyone in it, as a member may know it: never its key, its address or who set it.' required: - ready - provider properties: ready: type: boolean description: Whether the organization's AI can run a Bot now. provider: description: The organization's provider. Null while it has none. oneOf: - $ref: '#/components/schemas/AiConnectionProviderAnswer' - type: 'null' PersonalAiConnection: type: object description: A person's own AI connection, and which AI their runs use. Never a key. uses, required and available are the server's verdicts; a client renders them and never recomputes them. required: - connection - organization - uses - required - available - signIns properties: connection: $ref: '#/components/schemas/AiConnection' organization: $ref: '#/components/schemas/OrganizationAiSummary' uses: type: string x-extensible-enum: - personal - organization - none description: 'The AI the person''s next run uses. personal: their own. organization: the organization''s, which they have none of their own to put ahead of. none: neither, so Bots can''t run for them yet.' required: type: boolean description: 'Whether the person has to have an AI (their own or the organization''s) before they use OpenBot. True on OpenBot Cloud, which brings no AI of its own: while uses is none, the apps send them to connect their own, and the server runs no Bot for them.' available: type: boolean description: Whether the person can set an AI connection of their own here. False where the organization's AI is the only one. signIns: type: array description: 'The providers the server can sign the person in to itself (startPersonalAiSignIn): a ChatGPT plan (openai), a Claude plan (anthropic), and an xAI sign-in, each where this server is set up for it. Each still connects with a key or an address too, and every provider not listed connects only that way.' items: $ref: '#/components/schemas/AiConnectionProviderAnswer' AiSignInInput: type: object additionalProperties: false required: - provider properties: provider: $ref: '#/components/schemas/AiConnectionProvider' method: type: string enum: - browser - device description: 'How to sign in, for a provider that offers more than one way. openai: browser (the default) approves in the browser and finishes with the address ChatGPT sends the browser to; device shows a code to enter at ChatGPT instead, which works only once the person has turned on device code sign-in in ChatGPT''s security settings. Every other provider has one way and ignores it.' loopbackPort: type: integer minimum: 1024 maximum: 65535 description: 'anthropic only: the port OpenBot Desktop listens on, on the person''s own computer, for Claude''s redirect. Claude then sends the browser to http://localhost:{loopbackPort}/callback instead of a page that shows a code, and the app sends the code and state that arrive there (code#state) with finishPersonalAiSignIn, so the person copies nothing. Absent, Claude''s page shows the code to copy. Every other provider ignores it.' AiSignIn: type: object description: A sign-in to an AI provider, waiting for the person to approve it in their browser. required: - id - provider - url - userCode - expiresAt - interval - finish properties: id: type: string maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: The sign-in's id, for reading where it stands. provider: $ref: '#/components/schemas/AiConnectionProviderAnswer' url: type: string format: uri description: The provider's page where the person approves the sign-in. userCode: type: - string - 'null' description: The code the provider's page shows, for the person to check. Null when it shows none. expiresAt: type: string format: date-time description: When the sign-in can no longer be approved. interval: type: integer minimum: 1 maximum: 600 description: How many seconds to wait between reads. finish: type: string x-extensible-enum: - poll - code description: 'How the sign-in finishes. poll: read it (getPersonalAiSignIn) every interval seconds until it is approved, failed or expired. code: once the person approves it, the provider shows them a code (Claude) or sends their browser to an address that doesn''t load (ChatGPT), and they send that code or address back with finishPersonalAiSignIn.' AiSignInStatus: type: object description: Where a sign-in to an AI provider stands. Never a key. required: - id - provider - status - detail - interval properties: id: type: string maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ provider: $ref: '#/components/schemas/AiConnectionProviderAnswer' status: type: string x-extensible-enum: - pending - approved - failed - expired description: 'pending: not approved yet. approved: what the provider handed OpenBot (a key, or a sign-in the server renews) is kept for the person. failed or expired: over; start another.' detail: type: - string - 'null' description: Why it failed or expired, in OpenBot's own words. Null otherwise. interval: type: integer minimum: 1 maximum: 600 description: How many seconds to wait before reading it again, while it is pending. AiSignInCodeInput: type: object additionalProperties: false required: - code properties: code: type: string minLength: 1 maxLength: 4096 pattern: \S writeOnly: true description: 'What the person copied once they approved the sign-in: the code the provider''s page showed (Claude), or the whole address the provider sent their browser to (ChatGPT). Trimmed. Never sent back.' AiConnectionEntry: type: object description: One AI connection in a list. Never a key. required: - id - provider - login - model - endpointHost - isDefault - ready - problem - connectedAt properties: id: type: string description: 'The connection''s id. Opaque; clients never read anything into it. Unique within its list only: a person''s own connection and the organization''s may share an id, so a client says whose it means.' provider: $ref: '#/components/schemas/AiConnectionProviderAnswer' login: $ref: '#/components/schemas/AiConnectionLogin' model: type: - string - 'null' description: The model named for an endpoint or a sign-in. Null for an API key or a plan. endpointHost: type: - string - 'null' description: The host of the endpoint's address, never its path or anything that signs in. Null unless the login is endpoint. isDefault: type: boolean description: Whether a run with no pick uses it. ready: type: boolean description: Whether a run can use it now. problem: description: Why it can't run now. Null while ready. oneOf: - $ref: '#/components/schemas/AiConnectionProblem' - type: 'null' connectedAt: type: string format: date-time description: When it was connected or last changed. sharedSignIn: description: Whose plan or provider sign-in it shares, for an organization's connection on OpenBot Cloud. Null otherwise. oneOf: - $ref: '#/components/schemas/AiConnectionSharedSignIn' - type: 'null' AiConnectionPage: type: object description: One page of AI connections, and the providers the server signs in to itself. required: - connections - nextCursor - signIns properties: connections: type: array description: Oldest first. items: $ref: '#/components/schemas/AiConnectionEntry' nextCursor: type: - string - 'null' description: Where the next page starts. Null ends the list. signIns: type: array description: The providers the server can sign in to itself for whoever owns this list (startAiSignIn for the organization, startPersonalAiSignIn for a person). Every provider not listed connects with a key or an address. items: type: string enum: - openai - anthropic - google - xai - trustedrouter - openai-compatible AppSource: type: string enum: - catalogue - address - directory description: 'How the app was added: from OpenBot''s own catalogue, as a server at an address somebody typed, or from the wider app directory.' AppConnectsWith: type: string enum: - sign-in - key - nothing - unreadable description: 'How a person connects an app from the directory: by signing in at the app, by typing a key, or with nothing at all. unreadable when OpenBot can''t tell from what it recorded when the app was added.' AppAccountMode: type: string enum: - personal - shared description: Each person's own account, or one account OpenBot holds for everybody in the organization. AppOwnerGrants: type: string enum: - any - admin description: 'Who may give the app to a Bot: any Bot''s owner, for their own Bot, or only an administrator. Unless an administrator chose, any Bot''s owner; where the organization''s apps are locked down, an administrator for any app that doesn''t run on each person''s own account.' AppTool: type: object description: One action an app offers. required: - name - ref - description - effect - destructive - grantedTo properties: name: type: string description: The action's name, as the app lists it. ref: type: string description: The app's id and the action's name, joined by a slash. What a Bot is given. description: type: string description: What the app says the action does. effect: type: string enum: - read - write description: Whether the action only reads or may change something. Anything not known to be a read is a write. destructive: type: boolean description: Whether the app warns that the action deletes or destroys something. False means the app made no such claim. grantedTo: type: array description: The ids of the Bots that may use the action. items: type: string AppWithdrawnGrant: type: object description: An action Bots were given that the app no longer offers. No Bot can use it while the app doesn't offer it, and it comes back if the app offers it again. required: - ref - name - grantedTo properties: ref: type: string description: The app's id and the action's name, joined by a slash. name: type: string description: The action's name. grantedTo: type: array description: The ids of the Bots that were given it. items: type: string App: type: object description: 'An app the organization has added for its Bots, with the actions it offers. No secret is ever part of an app: hasCredential says whether a key or client is kept for it.' required: - id - title - source - directoryEntryId - address - logo - vendor - summary - docsUrl - connectsWith - hasCredential - dynamicClient - signIn - entraScope - accountMode - sharedAccountConnected - sharedOnly - ownerGrants - ownerGrantsChosen - everyBot - addedBy - toolsRefreshedAt - lastError - skippedTools - tools - withdrawn properties: id: type: string description: 'The app''s id: a catalogue entry''s key, the id a server was given when it was added by its address, or the id an app from the directory was given when it was added.' title: type: string description: The app's name, as people see it. source: $ref: '#/components/schemas/AppSource' directoryEntryId: type: - string - 'null' description: The listAppDirectory entry the app was added from, or null for a server added by its address. address: type: - string - 'null' description: The server's address, or null for an app from the directory, which OpenBot reaches through the directory's own service. logo: type: - string - 'null' description: The address of the app's logo, where it has one. vendor: type: - string - 'null' description: Who makes the app, or the host a server was added at. Null for an app from the directory. summary: type: string description: What the app is for, from the catalogue. Empty for any other app. docsUrl: type: string description: The vendor's documentation, from the catalogue. Empty for any other app. connectsWith: oneOf: - $ref: '#/components/schemas/AppConnectsWith' - type: 'null' description: How a person connects an app from the directory, or null for any other app. hasCredential: type: boolean description: Whether a key or an OAuth client is kept for the app. dynamicClient: type: boolean description: Whether OpenBot registers its own OAuth client with the app's vendor, so an administrator has none to set (setAppOAuthClient). signIn: type: boolean description: Whether a server added by its address signs each person in, so each person connects their own account and every action runs as them. entraScope: type: - string - 'null' description: The Microsoft Entra ID scope a server is reached with as the signed-in person, or null when it is reached with its own key. accountMode: oneOf: - $ref: '#/components/schemas/AppAccountMode' - type: 'null' description: 'Whose account an app from the directory acts in: each person''s own, or one account OpenBot holds for everybody in the organization. Null for an app with no account at all, and for any other app.' sharedAccountConnected: type: boolean description: Whether a shared app's one account is connected. False for any other app. sharedOnly: type: boolean description: Whether the app can only hold one shared account and never a person's own, because it connects with this OpenBot's own client. ownerGrants: $ref: '#/components/schemas/AppOwnerGrants' ownerGrantsChosen: oneOf: - $ref: '#/components/schemas/AppOwnerGrants' - type: 'null' description: What an administrator chose for ownerGrants, or null where the default applies. everyBot: type: boolean description: Whether an administrator gave the app to every Bot in the organization, Bots made later included. Every Bot can use all of its actions, with the same approvals as any other Bot's actions. Where each person connects their own account, a Bot uses the account of whoever is asking, never its owner's. addedBy: type: - string - 'null' description: The email address of whoever added the app, where OpenBot knows it. toolsRefreshedAt: type: - string - 'null' format: date-time description: When OpenBot last recorded what the app offers. lastError: type: - string - 'null' description: Why OpenBot couldn't last ask the app what it offers, or null. skippedTools: type: array description: Actions the app listed that a model can't be offered, because of their names. The rest were recorded. items: type: string tools: type: array description: The actions the app offers, by name. items: $ref: '#/components/schemas/AppTool' withdrawn: type: array description: Actions Bots were given that the app no longer offers. Empty for a healthy app. items: $ref: '#/components/schemas/AppWithdrawnGrant' AppPage: type: object required: - apps - nextCursor properties: apps: type: array description: By title, ignoring case, then by id. items: $ref: '#/components/schemas/App' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. AddAppFromDirectory: type: object additionalProperties: false description: An entry of listAppDirectory. instanceHost and credentialId are for a catalogue entry only. required: - from - directoryEntryId properties: from: type: string const: directory directoryEntryId: type: string minLength: 1 maxLength: 200 pattern: ^(catalogue|directory):\S description: The entry's id, as listAppDirectory answers it. connectsWith: type: string enum: - key description: Add an app from the wider directory with its key, for an entry listAppDirectory offers as a sign-in in place of its key (keyVersion). Absent adds the entry as listed. Refused for a catalogue entry and for an app that has no key to connect with. instanceHost: type: string minLength: 1 maxLength: 253 pattern: \S description: The host of the organization's own instance, for a vendor that gives every customer one (perInstance). Checked against the hosts that vendor uses. credentialId: type: string minLength: 1 maxLength: 200 pattern: \S description: The vault credential (createCredential) the app is reached with, for a catalogue entry reached with a key. AddAppByAddress: type: object additionalProperties: false description: A server added by its address. required: - from - title - url properties: from: type: string const: address title: type: string minLength: 1 maxLength: 60 pattern: \S description: What people will call the server, 1 to 60 characters once trimmed. Its id is made from it. url: type: string minLength: 1 maxLength: 2048 pattern: \S description: The server's public HTTPS address, with no key in it. Trimmed. An address on a private network, or over plain HTTP, is refused. token: type: string minLength: 1 maxLength: 4096 pattern: \S description: The key the server is reached with, kept in the vault and never answered. Only an administrator may give one. tokenHeader: type: string minLength: 1 maxLength: 100 pattern: ^[!#$%&'*+.^_`|~0-9A-Za-z-]+$ description: 'The header the key is sent in, for a server that reads its key from a header of its own, such as x-api-key, rather than Authorization. The key is sent in it as given, with no Bearer in front. Only with token. A header HTTP itself uses (Host, Content-Length, Cookie, Connection, Transfer-Encoding and the like) is refused. Absent, the key is sent as Authorization: Bearer.' CreateAppRequest: description: An entry of the app directory, or a server by its address. oneOf: - $ref: '#/components/schemas/AddAppFromDirectory' - $ref: '#/components/schemas/AddAppByAddress' discriminator: propertyName: from mapping: directory: '#/components/schemas/AddAppFromDirectory' address: '#/components/schemas/AddAppByAddress' AppProblem: description: 'A refusal about an app: the common problem, plus the app it names when the app asked for is already here (APP_ALREADY_ADDED), so a client can open it.' allOf: - $ref: '#/components/schemas/Problem' - type: object properties: appId: type: string minLength: 1 description: The app already here. ReplaceAppRequest: type: object additionalProperties: false required: - title - url properties: title: type: string minLength: 1 maxLength: 200 pattern: \S description: What people will call the server. Trimmed. url: type: string minLength: 1 maxLength: 2048 pattern: \S description: The server's HTTPS address, with no key in it. Trimmed. An address on a private network, or over plain HTTP, is refused. credentialId: type: string minLength: 1 maxLength: 200 pattern: \S description: The vault credential (createCredential) the server is reached with. entraScope: type: - string - 'null' minLength: 1 maxLength: 256 pattern: ^\S+$ description: One Microsoft Entra ID scope, such as api://hr-api/.default, to reach the server with as the signed-in person. It needs Microsoft sign-in set up, and takes no credentialId. Null reaches the server with its credential again; absent keeps what the server has. tokenHeader: type: - string - 'null' minLength: 1 maxLength: 100 pattern: ^[!#$%&'*+.^_`|~0-9A-Za-z-]+$ description: 'The header the key is sent in, for a server that reads its key from a header of its own, such as x-api-key, rather than Authorization. The key is sent in it as given, with no Bearer in front. A header HTTP itself uses (Host, Content-Length, Cookie, Connection, Transfer-Encoding and the like) is refused. Null sends the key as Authorization: Bearer again; absent keeps what the server has.' UpdateAppRequest: type: object additionalProperties: false minProperties: 1 description: The changes to make. At least one. properties: ownerGrants: oneOf: - $ref: '#/components/schemas/AppOwnerGrants' - type: 'null' description: Who may give the app to a Bot, or null for the default (AppOwnerGrants). everyBot: type: boolean description: 'True gives the app to every Bot in the organization, and to every Bot made later. False takes back what giving it to every Bot gave. What a Bot was given any other way stays. Routines and OpenBot settings are every Bot''s already: true changes nothing, and false is refused.' AppAccountModeRequest: type: object additionalProperties: false required: - mode properties: mode: $ref: '#/components/schemas/AppAccountMode' approvals: type: object maxProperties: 500 description: 'For switching to shared: the approval each Bot gets, by the Bot''s id. A Bot not named gets its default.' propertyNames: minLength: 1 maxLength: 200 pattern: \S additionalProperties: $ref: '#/components/schemas/SharedAccountApproval' validateOnly: type: boolean default: false description: Change nothing, and answer what the switch would do. AppAccountModeChange: type: object required: - mode - applied - accountsEnded - bots properties: mode: $ref: '#/components/schemas/AppAccountMode' applied: type: boolean description: Whether the switch was made. False for validateOnly. accountsEnded: type: object description: The accounts the switch ended, or would end. required: - holder - count properties: holder: type: string enum: - person - deployment description: 'Whose accounts they are: people''s own (person), or the one OpenBot holds for everybody in the organization (deployment).' count: type: integer minimum: 0 bots: type: array description: 'For switching to shared: each Bot that uses the app, and the approval it gets, or would get. Empty for switching to personal.' items: type: object required: - botId - approval properties: botId: type: string approval: $ref: '#/components/schemas/SharedAccountApproval' AppOAuthClientRequest: type: object additionalProperties: false required: - clientId - clientSecret properties: clientId: type: string minLength: 1 maxLength: 500 pattern: \S description: The client's id, as the vendor issued it. Trimmed. clientSecret: type: string minLength: 1 maxLength: 4096 pattern: \S writeOnly: true description: The client's secret. Kept in the vault and never answered. Trimmed. AppDirectorySource: type: string enum: - catalogue - directory description: OpenBot's own catalogue, or the wider app directory. CatalogueAppEntry: type: object description: An app in OpenBot's own catalogue. required: - id - source - title - summary - appId - vendor - docsUrl - auth - perInstance - oneStep properties: id: type: string description: The entry's id, for createApp. source: type: string const: catalogue title: type: string summary: type: string description: What the app is for. appId: type: - string - 'null' description: The app it was added as, or null. vendor: type: string description: Who makes the app. docsUrl: type: string description: The vendor's documentation. auth: type: string enum: - none - deployment-bearer - user-oauth - builtin description: 'How the app is reached: needing nothing, with a key an administrator gives for everybody, as each person through their own sign-in, or inside OpenBot itself.' perInstance: type: boolean description: Whether the vendor gives every customer their own host (instanceHost). oneStep: type: boolean description: 'Whether connecting needs nothing typed first: no account at all, or a vendor OpenBot registers itself with.' DirectoryKeyVersion: type: object description: The same app connected with a key, for an app the directory offers as a sign-in in place of its key. Add it with createApp and connectsWith key. Absent for any other app. required: - appId - title - actionCount properties: appId: type: - string - 'null' description: The app the key version was added as, or null. title: type: string description: 'What the key version is called once added, so it reads apart from the sign-in beside it: the app''s own name followed by (key), as in PostHog (key).' actionCount: type: integer minimum: 0 description: How many actions the key version offers. DirectoryAppEntry: type: object description: An app from the wider app directory. required: - id - source - title - summary - appId - logo - categories - actionCount - classifiedCount - permissionCount - scopedActionCount - connectsWith properties: id: type: string description: The entry's id, for createApp. source: type: string const: directory title: type: string summary: type: string description: What the directory says the app does. appId: type: - string - 'null' description: The app it was added as, or null. logo: type: - string - 'null' description: The address of the app's logo, where it has one. categories: type: array items: type: string actionCount: type: integer minimum: 0 description: How many actions the app offers. Adding it offers every one of them to Bots. classifiedCount: type: - integer - 'null' minimum: 0 description: How many of those actions say whether they only read. 0 means none do, so each is asked about like a change. Null means the directory doesn't say. permissionCount: type: - integer - 'null' minimum: 0 description: How many separate permissions the actions ask a person for. Null means the directory doesn't say. scopedActionCount: type: - integer - 'null' minimum: 0 description: How many actions ask for a permission at all. The rest work with any connection. Null means the directory doesn't say. connectsWith: type: string enum: - sign-in - key - nothing description: How a person connects the app once it is added. keyVersion: $ref: '#/components/schemas/DirectoryKeyVersion' AppDirectoryEntry: description: One app that can be added, by where it comes from. oneOf: - $ref: '#/components/schemas/CatalogueAppEntry' - $ref: '#/components/schemas/DirectoryAppEntry' discriminator: propertyName: source mapping: catalogue: '#/components/schemas/CatalogueAppEntry' directory: '#/components/schemas/DirectoryAppEntry' AppDirectoryPage: type: object required: - entries - nextCursor properties: entries: type: array description: 'The catalogue in its own order, then the wider directory: apps a person signs in to before apps that take a key (connectsWith key), each by title, ignoring case, and then by id.' items: $ref: '#/components/schemas/AppDirectoryEntry' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. total: type: integer minimum: 0 description: How many entries the whole list holds for this search and source, across every page, so a screen can say how many there are while it reads only the first page. AppSetup: type: object description: How apps are set up on this OpenBot. Never a key. required: - directoryAvailable - directoryProvider - redirectUri - authorizesPerAction - botsMayCallBack properties: directoryAvailable: type: boolean description: Whether apps from the wider directory can be listed and added here. directoryProvider: type: - string - 'null' enum: - composio - arcade - null description: The service the app directory comes from. The screens read it to open their own page for the directory and to name the setting an administrator sets to turn it on. Null when this OpenBot names none. redirectUri: type: - string - 'null' description: The address to register with a vendor for an OAuth client (setAppOAuthClient), exactly as OpenBot sends it. Null when this OpenBot has no public address, so nobody can sign in to an app through it. authorizesPerAction: type: boolean description: Whether a connection is approved one action at a time, so a person approves each action the first time a Bot uses it. botsMayCallBack: type: boolean description: Whether a Bot with no key of its own can still use an app's actions. Without it, only a Bot that holds its own key can. ShortenedToolNames: type: object required: - names properties: names: type: object description: Each shortened name, with the whole name it stands for. propertyNames: maxLength: 64 additionalProperties: type: string ConnectionCheckState: type: object description: What the last check of a connection found, and whether it can be checked now. required: - verified - verifiedAt - checkedAction - checkable properties: verified: type: boolean description: Whether the last check made a real call with the connection, and it worked. verifiedAt: type: - string - 'null' format: date-time description: When verified was last earned. Null when it never was. checkedAction: type: - string - 'null' description: The action the last check called. Null when nothing was tried, because the app offered nothing safe to call. checkable: type: boolean description: Whether the app offers a safe action to check the connection with now, as recheckConnection does. Connection: type: object description: 'A person''s connection to an app: their own account there, which their Bots act as. Never the credential behind it.' required: - appId - connectedAt - revoked - scope - check - canAddAccount properties: appId: type: string description: The app, as listApps answers it. connectedAt: type: string format: date-time description: When the person first connected it. revoked: type: boolean description: Whether the access behind it was withdrawn. A revoked connection can't be used until the person connects again. scope: type: - string - 'null' description: What the app granted, in its own words, where OpenBot keeps the sign-in itself. Null where the app keeps it. check: description: The last check of the connection with the app. Null where OpenBot keeps the sign-in itself, which leaves nothing to check. oneOf: - $ref: '#/components/schemas/ConnectionCheckState' - type: 'null' canAddAccount: type: boolean description: Whether the person can connect a second account at this app beside this one, with connectApp's anotherAccount. ConnectionPage: type: object required: - connections - nextCursor properties: connections: type: array description: The oldest connection first, then by app id. items: $ref: '#/components/schemas/Connection' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. ConnectionReturnTo: type: string enum: - connections - apps - desktop default: connections description: 'Which of OpenBot''s own pages the app sends the person back to: connections, the person''s own page for the app; apps, the app''s page for administrators; desktop, back to OpenBot Desktop. Never an address.' ConnectionValues: type: object description: What the person typed into the boxes a form answer asked for, by each box's name. Sent once to the app and never logged or kept here. maxProperties: 50 additionalProperties: type: string maxLength: 16384 ConnectAppRequest: type: object additionalProperties: false properties: returnTo: $ref: '#/components/schemas/ConnectionReturnTo' anotherAccount: type: boolean default: false description: Connect a second account at the app beside the one connected already, such as a work mailbox beside a personal one. Without it, connecting again asks for more permissions on the same account. values: $ref: '#/components/schemas/ConnectionValues' ConnectionConsent: type: object description: The app's own sign-in page, which sends the person back to OpenBot once they agree. required: - next - authorizationUrl properties: next: type: string const: consent authorizationUrl: type: string format: uri description: The address to open. Works once, for this person only. ConnectionField: type: object description: One box an app that takes a key asks for, as the app describes it. required: - name - label - help - required - secret - default properties: name: type: string description: The name to send it back under, in values. Not shown to the person. label: type: string description: The box's label. help: type: string description: What to put in it, written for the person filling it in. required: type: boolean secret: type: boolean description: Whether to hide what is typed, as for a password. default: type: - string - 'null' description: What the box starts with. Null for nothing. ConnectionKeyGuide: type: object description: Where the person gets the key an app asks for. required: - steps - url properties: steps: type: string description: What to do at the app, in a sentence or two. url: type: - string - 'null' format: uri description: The app's own page for making the key. Null where there is none. ConnectionForm: type: object description: The boxes an app that takes a key asks for. Send what the person types back to the same operation as values. required: - next - fields - guide properties: next: type: string const: form fields: type: array items: $ref: '#/components/schemas/ConnectionField' guide: description: Where the person gets the key. Null where OpenBot has no guide for this app. oneOf: - $ref: '#/components/schemas/ConnectionKeyGuide' - type: 'null' ConnectionMade: type: object description: The account is connected, with nothing more for the person to do. required: - next - verified - checkedAction properties: next: type: string const: connected verified: type: - boolean - 'null' description: For a key, whether a real call with it worked. Null where the account was already connected at the app and nothing was checked. checkedAction: type: - string - 'null' description: The action the check called. Null when nothing was tried. ConnectionStart: description: What happens next, after starting to connect an app. oneOf: - $ref: '#/components/schemas/ConnectionConsent' - $ref: '#/components/schemas/ConnectionForm' - $ref: '#/components/schemas/ConnectionMade' discriminator: propertyName: next mapping: consent: '#/components/schemas/ConnectionConsent' form: '#/components/schemas/ConnectionForm' connected: '#/components/schemas/ConnectionMade' ConnectionConfirmation: type: object required: - connected properties: connected: type: boolean description: Whether the app says the account is connected. ConnectionCheck: type: object description: What one check of a connection found. required: - verified - verifiedAt - checkedAction properties: verified: type: boolean description: Whether the call was made and worked. verifiedAt: type: - string - 'null' format: date-time description: When verified was last earned. Null when it never was. checkedAction: type: - string - 'null' description: The action the check called. Null when the app offers nothing safe to call, so nothing was tried. Disconnection: type: object required: - revocationRequested properties: revocationRequested: type: boolean description: 'Whether the app was asked to end the access. False where the app had nothing to end, such as a connection already gone or a key the app never kept a sign-in for, and where the app couldn''t be asked: it offers no way to end a sign-in, or didn''t answer.' DisconnectPreview: type: object required: - alsoEnds - uncheckedCount properties: alsoEnds: type: array description: The other apps a disconnect would also end, by name, sorted. items: type: string uncheckedCount: type: integer minimum: 0 description: How many other apps on the same sign-in couldn't be checked, and may end too. ActionAuthorized: type: object description: The account may use the action. required: - action - state - scopes - authorization properties: action: type: string state: type: string const: authorized scopes: type: array items: type: string description: What the app granted for it, in its own words. authorization: type: string enum: - held - not-required description: held when somebody consented to it; not-required when the app asks nobody to consent to it. ActionNeedsConsent: type: object description: The account may use the action once its holder consents to it. required: - action - state - scopes properties: action: type: string state: type: string const: needs-consent scopes: type: array items: type: string description: What consenting would grant, in the app's own words. ActionNeedsAdmin: type: object description: The action needs something an administrator sets up once for everybody. No consent changes it. required: - action - state - missing properties: action: type: string state: type: string const: needs-admin missing: type: array items: type: string description: What is missing, by name. ActionStateUnknown: type: object description: The app didn't say whether the account may use the action. required: - action - state - reason properties: action: type: string state: type: string const: unknown reason: type: string description: Why, as a person reads it. ActionAuthorization: description: What an account may do with one action of an app. oneOf: - $ref: '#/components/schemas/ActionAuthorized' - $ref: '#/components/schemas/ActionNeedsConsent' - $ref: '#/components/schemas/ActionNeedsAdmin' - $ref: '#/components/schemas/ActionStateUnknown' discriminator: propertyName: state mapping: authorized: '#/components/schemas/ActionAuthorized' needs-consent: '#/components/schemas/ActionNeedsConsent' needs-admin: '#/components/schemas/ActionNeedsAdmin' unknown: '#/components/schemas/ActionStateUnknown' ActionAuthorizations: type: object required: - readable - reason - actions properties: readable: type: boolean description: Whether the app could be asked. False leaves actions empty. reason: type: - string - 'null' description: Why the app couldn't be asked, as a person reads it. Null when it could. actions: type: array description: Every action of the app, by name. items: $ref: '#/components/schemas/ActionAuthorization' AuthorizeActionRequest: type: object additionalProperties: false required: - action properties: action: type: string minLength: 1 maxLength: 200 pattern: \S description: The action's name, exactly as getConnectionAuthorizations lists it. returnTo: $ref: '#/components/schemas/ConnectionReturnTo' AuthorizationStart: type: object description: The app's consent page, which sends the person back to OpenBot once they agree. required: - authorizationUrl properties: authorizationUrl: type: string format: uri description: The address to open. Works once, for this person only. ConnectedAccount: type: object description: One of a person's accounts at an app. required: - id - identity - label - isDefault - connectedAt properties: id: type: string description: The account's id here. identity: type: - string - 'null' description: Who the account is at the app, such as an email address. Null where the app didn't say. label: type: string description: What the person and their Bots call it, the identity or "account 2" where there is none. isDefault: type: boolean description: Whether this is the account their Bots use when they name none. connectedAt: type: - string - 'null' format: date-time description: When it was connected. Null where the app didn't say. ConnectedAccountPage: type: object required: - accounts - nextCursor properties: accounts: type: array description: In the order the person connected them, then by id. items: $ref: '#/components/schemas/ConnectedAccount' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. AccountDisconnection: type: object required: - remaining - connectionEnded - revocationRequested properties: remaining: type: integer minimum: 0 description: How many of the person's accounts at the app are left. connectionEnded: type: boolean description: Whether that was the last account, which ends the connection. revocationRequested: type: boolean description: Whether the app was asked to end the access. False where it had nothing to end. SharedConnection: type: object description: The one account an app in Shared mode acts as for everybody. Never the credential behind it. required: - appId - connected - connectedAt - connectedBy - accountName - check properties: appId: type: string description: The app, as listApps answers it. connected: type: boolean description: Whether an account is connected. False until an administrator connects one. connectedAt: type: - string - 'null' format: date-time description: When it was connected. Null when it isn't. connectedBy: type: - string - 'null' description: The email address of the administrator who connected it, where known. accountName: type: - string - 'null' description: The app's own name for the account, such as a workspace. Null where it didn't say. check: description: The last check of the account with the app. Null when it isn't connected. oneOf: - $ref: '#/components/schemas/ConnectionCheckState' - type: 'null' SharedConnectionReturnTo: type: string enum: - apps - desktop default: apps description: 'Which of OpenBot''s own pages the app sends the administrator back to: apps, the app''s page for administrators; desktop, back to OpenBot Desktop. Never an address.' ConnectSharedAppRequest: type: object additionalProperties: false properties: returnTo: $ref: '#/components/schemas/SharedConnectionReturnTo' values: $ref: '#/components/schemas/ConnectionValues' BotGrantKind: type: string description: 'What a grant gives a Bot: one action of an app, a skill, or another Bot it may hand work to.' enum: - action - skill - bot BotGrantAction: type: object description: One action of an app, as the Bot is offered it. required: - appId - name - description - destructive - read properties: appId: type: string minLength: 1 name: type: string minLength: 1 description: type: string destructive: type: boolean description: The app warns that it destroys something. OpenBot always asks first. read: type: boolean description: It only reads. Anything else is treated as a change. BotGrantSkill: type: object description: A skill, as the Bot's / menu offers it. required: - slug - title - summary properties: slug: type: string minLength: 1 title: type: string summary: type: string BotGrant: type: object description: One thing a Bot may use. required: - id - kind - ref - action - skill properties: id: type: string minLength: 1 description: 'The grant''s address: action::, skill: or bot:.' kind: $ref: '#/components/schemas/BotGrantKind' ref: type: string minLength: 1 description: 'What it names: an action as /, a skill''s slug, or a Bot''s id.' action: description: The action, while its app offers it. Null for a skill or a Bot, and for an action the app no longer lists, which is kept but not offered. oneOf: - $ref: '#/components/schemas/BotGrantAction' - type: 'null' skill: description: The skill, for a skill that exists. Null otherwise. oneOf: - $ref: '#/components/schemas/BotGrantSkill' - type: 'null' BotGrantPage: type: object required: - grants - nextCursor properties: grants: type: array description: In order of their id. items: $ref: '#/components/schemas/BotGrant' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. BotGrantChanges: type: object additionalProperties: false description: One app's actions to turn on and off for a Bot. Each action is written /, and every one must be the app's. An action can't be in both lists, and at least one list must name one. required: - appId - add - remove properties: appId: type: string minLength: 1 maxLength: 200 pattern: \S add: type: array maxItems: 2000 description: The actions to turn on. Repeats count once. items: type: string minLength: 1 maxLength: 300 pattern: \S remove: type: array maxItems: 2000 description: The actions to turn off. Repeats count once. items: type: string minLength: 1 maxLength: 300 pattern: \S authoring: type: object additionalProperties: false description: The description the actions were chosen from (translateBotGrants), recorded with the change. required: - source - text properties: source: type: string enum: - english text: type: string minLength: 1 maxLength: 2000 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ approval: $ref: '#/components/schemas/SharedAccountApproval' BotGrantChangesSaved: type: object required: - added - removed properties: added: type: array description: The actions turned on, once each. items: type: string removed: type: array description: The actions turned off, once each. items: type: string BotGrantDescription: type: object additionalProperties: false required: - appId - text properties: appId: type: string minLength: 1 maxLength: 200 pattern: \S text: type: string minLength: 1 maxLength: 1000 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: What the Bot may do in the app, in a sentence or two, at most 1,000 characters once trimmed. BotGrantCheck: type: object description: Whether every action named is one the app offers now, and what is wrong with each one that isn't. required: - ok properties: ok: type: boolean error: type: string problems: type: array items: type: object required: - action - message properties: action: type: string message: type: string BotGrantTranslation: type: object required: - actions - grants - otherApps - summary - explanation - check - warning properties: actions: type: array description: The action names the model chose, as it wrote them. items: type: string grants: type: array description: The chosen actions the app offers, written /. Saveable with batchUpdateBotGrants when check.ok is true. items: type: string otherApps: type: array description: Other apps the description names, which this set doesn't touch. items: type: string summary: type: - string - 'null' description: What the set lets the Bot do, in one sentence. Null when it doesn't check. explanation: type: - string - 'null' description: What the set lets the Bot do, read from the set alone by a call that never saw the description. Null when it doesn't check. check: $ref: '#/components/schemas/BotGrantCheck' warning: type: - string - 'null' description: Set when the set destroys things, or gives nothing at all. BotGrantCandidate: type: object additionalProperties: false required: - appId - grants properties: appId: type: string minLength: 1 maxLength: 200 pattern: \S grants: type: array maxItems: 2000 description: Every action of the app the Bot would have, written / or by the action's name alone. items: type: string maxLength: 300 BotGrantActionChange: type: object description: One action a change turns on or off. required: - ref - name - effect - destructive properties: ref: type: string name: type: string effect: type: string enum: - read - write destructive: type: boolean BotGrantReplayedAction: type: object description: An action the replay names, with how often the Bot called it. required: - ref - name - effect - destructive - calls - lastCalled properties: ref: type: string name: type: string effect: type: string enum: - read - write destructive: type: boolean calls: type: integer minimum: 0 lastCalled: type: string format: date-time BotGrantReplayReport: type: object description: What the change would have meant for the Bot's recent calls to the app. required: - calls - runs - since - removedUsed - callsLost - refusedGiven - callsGained - addedUnusedWrites - addedUnusedReads properties: calls: type: integer minimum: 0 description: The Bot's calls to this app on the audit trail, each counted once. runs: type: integer minimum: 0 description: Runs it was offered tools in. since: type: - string - 'null' format: date-time description: The oldest row replayed, or null with nothing to replay. removedUsed: type: array description: Actions the change takes away that the Bot called, most called first. items: $ref: '#/components/schemas/BotGrantReplayedAction' callsLost: type: integer minimum: 0 refusedGiven: type: array description: Actions the Bot was refused for not having, that the change gives it. items: $ref: '#/components/schemas/BotGrantReplayedAction' callsGained: type: integer minimum: 0 addedUnusedWrites: type: array description: Changes the change gives that the Bot never called or tried. items: type: object required: - ref - name - destructive properties: ref: type: string name: type: string destructive: type: boolean addedUnusedReads: type: integer minimum: 0 description: Reads the change gives that the Bot never called or tried. BotGrantReplay: type: object required: - check - warning - changes - report properties: check: $ref: '#/components/schemas/BotGrantCheck' warning: type: - string - 'null' changes: type: object description: Against what the Bot has now. required: - added - removed properties: added: type: array items: $ref: '#/components/schemas/BotGrantActionChange' removed: type: array items: $ref: '#/components/schemas/BotGrantActionChange' report: description: Null where OpenBot keeps no audit trail it can read. oneOf: - $ref: '#/components/schemas/BotGrantReplayReport' - type: 'null' BotGrantInput: type: object additionalProperties: false description: What a grant may carry. Only an administrator's grant of an action of an app with one shared account reads it. properties: approval: $ref: '#/components/schemas/SharedAccountApproval' AppAccessRequestKind: type: string description: 'What an administrator is asked for: to turn the app on, to give it to the Bot, or to connect its shared account.' enum: - enable - grant - connect_shared BotAppPendingRequest: type: object required: - id - kind - createdAt properties: id: type: string kind: $ref: '#/components/schemas/AppAccessRequestKind' createdAt: type: string format: date-time AppRestriction: type: string description: 'Why a step on an app is an administrator''s. bot_ownerless: nobody owns the Bot, as with a Bot shared with the whole organization, so only an administrator can give it apps. bot_not_yours: the Bot is somebody else''s, so its owner or an administrator gives it apps. app_admins_only: an administrator kept the app to administrators. apps_locked_down: the organization''s apps are locked down, so adding and giving apps are an administrator''s. owner_apps_off: an administrator''s rule, for the organization, a role or a team, stops this person giving apps to their own Bots. needs_admin_setup: the app needs something only an administrator can add, such as a key or an OAuth client. shared_account: the app uses the organization''s shared account, which only an administrator connects or opens to more people. A later OpenBot may add reasons; read one you don''t know as an administrator''s step.' x-extensible-enum: - bot_ownerless - bot_not_yours - app_admins_only - apps_locked_down - owner_apps_off - needs_admin_setup - shared_account BotApp: type: object description: 'One app as it stands for the person asking, on one Bot. state is OpenBot''s: a client draws it and never works it out from the other fields.' required: - id - title - logo - source - account - connect - state - unavailable - accountHolder - asksFirst - granted - ownerGrants - givenByOwner - needsConnect - connectedAt - requestKind - pendingRequest - restrictedBy properties: id: type: string minLength: 1 description: The app's id, or the one turning it on would give it. title: type: string description: The app's own name, such as Gmail. logo: type: - string - 'null' source: type: string description: 'Where the app comes from: OpenBot''s catalogue, a server added by its address, or the directory of apps OpenBot can add.' enum: - catalogue - address - directory account: type: string description: 'Whose account the app''s actions use: each person''s own, one shared account an administrator connects, or no person''s.' enum: - personal - shared - deployment connect: description: 'How the person''s account is connected: OpenBot''s own sign-in, the directory''s sign-in, a key, or nothing to connect.' oneOf: - type: string enum: - oauth - consent - key - type: 'null' state: type: string description: 'ready: usable now. not_connected and reconnect: waiting on an account the person connects (see accountHolder). shared_not_connected: waiting on the shared account. shared_not_approved: an administrator hasn''t approved who may use the shared account through this Bot, which happens only where the organization''s apps are locked down. disabled: turned off (see unavailable). not_granted: the Bot wasn''t given it. owner_grantable: the same, and the person may give it themselves.' enum: - ready - not_connected - reconnect - shared_not_connected - shared_not_approved - disabled - not_granted - owner_grantable unavailable: description: 'Why the app is turned off, when state is disabled: nobody turned it on, the directory isn''t set up here, OpenBot can''t read how it connects, or it is missing the OAuth client or the key an administrator adds. Null otherwise.' oneOf: - type: string enum: - absent - directory_unavailable - scheme_unreadable - oauth_client_missing - token_missing - type: 'null' accountHolder: description: 'Whose own account the actions use for this person: theirs, or on somebody else''s shared Bot the owner''s, which only the owner can reconnect. Null where no person''s own account is used.' oneOf: - type: string enum: - you - owner - type: 'null' asksFirst: type: boolean description: The first use on the person's own account through somebody else's shared Bot asks them first. state is still ready. granted: type: boolean description: The Bot was given at least one of the app's actions. ownerGrants: type: string description: 'Who may give the app to a Bot: any Bot''s owner, or only an administrator.' enum: - any - admin givenByOwner: type: boolean description: Everything the Bot has of the app was given by its owner, who may take it back. needsConnect: type: boolean description: When state is owner_grantable, giving the app starts with connecting the person's own account. False otherwise. connectedAt: type: - string - 'null' format: date-time description: When the account the app uses for this person was connected, or null. requestKind: description: What a request would ask an administrator for in this state (createAppAccessRequest), or null where the next step is the person's own. While the organization's apps are open, adding and giving an app are the person's own steps. oneOf: - $ref: '#/components/schemas/AppAccessRequestKind' - type: 'null' pendingRequest: description: The person's own waiting request of that kind, or null. oneOf: - $ref: '#/components/schemas/BotAppPendingRequest' - type: 'null' restrictedBy: description: Why only an administrator can take the next step, or null where the step is the person's own or nothing is needed. A client picks the sentence it shows from this. oneOf: - $ref: '#/components/schemas/AppRestriction' - type: 'null' BotAppPage: type: object required: - apps - nextCursor properties: apps: type: array description: By title, and by id among apps with the same title. items: $ref: '#/components/schemas/BotApp' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. BotAppActionsRead: type: object additionalProperties: false required: - actions properties: actions: type: array minItems: 1 maxItems: 50 description: Actions of the app the Bot needs, written /, at most 50. One the app doesn't offer is left out. items: type: string minLength: 1 maxLength: 300 pattern: \S BotAppActionsInput: type: object additionalProperties: false properties: actions: type: array minItems: 1 maxItems: 50 description: The actions of the app to give the Bot, written /. Left out, the Bot gets every action of the app, or the actions that only read where the organization's apps are locked down. items: type: string minLength: 1 maxLength: 300 pattern: \S BotAppGiven: type: object required: - given properties: given: type: array description: The actions given, written /. Empty when the Bot already had the app. items: type: string BotAppTakenBack: type: object required: - takenBack properties: takenBack: type: array description: The actions taken back, written /. items: type: string AppAccessRequest: type: object description: A person's request to an administrator about one app, as the person and the administrator both read it. required: - id - appId - appTitle - kind - status - botId - botName - requestedBy - requesterEmail - requesterName - createdAt - resolvedAt - resolvedBy - actions - note - urgent properties: id: type: string minLength: 1 appId: type: string minLength: 1 appTitle: type: string kind: $ref: '#/components/schemas/AppAccessRequestKind' status: type: string description: 'Read only: waiting, approved, dismissed, withdrawn by the person who asked, or superseded: closed by OpenBot because nothing is left for an administrator to do, such as an app somebody added since, or one the person can now add or give themselves. Answering a request is approveAppAccessRequest or dismissAppAccessRequest.' x-extensible-enum: - pending - approved - dismissed - cancelled - superseded note: type: - string - 'null' maxLength: 500 description: What the person said they need the app for, or null. urgent: type: boolean description: The person marked the request urgent. botId: type: - string - 'null' description: The Bot it is for, or null for a request about the app alone. botName: type: - string - 'null' requestedBy: type: string description: The id of the person who asked. requesterEmail: type: - string - 'null' requesterName: type: - string - 'null' createdAt: type: string format: date-time resolvedAt: type: - string - 'null' format: date-time resolvedBy: type: - string - 'null' description: The id of the person who answered or withdrew it. actions: type: array description: The actions asked for, written /. Empty for a request that names none, which asks for the app itself. items: type: string AppAccessApproval: type: object required: - appAccessRequest - enabled - granted properties: appAccessRequest: $ref: '#/components/schemas/AppAccessRequest' enabled: type: boolean description: The app was turned on. granted: type: array description: The actions given to the Bot, written /. items: type: string AppTeamGrants: type: object description: The teams the app is granted to. required: - teams properties: teams: type: array description: Each team's id, in order. items: type: string AppTeamGrantsInput: type: object additionalProperties: false required: - teams properties: teams: type: array maxItems: 100 description: The id of each team of this organization to grant it to. items: type: string minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9_-]+$ GiveableApp: type: object description: An app a person could give Bots they own. required: - id - title - logo - account properties: id: type: string minLength: 1 title: type: string logo: type: - string - 'null' account: type: string description: Whose account the app's actions use. enum: - personal - shared - deployment GiveableAppPage: type: object required: - apps - nextCursor properties: apps: type: array description: By title, and by id among apps with the same title. items: $ref: '#/components/schemas/GiveableApp' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. AppAccessRequestPage: type: object required: - appAccessRequests - nextCursor properties: appAccessRequests: type: array description: Newest first, and by id among requests made at the same moment. items: $ref: '#/components/schemas/AppAccessRequest' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. AppAccessRequestInput: type: object additionalProperties: false required: - appId properties: botId: type: string minLength: 1 maxLength: 200 pattern: \S description: The Bot the app is for. Left out, the request is for an app nobody has added yet, to turn it on for everyone. appId: type: string minLength: 1 maxLength: 200 pattern: \S description: The app's id, or its name. For an app from the directory that nobody has added yet, the slug of its directory entry (the part of its entry id after directory:). actions: type: array minItems: 1 maxItems: 50 description: Actions of the app the Bot needs, written /, for a Bot that was given the app but not these. Needs botId. items: type: string minLength: 1 maxLength: 300 pattern: \S note: type: string maxLength: 500 description: What the person needs the app for, in their words, for the administrator who answers. Left out or blank, the request has no note. Asking again while the request waits replaces its note. urgent: type: boolean description: The person needs it soon. Left out, the request is not urgent. Asking again while the request waits sets it again. AppAccessApprovalInput: type: object additionalProperties: false properties: actions: type: array maxItems: 2000 description: The actions to give the Bot, written /. Left out, the Bot gets every action of the app, or the actions that only read where the organization's apps are locked down. items: type: string minLength: 1 maxLength: 300 pattern: \S PlaygroundSource: type: object description: The published source of a component written in Playground. It runs in an isolated frame and reaches nothing but the arguments it is drawn with. required: - html - css - jsFunctions - argumentSchema - revision properties: html: type: string css: type: string jsFunctions: type: string description: Script that fills in the HTML from window.__args. argumentSchema: type: object description: The arguments the model fills in, as JSON Schema. Empty when it takes none. additionalProperties: true revision: type: integer minimum: 1 description: How many times it has been published. PlaygroundDraftSource: type: object additionalProperties: false description: A Playground component's source, as an admin edits it. required: - html - css - jsFunctions - argumentSchema - sampleArguments properties: html: type: string css: type: string jsFunctions: type: string description: Script that fills in the HTML from window.__args. argumentSchema: type: object description: The arguments the model fills in, as JSON Schema. additionalProperties: true sampleArguments: type: object description: The arguments Playground previews it with. additionalProperties: true ComponentDraft: type: object description: A component's working copy. For one that comes with OpenBot only the description is drafted, and source is null. required: - title - description - source properties: title: type: string description: type: string description: The description the model will read once it is published. source: oneOf: - $ref: '#/components/schemas/PlaygroundDraftSource' - type: 'null' Component: type: object description: 'Something a Bot draws in a conversation instead of answering in text: a chart, a card, or one an admin wrote in Playground. draft, hasUnpublishedChanges, withheldFrom, functions and updatedBy are for an admin, and null for anybody else.' required: - name - title - kind - published - publishedAt - description - source - draft - hasUnpublishedChanges - withheldFrom - functions - updatedBy - updatedAt properties: name: type: string minLength: 1 description: The tool name a Bot draws it by, and its address. custom_ and a name for one written in Playground. title: type: string description: What people call it. kind: type: string minLength: 1 description: 'How the Components page groups it: chart, card and so on, or playground for one written in Playground.' published: type: boolean description: Whether Bots may draw it. Changed only by publishComponent and unpublishComponent. publishedAt: type: - string - 'null' format: date-time description: When it was last published. Null if it never was. description: type: - string - 'null' description: 'The published description: what the model reads when it decides whether to draw it. Null until it is first published.' source: description: For a published Playground component, the source a conversation draws it from. Null for one that comes with OpenBot, and for one that isn't published. oneOf: - $ref: '#/components/schemas/PlaygroundSource' - type: 'null' draft: description: The working copy publishing would make live. For an admin. oneOf: - $ref: '#/components/schemas/ComponentDraft' - type: 'null' hasUnpublishedChanges: type: - boolean - 'null' description: Whether the draft differs from what is published. For an admin. withheldFrom: type: - array - 'null' description: The Bots held back from it, by id. Every other Bot may draw it while it is published, including Bots added later. For an admin. items: type: string functions: type: - array - 'null' description: The data functions it may read, by name. Empty when it shows only what the Bot passes it. For an admin. items: type: string updatedBy: type: - string - 'null' description: 'Who last changed it: an admin''s email address, or the build for one nobody here has changed. For an admin.' updatedAt: type: string format: date-time ComponentPage: type: object required: - components - nextCursor properties: components: type: array description: By kind, then title, then name. items: $ref: '#/components/schemas/Component' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. AnnouncedComponent: type: object additionalProperties: false required: - name - title - kind - description properties: name: type: string minLength: 1 pattern: \S description: The tool name a Bot draws it by. Trimmed. It can't start with @. title: type: string minLength: 1 pattern: \S description: Trimmed. kind: type: string minLength: 1 pattern: \S description: How the Components page groups it. Trimmed. description: type: string minLength: 1 pattern: \S description: What the model reads, used only when the component is new. Trimmed. ComponentAnnouncement: type: object additionalProperties: false required: - components properties: components: type: array description: Every component this version of the app can draw. Empty is allowed and adds nothing. items: $ref: '#/components/schemas/AnnouncedComponent' AnnouncedComponents: type: object required: - added properties: added: type: array description: The names of the components this announcement added. items: type: string ComponentDraftInput: type: object additionalProperties: false description: A draft to save. For a component that comes with OpenBot, send its description; a title or source that differs from what it has is refused. For a Playground component, send all three. required: - description properties: description: type: string description: Trimmed. Required for a component that comes with OpenBot. A Playground draft may leave it empty until it is published. title: type: string minLength: 1 pattern: \S description: Trimmed. Required for a Playground component. source: oneOf: - $ref: '#/components/schemas/PlaygroundDraftSource' - type: 'null' DataFunction: type: object description: Data a component may read for itself, so the figures it shows come from OpenBot and not from the model. required: - name - description - reads - granted properties: name: type: string minLength: 1 description: type: string description: What it returns, for an admin deciding whether to allow it. reads: type: string description: What it reads, in a few words. granted: type: boolean description: Whether this component may read it. DataFunctionPage: type: object required: - functions - nextCursor properties: functions: type: array description: By name. items: $ref: '#/components/schemas/DataFunction' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. BotComponent: type: object description: A component one Bot may draw now. required: - name - description properties: name: type: string minLength: 1 description: The tool name to offer the Bot. description: type: string minLength: 1 description: The published description, which the model reads. BotComponentPage: type: object required: - components - nextCursor properties: components: type: array description: By name. items: $ref: '#/components/schemas/BotComponent' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. ComponentCheckRequest: type: object additionalProperties: false properties: functions: type: array description: The data functions the component will read when it is drawn with these arguments, so the answer covers them too. None when left out. items: type: string minLength: 1 pattern: \S ComponentCheck: type: object required: - allowed - reason properties: allowed: type: boolean reason: type: - string - 'null' description: Why not, for the model and for the person, when allowed is false. Null when it is true. ComponentCallRequest: type: object additionalProperties: false required: - function properties: function: type: string minLength: 1 description: The data function to run, such as botActivity. arguments: type: object description: The function's arguments. None when left out. additionalProperties: true ComponentCall: type: object required: - allowed - data - reason properties: allowed: type: boolean data: description: What the function read, when allowed is true; null otherwise. botActivity answers days and rows of bot and actions; recentRefusals answers rows of at, bot, what and reason. reason: type: - string - 'null' description: Why it didn't run, when allowed is false. Null when it ran. Skill: type: object description: A named instruction a person runs with / in a conversation, on a Bot that offers it. required: - slug - title - summary - instructions - tools - ownerId - botIds - usableOnYourBots properties: slug: type: string minLength: 2 maxLength: 40 description: What a person types after /, and the skill's address. title: type: string summary: type: string description: One line, shown in the / menu. May be empty. instructions: type: string description: What the Bot is told when the skill runs. tools: type: array description: 'The actions it needs, as appId/toolName. Naming one gives no Bot access to it: a Bot uses only what it can already use.' items: type: string ownerId: type: - string - 'null' description: Whose it is, by person id. Null when it is the organization's. botIds: type: array description: The Bots that offer it, by id. items: type: string usableOnYourBots: type: boolean description: 'Whether the caller may put it on a Bot they own: it is their own, or it is granted to a team they are in. A Bot''s Skills page offers these.' SkillPage: type: object required: - skills - nextCursor properties: skills: type: array description: By title, then slug. items: $ref: '#/components/schemas/Skill' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. SkillInput: type: object additionalProperties: false required: - title - instructions - tools properties: title: type: string minLength: 1 pattern: \S description: Trimmed. summary: type: string default: '' description: One line, shown in the / menu. instructions: type: string minLength: 1 pattern: \S description: Trimmed. tools: type: array description: Every action the skill needs, as appId/toolName, each one OpenBot has seen. Replaces what it named before; empty names none. items: type: string minLength: 1 pattern: \S forEveryone: type: boolean default: false description: 'Make a new skill the organization''s. Only an admin may. It applies when the skill is made: rewriting one keeps whose it is.' SkillTeamGrants: type: object description: The teams the skill is granted to. required: - teams properties: teams: type: array description: Each team's id, in order. items: type: string SkillTeamGrantsInput: type: object additionalProperties: false required: - teams properties: teams: type: array maxItems: 100 description: The id of each team of this organization to grant it to. items: type: string minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9_-]+$ DevicePlatform: type: string enum: - ios - android description: The phone's operating system. Device: type: object description: A phone that gets push notifications for the person, from every one of their Bots in the organization it is registered in. Never its push token. required: - id - platform - createdAt properties: id: type: string format: uuid description: The id the OpenBot app made for the phone. platform: $ref: '#/components/schemas/DevicePlatform' createdAt: type: string format: date-time description: When OpenBot first registered the phone. DevicePage: type: object required: - devices - nextCursor properties: devices: type: array description: The first registered first, then by id. items: $ref: '#/components/schemas/Device' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. RegisterDeviceRequest: type: object additionalProperties: false required: - token - projectId - platform properties: token: type: string maxLength: 256 pattern: ^(Expo|Exponent)PushToken\[[A-Za-z0-9_-]+\]$ description: 'The phone''s Expo push token, as the OpenBot app read it when it started. It is a credential: OpenBot never sends it back.' projectId: type: string format: uuid description: The OpenBot app's project, which must be the one this deployment sends push notifications through. platform: $ref: '#/components/schemas/DevicePlatform' DeviceResponse: type: object required: - device properties: device: $ref: '#/components/schemas/Device' DestinationTransport: type: string enum: - slack - teams - sms description: Slack, Microsoft Teams, or text messages. Destination: type: object description: 'Somewhere outside OpenBot a person continues one conversation with one Bot: a Slack or Microsoft Teams chat, or a phone number.' required: - id - transport - conversationId - botId - address - optedOutAt - createdAt properties: id: type: string description: The destination's id. transport: $ref: '#/components/schemas/DestinationTransport' conversationId: type: string description: The conversation it continues. botId: type: string description: The Bot that answers there. address: type: string description: 'Where the Bot sends: the phone number for text messages, or the chat''s own id in Slack or Teams.' optedOutAt: type: - string - 'null' format: date-time description: 'Text messages only: when the person texted STOP. Nothing is texted until they text START. Null while they can be texted.' createdAt: type: string format: date-time description: When it was connected. DestinationPage: type: object required: - destinations - nextCursor properties: destinations: type: array description: The first connected first, then by id. items: $ref: '#/components/schemas/Destination' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. DestinationConversationId: type: string minLength: 1 maxLength: 200 pattern: \S description: One of the person's conversations, by its id. DestinationBotId: type: string minLength: 1 maxLength: 200 pattern: \S description: A Bot in that conversation, by its id. LinkChatDestinationRequest: type: object additionalProperties: false required: - platform - conversationId - botId properties: platform: type: string enum: - slack - teams description: Slack or Microsoft Teams. conversationId: $ref: '#/components/schemas/DestinationConversationId' botId: $ref: '#/components/schemas/DestinationBotId' ChatLinkCode: type: object description: A one-time code the person sends the OpenBot app in Slack or Teams. required: - platform - code - command - expiresAt properties: platform: type: string enum: - slack - teams code: type: string description: The code. It works once, and only for the person it was made for. command: type: string description: The message to send the OpenBot app, the code in it. expiresAt: type: string format: date-time description: When the code stops working. VerifyPhoneDestinationRequest: type: object additionalProperties: false required: - phone - conversationId - botId properties: phone: type: string pattern: ^\+[1-9]\d{7,14}$ description: The phone number in international form, such as +14155550123. conversationId: $ref: '#/components/schemas/DestinationConversationId' botId: $ref: '#/components/schemas/DestinationBotId' PhoneVerification: type: object description: A code on its way to a phone, to confirm under this verification. required: - verificationId - expiresAt properties: verificationId: type: string format: uuid description: Send this with the code to confirmPhoneDestination. expiresAt: type: string format: date-time description: When the verification stops working. ConfirmPhoneDestinationRequest: type: object additionalProperties: false required: - verificationId - code properties: verificationId: type: string format: uuid description: The verification verifyPhoneDestination answered. code: type: string pattern: ^\d{4,10}$ description: The code the phone was texted. DestinationResponse: type: object required: - destination properties: destination: $ref: '#/components/schemas/Destination' NotificationTransport: type: string enum: - push - slack - teams - sms description: 'A way OpenBot reaches a person outside it: push notifications to their phones and browsers, Slack, Microsoft Teams, or text messages.' DeliveryKind: type: string enum: - reply - question - approval - attention description: 'What was sent: a Bot''s reply, a question it asked, an approval it needs, or what the person''s Bots'' check-ins found that needs them.' DeliveryState: type: string x-extensible-enum: - queued - running - accepted - sent - delivered - failed - unknown - opted_out description: Where it got to. accepted is the provider taking it without saying yet that it arrived. unknown is a send that may or may not have gone. opted_out is a text message not sent because the person texted STOP. Delivery: type: object description: One update a Bot sent a person outside OpenBot. required: - id - transport - kind - state - error - conversationId - botId - createdAt properties: id: type: string description: The delivery's id. transport: $ref: '#/components/schemas/NotificationTransport' kind: $ref: '#/components/schemas/DeliveryKind' state: $ref: '#/components/schemas/DeliveryState' error: type: - string - 'null' description: Why it failed or may not have arrived, as the provider said. Null otherwise. conversationId: type: string description: The conversation it was about. botId: type: string description: The Bot that sent it. createdAt: type: string format: date-time description: When it was sent. DeliveryPage: type: object required: - deliveries - nextCursor properties: deliveries: type: array description: The newest first, then by id. items: $ref: '#/components/schemas/Delivery' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. UpdateRoute: description: 'Where one kind of update may go. all: every way the person can be reached, now and any set up later. A list: only those ways; an empty list keeps that kind in OpenBot.' oneOf: - type: string enum: - all - type: array maxItems: 4 uniqueItems: true items: $ref: '#/components/schemas/NotificationTransport' AppAccessRequestChannel: type: string enum: - push - email - slack - teams - sms description: 'A way OpenBot tells an admin that someone asked for access to an app: push notifications to their phones and browsers (and OpenBot''s own notice while it is open), email, Slack, Microsoft Teams, or text messages.' AppAccessRequestRoute: description: 'Where an admin hears that someone asked for access to an app, or that a request moved to a different step. all: every way they can be reached, now and any set up later, until they choose. A list: only those ways; an empty list keeps requests in OpenBot (Admin, Apps, Requests). Only admins are told; anyone else''s choice is kept and unused.' oneOf: - type: string enum: - all - type: array maxItems: 5 uniqueItems: true items: $ref: '#/components/schemas/AppAccessRequestChannel' UpdateRouting: type: object description: Where each kind of update may go. required: - progress - decision - question - attention - appAccessRequest properties: progress: $ref: '#/components/schemas/UpdateRoute' decision: $ref: '#/components/schemas/UpdateRoute' question: $ref: '#/components/schemas/UpdateRoute' attention: $ref: '#/components/schemas/UpdateRoute' appAccessRequest: $ref: '#/components/schemas/AppAccessRequestRoute' AppAccessRequestChannelAnswer: type: string x-extensible-enum: - push - email - slack - teams - sms description: AppAccessRequestChannel, as an answer reads it. A client that meets a value it doesn't know shows its title and keeps it. AppAccessRequestChannelOption: type: object required: - id - title properties: id: $ref: '#/components/schemas/AppAccessRequestChannelAnswer' title: type: string description: Its name, as a person reads it. NotificationSettings: type: object description: 'Where a person''s updates go, for every one of their Bots at once. progress: replies and results from work they weren''t watching. decision: approvals a Bot needs before it acts. question: what a Bot asked and waits on. attention: what their Bots'' check-ins found, at most once an hour, every Bot in one message. appAccessRequest, for an admin: someone in the organization asked for access to an app.' required: - routing - appAccessRequestChannels properties: routing: $ref: '#/components/schemas/UpdateRouting' appAccessRequestChannels: type: array maxItems: 5 description: 'The ways this deployment can tell an admin about a request for access to an app, each only once it is set up where OpenBot runs: push, email (a mail server), and Slack, Microsoft Teams and text messages as for every update. Slack, Teams and text messages reach an admin who has connected one. In the order push, email, Slack, Microsoft Teams, text messages.' items: $ref: '#/components/schemas/AppAccessRequestChannelOption' UpdateNotificationSettingsRequest: type: object additionalProperties: false required: - routing properties: routing: type: object description: The kinds of update to change. At least one. additionalProperties: false minProperties: 1 properties: progress: $ref: '#/components/schemas/UpdateRoute' decision: $ref: '#/components/schemas/UpdateRoute' question: $ref: '#/components/schemas/UpdateRoute' attention: $ref: '#/components/schemas/UpdateRoute' appAccessRequest: $ref: '#/components/schemas/AppAccessRequestRoute' BotNotifyLevel: type: string enum: - all - needs_input - none description: 'How much one Bot may reach the person outside OpenBot: all of it, only what needs them (its questions and approvals), or nothing.' BotNotificationSettings: type: object required: - botId - notify properties: botId: type: string description: The Bot. notify: $ref: '#/components/schemas/BotNotifyLevel' UpdateBotNotificationSettingsRequest: type: object additionalProperties: false required: - notify properties: notify: $ref: '#/components/schemas/BotNotifyLevel' NotificationTransportOption: type: object required: - id - title properties: id: $ref: '#/components/schemas/NotificationTransport' title: type: string description: Its name, as a person reads it. NotificationTransportPage: type: object required: - notificationTransports - nextCursor properties: notificationTransports: type: array description: Push, then Slack, Microsoft Teams and text messages, as set up. items: $ref: '#/components/schemas/NotificationTransportOption' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. RoutineConversation: type: object description: Where a routine posts. required: - id - name - title - gone properties: id: type: string description: The conversation's id. name: type: - string - 'null' description: The names of the Bots in it, or null when the conversation is gone entirely. title: type: - string - 'null' description: The conversation as the sidebar titles it, which is what a person knows it by. Null when it is gone entirely. gone: type: boolean description: Whether the conversation was deleted. Such a routine is shown, not hidden. RoutineLastRun: type: object required: - status - at properties: status: type: - string - 'null' x-extensible-enum: - succeeded - failed - skipped - waiting description: How it ended, or null while it is still open. Only failed is a failure. at: type: - string - 'null' format: date-time description: When it finished, or null while it is still open. Routine: type: object description: 'One of a person''s routines. schedule is display text and never a value to parse: words for the schedules OpenBot can describe, the five cron fields for anything stranger. nextRunAt is the one time to rely on.' required: - id - botId - schedule - cron - timezone - instruction - title - conversation - enabled - nextRunAt - lastRun - goalId - createdAt properties: id: type: string description: The routine's id. botId: type: string description: The Bot that carries it out. schedule: type: string description: When it runs, as text to show. cron: type: string description: 'The schedule as it is kept, five cron fields: minute, hour, day of month, month, day of week. What a form that changes the schedule starts from.' timezone: type: string description: The IANA time zone the schedule is read in. instruction: type: string description: What the Bot does on each run. title: type: - string - 'null' description: What the person called it, or null when they named it nothing. conversation: $ref: '#/components/schemas/RoutineConversation' enabled: type: boolean description: False while it is paused. A paused routine never runs. nextRunAt: type: string format: date-time description: When it runs next, if it is on. lastRun: oneOf: - $ref: '#/components/schemas/RoutineLastRun' - type: 'null' description: Its newest run, or null when it has never run. goalId: type: - string - 'null' description: The goal it runs, or null when it runs none. createdAt: type: string format: date-time description: When it was made. RoutinePage: type: object required: - routines - nextCursor properties: routines: type: array description: Newest first. items: $ref: '#/components/schemas/Routine' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateRoutineRequest: type: object additionalProperties: false required: - botId - instruction - cron - conversationId properties: botId: type: string minLength: 1 maxLength: 200 pattern: \S description: The Bot that carries it out. conversationId: type: string minLength: 1 maxLength: 200 pattern: \S description: A conversation the caller and the Bot share, where it posts. instruction: type: string minLength: 1 maxLength: 2000 pattern: \S description: What the Bot does on each run. At most 2,000 characters. title: type: string description: What to call it. At most 100 characters. maxLength: 100 cron: type: string minLength: 1 maxLength: 200 pattern: \S description: 'The schedule, as five cron fields: minute, hour, day of month, month, day of week. At most once an hour.' timezone: type: string description: The IANA time zone the schedule is read in. UTC when absent. maxLength: 100 goalId: type: string description: The goal this routine runs, when it runs one. maxLength: 200 RoutineResponse: type: object required: - routine properties: routine: $ref: '#/components/schemas/Routine' RoutineSentence: type: object additionalProperties: false required: - botId - sentence - timezone properties: botId: type: string minLength: 1 maxLength: 200 pattern: \S description: The Bot the routine is for. sentence: type: string minLength: 1 maxLength: 2000 pattern: \S description: The routine in the person's own words. At most 2,000 characters. timezone: type: string maxLength: 100 description: The IANA time zone the person is in, used to read a time of day. RoutineDraft: type: object description: What a sentence says, as the answers New routine asks for. required: - does - instruction - title - starts - cron - timezone - doneWhen - conversationId - intervalMinutes properties: does: type: string enum: - act - tell description: act carries out the instruction. tell only reports back. instruction: type: string description: What the Bot does on each run. title: type: string description: What to call it. starts: type: string enum: - schedule - event - now - unsaid description: What starts it. schedule is a time, event is something that happens, now is straight away, and unsaid is a start the sentence doesn't give. cron: type: - string - 'null' description: The schedule, as five cron fields. Set only when starts is schedule, and null otherwise. timezone: type: string description: The IANA time zone the schedule is read in. doneWhen: type: string description: 'The outcome that ends it, in the sentence''s words. Empty when the sentence gives none: on a schedule that makes a routine, and an outcome makes a goal that ends when it is met.' conversationId: type: - string - 'null' description: The conversation it posts in. Null means a new conversation. intervalMinutes: type: - integer - 'null' enum: - 60 - 240 - 720 - 1440 - null description: How often a check-in looks, in minutes. Set only when does is tell, and null otherwise. RoutineReadingReady: type: object description: The sentence says everything a routine needs. required: - outcome - draft properties: outcome: type: string const: ready draft: $ref: '#/components/schemas/RoutineDraft' RoutineReadingNeedsMore: type: object description: The sentence is a routine but leaves something out. required: - outcome - draft - missing properties: outcome: type: string const: needsMore draft: $ref: '#/components/schemas/RoutineDraft' missing: type: string x-extensible-enum: - time - event - once description: What to ask next. time is when it runs, event is what starts it, and once is whether it runs once or keeps going. RoutineReadingRefused: type: object description: The sentence asks for something a routine can't do. required: - outcome - detail - fix properties: outcome: type: string const: refused detail: type: string description: Why it can't, in a sentence for the person. fix: type: - string - 'null' x-extensible-enum: - connectApp description: What the person can do about it. connectApp is to connect an app first. Null when there is nothing to do but ask differently. RoutineReadingNotRoutine: type: object description: The sentence is not a request for a routine. required: - outcome properties: outcome: type: string const: notRoutine RoutineReading: description: A sentence read as a routine's answers, or why it can't be. oneOf: - $ref: '#/components/schemas/RoutineReadingReady' - $ref: '#/components/schemas/RoutineReadingNeedsMore' - $ref: '#/components/schemas/RoutineReadingRefused' - $ref: '#/components/schemas/RoutineReadingNotRoutine' discriminator: propertyName: outcome mapping: ready: '#/components/schemas/RoutineReadingReady' needsMore: '#/components/schemas/RoutineReadingNeedsMore' refused: '#/components/schemas/RoutineReadingRefused' notRoutine: '#/components/schemas/RoutineReadingNotRoutine' UpdateRoutineRequest: type: object additionalProperties: false minProperties: 1 description: What to change. Only the fields sent change, and at least one must be sent. properties: title: type: string description: A new name, at most 100 characters. Empty takes the name away, and the routine is called by what it does. maxLength: 100 instruction: type: string minLength: 1 maxLength: 2000 pattern: \S description: What the Bot does on each run from now on. At most 2,000 characters. cron: type: string minLength: 1 maxLength: 200 pattern: \S description: 'A new schedule, as five cron fields: minute, hour, day of month, month, day of week. The same rules as a new routine''s.' timezone: type: string minLength: 1 maxLength: 100 pattern: \S description: A new IANA time zone to read the schedule in. RoutineSwitch: type: object required: - enabled properties: enabled: type: boolean description: Whether the routine is on now. RoutineRunAccepted: type: object required: - accepted - runId properties: accepted: type: boolean const: true runId: type: string description: The run that was started. RoutineRun: type: object description: One run of a routine. What the Bot said is in the routine's conversation and is not kept here. required: - id - status - startedAt - finishedAt - error - source properties: id: type: string description: The run's id. status: type: string x-extensible-enum: - running - succeeded - failed - skipped - waiting description: running until it ends; waiting while it waits on the person, for an approval or an answer. startedAt: type: string format: date-time description: When it started. finishedAt: type: - string - 'null' format: date-time description: When it ended, or null while it runs. error: type: - string - 'null' description: Why it failed or was skipped, or null. source: type: string enum: - schedule - run_now - trigger description: 'What started it: the schedule, a person''s Run now, or an event.' RoutineRunPage: type: object required: - runs - nextCursor properties: runs: type: array description: Newest first. items: $ref: '#/components/schemas/RoutineRun' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CheckInSkipReason: type: string enum: - off_admin - off_person - paused - capped - unreachable - no_sources - busy description: 'Why a check-in was skipped before the Bot looked: an administrator or the person turned check-ins off, the Bot is paused, it used its check-ins for the day, the Bot or its conversation is no longer reachable, there is nothing connected for it to read, or another check-in was still running.' LastCheckIn: type: object description: 'A check-in''s newest run: how it ended and, for one that was skipped or could not finish, why, in one sentence written for the person.' required: - outcome - trigger - skipReason - why - itemsRaised - startedAt - finishedAt properties: outcome: type: string enum: - running - quiet - raised - failed - skipped description: quiet found nothing; raised opened at least one item; skipped never looked. trigger: type: string enum: - schedule - run_now description: What started it. skipReason: oneOf: - $ref: '#/components/schemas/CheckInSkipReason' - type: 'null' why: type: - string - 'null' description: One sentence on why it was skipped or could not finish, or null. itemsRaised: type: integer minimum: 0 description: How many items it raised. startedAt: type: string format: date-time description: When it started. finishedAt: type: - string - 'null' format: date-time description: When it ended, or null while it runs. CheckIn: type: object description: One thing a Bot checks in on for a person, and how often. required: - id - botId - conversationId - focus - subject - sourceLink - enabled - intervalMinutes - nextRunAt - lastRunAt - lastStatus - lastError - lastRun - createdAt - updatedAt properties: id: type: string description: The check-in's id. botId: type: string description: The Bot that checks in. conversationId: type: string description: The conversation the check-in belongs to. focus: type: string description: What to look for, in the person's words. May be empty. subject: type: string description: What it watches, in the person's words. Empty for one that watches everything the Bot reads. sourceLink: type: - string - 'null' description: The link it watches, or null. enabled: type: boolean description: False while it is paused. intervalMinutes: type: integer minimum: 60 maximum: 1440 description: How often it runs, in minutes. nextRunAt: type: string format: date-time description: When it runs next, if it is on. lastRunAt: type: - string - 'null' format: date-time description: When it last ran, or null. lastStatus: type: string x-extensible-enum: - idle - running - succeeded - error lastError: type: - string - 'null' description: What stopped its last run, or null. lastRun: oneOf: - $ref: '#/components/schemas/LastCheckIn' - type: 'null' description: Its newest check-in, or null before the first. createdAt: type: string format: date-time description: When it was turned on first. updatedAt: type: string format: date-time description: When it last changed. CheckInPage: type: object required: - checkIns - nextCursor - allowed properties: checkIns: type: array description: Newest first. items: $ref: '#/components/schemas/CheckIn' allowed: type: boolean description: False when an administrator turned check-ins off for the caller, so the caller's own switches can say who turned them off. nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateCheckInRequest: type: object additionalProperties: false required: - botId - conversationId properties: botId: type: string minLength: 1 maxLength: 128 pattern: \S description: The Bot that checks in. conversationId: type: string minLength: 1 maxLength: 128 pattern: \S description: A conversation the caller and the Bot share. focus: type: string description: What to look for. maxLength: 1000 default: '' subject: type: string description: What it watches, in a few words. maxLength: 120 default: '' sourceLink: type: - string - 'null' format: uri maxLength: 2000 pattern: ^https?:// description: A web link it watches. intervalMinutes: type: integer minimum: 60 maximum: 1440 default: 1440 description: 'How often it runs, in minutes: hourly at most, daily at least.' enabled: type: boolean default: true CheckInResponse: type: object required: - checkIn properties: checkIn: $ref: '#/components/schemas/CheckIn' UpdateCheckInRequest: type: object additionalProperties: false properties: focus: type: string description: What to look for. maxLength: 1000 intervalMinutes: type: integer minimum: 60 maximum: 1440 description: How often it runs, in minutes. enabled: type: boolean description: False pauses it; true resumes it. CheckInRunAnswer: type: object description: 'What Run now did: queued, or skipped at once with the reason and its sentence.' required: - queued properties: queued: type: boolean description: Whether a check-in was queued. skipped: $ref: '#/components/schemas/CheckInSkipReason' why: type: string description: Why it was skipped, in one sentence. Present when skipped. CheckInItem: type: object description: 'Something a Bot''s check-in found that needs the person: what it is, why, and where the Bot read it.' required: - id - botId - checkInId - title - detail - sourceApp - sourceRef - sourceLink - status - pingId - deliveredAt - resolvedAt - createdAt properties: id: type: string description: The item's id. botId: type: string description: The Bot that raised it. checkInId: type: string description: The check-in that found it. title: type: string description: What to do, in plain words. detail: type: string description: Why it was raised and what the Bot found. sourceApp: type: - string - 'null' description: The app the Bot read it in, or null. sourceRef: type: - string - 'null' description: What the Bot read it with, or null. sourceLink: type: - string - 'null' description: Where it can be opened, or null. status: type: string x-extensible-enum: - open - dismissed - started - superseded description: 'open until the person starts or hides it. superseded is the Bot''s own: a later check-in cleared it as no longer needed.' pingId: type: - string - 'null' description: The notice that told the person about it, or null while it waits for their next one. deliveredAt: type: - string - 'null' format: date-time description: When that notice went out, or null. resolvedAt: type: - string - 'null' format: date-time description: When it was started, hidden or cleared. createdAt: type: string format: date-time description: When it was raised. CheckInItemPage: type: object required: - checkInItems - nextCursor properties: checkInItems: type: array description: Newest first. items: $ref: '#/components/schemas/CheckInItem' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. StartedCheckInItem: type: object required: - checkInItem - task properties: checkInItem: $ref: '#/components/schemas/CheckInItem' task: type: object description: The task the item became. required: - id - conversationId properties: id: type: string description: The task's id. conversationId: type: string description: The task's own conversation. CheckInItemWork: type: object description: An item, started, and where the work on it goes on. Exactly one of `task` and `conversation` is set. required: - checkInItem - task - conversation properties: checkInItem: $ref: '#/components/schemas/CheckInItem' task: type: - object - 'null' description: The task the item became, where this server runs tasks in conversations of their own. Null otherwise. required: - id - conversationId properties: id: type: string description: The task's id. conversationId: type: string description: The task's own conversation. conversation: type: - object - 'null' description: Where this server runs no tasks, the caller's own conversation with the item's Bot and what to send there. Null when the item became a task. required: - id - message properties: id: type: string description: The caller's conversation with the item's Bot, that Bot alone. message: type: string description: 'The message to send in that conversation as the caller''s own: the item''s title, its detail and where it was read.' CheckInItemResponse: type: object required: - checkInItem properties: checkInItem: $ref: '#/components/schemas/CheckInItem' BotCheckInUsage: type: object required: - botId - name - avatarSeed - peopleOn - runs - items - acceptance - pinged properties: botId: type: string description: The Bot. name: type: string description: What the Bot is called. avatarSeed: type: string description: What the Bot's picture is drawn from. peopleOn: type: integer minimum: 0 description: People with check-ins on for this Bot. runs: type: object required: - quiet - raised - failed - skipped properties: quiet: type: integer minimum: 0 raised: type: integer minimum: 0 failed: type: integer minimum: 0 skipped: type: object description: Skipped check-ins, by reason. required: - off_admin - off_person - paused - capped - unreachable - no_sources - busy properties: off_admin: type: integer minimum: 0 off_person: type: integer minimum: 0 paused: type: integer minimum: 0 capped: type: integer minimum: 0 unreachable: type: integer minimum: 0 no_sources: type: integer minimum: 0 busy: type: integer minimum: 0 items: type: object description: The items it raised in the window, by where each stands now. raised is the sum of the other four. required: - raised - started - hidden - cleared - open properties: raised: type: integer minimum: 0 started: type: integer minimum: 0 hidden: type: integer minimum: 0 cleared: type: integer minimum: 0 open: type: integer minimum: 0 acceptance: type: - number - 'null' description: 'Of the items people decided on, the share they started: started divided by started plus hidden. Null until somebody decided one.' pinged: type: integer minimum: 0 description: This Bot's items that a notice carried. CheckInUsage: type: object description: How check-ins are going, per Bot. Counts only. required: - days - dailyRuns - bots - pings properties: days: type: integer enum: - 7 - 30 dailyRuns: type: integer description: How many check-ins a Bot may run for one person in a day. bots: type: array items: $ref: '#/components/schemas/BotCheckInUsage' pings: type: object description: Notices sent. One notice folds every Bot's items for a person, so they are counted once for everybody. required: - sent - itemsPerPing properties: sent: type: integer minimum: 0 itemsPerPing: type: - number - 'null' description: Items per notice, or null when none was sent. GoalSubscription: type: object additionalProperties: false description: A kind of event that wakes the goal. required: - source - eventType properties: source: type: string enum: - manual - slack - github - schedule - connector - webhook - linear - sentry - pagerduty - email eventType: type: string minLength: 1 maxLength: 128 pattern: \S Goal: type: object description: An outcome a Bot works toward for a person. required: - id - botId - conversationId - threadId - title - instruction - successCriteria - status - progress - lastResult - subscriptions - recurring - endsWhenMet - createdAt - updatedAt - completedAt properties: id: type: string description: The goal's id. botId: type: string description: The Bot that works on it. conversationId: type: string description: The conversation it belongs to. threadId: type: string description: The thread its runs are kept in. title: type: string description: What the goal is called. instruction: type: string description: What the Bot is to do. successCriteria: type: string description: When it is done. May be empty. status: type: string x-extensible-enum: - active - paused - completed progress: type: string description: Where it stands, as the Bot last recorded it. lastResult: type: - string - 'null' description: What its newest run said, or null. subscriptions: type: array items: $ref: '#/components/schemas/GoalSubscription' recurring: type: boolean description: Done again and again, and never finished by one run. endsWhenMet: type: boolean description: A run that meets the success criteria completes it. createdAt: type: string format: date-time description: When it was made. updatedAt: type: string format: date-time description: When it last changed. completedAt: type: - string - 'null' format: date-time description: When it was completed, or null. GoalPage: type: object required: - goals - nextCursor properties: goals: type: array description: Newest first. items: $ref: '#/components/schemas/Goal' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateGoalRequest: type: object additionalProperties: false required: - botId - conversationId - title - instruction properties: botId: type: string minLength: 1 maxLength: 128 pattern: \S description: The Bot that works on it. conversationId: type: string minLength: 1 maxLength: 128 pattern: \S description: A conversation the caller and the Bot share. title: type: string minLength: 1 maxLength: 160 pattern: \S description: What the goal is called. instruction: type: string minLength: 1 maxLength: 6000 pattern: \S description: What the Bot is to do. successCriteria: type: string description: When it is done. maxLength: 3000 default: '' subscriptions: type: array maxItems: 20 default: [] items: $ref: '#/components/schemas/GoalSubscription' recurring: type: boolean default: false endsWhenMet: type: boolean default: false GoalResponse: type: object required: - goal properties: goal: $ref: '#/components/schemas/Goal' sharedApps: $ref: '#/components/schemas/SharedAppsAfterChange' UpdateGoalRequest: type: object additionalProperties: false minProperties: 1 properties: title: type: string minLength: 1 maxLength: 160 pattern: \S description: What the goal is called. instruction: type: string minLength: 1 maxLength: 6000 pattern: \S description: What the Bot is to do. successCriteria: type: string description: When it is done. maxLength: 3000 subscriptions: type: array maxItems: 20 items: $ref: '#/components/schemas/GoalSubscription' recurring: type: boolean endsWhenMet: type: boolean GoalRunAccepted: type: object required: - eventId - duplicate - runIds properties: eventId: type: string description: The request, as the goal's event log keeps it. duplicate: type: boolean description: Whether this request had been taken already. runIds: type: array description: The runs it started. items: type: string GoalRun: type: object description: One run of a goal, with what the Bot said. required: - id - status - replyText - error - waiting - startedAt - finishedAt - createdAt properties: id: type: string description: The run's id. status: type: string x-extensible-enum: - queued - running - waiting - succeeded - failed - skipped replyText: type: - string - 'null' description: What the Bot said, or null. error: type: - string - 'null' description: Why it failed or was skipped, or null. waiting: oneOf: - type: object description: What the run waits on the person for. required: - kind properties: kind: type: string description: What kind of answer it waits for. requestId: type: string description: The approval or question it waits on. additionalProperties: true - type: 'null' startedAt: type: - string - 'null' format: date-time description: When it started, or null while queued. finishedAt: type: - string - 'null' format: date-time description: When it ended, or null. createdAt: type: string format: date-time description: When it was asked for. GoalRunPage: type: object required: - runs - nextCursor properties: runs: type: array description: Newest first. items: $ref: '#/components/schemas/GoalRun' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. GoalTriggerFilter: type: object additionalProperties: false description: Which of the events this kind delivers fire the trigger. properties: eventTypes: type: array maxItems: 20 default: [] description: 'Event types that fire the trigger. Empty means every event. A type matches itself and its sub-types: issues matches issues.opened.' items: type: string minLength: 1 maxLength: 128 pattern: \S field: type: object additionalProperties: false required: - path - equals description: One field of the event that must equal a value. properties: path: type: string pattern: ^[A-Za-z0-9_-]+(\.[A-Za-z0-9_-]+){0,7}$ description: A dotted path into the event, such as data.team.key. equals: type: string minLength: 1 maxLength: 256 pattern: \S WebhookTriggerConfig: type: object additionalProperties: false description: Any service that can send a signed webhook. required: - kind properties: kind: type: string const: webhook filter: $ref: '#/components/schemas/GoalTriggerFilter' GithubTriggerConfig: type: object additionalProperties: false description: A GitHub webhook. required: - kind properties: kind: type: string const: github repository: type: string maxLength: 256 pattern: ^[\w.-]+/[\w.-]+$ description: The repository, as owner/name. Deliveries for any other are refused. filter: $ref: '#/components/schemas/GoalTriggerFilter' LinearTriggerConfig: type: object additionalProperties: false description: A Linear webhook. required: - kind properties: kind: type: string const: linear filter: $ref: '#/components/schemas/GoalTriggerFilter' SentryTriggerConfig: type: object additionalProperties: false description: A Sentry webhook. required: - kind properties: kind: type: string const: sentry filter: $ref: '#/components/schemas/GoalTriggerFilter' PagerdutyTriggerConfig: type: object additionalProperties: false description: A PagerDuty webhook. required: - kind properties: kind: type: string const: pagerduty filter: $ref: '#/components/schemas/GoalTriggerFilter' EmailTriggerConfig: type: object additionalProperties: false description: An email to the trigger's own address. required: - kind properties: kind: type: string const: email allowedSenders: type: array maxItems: 20 default: [] description: Addresses or domains allowed to send. Empty admits any sender. items: type: string minLength: 1 maxLength: 254 pattern: \S filter: $ref: '#/components/schemas/GoalTriggerFilter' SlackTriggerConfig: type: object additionalProperties: false description: A Slack message in a workspace where the goal's owner linked their own Slack account. required: - kind - teamId - mode properties: kind: type: string const: slack teamId: type: string pattern: ^[A-Z0-9]{2,32}$ description: The Slack workspace's id, such as T0123ABCD. mode: type: string enum: - mention - phrase - reaction - message phrases: type: array maxItems: 20 default: [] description: 'For phrase: any one of these, in any case, fires it.' items: type: string minLength: 1 maxLength: 200 pattern: \S reactions: type: array maxItems: 20 default: [] description: 'For reaction: emoji names without colons. Empty means any reaction.' items: type: string pattern: ^[a-z0-9_+'-]{1,100}$ channels: type: array maxItems: 50 default: [] description: Slack channel ids. Empty means every channel the Bot is in. items: type: string pattern: ^[CDG][A-Z0-9]{2,32}$ GoalTriggerConfig: description: What a trigger listens for, by its kind. oneOf: - $ref: '#/components/schemas/WebhookTriggerConfig' - $ref: '#/components/schemas/GithubTriggerConfig' - $ref: '#/components/schemas/LinearTriggerConfig' - $ref: '#/components/schemas/SentryTriggerConfig' - $ref: '#/components/schemas/PagerdutyTriggerConfig' - $ref: '#/components/schemas/EmailTriggerConfig' - $ref: '#/components/schemas/SlackTriggerConfig' discriminator: propertyName: kind mapping: webhook: '#/components/schemas/WebhookTriggerConfig' github: '#/components/schemas/GithubTriggerConfig' linear: '#/components/schemas/LinearTriggerConfig' sentry: '#/components/schemas/SentryTriggerConfig' pagerduty: '#/components/schemas/PagerdutyTriggerConfig' email: '#/components/schemas/EmailTriggerConfig' slack: '#/components/schemas/SlackTriggerConfig' GoalTrigger: type: object description: 'A registered way for an outside event to start a run of a goal. Never its secret: hasSecret says whether one is set.' required: - id - goalId - kind - config - hasSecret - enabled - path - address - createdAt - updatedAt properties: id: type: string description: The trigger's id. goalId: type: string description: The goal it starts. kind: type: string enum: - webhook - github - linear - sentry - pagerduty - email - slack config: $ref: '#/components/schemas/GoalTriggerConfig' hasSecret: type: boolean enabled: type: boolean description: 'False while it is off: it acknowledges deliveries and never starts a run.' path: type: - string - 'null' description: The path on this server the sending service posts to, for webhook and provider kinds. Null for email and Slack. address: type: - string - 'null' description: The address to send mail to, for an email trigger where inbound email is set up. Null otherwise. emailConfigured: type: boolean description: For an email trigger, whether this OpenBot can receive email at all. createdAt: type: string format: date-time description: When it was added. updatedAt: type: string format: date-time description: When it last changed. GoalTriggerPage: type: object required: - triggers - nextCursor properties: triggers: type: array description: Oldest first. items: $ref: '#/components/schemas/GoalTrigger' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateGoalTriggerRequest: type: object additionalProperties: false required: - config properties: config: $ref: '#/components/schemas/GoalTriggerConfig' secret: type: string writeOnly: true maxLength: 4096 description: The signing secret pasted from the provider, for kinds whose secret the provider makes. Stored encrypted. GoalTriggerWithSecret: type: object required: - trigger - secret properties: trigger: $ref: '#/components/schemas/GoalTrigger' secret: type: - string - 'null' description: The secret OpenBot made, shown this once. Null when the secret was pasted, or the kind has none. sharedApps: $ref: '#/components/schemas/SharedAppsAfterChange' UpdateGoalTriggerRequest: type: object additionalProperties: false required: - config properties: config: $ref: '#/components/schemas/GoalTriggerConfig' GoalTriggerResponse: type: object required: - trigger properties: trigger: $ref: '#/components/schemas/GoalTrigger' sharedApps: $ref: '#/components/schemas/SharedAppsAfterChange' GoalTriggerSecret: type: object required: - secret properties: secret: type: - string - 'null' description: The secret, or null for a kind that has none. ReplaceGoalTriggerSecretRequest: type: object additionalProperties: false properties: secret: type: string writeOnly: true maxLength: 4096 description: The provider's new signing secret. Absent has OpenBot make one, for a webhook or GitHub trigger. GithubEventSource: type: object description: A GitHub repository whose webhook reaches the person's goals. Never its secret. required: - id - source - repository - createdAt - webhookPath properties: id: type: string description: The source's id. source: type: string const: github repository: type: string description: The repository, as owner/name. createdAt: type: string format: date-time description: When it was connected. webhookPath: type: string description: The path on this server to give the repository's webhook, with the source's secret. A client shows it on this server's own address and never builds it. GithubEventSourcePage: type: object required: - githubEventSources - nextCursor properties: githubEventSources: type: array description: Oldest first. items: $ref: '#/components/schemas/GithubEventSource' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateGithubEventSourceRequest: type: object additionalProperties: false required: - repository - secret properties: repository: type: string maxLength: 256 pattern: ^[\w.-]+/[\w.-]+$ description: The repository, as owner/name. secret: type: string writeOnly: true minLength: 1 maxLength: 4096 description: The secret set on the repository's webhook. GithubEventSourceResponse: type: object required: - githubEventSource properties: githubEventSource: $ref: '#/components/schemas/GithubEventSource' FollowUpCancelled: type: object required: - cancelled properties: cancelled: type: boolean const: true Organization: type: object description: One organization, as one of its members sees it. role and active are the server's verdicts about the caller. required: - id - slug - name - role - active - personal properties: personal: type: boolean description: 'Whether this is the caller''s own organization: the one OpenBot made for them when they first signed in.' id: type: string description: The organization's id. Opaque. slug: type: string description: Its short name, which also addresses it. name: type: string description: What people call it. role: $ref: '#/components/schemas/PersonRoleAnswer' active: type: boolean description: 'Whether the caller is working in this one: the organization their session works in, or for an app''s token the one its OpenBot-Organization header names, else the one the token was signed in to while the caller is a member of it, else the caller''s own. Always false for a request made with an API key.' canMoveIn: type: boolean description: 'Whether the caller may move their Bots into this organization (createImport): true where the organization lets them use Bots. The server''s verdict, by the organization''s own rules. Present only where OpenBot takes moves (OpenBot Cloud).' OrganizationPage: type: object required: - organizations - canCreate - nextCursor properties: organizations: type: array description: The one the caller joined first at the top. items: $ref: '#/components/schemas/Organization' canCreate: type: boolean description: 'Whether the caller may create another organization: the server''s verdict, true for anybody signed in where OpenBot keeps more than one organization. The same on every page.' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateOrganizationRequest: type: object additionalProperties: false required: - name properties: name: type: string minLength: 1 maxLength: 100 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: What people call it. slug: type: string minLength: 2 maxLength: 48 pattern: ^[a-z0-9]+(-[a-z0-9]+)*$ description: 'Its short name: lowercase letters, digits and single hyphens. Unique in the install. Made from the name when absent.' OrganizationResponse: type: object required: - organization properties: organization: $ref: '#/components/schemas/Organization' OrganizationMember: type: object description: One member of an organization. required: - id - email - name - image - role - joinedAt - removable - assignableRoles properties: removable: type: boolean description: 'Whether this membership can end: an admin can remove them and they can leave. The server''s verdict. False for the organization''s last owner, who stays in it, for the owner of their own organization, and for somebody this OpenBot''s settings keep as an admin of the organization.' assignableRoles: type: array description: The roles the caller may give this member, their current one left out. The server's verdict. Empty when the caller may not change this member's role. items: $ref: '#/components/schemas/PersonRoleAnswer' id: type: string description: The person's id. email: type: string description: Their address. name: type: - string - 'null' description: What OpenBot calls them. Null until they choose. image: type: - string - 'null' description: Their picture's address, when they have one. role: $ref: '#/components/schemas/PersonRoleAnswer' joinedAt: type: string format: date-time description: When they became a member. notOpenedYet: type: boolean description: 'True for somebody who is a member of the organization where it is kept, at OpenBot by CopilotKit on a hosted OpenBot, and hasn''t opened OpenBot yet. Until they do, they have no OpenBot account: id is their id there, and email is empty when none is known. An owner or an admin removes them by that id, as any member (removable says whether they can be). They can''t be given another role here until they open OpenBot (assignableRoles is empty). Absent for everybody else.' deactivated: type: boolean description: 'True while a deletion of this person''s account (requestAccountDeletion) stopped partway and is still finishing: they can''t use OpenBot, nothing runs for them, and the membership ends when the deletion finishes. The server''s verdict. False or absent for everybody else.' OrganizationMemberPage: type: object required: - members - nextCursor properties: members: type: array description: In the order they joined. items: $ref: '#/components/schemas/OrganizationMember' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. UpdateOrganizationRequest: type: object additionalProperties: false required: - name properties: name: type: string minLength: 1 maxLength: 100 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: What people call it. UpdateOrganizationMemberRequest: type: object additionalProperties: false required: - role properties: role: $ref: '#/components/schemas/PersonRole' OrganizationMemberResponse: type: object required: - member properties: member: $ref: '#/components/schemas/OrganizationMember' InvitationSender: type: object description: Who sent an invitation. required: - name - email properties: name: type: - string - 'null' description: What OpenBot calls them. Null until they choose. email: type: string description: Their address. OrganizationInvitation: type: object description: An invitation an organization sent, as its admins see it. status is the server's verdict. required: - id - email - role - status - invitedBy - createdAt - expiresAt properties: id: type: string description: The invitation's id. Opaque. email: type: string description: The address it was sent to. role: $ref: '#/components/schemas/AssignableRole' status: type: string x-extensible-enum: - pending - expired - declined description: pending while it waits for an answer, expired once its seven days ran out, declined when the person turned it down. invitedBy: $ref: '#/components/schemas/InvitationSender' createdAt: type: string format: date-time description: When it was sent. expiresAt: type: string format: date-time description: When it stops being accepted. OrganizationInvitationPage: type: object required: - invitations - nextCursor properties: invitations: type: array description: The newest first. items: $ref: '#/components/schemas/OrganizationInvitation' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateOrganizationInvitationRequest: type: object additionalProperties: false required: - email - role properties: email: type: string minLength: 3 maxLength: 320 pattern: ^[^\s\x00]+@[^\s\x00]+$ description: The address of the person to invite. role: $ref: '#/components/schemas/AssignableRole' OrganizationInvitationResponse: type: object required: - invitation - delivery properties: invitation: $ref: '#/components/schemas/OrganizationInvitation' delivery: type: string enum: - emailed - link description: How the person hears of it. emailed when OpenBot sent them an email. link when it could not or is not set up to, so the inviter passes the invitation's link on themselves. Either way the person sees the invitation in OpenBot when they sign in. OrganizationPlan: type: object description: Whether this OpenBot needs the organization to be on a plan, and where the organization stands for the person reading it. When required is true, a run starts only while status is free, trialing or active. required: - required - status - trialEndsAt - renewsAt - addCardUrl properties: required: type: boolean description: True when this OpenBot runs an organization's Bots only while it is on a plan, or while the person the run counts against has free runs left. status: type: string x-extensible-enum: - not_required - free - trialing - active - past_due - none - unknown description: 'not_required when this OpenBot needs no plan. free when the organization isn''t on the plan and the person reading has free runs left, or works for the company that makes OpenBot (copilotKitEmployee) and would otherwise read none. active on the plan. past_due when a payment failed and the card needs updating. none when a card is needed: the person''s free runs are used up, or there are none, or the plan ended. trialing during a free trial that ends on a date (trialEndsAt); OpenBot Cloud''s free allowance is counted in runs and doesn''t use it. unknown when the plan couldn''t be read just now; Bots keep running meanwhile.' freeRunsUsedPercent: type: integer minimum: 0 maximum: 100 description: How much of the reading person's free allowance is used, from 0 to 100. The allowance is the person's own, across every organization they are in. Rounded down, so it reads 100 only once every free run is used. Present only while required is true and status is neither active nor trialing; absent otherwise. The count of runs is never sent. freeRunsAllowance: type: integer minimum: 1 description: How many free runs each person gets. Present only once the reading person has used them all (freeRunsUsedPercent is 100, and status is none, or free for copilotKitEmployee), so the number is never shown while runs are left; absent otherwise. copilotKitEmployee: type: boolean description: 'True when the reading person works for the company that makes OpenBot: their verified email address is on the copilotkit.ai domain exactly. An employee''s own runs are never refused for want of a plan, in any organization, whatever status says. status is still the organization''s own (active, past_due and the rest), with one exception: where it would be none, an employee reads free, so once their free allowance is used they get freeRunsUsedPercent 100 and freeRunsAllowance. Their addCardUrl is null, unless they are an owner or an admin and the organization needs a card for members who aren''t employees: then it is set, so they can pay for the others. past_due keeps its addCardUrl for an owner or an admin, since the organization''s payment still needs updating for everyone else in it. Present only while required is true and the reader is an employee; absent otherwise. It is about the reader alone: other members of the same organization are unaffected, and the organization''s plan is unchanged.' trialEndsAt: type: - string - 'null' format: date-time description: When a free trial that ends on a date ends, while status is trialing. Null otherwise. OpenBot Cloud's free allowance is counted in runs and doesn't use it. renewsAt: type: - string - 'null' format: date-time description: When the plan's current month ends, while status is active. Null otherwise. addCardUrl: type: - string - 'null' format: uri-reference maxLength: 2048 description: Where an owner or an admin goes in the browser to add a card, or to update it after a failed payment. A page to open, not an API call. Null for a member, and when the organization needs no card. Invitation: type: object description: An invitation as the person it was sent to sees it. status is the server's verdict. required: - id - organization - role - status - invitedBy - createdAt - expiresAt properties: id: type: string description: The invitation's id. Opaque. organization: type: object description: The organization it is an invitation to. required: - id - slug - name properties: id: type: string description: The organization's id. Opaque. slug: type: string description: Its short name. name: type: string description: What people call it. role: $ref: '#/components/schemas/AssignableRole' status: type: string x-extensible-enum: - pending - expired - accepted - declined - canceled description: pending while it can still be answered. expired once its seven days ran out, accepted or declined once the person answered, canceled when the organization took it back. invitedBy: $ref: '#/components/schemas/InvitationSender' createdAt: type: string format: date-time description: When it was sent. expiresAt: type: string format: date-time description: When it stops being accepted. InvitationPage: type: object required: - invitations - nextCursor properties: invitations: type: array description: The newest first. items: $ref: '#/components/schemas/Invitation' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. InvitationResponse: type: object required: - invitation properties: invitation: $ref: '#/components/schemas/Invitation' AccountDeletionStatus: type: string x-extensible-enum: - none - deleting description: 'Whether a deletion of the account is still finishing. none: no deletion has started. deleting: one was confirmed and stopped partway; the server finishes it on its own, and requestAccountDeletion finishes it at once. A later OpenBot may add a state; read one you don''t know as deleting.' AccountDeletionBlocker: type: object description: An organization the person has to deal with before their account can be deleted, and why. required: - organizationId - organizationName - reason properties: organizationId: type: string description: The organization's id. organizationName: type: string description: The organization's name, as its members see it. reason: type: string x-extensible-enum: - only_owner - owner_must_leave - only_admin description: 'only_owner: the person is its only owner, so they make another member an owner or delete the organization. owner_must_leave: it has other owners, so the person leaves it. only_admin: it has no owner and the person is its only admin, so they make another member an admin. A later OpenBot may add a reason; read one you don''t know as having to leave it.' AccountDeletion: type: object description: Where deleting the caller's account stands. blockers is the server's verdict; a client renders it and never recomputes it. required: - status - blockers properties: status: $ref: '#/components/schemas/AccountDeletionStatus' blockers: type: array description: The organizations that stop the account being deleted now. Empty when nothing does. items: $ref: '#/components/schemas/AccountDeletionBlocker' RequestAccountDeletionRequest: type: object additionalProperties: false required: - confirmEmail - confirmPhrase properties: confirmEmail: type: string minLength: 1 maxLength: 320 pattern: ^[^\x00]*$ description: The email address the person signs in with, typed by them. Matched without regard to case or the spaces around it. confirmPhrase: type: string minLength: 1 maxLength: 100 pattern: ^[^\x00]*$ description: The words delete my account, typed by the person. Matched without regard to case or the spaces around it. immediate: type: boolean description: 'Must be true: the person confirmed the account is deleted now. Deleting is always immediate. Absent or false, the request is refused with 422 (ACCOUNT_DELETION_NOT_CONFIRMED) and deletes nothing: it comes from an app from before deleting was immediate, whose Delete in 14 days sent no immediate.' DeletedAccount: type: object description: The account is deleted. required: - status properties: status: type: string x-extensible-enum: - deleted description: deleted. AccountDeletionProblem: description: 'A refused account deletion: the shared problem details, with the organizations that block it (ACCOUNT_DELETION_BLOCKED).' allOf: - $ref: '#/components/schemas/Problem' - type: object properties: blockers: type: array description: The organizations to deal with first, as getAccountDeletion lists them. items: $ref: '#/components/schemas/AccountDeletionBlocker' TeamSource: type: string description: 'Where a team comes from. openbot is a team made here. directory is a group of the company''s directory, kept in step with it: its name and its people are the directory''s and can''t be changed here.' enum: - openbot - directory TeamRole: type: string description: A person's role in a team. A maintainer can rename the team and add and remove its people; a member cannot. enum: - maintainer - member Team: type: object description: One team of an organization, as one of the organization's members sees it. role and canManage are the server's verdicts about the caller. required: - id - name - description - parentTeamId - source - memberCount - role - canManage - canMove - canDelete - createdAt properties: id: type: string description: The team's id. Opaque. name: type: string description: What people call it. Unique in its organization. description: type: - string - 'null' description: What the team is for, when somebody has said. parentTeamId: type: - string - 'null' description: The team this one sits under, whose grants its members also have. Null for a team under none. source: $ref: '#/components/schemas/TeamSource' memberCount: type: integer minimum: 0 description: 'How many people are in the team itself: the people its members list shows.' role: oneOf: - $ref: '#/components/schemas/TeamRole' - type: 'null' description: The caller's role in the team. Null when they are not in it. canManage: type: boolean description: 'Whether the caller may rename the team and add and remove its people: the server''s verdict.' canMove: type: boolean description: 'Whether the caller may put the team under another team or take it out from under one: the server''s verdict, true for an owner or an admin of the organization.' canDelete: type: boolean description: 'Whether the caller may delete the team: the server''s verdict, true for an owner or an admin of the organization, and never for a team that comes from the company''s directory.' createdAt: type: string format: date-time description: When the team was created. TeamPage: type: object required: - teams - canCreate - nextCursor properties: teams: type: array description: In the order they were created. items: $ref: '#/components/schemas/Team' canCreate: type: boolean description: 'Whether the caller may create a team here: the server''s verdict. The same on every page.' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateTeamRequest: type: object additionalProperties: false required: - name properties: name: type: string minLength: 1 maxLength: 100 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: What people call it. description: type: string maxLength: 500 pattern: ^[^\x00]*$ description: What the team is for. parentTeamId: type: string minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9_-]+$ description: A team of the same organization to put this one under. TeamResponse: type: object required: - team properties: team: $ref: '#/components/schemas/Team' UpdateTeamRequest: type: object additionalProperties: false minProperties: 1 properties: name: type: string minLength: 1 maxLength: 100 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: What people call it. description: type: - string - 'null' maxLength: 500 pattern: ^[^\x00]*$ description: What the team is for. Null clears it. parentTeamId: type: - string - 'null' minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9_-]+$ description: A team of the same organization to put this one under. Null takes it out from under its parent. TeamMember: type: object description: One person in a team. required: - id - email - name - image - role - isCaller - joinedAt properties: id: type: string description: The person's id. email: type: string description: Their address. name: type: - string - 'null' description: What OpenBot calls them. Null until they choose. image: type: - string - 'null' description: Their picture's address, when they have one. role: $ref: '#/components/schemas/TeamRole' isCaller: type: boolean description: Whether this person is the caller. joinedAt: type: string format: date-time description: When they joined the team. TeamMemberPage: type: object required: - members - nextCursor properties: members: type: array description: In the order they joined the team. items: $ref: '#/components/schemas/TeamMember' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. PutTeamMemberRequest: type: object additionalProperties: false required: - role properties: role: $ref: '#/components/schemas/TeamRole' TeamMemberResponse: type: object required: - member properties: member: $ref: '#/components/schemas/TeamMember' TeamModelId: type: string minLength: 1 maxLength: 200 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: 'A model, as provider/model: the organization''s model allowlist names models this way, from the catalogue''s provider and a model''s id (getModelCatalogue).' example: openai/gpt-5.6-terra TeamModels: type: object description: 'The models a team allows its people to run. models null: the team sets none, and its people run what their other teams and the organization allow.' required: - models - updatedBy - updatedAt properties: models: type: - array - 'null' description: The models, as provider/model, in the order they were saved. Null when the team sets none. items: $ref: '#/components/schemas/TeamModelId' updatedBy: type: - string - 'null' description: The id of the person who last set them. Null when the team sets none, or that person's account is gone. updatedAt: type: - string - 'null' format: date-time description: When they were last set. Null when the team sets none. TeamModelsInput: type: object additionalProperties: false required: - models properties: models: type: array minItems: 1 maxItems: 200 uniqueItems: true description: The models the team's people may run, as provider/model. Each one the organization's model catalogue offers. items: $ref: '#/components/schemas/TeamModelId' ApprovalStatus: type: string description: Where an approval stands. pending waits for the person. approved and denied are decided, and consumed is started; the server then carries the conversation on. completed is finished. x-extensible-enum: - pending - approved - denied - consumed - completed ApprovalDecision: type: string description: 'What a person answers an approval with. allow_once runs it this once. allow_conversation runs it and the same action for the rest of the conversation. allow_always runs it and saves a rule of the person''s own. deny declines it. handled answers an action handed to the person: they did it themselves, so it is never run for them.' enum: - allow_once - allow_conversation - allow_always - deny - handled ApprovalResult: type: object description: What came of a decided action. properties: error: type: string description: Why the action was not done. Absent when it was. ApprovalLeft: type: object description: 'Set when the conversation could not be carried on after the approval was decided: whether the action was done, the sentence that says so, and the answer the Bot never received.' required: - done - message - answer properties: done: type: boolean message: type: string answer: type: string ApprovalActionKind: type: string description: A kind of action OpenBot recognises by name and asks about whatever a person's own switch says. enum: - deleting - sending - sharing - publishing - payments - credentials - security_settings ApprovalPolicyOutcome: type: object description: Why an action asks, as the card that asks about it says. required: - behaviour - source - reason properties: behaviour: type: string enum: - allow - ask - hand_off - deny source: type: string minLength: 1 description: 'Which layer decided: safety, team_rule, personal_rule, auto_review, default, person_declined, conversation or task.' reason: type: string kind: $ref: '#/components/schemas/ApprovalActionKind' closed: type: boolean description: The organization set this kind to ask every time, so the only answers are allow_once and deny. ApprovalAction: type: object description: The action an approval is about. required: - botId - toolRef - effect - scope - threadId properties: botId: type: string toolRef: type: string description: The tool or app the action calls. effect: type: string description: What kind of effect the action has, such as read or write. scope: type: string description: What the action is aimed at. threadId: type: string description: The thread of the conversation the action was asked in. toolCallId: type: string description: The call in that conversation, so a screen draws the approval where the action was. args: description: What the action was called with, cut short for showing, with values that look like secrets masked. Any JSON value. target: description: What the action was aimed at, cut short for showing. Any JSON value. account: type: string description: Which of the person's accounts at the app, where they hold several. policy: $ref: '#/components/schemas/ApprovalPolicyOutcome' Approval: type: object description: One action a Bot asked a person about before running it. required: - id - status - decision - result - createdAt - decidedAt - consumedAt - completedAt - action properties: id: type: string minLength: 1 status: $ref: '#/components/schemas/ApprovalStatus' decision: description: What the person answered. Null while it waits. oneOf: - $ref: '#/components/schemas/ApprovalDecision' - type: 'null' result: description: What came of it. Null until the action has an outcome. oneOf: - $ref: '#/components/schemas/ApprovalResult' - type: 'null' createdAt: type: string format: date-time decidedAt: type: - string - 'null' format: date-time consumedAt: type: - string - 'null' format: date-time completedAt: type: - string - 'null' format: date-time left: $ref: '#/components/schemas/ApprovalLeft' action: $ref: '#/components/schemas/ApprovalAction' ApprovalPage: type: object required: - approvals - nextCursor properties: approvals: type: array description: The newest first. items: $ref: '#/components/schemas/Approval' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. DecideApprovalRequest: type: object additionalProperties: false required: - decision properties: decision: $ref: '#/components/schemas/ApprovalDecision' QuestionPart: type: object description: One decision inside a question, answered on its own. required: - header - question properties: header: type: string question: type: string options: type: array description: The likely answers. Absent for an answer the person types. items: type: string Question: type: object description: A question a Bot asked a person, waiting for their answer. required: - id - botId - conversationBotId - threadId - question - createdAt properties: id: type: string minLength: 1 botId: type: string description: The Bot that asked. conversationBotId: type: string description: 'The Bot whose conversation the question belongs to: for work one Bot handed to another, the Bot that handed it on.' threadId: type: string channelId: type: string description: The conversation it was asked in, which is where it is answered. question: type: string why: type: string parts: type: array items: $ref: '#/components/schemas/QuestionPart' createdAt: type: string format: date-time QuestionPage: type: object required: - questions - nextCursor properties: questions: type: array description: The newest first. items: $ref: '#/components/schemas/Question' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. RespondToQuestionRequest: type: object additionalProperties: false required: - response properties: response: type: string minLength: 1 maxLength: 6000 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: The person's answer. Trimmed. inConversation: type: boolean description: Sent from the open conversation, which then runs the answer as its own next turn when that is where it belongs. QuestionAnswer: type: object required: - id - continueHere properties: id: type: string minLength: 1 continueHere: type: boolean description: True when the question is closed and the open conversation runs the answer as its next turn. False when the server carries the Bot's work on with the answer. HostCommandPolicy: type: string description: 'Commands on a person''s own computer: ask each time, allow them, or never run them.' enum: - ask - allow - never ApprovalPreferences: type: object description: What a person set for themselves about asking. required: - enabled - autoReview - hostCommands - effectiveHostCommands properties: enabled: type: boolean description: Ask before a Bot makes changes. autoReview: type: boolean description: Let the reviewer decide what is safe to run without asking. hostCommands: $ref: '#/components/schemas/HostCommandPolicy' effectiveHostCommands: description: 'The person''s choice after the organization''s limit: the stricter of the two applies.' allOf: - $ref: '#/components/schemas/HostCommandPolicy' UpdateApprovalPreferencesRequest: type: object additionalProperties: false minProperties: 1 properties: enabled: type: boolean autoReview: type: boolean hostCommands: $ref: '#/components/schemas/HostCommandPolicy' ApprovalRuleBehaviour: type: string description: What a matching rule does. allow takes the action without asking. pre_approved takes it only when the person asked for that exact action in the request. ask asks first. hand_off leaves it to the person. enum: - allow - pre_approved - ask - hand_off PersonApprovalRule: type: object description: A rule a person saved for their own Bots' actions. required: - id - botId - toolRef - effect - scope - behaviour - account - kind - createdAt properties: id: type: string minLength: 1 botId: type: string toolRef: type: string effect: type: string scope: type: string behaviour: $ref: '#/components/schemas/ApprovalRuleBehaviour' account: type: - string - 'null' description: The one account at the app the rule is for, or null for whichever account. kind: description: The kind of action the rule was saved from, by always allowing that kind's approval, or null. oneOf: - $ref: '#/components/schemas/ApprovalActionKind' - type: 'null' createdAt: type: string format: date-time PersonApprovalRulePage: type: object required: - approvalRules - nextCursor properties: approvalRules: type: array description: The newest first. items: $ref: '#/components/schemas/PersonApprovalRule' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. ApprovalRulePattern: type: string minLength: 1 maxLength: 300 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: An exact value, or a pattern where * matches anything, so mcp/gmail/* names every Gmail tool. Trimmed. ApprovalRuleInput: type: object additionalProperties: false required: - toolRef - behaviour properties: botId: description: Which Bot. Every Bot when left out. default: '*' allOf: - $ref: '#/components/schemas/ApprovalRulePattern' toolRef: description: Which tool or app. allOf: - $ref: '#/components/schemas/ApprovalRulePattern' effect: description: Which kind of effect. Every kind when left out. default: '*' allOf: - $ref: '#/components/schemas/ApprovalRulePattern' scope: description: Which target. Every target when left out. default: '*' allOf: - $ref: '#/components/schemas/ApprovalRulePattern' behaviour: $ref: '#/components/schemas/ApprovalRuleBehaviour' ApprovalRuleChange: type: object additionalProperties: false minProperties: 1 properties: botId: $ref: '#/components/schemas/ApprovalRulePattern' toolRef: $ref: '#/components/schemas/ApprovalRulePattern' effect: $ref: '#/components/schemas/ApprovalRulePattern' scope: $ref: '#/components/schemas/ApprovalRulePattern' behaviour: $ref: '#/components/schemas/ApprovalRuleBehaviour' ConversationGrant: type: object description: 'One "Allow for this conversation": one action, in one conversation, for one person, until they turn it off or delete the conversation.' required: - id - threadId - botId - toolRef - effect - scope - createdAt properties: id: type: string minLength: 1 threadId: type: string description: The thread of the conversation it holds in. botId: type: string toolRef: type: string effect: type: string scope: type: string account: type: string kind: $ref: '#/components/schemas/ApprovalActionKind' createdAt: type: string format: date-time ConversationGrantPage: type: object required: - conversationGrants - nextCursor properties: conversationGrants: type: array description: The newest first. items: $ref: '#/components/schemas/ConversationGrant' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. ApprovalMode: type: object description: How one conversation asks. required: - asksEveryStep properties: asksEveryStep: type: boolean description: True for the conversation of a task started from a check-in, where every change asks first whatever the person's rules say. ComputerStepConversation: type: object additionalProperties: false description: 'The conversation a computer step was called in, as the client holds it: an AG-UI run input, with the call the step answers. The messages are AG-UI''s own, so each one is an open object here and is checked as AG-UI checks it.' required: - runId - threadId - toolCallId - toolName - messages - context properties: runId: type: string minLength: 1 threadId: type: string minLength: 1 toolCallId: type: string minLength: 1 description: The unanswered tool call in the messages that this step is. toolName: type: string minLength: 1 description: The computer tool called, which the call in the messages names too. args: description: The call's arguments, equal to the ones the call in the messages carries. Any JSON value. messages: type: array items: type: object additionalProperties: true description: An AG-UI message. state: description: The run's state. Any JSON value. context: type: array items: type: object additionalProperties: true description: An AG-UI context entry. forwardedProps: description: What the client forwards to the run. Any JSON value. ComputerStepRequest: type: object additionalProperties: false required: - botId - conversation properties: botId: type: string minLength: 1 maxLength: 200 pattern: \S description: The Bot whose computer takes the step. conversation: $ref: '#/components/schemas/ComputerStepConversation' ComputerStepDone: type: object description: The step ran. What the computer answered is the result. required: - outcome properties: outcome: type: string const: done result: description: What the computer answered, as the tool's result. Any JSON value. ComputerStepWaiting: type: object description: The step waits for the person's approval. Nothing ran. The decision runs it once and carries the conversation on. required: - outcome - reason properties: outcome: type: string const: waiting approvalId: type: string description: The approval to decide. reason: type: string ComputerStepHandoff: type: object description: The request for a person that holds the computer. required: - id - reason - source - status - createdAt - updatedAt properties: id: type: string toolCallId: type: string reason: type: string source: type: string status: type: string createdAt: type: string updatedAt: type: string expiresAt: type: string finishedAt: type: string interruption: type: string url: type: string keepsPage: type: boolean ComputerStepHeld: type: object description: The computer is held for a person, so nothing ran. The error is what the Bot is told. required: - outcome - error - humanHasControl properties: outcome: type: string const: held error: type: string humanHasControl: type: boolean const: true requestId: type: string handoff: $ref: '#/components/schemas/ComputerStepHandoff' ComputerStepTaken: type: object description: 'The server already ran, or is running, this step: the same tool call in the same conversation. It is not run a second time. While the first run goes on, running is true and there is no result yet; ask again for it. Once the first run has ended, result is what it answered. A first run that was cut off before it answered has, as its result, a note that its outcome is unknown, to check before doing it again. Sent only to a request whose OpenBot-Capabilities header names computer-step-taken.' required: - outcome - threadId - toolCallId - running properties: outcome: type: string const: taken threadId: type: string description: The conversation's thread the step belongs to. toolCallId: type: string description: The tool call the step answers. running: type: boolean description: True while the first run of the step has not ended. result: description: What the first run answered, as the tool's result, once it has ended. Any JSON value. ComputerStepOutcome: description: What came of a computer step, by its outcome. oneOf: - $ref: '#/components/schemas/ComputerStepDone' - $ref: '#/components/schemas/ComputerStepWaiting' - $ref: '#/components/schemas/ComputerStepHeld' - $ref: '#/components/schemas/ComputerStepTaken' discriminator: propertyName: outcome mapping: done: '#/components/schemas/ComputerStepDone' waiting: '#/components/schemas/ComputerStepWaiting' held: '#/components/schemas/ComputerStepHeld' taken: '#/components/schemas/ComputerStepTaken' ApprovalActionKindPolicy: type: string description: What the organization lets people do about one kind of action. open, the default, asks, and the person can allow it once, for the conversation, or always. ask asks every time, with allow once and deny only. hand_off leaves it to the person to do themselves. enum: - open - ask - hand_off ApprovalActionKinds: type: object additionalProperties: false description: What the organization lets people do about each kind of action. A kind not named is open. properties: deleting: $ref: '#/components/schemas/ApprovalActionKindPolicy' sending: $ref: '#/components/schemas/ApprovalActionKindPolicy' sharing: $ref: '#/components/schemas/ApprovalActionKindPolicy' publishing: $ref: '#/components/schemas/ApprovalActionKindPolicy' payments: $ref: '#/components/schemas/ApprovalActionKindPolicy' credentials: $ref: '#/components/schemas/ApprovalActionKindPolicy' security_settings: $ref: '#/components/schemas/ApprovalActionKindPolicy' ApprovalSettings: type: object description: What the organization decides about asking, for everybody. required: - enforceAutoReview - customRulesEnabled - hostCommandsCap - actionKinds properties: enforceAutoReview: type: boolean description: The reviewer reads every action, whatever a person chose. customRulesEnabled: type: boolean description: People may save rules of their own. hostCommandsCap: description: The most a person may allow for commands on their own computer. allOf: - $ref: '#/components/schemas/HostCommandPolicy' actionKinds: $ref: '#/components/schemas/ApprovalActionKinds' UpdateApprovalSettingsRequest: type: object additionalProperties: false minProperties: 1 properties: enforceAutoReview: type: boolean customRulesEnabled: type: boolean hostCommandsCap: $ref: '#/components/schemas/HostCommandPolicy' actionKinds: description: The kinds to change. A kind left out stays as it was set. allOf: - $ref: '#/components/schemas/ApprovalActionKinds' ApprovalRule: type: object description: A rule the organization set for everybody's Bots' actions. required: - id - botId - toolRef - effect - scope - behaviour - createdBy - createdAt properties: id: type: string minLength: 1 botId: type: string toolRef: type: string effect: type: string scope: type: string behaviour: $ref: '#/components/schemas/ApprovalRuleBehaviour' createdBy: type: - string - 'null' description: The id of the administrator who made it, where that is known. createdAt: type: string format: date-time ApprovalRulePage: type: object required: - approvalRules - nextCursor properties: approvalRules: type: array description: The newest first. items: $ref: '#/components/schemas/ApprovalRule' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. ApprovalRuleDraftDescription: type: object additionalProperties: false required: - text properties: text: type: string minLength: 1 maxLength: 1000 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: The rule in a sentence or two, at most 1,000 characters once trimmed. ApprovalRuleDraftWrittenRow: type: object description: A rule as the model wrote it. When the check passes it is a valid ApprovalRuleDraftRow; when it does not, it is kept as written so an administrator can see and fix what failed. required: - botId - toolRef - effect - scope - behaviour properties: botId: type: string toolRef: type: string effect: type: string scope: type: string behaviour: type: string ApprovalRuleDraftProblem: type: object description: What is wrong with one field of one rule. required: - row - field - message properties: row: type: integer minimum: 1 description: Which rule, counted from 1. field: type: string enum: - botId - toolRef - effect - scope - behaviour message: type: string ApprovalRuleDraftCheck: type: object description: Whether every rule matches real tools, kinds of action and Bots, by the approval gate's own matcher. error and problems say what is wrong when one does not. required: - ok properties: ok: type: boolean error: type: string problems: type: array items: $ref: '#/components/schemas/ApprovalRuleDraftProblem' ApprovalRuleDraftTranslation: type: object required: - rules - summary - explanation - check - warning properties: rules: type: array items: $ref: '#/components/schemas/ApprovalRuleDraftWrittenRow' summary: type: - string - 'null' description: The rules in one sentence, read from the rules alone. Null when they don't check. explanation: type: - string - 'null' description: What the rules do, read from the rules alone. Null when they don't check. check: $ref: '#/components/schemas/ApprovalRuleDraftCheck' warning: type: - string - 'null' description: Set when a rule covers every action every Bot takes. ApprovalRuleDraftBehaviour: type: string enum: - allow - pre_approved - ask - hand_off description: 'What happens to an action a rule matches. allow: the Bot takes it without asking. pre_approved: without asking only when the person asked for that exact action in the conversation. ask: the Bot asks first. hand_off: the person does it themselves.' ApprovalRuleDraftRow: type: object description: One candidate rule. The four patterns are globs, where * matches any run of characters and every other character matches itself. additionalProperties: false required: - botId - toolRef - effect - scope - behaviour properties: botId: type: string maxLength: 300 pattern: ^[^\x00]*$ description: The Bot taking the action, by its id, or * for every Bot. toolRef: type: string maxLength: 300 pattern: ^[^\x00]*$ description: The tool, such as composio-gmail/* for every tool of that app. effect: type: string maxLength: 300 pattern: ^[^\x00]*$ description: The kind of action, such as read or write. scope: type: string maxLength: 300 pattern: ^[^\x00]*$ description: The target. For an app's tool it is the app's id. behaviour: $ref: '#/components/schemas/ApprovalRuleDraftBehaviour' ApprovalRuleDraftReplayInput: type: object additionalProperties: false required: - rules properties: rules: type: array minItems: 1 maxItems: 8 items: $ref: '#/components/schemas/ApprovalRuleDraftRow' limit: type: integer minimum: 1 maximum: 1000 description: How many recent actions of each kind to test against. 500 when absent. ApprovalRuleDraftInitiator: type: object description: What started the run the action was part of, such as a person or a routine. required: - kind - id properties: kind: type: string id: type: - string - 'null' ApprovalRuleDraftSubject: type: object description: What an action was aimed at, where the record names it. properties: file: type: string page: type: string command: type: string folder: type: string ApprovalRuleDraftReplayChange: type: object description: One action the approval gate already decided that the rules are about. required: - id - createdAt - ownerUserId - initiator - bot - toolRef - effect - scope - subject - was - wasSource - would - change - person - rule - reason properties: id: type: string createdAt: type: string ownerUserId: type: - string - 'null' description: The person the Bot acted for. initiator: $ref: '#/components/schemas/ApprovalRuleDraftInitiator' bot: type: string toolRef: type: string effect: type: string scope: type: string subject: $ref: '#/components/schemas/ApprovalRuleDraftSubject' was: type: string enum: - allow - ask - hand_off - deny description: What happened. wasSource: type: string description: What decided it, such as safety, team_rule, personal_rule or default. would: type: string enum: - allow - ask - hand_off - deny description: What would happen with the rules. change: type: string enum: - removes_ask - adds_ask - stricter - looser - fixed description: fixed is an action whose answer no rule changes, such as one a safety requirement decided. person: type: - string - 'null' enum: - allow_once - allow_conversation - allow_always - deny - handled - waiting - withdrawn - null description: What the person answered, where they were asked. rule: type: integer minimum: 1 description: Which candidate rule decided it, counted from 1. reason: type: string ApprovalRuleDraftReplayReport: type: object required: - scanned - matched - changed - removedAsks - removedDenied - addedAsks - fixed - changes properties: scanned: type: integer description: Actions replayed, each once. matched: type: integer description: Actions any of the rules is about. changed: type: integer removedAsks: type: integer removedDenied: type: integer description: Of the removed asks, the ones a person had denied. addedAsks: type: integer fixed: type: integer description: Actions the rules are about whose answer no rule changes. changes: type: array description: The changed actions, denied asks first, then the fixed ones. At most 70; the counts cover every action replayed. items: $ref: '#/components/schemas/ApprovalRuleDraftReplayChange' ApprovalRuleDraftReplay: type: object required: - check - warning - report properties: check: $ref: '#/components/schemas/ApprovalRuleDraftCheck' warning: type: - string - 'null' report: $ref: '#/components/schemas/ApprovalRuleDraftReplayReport' ApprovalRuleDraftAuthoring: type: object description: Where the rules came from, when they were written from a description. additionalProperties: false required: - source - text properties: source: type: string enum: - english text: type: string minLength: 1 maxLength: 2000 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: The sentence the rules were written from, at most 2,000 characters once trimmed. ApprovalRuleDraftBatch: type: object additionalProperties: false required: - rules properties: rules: type: array minItems: 1 maxItems: 8 items: $ref: '#/components/schemas/ApprovalRuleDraftRow' authoring: $ref: '#/components/schemas/ApprovalRuleDraftAuthoring' ApprovalRuleDraftSavedRule: type: object description: One of the organization's approval rules, as saved. required: - id - botId - toolRef - effect - scope - behaviour - createdBy - revokedAt - createdAt properties: id: type: string botId: type: string toolRef: type: string effect: type: string scope: type: string behaviour: $ref: '#/components/schemas/ApprovalRuleDraftBehaviour' createdBy: type: - string - 'null' description: The administrator who saved it. revokedAt: type: - string - 'null' format: date-time createdAt: type: string format: date-time ApprovalRuleDraftSavedRules: type: object required: - rules properties: rules: type: array items: $ref: '#/components/schemas/ApprovalRuleDraftSavedRule' ReviewerGuidance: type: object required: - guidance properties: guidance: type: - string - 'null' description: The words auto-review reads now, or null when there are none. ReviewerGuidanceInput: type: object additionalProperties: false required: - text properties: text: type: string minLength: 1 maxLength: 2000 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: The guidance, at most 2,000 characters once trimmed. ReviewerGuidanceCheck: type: object description: Whether the words read as guidance. error says why not when they don't. required: - ok properties: ok: type: boolean error: type: string ReviewerGuidanceSaved: type: object required: - guidance - summary - explanation - check properties: guidance: type: string description: The words as saved, trimmed. summary: type: - string - 'null' explanation: type: string check: $ref: '#/components/schemas/ReviewerGuidanceCheck' ReviewerGuidanceReading: type: object description: The words read back by a call that saw nothing else. required: - summary - explanation - check properties: summary: type: - string - 'null' description: What the guidance changes, in one sentence. explanation: type: string description: What auto-review will do differently. check: $ref: '#/components/schemas/ReviewerGuidanceCheck' ReviewerGuidanceReplaySample: type: object required: - calls - skippedSafety properties: calls: type: integer description: The requests a replay would cover, one model call each. skippedSafety: type: integer description: Decided requests passed over because a built-in safety requirement decides them first. ReviewerGuidanceReplayInput: type: object additionalProperties: false required: - text properties: text: type: string minLength: 1 maxLength: 2000 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: The guidance to test, at most 2,000 characters once trimmed. limit: type: integer minimum: 1 maximum: 50 description: How many requests to replay at most, one model call each. 25 when absent. ReviewerGuidanceReplayRow: type: object description: One request a person decided, with what auto-review would do about it. required: - id - createdAt - ownerUserId - initiator - bot - toolRef - effect - scope - subject - person - would - outcome - reason - hadRequest properties: id: type: string createdAt: type: string format: date-time ownerUserId: type: string initiator: $ref: '#/components/schemas/ApprovalRuleDraftInitiator' bot: type: string toolRef: type: string effect: type: string scope: type: string subject: $ref: '#/components/schemas/ApprovalRuleDraftSubject' person: type: string enum: - allow_once - allow_always - deny description: What the person pressed when they were asked. would: type: string enum: - proceed - ask - hand_off - unreviewed description: What auto-review would have done. unreviewed is no usable answer. outcome: type: string enum: - agree - let_through_denied - asked_allowed - unreviewed reason: type: string description: Auto-review's own reason, or why it gave none. hadRequest: type: boolean description: Whether the conversation had words from a person for auto-review to read. ReviewerGuidanceReplay: type: object required: - sample - reviewed - agreed - letThroughDenied - askedAllowed - unreviewed - withoutRequest - skippedSafety - rows properties: sample: type: integer description: Requests replayed, one model call each. reviewed: type: integer description: Of those, the ones auto-review answered. Agreement is counted over these. agreed: type: integer letThroughDenied: type: integer description: Auto-review would have let it run, and the person had denied it. askedAllowed: type: integer description: Auto-review would have asked, or handed it off, and the person had allowed it. unreviewed: type: integer withoutRequest: type: integer skippedSafety: type: integer rows: type: array description: Disagreements first, the ones it would have let through first of all. items: $ref: '#/components/schemas/ReviewerGuidanceReplayRow' BoundaryMode: type: string enum: - enforce - dry-run description: enforce refuses what the rules refuse. dry-run records what they would have refused and lets it through, to try a rule before it stops anybody's work. BoundaryRuleLabel: type: object description: What a rule is called and what it stops, in words. Never evaluated. required: - name - description properties: name: type: string description: type: string Boundaries: type: object description: 'What every Bot may do. Deny rules are read first: an action any of them is true for is refused, whatever an allow rule says. Then an action any allow rule is true for is permitted, and one that none is true for is refused.' required: - mode - deny - allow - labels properties: mode: $ref: '#/components/schemas/BoundaryMode' deny: type: array description: The deny rules, each a CEL expression. items: type: string allow: type: array description: The allow rules, each a CEL expression. items: type: string labels: type: object description: Each rule's name and description, keyed by the rule's own text. additionalProperties: $ref: '#/components/schemas/BoundaryRuleLabel' BoundaryRuleLabelInput: type: object additionalProperties: false required: - name properties: name: type: string minLength: 1 maxLength: 80 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: 1 to 80 characters once trimmed. description: type: string maxLength: 300 pattern: ^[^\x00]*$ description: At most 300 characters once trimmed. BoundariesInput: type: object additionalProperties: false required: - mode properties: mode: $ref: '#/components/schemas/BoundaryMode' deny: type: array default: [] description: The deny rules, each a CEL expression. One added here must be one OpenBot can evaluate. items: type: string allow: type: array default: [] description: The allow rules, each a CEL expression. Empty permits nothing. items: type: string labels: type: object description: Each rule's name and description, keyed by the rule's own text. A label for a rule in neither list is dropped. additionalProperties: $ref: '#/components/schemas/BoundaryRuleLabelInput' authoring: $ref: '#/components/schemas/Authoring' BoundaryTranslation: type: object required: - rule - effect - summary - explanation - compile - warning properties: rule: type: string description: The rule the model wrote, as a CEL expression. effect: type: string enum: - deny - allow description: Which list the rule belongs in. summary: type: - string - 'null' description: What the rule does in one sentence, read from the rule alone. Null when the rule does not compile, or the reading gave none. explanation: type: - string - 'null' description: What the rule does, read from the rule alone by a call that never saw the description. Null when the rule does not compile. compile: $ref: '#/components/schemas/RuleCheck' warning: type: - string - 'null' description: Set when the rule answers the same for every action, so it would stop everything or nothing. BoundariesDraft: type: object additionalProperties: false description: Boundaries to test, as a save would take them. required: - mode properties: mode: $ref: '#/components/schemas/BoundaryMode' deny: type: array default: [] items: type: string allow: type: array default: [] items: type: string labels: type: object description: Each rule's name and description, keyed by the rule's own text. A label for a rule in neither list is dropped. additionalProperties: $ref: '#/components/schemas/BoundaryRuleLabelInput' BoundaryReplayRequest: type: object additionalProperties: false required: - boundaries properties: boundaries: $ref: '#/components/schemas/BoundariesDraft' limit: type: integer minimum: 1 maximum: 500 default: 200 description: How many of the newest recorded actions to test against. BoundaryReplayChange: type: object description: One recorded action the boundaries would decide differently. required: - id - createdAt - kind - action - bot - page - element - command - file - initiator - was - would - rule - reason properties: id: type: string description: The audit event that recorded the action. createdAt: type: string format: date-time kind: type: string enum: - computer - app description: Where the action was taken, on a Bot's computer or in an app. action: type: string description: The computer's tool, such as computer_click, or the app's tool as app/tool. bot: type: string page: type: string description: The page the Bot's browser was on. Empty for an app call. element: type: - object - 'null' description: The button, link or field acted on, when there was one. required: - role - name properties: role: type: string name: type: string command: type: - string - 'null' file: type: - string - 'null' initiator: type: object description: What started the run. required: - kind - id properties: kind: type: string id: type: string description: The routine or Bot that started it. Empty for a person. was: type: string enum: - allowed - refused description: What the boundaries in force decided at the time. would: type: string enum: - allowed - refused description: What the boundaries being tested decide. rule: type: - string - 'null' description: The rule that decides it. Null when no rule permits the action, so it is refused. reason: type: string BoundaryReplayReport: type: object required: - scanned - wouldRefuse - wouldAllow - unchanged - changes properties: scanned: type: integer description: How many recorded actions were tested. wouldRefuse: type: integer wouldAllow: type: integer unchanged: type: integer changes: type: array description: The actions decided differently, newest first, at most 50. The counts cover every action tested. items: $ref: '#/components/schemas/BoundaryReplayChange' WhatIfVocabulary: type: object description: What an action can name in this organization. required: - bots - people - groups - apps properties: bots: type: array items: type: object required: - id - name - owner properties: id: type: string name: type: string owner: type: - string - 'null' description: The person who owns the Bot, by id. Null when nobody does. people: type: array items: type: object required: - id - name - email properties: id: type: string name: type: - string - 'null' email: type: string groups: type: array description: The directory groups, by name. items: type: string teams: type: array description: The organization's teams. An action names one in group, as team:. items: type: object required: - id - name properties: id: type: string name: type: string apps: type: array items: type: object required: - id - name - tools properties: id: type: string name: type: string tools: type: array items: type: object required: - name - effect - destructive properties: name: type: string effect: type: string enum: - read - write description: Whether a call to the tool changes something. destructive: type: boolean description: The app marks the tool destructive. WhatIfQuestion: type: object additionalProperties: false required: - question properties: question: type: string minLength: 1 maxLength: 500 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: The question, 1 to 500 characters once trimmed. WhatIfInitiator: type: string enum: - person - routine - handoff - responsibility - memory description: 'What starts the run: a person chatting, a routine, another Bot handing work on, a goal the Bot watches for, or a follow-up it set itself.' WhatIfAction: type: object additionalProperties: false description: 'One action a Bot might take. Who: a Bot, and either the person whose accounts it runs on or a team or directory group, for any member of it. What starts the run. Then either an app''s tool, or something on the Bot''s computer. A field that does not apply is empty.' required: - bot - person - group - initiator - surface - app - tool - intent - host - label - command - file properties: bot: type: string description: The Bot's id. person: type: string description: The person's id. Empty when a group is named. group: type: string description: A directory group's name, or team: for one of the organization's teams. Empty when a person is named. initiator: $ref: '#/components/schemas/WhatIfInitiator' surface: type: string enum: - app - computer app: type: string description: The app's id. App calls only. tool: type: string description: The tool's own name. App calls only. intent: type: string enum: - '' - navigate - activate - type - read - read_file - write_file - list_files - download_file - run_command description: What the Bot does on its computer. Computer actions only. host: type: string description: The page's host, such as mail.google.com. Computer actions only, and empty for a file or a command. label: type: string description: The button's or field's label, at most 300 characters. command: type: string description: The command, at most 300 characters. file: type: string description: The file's path, at most 300 characters. WhatIfLabels: type: object description: The names to show for the ids in an action. properties: bot: type: string person: type: string group: type: string app: type: string WhatIfActionRead: type: object description: The question names one action. required: - understood - action - labels - missing properties: understood: type: string const: 'yes' action: $ref: '#/components/schemas/WhatIfAction' labels: $ref: '#/components/schemas/WhatIfLabels' missing: type: - string - 'null' description: What is still to choose before the action can be checked, in a sentence. Null when nothing is. WhatIfNotUnderstood: type: object description: The question names no one action a Bot takes. required: - understood - unclear properties: understood: type: string const: 'no' unclear: type: string description: What to ask instead, in a sentence. WhatIfReading: description: A question read as one action, or why it names none. oneOf: - $ref: '#/components/schemas/WhatIfActionRead' - $ref: '#/components/schemas/WhatIfNotUnderstood' discriminator: propertyName: understood mapping: 'yes': '#/components/schemas/WhatIfActionRead' 'no': '#/components/schemas/WhatIfNotUnderstood' WhatIfCheckRequest: type: object additionalProperties: false required: - action properties: action: $ref: '#/components/schemas/WhatIfAction' question: type: string maxLength: 500 pattern: ^[^\x00]*$ description: The question the action was read from, recorded with the check. WhatIfOutcome: type: string enum: - allowed - refused - asks - hands_off description: 'allowed: every control lets it through. refused: a control stops it. asks: it waits for a person to approve it. hands_off: it stops for a person to do it themselves.' WhatIfLayerId: type: string enum: - grant - app_allowlist - capabilities - network - boundaries - safety - approvals description: One of OpenBot's controls. WhatIfLayer: type: object description: What one control says about the action. required: - id - title - verdict - summary - decides - unreached properties: id: $ref: '#/components/schemas/WhatIfLayerId' title: type: string verdict: type: string enum: - allows - refuses - asks - hands_off - trial description: 'refuses stops the action. asks and hands_off stop it until a person answers or does it themselves. trial is a boundary in trial mode: it would refuse, records that, and lets the action through. allows lets it past this control.' summary: type: string description: What this control says about the action, and why, in a sentence. basis: type: string description: The rule, grant or switch that decided it, by name. rule: type: string description: The rule as written, where it is a rule. page: type: string enum: - /admin/plugins - /admin/permissions - /admin/computers - /admin/boundaries - /admin/approvals description: The admin page the control is set on. Absent for what is built in. decides: type: boolean description: This control is the one that settles the action. unreached: type: boolean description: An earlier control already stopped the action. caveat: type: string description: Something this control would check that a what-if can't know. WhatIfResult: type: object required: - outcome - decidedBy - headline - layers - notApplicable - notChecked properties: outcome: $ref: '#/components/schemas/WhatIfOutcome' decidedBy: description: The control that settles it. Null when every control lets it through. oneOf: - $ref: '#/components/schemas/WhatIfLayerId' - type: 'null' headline: type: string description: The outcome and the control that settles it, in a line. layers: type: array description: The controls that apply, in the order OpenBot applies them. items: $ref: '#/components/schemas/WhatIfLayer' notApplicable: type: array description: The controls that don't apply to this kind of action, by title. items: type: string notChecked: type: array description: What a real action is also checked for that depends on what it sends, so a what-if can't say. items: type: string effect: type: string enum: - read - write description: The app's own classification of the tool. App calls only. WhatIfCheck: type: object required: - action - labels - result properties: action: $ref: '#/components/schemas/WhatIfAction' labels: $ref: '#/components/schemas/WhatIfLabels' result: $ref: '#/components/schemas/WhatIfResult' WhatIfRecorded: type: object description: What the audit event recorded at the time. required: - outcome - layer - summary properties: outcome: type: string enum: - allowed - refused - asks - hands_off - failed layer: description: The control the event says stopped it, where it says. oneOf: - $ref: '#/components/schemas/WhatIfLayerId' - type: 'null' summary: type: string WhatIfExplanation: type: object required: - action - labels - result - recorded properties: action: $ref: '#/components/schemas/WhatIfAction' labels: $ref: '#/components/schemas/WhatIfLabels' result: $ref: '#/components/schemas/WhatIfResult' recorded: $ref: '#/components/schemas/WhatIfRecorded' SharedUseAudience: type: string enum: - owner - people - team description: 'Who may steer a Bot that uses a shared app''s account: only the Bot''s owner, the people, teams and directory groups named, or everyone in the organization (team).' SharedUseMember: type: object description: One person, team or directory group an audience names. required: - kind - value properties: kind: type: string enum: - user - group - team value: type: string description: The person's id, the team's id, or the directory group's name. SharedUseApproval: type: object description: 'An audience for a Bot''s use of a shared app''s account: who may steer the Bot there, and whether a run started by outside input (an email, a webhook) may use the account too.' required: - audience - outsideInput - members properties: audience: $ref: '#/components/schemas/SharedUseAudience' outsideInput: type: boolean description: Whether runs started by outside input are covered. members: type: array description: The people, teams and groups named, when the audience is people. Empty otherwise. items: $ref: '#/components/schemas/SharedUseMember' SharedUseRequest: type: object description: A request that a Bot may use a shared app's one account, for the audience the Bot had when it was asked. required: - id - botId - botName - ownerUserId - serverId - title - proposed - current - reason - requestedBy - status - createdAt properties: id: type: string description: The request's id. botId: type: string description: The Bot asking. botName: type: string description: The Bot's name. ownerUserId: type: - string - 'null' description: The id of the Bot's owner. Null for a Bot that comes with OpenBot. serverId: type: string description: The shared app's id. title: type: string description: The shared app's name. proposed: $ref: '#/components/schemas/SharedUseApproval' current: description: What the Bot is approved for at the app now. Null when it has no approval. oneOf: - $ref: '#/components/schemas/SharedUseApproval' - type: 'null' reason: type: string enum: - publish - trigger - grant - refused_call description: 'Why it was asked: the Bot was shared with more people (publish), given a way to start from outside input (trigger), given the app (grant), or refused a call to it (refused_call).' requestedBy: type: string description: The id of the person who asked. status: type: string x-extensible-enum: - pending - approved - declined - superseded description: pending until an administrator answers it. superseded when a later request for the same Bot and app replaced it. createdAt: type: string format: date-time SharedUseRequestPage: type: object required: - sharedUseRequests - nextCursor properties: sharedUseRequests: type: array description: The waiting requests, newest first. items: $ref: '#/components/schemas/SharedUseRequest' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateSharedUseRequestRequest: type: object additionalProperties: false required: - botId - serverId - reason properties: botId: type: string minLength: 1 maxLength: 200 pattern: \S description: The Bot to ask for. serverId: type: string minLength: 1 maxLength: 200 pattern: \S description: The shared app's id. The Bot must already hold the app. reason: type: string enum: - publish - trigger description: 'Why the Bot''s audience grew: it was shared with more people (publish), or given a way to start from outside input (trigger).' SharedUseRequestFiled: type: object required: - id - created properties: id: type: string description: The id of the request now waiting. created: type: boolean description: True when this call filed it. False when a request for the same audience was already waiting, which is the one named. BotSharedApp: type: object description: One shared app a Bot holds, and whether its approval covers the Bot as it is now. required: - serverId - title - approval - needed - covered properties: serverId: type: string description: The app's id. title: type: string description: The app's name. approval: description: What the Bot is approved for at the app. Null when it has no approval. oneOf: - $ref: '#/components/schemas/SharedUseApproval' - type: 'null' needed: $ref: '#/components/schemas/SharedUseApproval' covered: type: boolean description: Whether the approval covers what the Bot needs now. BotSharedUse: type: object required: - apps - pending properties: apps: type: array description: The shared apps the Bot holds. items: $ref: '#/components/schemas/BotSharedApp' pending: type: array description: The Bot's requests still waiting for an administrator, newest first. items: $ref: '#/components/schemas/SharedUseRequest' HostAccessGrant: type: object description: One folder on a person's own computer that they gave a Bot. The folder's path stays in OpenBot Desktop and is never part of a grant. required: - id - botId - actorId - displayName - revoked properties: id: type: string description: The grant's id. botId: type: string description: The Bot the folder was given to. actorId: type: string description: The id of the person who gave it. displayName: type: string description: The folder's name, as the person sees it. revoked: type: boolean description: Whether the grant has ended. An ended grant stays listed until the server restarts. HostAccessOperationKind: type: string enum: - choose_folder - list_files - read_file - write_file - run_command - cancel - stop description: What OpenBot Desktop is asked to do on the person's computer. HostAccessOperation: type: object description: Something OpenBot Desktop has been asked to do for a Bot and has not answered yet. required: - operationId - kind - botId - actorId properties: operationId: type: string description: The operation's id. targetOperationId: type: string description: For a cancel, the operation it cancels. kind: $ref: '#/components/schemas/HostAccessOperationKind' botId: type: string description: The Bot it is for. `*` for a stop, which is for every Bot. actorId: type: string description: The id of the person whose computer it is. grantId: type: string description: The folder grant it works in. botName: type: string description: The Bot's name, as the folder chooser shows it. relativePath: type: string description: The file or folder inside the grant, for a list, read or write. content: type: string description: The text to write, for a write. command: type: string description: The command to run. writable: type: boolean description: Whether the folder is asked for with permission to change files. commandPolicy: type: string enum: - ask - allow - never description: For a command, what the person's rules say about running it. expiresAt: type: integer description: When the operation runs out of time, in milliseconds since the Unix epoch. HostAccess: type: object description: A person's folder access on their own computer. required: - connected - desktop - grants - pending properties: connected: type: boolean description: Whether OpenBot Desktop is connected now. desktop: type: boolean description: Whether this OpenBot runs in OpenBot Desktop, the only thing that can open folders on the person's computer. grants: type: array description: The folders the person gave their Bots since the server started. items: $ref: '#/components/schemas/HostAccessGrant' pending: type: array description: What OpenBot Desktop has been asked to do for the person and has not answered. items: $ref: '#/components/schemas/HostAccessOperation' CreateHostAccessGrantRequest: type: object additionalProperties: false required: - botId properties: botId: type: string minLength: 1 maxLength: 200 pattern: \S description: The Bot to give a folder to. BotConnectionTestRequest: type: object additionalProperties: false required: - endpoint properties: endpoint: type: string maxLength: 2048 description: The AG-UI address to try. Anything that is not an address a Bot could be saved with is answered with ok false and the reason. headers: type: object description: Headers to send with the run, such as the key the address sits behind, as name to value. Never stored. maxProperties: 32 propertyNames: pattern: ^[A-Za-z0-9-]{1,64}$ additionalProperties: type: string maxLength: 4096 pattern: ^[\x01-\x09\x0B\x0C\x0E-\xFF]*$ BotConnectionTest: type: object description: 'What the address answered. ok true: it answered with AG-UI events, listed in events. ok false: reason says why not.' required: - ok - events - reason properties: ok: type: boolean description: Whether an AG-UI agent answered at the address. events: type: array description: The AG-UI event types that came back, in order. Empty when ok is false. items: type: string reason: type: - string - 'null' description: Why the test failed, in words a person can act on. Null when ok is true. BotCallbackToken: type: object required: - token properties: token: type: string minLength: 1 description: The Bot's credential for calling OpenBot's tools back. Returned this once and never again. BotDeclineReport: type: object additionalProperties: false required: - reason properties: reason: type: string minLength: 1 maxLength: 2000 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: Why the Bot declined, in its own words. The trail keeps the first 500 characters. request: type: string maxLength: 2000 pattern: ^[^\x00]*$ description: What it was asked to do, in a few words. The trail keeps the first 500 characters. BotHandoff: type: object required: - enabled - canGrant - reachable - grantable properties: enabled: type: boolean description: Whether this deployment lets Bots hand work to each other at all. False means a grant would never be used. canGrant: type: boolean description: Whether the caller may change which Bots this one may hand work to. Only an administrator may. reachable: type: array description: The ids of the Bots this Bot may hand work to today. items: type: string grantable: type: boolean description: Whether this Bot can be given that permission at all. False means every grant would be refused. BotNotify: type: string enum: - all - needs_input - none description: 'How loudly a Bot may reach the person outside the web app: everything, only what needs them, or nothing. Badges in the web app always show.' BotLifecycle: type: object description: The caller's own state with one Bot. required: - botId - paused - pausedAt - notify properties: botId: type: string description: The Bot. paused: type: boolean description: Whether the caller paused it. pausedAt: type: - string - 'null' format: date-time description: When they paused it. Null when it is not paused. notify: $ref: '#/components/schemas/BotNotify' BotPause: type: object required: - lifecycle - stoppedTurns properties: lifecycle: $ref: '#/components/schemas/BotLifecycle' stoppedTurns: type: integer minimum: 0 description: How many of its turns for the caller were stopped. BotResetRequest: type: object additionalProperties: false required: - validateOnly properties: validateOnly: type: boolean description: True counts what a reset would delete and deletes nothing. False deletes it. Required, so a reset is never asked for by omission. BotResetCounts: type: object description: What a reset deletes, by kind, for the caller only. required: - conversations - sharedConversationsKept - memorySources - memories - routines - responsibilities - followUps - formedMemories - backgroundResearch - standingApprovals properties: conversations: type: integer minimum: 0 description: The caller's conversations with the Bot. sharedConversationsKept: type: integer minimum: 0 description: Conversations with the Bot shared with other people, which are kept. memorySources: type: integer minimum: 0 description: What the Bot reads to remember the caller. memories: type: integer minimum: 0 description: What it remembers about the caller. routines: type: integer minimum: 0 description: The caller's routines with it. responsibilities: type: integer minimum: 0 description: The goals the caller gave it. followUps: type: integer minimum: 0 description: Follow-ups it set itself for the caller. formedMemories: type: integer minimum: 0 description: Memories it formed itself from what it read for the caller. backgroundResearch: type: integer minimum: 0 description: Research it did in the background for the caller, with its suggestions. standingApprovals: type: integer minimum: 0 description: The "always allow" and pre-approved rules the caller gave it. BotReset: type: object required: - validateOnly - deleted properties: validateOnly: type: boolean description: Whether this only counted, as the request asked. deleted: $ref: '#/components/schemas/BotResetCounts' BotActivityItem: type: object required: - id - kind - title - detail - status - at - channelId - needsYou - stoppable - cancellable properties: id: type: string description: Unique in the activity. For a handoff, what stop-handoff takes; for a follow-up, what cancelling it takes. kind: type: string enum: - routine - responsibility - handoff - approval - question - follow_up title: type: string detail: type: - string - 'null' status: type: string description: A short state a person reads, such as running, waiting for you or queued. at: type: string format: date-time description: When it started, is due, or ended, by section. channelId: type: - string - 'null' description: The conversation it belongs to, when one can be named. needsYou: type: boolean description: Whether it needs the caller to do something. stoppable: type: boolean description: A handoff that can still be stopped. cancellable: type: boolean description: A follow-up that can still be cancelled. BotActivity: type: object required: - inProgress - scheduled - onDemand - completed properties: inProgress: type: array items: $ref: '#/components/schemas/BotActivityItem' scheduled: type: array items: $ref: '#/components/schemas/BotActivityItem' onDemand: type: array description: Goals that run only when somebody asks. items: $ref: '#/components/schemas/BotActivityItem' completed: type: array maxItems: 25 description: The most recently finished, newest first. items: $ref: '#/components/schemas/BotActivityItem' StopBotHandoffRequest: type: object additionalProperties: false required: - handoffId properties: handoffId: type: string minLength: 1 maxLength: 500 description: The handoff's id, as the Bot's activity lists it. BotAttention: type: object description: What one Bot has waiting on the person. required: - botId - name - questions - approvals - handoffs - unread - paused - notify - items - tasks - waitingIn properties: botId: type: string name: type: string description: The Bot's name. questions: type: integer minimum: 0 description: Questions it asked the person that are still open. approvals: type: integer minimum: 0 description: Its actions waiting on the person's approval. handoffs: type: integer minimum: 0 description: Work handed to it or by it that has stalled waiting on the person. unread: type: integer minimum: 0 description: Its messages the person hasn't read. paused: type: boolean description: Whether the person paused it. notify: $ref: '#/components/schemas/BotNotify' items: type: integer minimum: 0 description: Open items from its check-ins. tasks: type: object required: - needsInput - ready - failed properties: needsInput: type: integer minimum: 0 description: Tasks waiting on an approval or an answer. ready: type: integer minimum: 0 description: Tasks with a reply to read. failed: type: integer minimum: 0 description: Tasks that couldn't finish. waitingIn: type: - string - 'null' description: The conversation of the newest thing it waits on the person for, where a notice about it opens. Null when it waits on nothing in a conversation. BotAttentionPage: type: object required: - attention - lastPingId - nextCursor properties: attention: type: array items: $ref: '#/components/schemas/BotAttention' lastPingId: type: - string - 'null' description: The person's newest ping across all their Bots. A client notifies once each time it changes. Null before the first. nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. TeamBotAudience: type: string enum: - team - people description: team is everyone in the organization; people is the people, teams and groups named. TeamBot: type: object description: A published Bot, as the caller sees it. Who it reaches (people, teams, groups and assignedGroups) is present only for its owner and administrators. required: - botId - name - title - roleDescription - mine - audience - publishedAt - assigned - visibleToTeam properties: botId: type: string name: type: string title: type: string roleDescription: type: string mine: type: boolean description: Whether the caller published it. audience: $ref: '#/components/schemas/TeamBotAudience' publishedAt: type: string format: date-time assigned: type: boolean description: Whether an administrator put it in the caller's Bots list, where they can't hide it. visibleToTeam: type: boolean description: False while its name or description would leave the people it is published to unable to tell it apart, so they can't see it. people: type: array description: The people it is published to, by email. items: type: string groups: type: array description: The directory groups it is published to. items: type: string teams: type: array description: The teams it is published to, by each team's id. items: type: string assignedGroups: type: array description: The directory groups an administrator assigned it to; * is everybody. items: type: string TeamBotPage: type: object required: - teamBots - nextCursor properties: teamBots: type: array items: $ref: '#/components/schemas/TeamBot' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. TeamBotResponse: type: object required: - teamBot properties: teamBot: $ref: '#/components/schemas/TeamBot' TeamBotPublication: type: object additionalProperties: false required: - audience properties: audience: $ref: '#/components/schemas/TeamBotAudience' emails: type: array maxItems: 200 description: With people, the people to publish to, by the email they sign in with. items: type: string maxLength: 320 groups: type: array maxItems: 100 description: With people, the directory groups to publish to. items: type: string maxLength: 200 teams: type: array maxItems: 100 description: With people, the teams to publish to, by each team's id. Every one must be a team of this organization. The people in a team, and in the teams under it, can use the Bot, and nobody else in the organization can. items: type: string minLength: 1 maxLength: 200 pattern: ^[A-Za-z0-9_-]+$ PublishedTeamBot: type: object required: - teamBot - sharedApps properties: teamBot: $ref: '#/components/schemas/TeamBot' sharedApps: $ref: '#/components/schemas/SharedAppsAfterChange' TeamBotConsentAnswer: type: object additionalProperties: false required: - serverId - decision properties: serverId: type: string minLength: 1 maxLength: 200 description: The app whose account the Team Bot asked to use. decision: type: string enum: - allow_once - allow_always - allow_all_team_bots - skip description: 'allow_once: this time. allow_always: always, for this Team Bot. allow_all_team_bots: always, for every Team Bot. skip: not now, taking back an earlier answer for this Team Bot.' Computer: type: object description: 'One of the organization''s computers as its administrator sees it: a person''s, or an isolated Bot''s. Where every person''s Bots share one computer, one person''s seat on one Bot there.' required: - id - computer - kind - running - startedAt properties: id: type: string description: The entry's id in this list. computer: type: string description: Whose computer, as person: or bot:. What stop, reset and update name. kind: type: string enum: - person - bot personId: type: string person: type: object description: The person's name and address, where OpenBot knows them. required: - name - email properties: name: type: - string - 'null' email: type: string botId: type: string description: The isolated Bot, or the Bot of one seat on a shared computer. running: type: boolean startedAt: type: - string - 'null' egress: type: - string - 'null' description: Where it may connect. Absent when that cannot be told, which is not the same as nowhere. updateAvailable: type: boolean description: True when it runs an older image than a new computer would. Absent where that cannot be told. ComputerPage: type: object required: - computers - isolation - nextCursor properties: computers: type: array description: By whose computer it is, then by Bot. items: $ref: '#/components/schemas/Computer' isolation: type: string enum: - per-person - shared description: 'per-person: a computer for each person and each isolated Bot. shared: one computer every person''s Bots share.' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. ComputerControlRequest: type: object description: A request for a person to drive a Bot's computer. required: - id - reason - source - status - createdAt - updatedAt properties: id: type: string toolCallId: type: string reason: type: string source: type: string x-extensible-enum: - model - cloudflare - visible-challenge - manual - passkey description: 'Who raised it: the Bot (model), a check the page raised (cloudflare, visible-challenge, or passkey when the page asked for a passkey), or the person themselves (manual).' passkey: type: object required: - host - askedAt description: Set when the page asked for a passkey while this request was open. A passkey kept on the person's own device can't be used in a Bot's computer, so they sign in another way on the page, such as its "Try another way". properties: host: type: string description: The site that asked, such as accounts.google.com. askedAt: type: string description: When it asked. status: type: string x-extensible-enum: - waiting - taken - completed - cancelled - expired - interrupted createdAt: type: string updatedAt: type: string expiresAt: type: string finishedAt: type: string interruption: type: string url: type: string keepsPage: type: boolean ComputerProblem: description: 'A problem from a Bot''s computer: the shared problem details, with what a Bot or the app needs to carry on when an action was refused or could not finish.' allOf: - $ref: '#/components/schemas/Problem' - type: object properties: rule: type: - string - 'null' description: 'The boundary rule that refused a Bot''s action on its computer (COMPUTER_ACTION_REFUSED). Null when no rule did: the address or the file is one the computer may not reach.' snapshotRequired: type: boolean description: True when a Bot must take a new snapshot before it acts again (COMPUTER_SNAPSHOT_STALE). controlRequestId: type: string description: The request under which a person is driving the computer (COMPUTER_PERSON_HAS_CONTROL). handoff: $ref: '#/components/schemas/ComputerControlRequest' unfinished: type: string description: Why an action on an element that is there did not finish, as the computer named it (COMPUTER_ACTION_UNFINISHED). ComputerTarget: type: object additionalProperties: false required: - computer properties: computer: type: string minLength: 1 description: Whose computer, as person: or bot:. botId: type: string minLength: 1 maxLength: 200 pattern: \S description: One Bot's seat on a shared computer. ComputerStopped: type: object required: - wasRunning properties: wasRunning: type: boolean ComputerReset: type: object required: - cleared properties: cleared: type: boolean description: False when there was no profile to delete. ComputerUpdated: type: object required: - updated - wasRunning properties: updated: type: boolean description: False when it was already current, or there is no computer. wasRunning: type: boolean description: Whether it was running, and so is restarting on the new image. from: type: string description: The image it ran. to: type: string description: The image it runs now. ComputerState: type: string x-extensible-enum: - absent - starting - ready - unreachable description: 'Where a computer is in its life. absent is one that is not running: never started, or put to sleep after a quiet spell; it starts on the Bot''s next action. starting is on its way up. unreachable is the only one that is something wrong.' ComputerStatus: type: object required: - botId - state properties: botId: type: string description: The Bot whose computer this is. state: $ref: '#/components/schemas/ComputerState' reason: type: string description: Why it is unreachable, written for an administrator. WorkspaceSnapshotKind: type: string x-extensible-enum: - daily - before-restore description: daily is the copy OpenBot saves once a day. before-restore is the one it saved just before a restore. WorkspaceSnapshot: type: object description: One saved copy of a computer's files and browser sign-ins. required: - id - takenAt - kind properties: id: type: string description: Names the copy in restoreComputer. takenAt: type: string format: date-time description: When it was saved. kind: $ref: '#/components/schemas/WorkspaceSnapshotKind' ComputerRestoreState: type: string x-extensible-enum: - running - done - failed description: running is under way, and the computer is not yet back. done is back on the copy. failed says why in error. ComputerRestore: type: object description: One restore of a computer from a saved copy. required: - id - snapshotId - snapshotTakenAt - beforeSnapshotId - state - startedAt - finishedAt - error properties: id: type: string snapshotId: type: string description: The copy it restores. snapshotTakenAt: type: string format: date-time description: When that copy was saved. beforeSnapshotId: type: - string - 'null' description: The copy of the computer as it was just before, once it is saved. Null until then. state: $ref: '#/components/schemas/ComputerRestoreState' startedAt: type: string format: date-time finishedAt: type: - string - 'null' format: date-time description: When it was done or failed. Null while it runs. error: type: - string - 'null' description: Why it failed, written for the person who asked. Null unless it failed. WorkspaceSnapshots: type: object required: - computer - available - canRestore - snapshots - restore properties: computer: type: string description: Whose computer, as person: or bot:. available: type: boolean description: False where this OpenBot keeps no saved copies of computers. snapshots is then empty. canRestore: type: boolean description: Whether the caller may restore this computer. snapshots: type: array description: Newest first. maxItems: 100 items: $ref: '#/components/schemas/WorkspaceSnapshot' restore: description: The latest restore of this computer, or null when it was never restored. oneOf: - $ref: '#/components/schemas/ComputerRestore' - type: 'null' ComputerRestoreRequest: type: object additionalProperties: false required: - snapshotId properties: snapshotId: type: string minLength: 1 maxLength: 200 pattern: \S description: The saved copy to restore, from getWorkspaceSnapshots. computer: type: string minLength: 1 maxLength: 300 pattern: ^(person|bot):\S+$ description: Whose computer, as person: or bot:. Absent, the one this Bot runs on for the caller. ComputerFrame: type: object description: One picture of the screen. required: - base64 - width - height - capturedAt properties: base64: type: string description: The picture, a PNG in base64. width: type: number height: type: number capturedAt: type: string description: When it was taken. url: type: string description: The page it is of. about:blank when the browser has not been sent anywhere yet. Absent on older computers. ComputerNotReady: type: object description: A computer that is asleep or starting, which reading its screen does not wake. required: - ready - state properties: ready: type: boolean const: false state: $ref: '#/components/schemas/ComputerState' reason: type: string description: Why it is unreachable, written for an administrator. ComputerScreenshot: oneOf: - $ref: '#/components/schemas/ComputerFrame' - $ref: '#/components/schemas/ComputerNotReady' ComputerPageFrame: type: object description: The picture kept when a tool call opened its page. required: - url - title - frame properties: url: type: string title: type: - string - 'null' frame: type: string description: The picture, in base64. ComputerPageFrameAnswer: type: object required: - frame properties: frame: oneOf: - $ref: '#/components/schemas/ComputerPageFrame' - type: 'null' ComputerStepThreadId: type: string minLength: 1 maxLength: 200 pattern: \S description: The conversation's thread the Bot's tool call is in. Sent with toolCallId, so the server runs the step once, however many times it is asked. ComputerStepToolCallId: type: string minLength: 1 maxLength: 200 pattern: \S description: 'The Bot''s tool call this step answers. Sent with threadId, the server runs the step once, however many times and from wherever it is asked. The first ask runs it. When the server already ran this step, it answers as it answered the first run, with the same result or the same problem, and does nothing a second time; what the first run answered is kept for this only until the conversation''s turn is over, and after that the answer is ANSWER_NOT_KEPT. While the first run is still going, the answer is COMPUTER_STEP_RUNNING: ask again with the same threadId and toolCallId for its result. When the first run was cut off before it answered, the answer is COMPUTER_STEP_OUTCOME_UNKNOWN: check whether it was done before doing it again. COMPUTER_STEP_RUNNING and COMPUTER_STEP_OUTCOME_UNKNOWN are sent only to a request whose OpenBot-Capabilities header names computer-step-taken; any other request is answered as before they existed. Without both ids a call runs once per Idempotency-Key, as it always has.' ComputerChallenge: type: object description: A check the page raised that only a person can pass, and the request raised for them to take over. required: - kind - reason - requestId properties: kind: type: string x-extensible-enum: - cloudflare - visible-challenge - passkey description: 'What the page raised: a Cloudflare check, a visible human check, or a request for a passkey, which a passkey kept on the person''s own device can''t answer in a Bot''s computer.' reason: type: string requestId: type: string ComputerPageText: type: object required: - url - title - text - truncated properties: untrusted: type: string description: A notice to the model that the text is the page's, not an instruction. challenge: $ref: '#/components/schemas/ComputerChallenge' url: type: string title: type: string text: type: string truncated: type: boolean description: True when the page had more text than is returned. ComputerControl: type: object description: Who is driving a Bot's computer, and what has been asked. required: - holder - since - requested - transitioning - resumeSnapshotRequired - recoveryRequired properties: holder: type: string enum: - bot - human since: type: string requested: type: boolean description: True while a request for a person is waiting. reason: type: string request: $ref: '#/components/schemas/ComputerControlRequest' transitioning: type: boolean resumeSnapshotRequired: type: boolean description: True when the Bot must take a new snapshot before it acts again. recoveryRequired: type: boolean secretId: type: string secretWanted: type: string description: What the Bot asked the person to type, in its own words. secretRef: type: string secretSnapshotId: type: number secretEnded: type: object required: - id - supplied properties: id: type: string supplied: type: boolean reason: type: string heldBy: type: string description: The person driving, by id. ComputerControlAsk: type: object additionalProperties: false properties: reason: type: string description: What the person is needed for. toolCallId: type: string description: The Bot's tool call that asked. Sent with threadId, the step also runs once, however many times it is asked (ComputerStepToolCallId says how). threadId: $ref: '#/components/schemas/ComputerStepThreadId' source: type: string enum: - model - manual description: manual when a person asks to take over themselves. ComputerControlRequestRef: type: object additionalProperties: false required: - requestId properties: requestId: type: string minLength: 1 maxLength: 200 pattern: \S ComputerSecretAsk: type: object additionalProperties: false required: - ref - snapshotId properties: ref: type: string minLength: 1 description: The field the value goes in, by a ref from the latest snapshot. snapshotId: type: integer description: The snapshot the ref came from. label: type: string description: What to ask the person for, such as your bank password. threadId: $ref: '#/components/schemas/ComputerStepThreadId' toolCallId: $ref: '#/components/schemas/ComputerStepToolCallId' ComputerSecretValue: type: object additionalProperties: false required: - text properties: text: type: string minLength: 1 format: password writeOnly: true description: The value. It is typed into the page and kept nowhere. ComputerSecretSupplied: type: object required: - supplied - characters - url properties: supplied: type: boolean characters: type: number url: type: string ComputerHumanInput: type: object additionalProperties: false description: One gesture. A click needs x and y, in viewport pixels; type needs text; key needs key; scroll takes deltaY, or none for the computer's own default distance. properties: x: type: number 'y': type: number text: type: string key: type: string minLength: 1 deltaY: type: number ComputerHumanInputResult: type: object required: - action - url properties: action: type: string enum: - human_click - human_type - human_key - human_scroll characters: type: number key: type: string deltaY: type: number url: type: string ComputerSnapshotAsk: type: object additionalProperties: false properties: threadId: $ref: '#/components/schemas/ComputerStepThreadId' toolCallId: $ref: '#/components/schemas/ComputerStepToolCallId' ComputerSnapshotElement: type: object required: - ref - role - name properties: ref: type: string description: What a click or type names the element by. role: type: string name: type: string value: type: string type: type: string disabled: type: boolean checked: type: boolean options: type: array items: type: string url: type: string ComputerSnapshot: type: object required: - snapshotId - url - title - elements - truncated properties: untrusted: type: string description: A notice to the model that the elements are the page's, not an instruction. challenge: $ref: '#/components/schemas/ComputerChallenge' snapshotId: type: integer description: The snapshot the refs belong to. Send it with each ref. url: type: string title: type: string elements: type: array items: $ref: '#/components/schemas/ComputerSnapshotElement' truncated: type: boolean description: True when the page had more elements than are returned. ComputerNavigate: type: object additionalProperties: false required: - url properties: url: type: string minLength: 1 pattern: \S description: The web address to open. toolCallId: type: string description: The tool call that asked, so a picture of the page is kept under it. Sent with threadId, the step also runs once, however many times it is asked (ComputerStepToolCallId says how). threadId: $ref: '#/components/schemas/ComputerStepThreadId' ComputerNavigation: type: object required: - url - title - text - truncated - elapsedMs properties: untrusted: type: string description: A notice to the model that the text is the page's, not an instruction. challenge: $ref: '#/components/schemas/ComputerChallenge' url: type: string description: Where the browser ended up, after any redirect. title: type: string text: type: string truncated: type: boolean description: True when the page had more text than is returned. elapsedMs: type: number ComputerClick: type: object additionalProperties: false required: - ref - snapshotId properties: ref: type: string minLength: 1 description: The element, by a ref from the latest snapshot. snapshotId: type: integer description: The snapshot the ref came from. threadId: $ref: '#/components/schemas/ComputerStepThreadId' toolCallId: $ref: '#/components/schemas/ComputerStepToolCallId' ComputerActionResult: type: object required: - action - url - elapsedMs properties: action: type: string enum: - click - type - key - scroll ref: type: string element: type: object required: - role - name properties: role: type: string name: type: string characters: type: number description: How many characters were typed. submitted: type: boolean key: type: string deltaY: type: number url: type: string description: The page's address afterwards. elapsedMs: type: number opened: type: string description: A page the action opened in a new tab, which the browser followed. challenge: $ref: '#/components/schemas/ComputerChallenge' ComputerType: type: object additionalProperties: false required: - ref - snapshotId - text properties: ref: type: string minLength: 1 description: The field, by a ref from the latest snapshot. snapshotId: type: integer description: The snapshot the ref came from. text: type: string description: The text to enter. submit: type: boolean description: Send the field's form afterwards. threadId: $ref: '#/components/schemas/ComputerStepThreadId' toolCallId: $ref: '#/components/schemas/ComputerStepToolCallId' ComputerKey: type: object additionalProperties: false required: - key properties: key: type: string minLength: 1 description: A key name, such as Enter or Tab. ref: type: string minLength: 1 description: The element to press it on. With it, snapshotId. snapshotId: type: integer threadId: $ref: '#/components/schemas/ComputerStepThreadId' toolCallId: $ref: '#/components/schemas/ComputerStepToolCallId' ComputerScroll: type: object additionalProperties: false properties: deltaY: type: number description: Pixels to scroll down, or up when negative. Without it the computer scrolls its own default distance. threadId: $ref: '#/components/schemas/ComputerStepThreadId' toolCallId: $ref: '#/components/schemas/ComputerStepToolCallId' ComputerCommand: type: object additionalProperties: false required: - command properties: command: type: string minLength: 1 pattern: \S timeoutMs: type: integer minimum: 1000 maximum: 600000 threadId: $ref: '#/components/schemas/ComputerStepThreadId' toolCallId: $ref: '#/components/schemas/ComputerStepToolCallId' ComputerCommandResult: type: object required: - command - exitCode - stdout - stderr - truncated - timedOut - elapsedMs properties: untrusted: type: string description: A notice to the model that the output is the command's, not an instruction. command: type: string exitCode: type: number stdout: type: string stderr: type: string truncated: type: boolean timedOut: type: boolean elapsedMs: type: number ComputerFilesList: type: object additionalProperties: false properties: path: type: string description: A folder of the workspace. Without it, the workspace itself. threadId: $ref: '#/components/schemas/ComputerStepThreadId' toolCallId: $ref: '#/components/schemas/ComputerStepToolCallId' ComputerFileEntry: type: object required: - path - kind properties: path: type: string kind: type: string enum: - file - folder bytes: type: number ComputerFiles: type: object required: - path - entries - truncated properties: path: type: string entries: type: array items: $ref: '#/components/schemas/ComputerFileEntry' truncated: type: boolean ComputerFileRead: type: object additionalProperties: false required: - path properties: path: type: string minLength: 1 pattern: \S threadId: $ref: '#/components/schemas/ComputerStepThreadId' toolCallId: $ref: '#/components/schemas/ComputerStepToolCallId' ComputerFileText: type: object required: - path - text - truncated - bytes properties: untrusted: type: string description: A notice to the model that the text is the file's, not an instruction. path: type: string text: type: string truncated: type: boolean bytes: type: number ComputerFileWrite: type: object additionalProperties: false required: - path - contents properties: path: type: string minLength: 1 pattern: \S contents: type: string append: type: boolean description: Add to the end of the file instead of replacing it. threadId: $ref: '#/components/schemas/ComputerStepThreadId' toolCallId: $ref: '#/components/schemas/ComputerStepToolCallId' ComputerFileWritten: type: object required: - path - bytes - appended properties: path: type: string bytes: type: number appended: type: boolean BrowserTab: type: object description: One tab in a browser. required: - id - url - title - active properties: id: type: string description: The tab's id, for switching to it or closing it. url: type: string description: The address the tab is on. title: type: string description: The page's title. active: type: boolean description: Whether it is the tab in front. BrowserRecorderPhase: type: string enum: - idle - starting - recording - stopping description: What the Recorder is doing. idle means nothing is being recorded. BrowserNarrationSource: type: string enum: - own - external description: 'Who hears the person. own: the Recorder listens to the person''s microphone itself. external: the browser has no microphone, so the page hears the person and sends each phrase as narration.' BrowserRecorderLastStopped: type: object description: The recording that was stopped last, so the person can be told whether it reached their Learning space. required: - recordingId - title - stoppedAt - actions - phrases properties: recordingId: type: string title: type: string stoppedAt: type: number description: When it stopped, in milliseconds since 1970. actions: type: number description: How many of the person's actions it held. phrases: type: number description: How many narrated phrases it held. sending: type: boolean description: True while some of it is still being saved. retrying: type: string description: While sending, why none of it is going out right now. kept: type: string enum: - refused - signed-out description: 'Some of it is kept in the browser instead of saved: refused when saving was turned away and will be tried again, signed-out when it waits for the person to connect the browser again.' discarded: type: boolean description: The person discarded it rather than saving it. BrowserRecorderReport: type: object description: The Recorder's own report from inside a browser. required: - connected - phase - actions - narration properties: connected: type: boolean description: Whether the Recorder is connected to OpenBot as a person. userId: type: string description: The connected person's id. connectionId: type: string description: The id of the connection it holds. Never its token. openbotUrl: type: string description: The address it reaches OpenBot at. phase: $ref: '#/components/schemas/BrowserRecorderPhase' recordingId: type: string title: type: string description: What the recording is named. startedAt: type: number description: When the recording started, in milliseconds since 1970. actions: type: number description: The person's actions so far in this recording. narration: $ref: '#/components/schemas/BrowserNarrationSource' voice: type: string enum: - 'off' - listening - muted - unavailable description: Whether the Recorder is hearing the person itself. Absent when the page hears them instead. lastStopped: $ref: '#/components/schemas/BrowserRecorderLastStopped' BotBrowser: type: object description: The browser on a Bot's computer, as the caller sees it. Of somebody else's recording it says only that one is running. required: - open - tabs - mine - recordingIsMine properties: open: type: boolean description: Whether the browser is running. A closed one has no tabs. tabs: type: array items: $ref: '#/components/schemas/BrowserTab' recorder: $ref: '#/components/schemas/BrowserRecorderReport' recordingBy: type: string description: The id of the person a running recording belongs to. lastStoppedBy: type: string description: The id of the person the last stopped recording belonged to. Shown only to that person. mine: type: boolean description: Whether the caller holds control of the Bot's computer. recordingIsMine: type: boolean description: Whether the running recording, if any, is the caller's. recordRefused: type: string description: Why nothing can be recorded in this Bot's browser here, in one sentence. Absent where recording can run. BrowserNewTab: type: object additionalProperties: false required: - action properties: action: type: string const: new url: type: string maxLength: 2000 description: The web address to open in it. Left out, the tab opens empty. BrowserActivateTab: type: object additionalProperties: false required: - action - tabId properties: action: type: string const: activate tabId: type: string minLength: 1 maxLength: 200 BrowserCloseTab: type: object additionalProperties: false required: - action - tabId properties: action: type: string const: close tabId: type: string minLength: 1 maxLength: 200 BrowserTabsRequest: description: A new tab, or switching to or closing one. oneOf: - $ref: '#/components/schemas/BrowserNewTab' - $ref: '#/components/schemas/BrowserActivateTab' - $ref: '#/components/schemas/BrowserCloseTab' discriminator: propertyName: action mapping: new: '#/components/schemas/BrowserNewTab' activate: '#/components/schemas/BrowserActivateTab' close: '#/components/schemas/BrowserCloseTab' BrowserGoToAddress: type: object additionalProperties: false required: - url properties: url: type: string minLength: 1 maxLength: 2000 pattern: \S description: A web address, as a person types one. BrowserHistoryMove: type: object additionalProperties: false required: - action properties: action: type: string enum: - back - forward - reload BrowserNavigateRequest: description: An address to open, or back, forward or reload. oneOf: - $ref: '#/components/schemas/BrowserGoToAddress' - $ref: '#/components/schemas/BrowserHistoryMove' BrowserRecordingStart: type: object additionalProperties: false required: - action - title properties: action: type: string const: start title: type: string minLength: 1 maxLength: 200 pattern: \S description: What the person is about to do. language: type: string maxLength: 35 description: The language narration is heard in, such as en-US. narrate: type: boolean description: Whether the person narrates this recording, in their own browser. A Bot's browser is narrated from the page and does not read it. BrowserRecordingStop: type: object additionalProperties: false required: - action properties: action: type: string const: stop BrowserRecordingRequest: description: Start a recording, or stop the one that is running. oneOf: - $ref: '#/components/schemas/BrowserRecordingStart' - $ref: '#/components/schemas/BrowserRecordingStop' discriminator: propertyName: action mapping: start: '#/components/schemas/BrowserRecordingStart' stop: '#/components/schemas/BrowserRecordingStop' BrowserNarrationTime: type: integer minimum: 1 maximum: 8640000000000000 description: A moment on the sender's clock, in milliseconds since 1970. BrowserNarrationPhrase: type: object additionalProperties: false required: - text - startedAt - endedAt - sentAt properties: text: type: string minLength: 1 maxLength: 4000 pattern: \S description: What the person said. startedAt: $ref: '#/components/schemas/BrowserNarrationTime' endedAt: $ref: '#/components/schemas/BrowserNarrationTime' sentAt: $ref: '#/components/schemas/BrowserNarrationTime' BrowserNarrationSpeaking: type: object additionalProperties: false required: - speaking - since - sentAt properties: speaking: type: boolean const: true since: $ref: '#/components/schemas/BrowserNarrationTime' sentAt: $ref: '#/components/schemas/BrowserNarrationTime' BrowserNarrationSilent: type: object additionalProperties: false required: - speaking - sentAt properties: speaking: type: boolean const: false sentAt: $ref: '#/components/schemas/BrowserNarrationTime' BrowserNarrationRequest: description: A finished phrase, or the person starting or stopping a phrase. sentAt is the sender's clock as the request leaves. oneOf: - $ref: '#/components/schemas/BrowserNarrationPhrase' - $ref: '#/components/schemas/BrowserNarrationSpeaking' - $ref: '#/components/schemas/BrowserNarrationSilent' BrowserNarrationTaken: type: object required: - ok properties: ok: type: boolean const: true BrowserProduct: type: string enum: - chrome - msedge - chromium description: Which browser it is. BrowserWindow: type: string enum: - native - screen description: 'Where a person''s browser shows. native: a window on the person''s own desktop. screen: a browser the page shows through the live screen.' RealBrowser: type: string enum: - chrome - msedge description: One of the person's own everyday browsers. PersonBrowserReal: type: object description: On OpenBot Desktop, the person's own everyday browsers and whether a Recorder in one of them is connected. required: - connected - browsers properties: connected: type: boolean browsers: type: array items: $ref: '#/components/schemas/RealBrowser' BrowserRecorderActivity: type: object description: What one of a person's Recorders is recording, wherever it records. required: - phase - actions properties: phase: $ref: '#/components/schemas/BrowserRecorderPhase' recordingId: type: string title: type: string startedAt: type: number description: When the recording started, in milliseconds since 1970. actions: type: number description: The person's actions so far in this recording. PersonBrowser: type: object description: The browser OpenBot runs for a person. required: - open - tabs - available - computerId properties: open: type: boolean description: Whether the browser is open. A closed one has no tabs. tabs: type: array items: $ref: '#/components/schemas/BrowserTab' browser: $ref: '#/components/schemas/BrowserProduct' window: $ref: '#/components/schemas/BrowserWindow' recorder: $ref: '#/components/schemas/BrowserRecorderReport' real: $ref: '#/components/schemas/PersonBrowserReal' activity: $ref: '#/components/schemas/BrowserRecorderActivity' available: type: boolean description: False when this OpenBot has no way to run a person's browser. note: type: string description: Why this OpenBot cannot run the person's browser, in one sentence. problem: type: string description: The browser is there and is not answering, said in one sentence. Absent while it answers. shows: $ref: '#/components/schemas/BrowserWindow' computerId: type: string description: The id of the computer the browser runs on, which its live screen is read from. narration: $ref: '#/components/schemas/BrowserNarrationSource' PersonBrowserWindowOpened: type: object description: The person's OpenBot browser opened, or came forward. required: - ok - computerId - browser - window - narration properties: ok: type: boolean const: true computerId: type: string description: The id of the computer the browser runs on. browser: $ref: '#/components/schemas/BrowserProduct' window: $ref: '#/components/schemas/BrowserWindow' narration: $ref: '#/components/schemas/BrowserNarrationSource' PersonRealBrowserOpened: type: object description: On OpenBot Desktop, what happened in the person's own everyday browser instead. required: - ok - opened - browser properties: ok: type: boolean const: true opened: type: string enum: - real - store description: 'real: their browser came forward, its Recorder connected. store: the Recorder''s store page opened in it, for them to add it.' browser: $ref: '#/components/schemas/RealBrowser' PersonBrowserOpened: description: What an open did. oneOf: - $ref: '#/components/schemas/PersonBrowserWindowOpened' - $ref: '#/components/schemas/PersonRealBrowserOpened' WindowsComputerControl: type: object description: Who has the Windows computer's mouse and keyboard. required: - holder - since - snapshotRequired properties: holder: type: string enum: - bot - human since: type: string description: When it changed hands. reason: type: string description: 'Why it is with whoever has it. A person: taken (they took over in OpenBot) or interference (the Windows computer saw them use it while the Bot was). The Bot: idle (the Windows computer handed it back because the person who had taken it over had not used it for a while); absent when it was handed back by name.' snapshotRequired: type: boolean description: True when the Bot must look at the screen again before it acts. WindowsComputerRecordingEvents: type: object description: How much of the recording has reached Learning. required: - received - sent - pending - rejected properties: received: type: integer minimum: 0 description: Steps OpenBot has taken from the Windows computer. sent: type: integer minimum: 0 description: Steps Learning has accepted. pending: type: integer minimum: 0 description: Steps waiting to be sent. rejected: type: integer minimum: 0 description: Steps Learning refused. WindowsComputerRecording: type: object description: A teaching recording on the Windows computer, or idle when there is none. required: - state - events - gaps properties: state: type: string x-extensible-enum: - idle - starting - recording - stopping - stopped recordingId: type: string description: The recording, which is also its trajectory in Learning. title: type: string apps: type: array items: type: string description: The apps being recorded, by their program name. startedAt: type: string format: date-time stoppedAt: type: string format: date-time outcome: type: string enum: - succeeded - failed events: $ref: '#/components/schemas/WindowsComputerRecordingEvents' gaps: type: integer minimum: 0 description: 'Times something was not recorded or could not be sent: another app in front, a locked screen, a step Learning refused.' buffered: type: integer minimum: 0 description: Steps the Windows computer is still holding, when it answered. problem: type: string description: Why the recording isn't reaching Learning right now, when it isn't. WindowsComputer: type: object description: 'The caller''s Windows computer in this organization, who is using it, and what is being recorded on it. Every Bot of theirs set to work on a Windows computer (computer: windows) works on this one.' required: - available - control - recording properties: available: type: boolean description: True when the Windows computer answers, its session is unlocked and a Bot can use it. connected: type: boolean description: True when the Windows computer has connected with an enrollment code and its link to OpenBot is open now. False when none is connected yet (make an enrollment code) or it is off, asleep or offline. enrolled: type: boolean description: True when a Windows computer was connected with an enrollment code and not disconnected since. unavailableReason: type: string description: 'Why it isn''t available, when it isn''t: not_enrolled, not_connected, locked, secure_desktop, driver_down, stopped, unavailable or unreachable.' control: description: Who is using it. Null when the Windows computer did not answer. oneOf: - $ref: '#/components/schemas/WindowsComputerControl' - type: 'null' recording: $ref: '#/components/schemas/WindowsComputerRecording' WindowsComputerRecordingStart: type: object additionalProperties: false required: - title - apps properties: title: type: string minLength: 1 maxLength: 200 pattern: \S description: The task being shown, in a few words. narration: type: string maxLength: 2000 description: What you are showing and when to do it this way, in your own words. apps: type: array minItems: 1 maxItems: 20 items: type: string minLength: 1 maxLength: 260 pattern: \S description: The apps to record, by their program name, like notepad.exe. Other apps are left out. WindowsComputerRecordingStop: type: object additionalProperties: false properties: outcome: type: string enum: - succeeded - failed description: Whether the task worked. Succeeded when left out. reason: type: string maxLength: 500 description: What went wrong, when it failed. WindowsComputerEnrollmentCode: type: object required: - code - expiresAt properties: code: type: string description: The one-time code. A credential, shown this once. expiresAt: type: string format: date-time WindowsComputerEnrollmentExchange: type: object additionalProperties: false required: - code - name properties: code: type: string minLength: 1 maxLength: 200 description: The enrollment code. name: type: string minLength: 1 maxLength: 100 pattern: \S description: The Windows computer's name, as it calls itself. WindowsComputerConnectionGrant: type: object required: - credential - computerId - organizationId properties: credential: type: string description: 'The Windows computer''s credential (windowsComputerCredential). A credential, shown this once: keep it where only the Windows account that runs OpenBot''s program can read it.' computerId: type: string description: The Windows computer, as OpenBot knows it. organizationId: type: string description: The organization it is connected in, the one the code was made in. SignInStatus: type: string x-extensible-enum: - pending - filling - code_required - taken_over - signed_in - failed - cancelled - expired description: 'Where a sign-in request has got to. code_required: the site took the password and sent a verification code, and the form now asks for only that. signed_in, failed, cancelled and expired are final.' SignInRequest: type: object description: A Bot's request to be signed in to a website, as the private form shows it. Never a credential. required: - id - botId - origin - reason - status - method - outcome - threadId - toolCallId - controlRequestId - createdAt - expiresAt - resolvedAt - fillingUntil - savedLogins - passwordManager properties: id: type: string description: The request's id. botId: type: string description: The Bot that asked. origin: type: string description: The site, as the origin a login belongs to, such as https://example.com. reason: type: - string - 'null' description: Why the Bot asked, in its own words. status: $ref: '#/components/schemas/SignInStatus' method: type: - string - 'null' enum: - typed - saved - takeover - null description: How the person answered, once they have. outcome: type: - string - 'null' description: The last thing that happened, such as why a typed login did not work. threadId: type: - string - 'null' description: The conversation the Bot asked in. toolCallId: type: - string - 'null' description: The tool call that asked, so its card in the conversation can find this request. controlRequestId: type: - string - 'null' description: The request that hands the person the Bot's browser, once they took over. createdAt: type: string format: date-time expiresAt: type: string format: date-time resolvedAt: type: - string - 'null' format: date-time fillingUntil: type: - string - 'null' format: date-time description: While filling, when the attempt is given up on as abandoned. savedLogins: type: array description: The person's saved logins for this site, by username, while the password manager is on. Never a password. items: type: object required: - id - username properties: id: type: string username: type: string passwordManager: type: boolean description: Whether the person may save a login and use a saved one. SignInRequestPage: type: object required: - signInRequests - nextCursor properties: signInRequests: type: array description: The newest request first, then by id. items: $ref: '#/components/schemas/SignInRequest' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateSignInRequestRequest: type: object additionalProperties: false required: - botId - site properties: botId: type: string minLength: 1 maxLength: 200 description: The Bot to sign in. site: type: string minLength: 1 maxLength: 2048 description: 'The website: an http or https address, or a bare host, which is read as https. Kept as its origin.' reason: type: string maxLength: 500 description: Why the Bot needs it, shown to the person. threadId: type: string maxLength: 200 description: The conversation the Bot asked in. toolCallId: type: string maxLength: 200 description: The tool call that asked. SignInRequestEnvelope: type: object required: - signInRequest properties: signInRequest: $ref: '#/components/schemas/SignInRequest' SubmitSignInRequest: type: object additionalProperties: false required: - password properties: username: type: string maxLength: 512 password: type: string minLength: 1 maxLength: 4096 writeOnly: true description: Goes to the Bot's browser and nowhere else. save: type: boolean description: Keep this login for next time, if the site accepts it and the password manager is on. SubmitSignInCodeRequest: type: object additionalProperties: false required: - code properties: code: type: string minLength: 1 maxLength: 64 writeOnly: true description: The verification code the site sent. Good once, and never saved. UseSavedLoginRequest: type: object additionalProperties: false required: - savedLoginId properties: savedLoginId: type: string minLength: 1 maxLength: 200 description: One of the request's savedLogins. SavedLogin: type: object description: A saved login as the API shows it. Never its password. required: - id - origin - username - createdAt - updatedAt - lastUsedAt properties: id: type: string origin: type: string description: The one site the login is for, as its origin. username: type: string createdAt: type: string format: date-time updatedAt: type: string format: date-time lastUsedAt: type: - string - 'null' format: date-time SavedLoginPage: type: object required: - savedLogins - nextCursor - passwordManager properties: savedLogins: type: array description: By site, then username, then id. items: $ref: '#/components/schemas/SavedLogin' passwordManager: type: boolean description: Whether the person may save a login and use a saved one. nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. SavedLoginCounts: type: object description: 'How many saved logins nobody may use, for each reason: those a purge deleted, or those it would delete.' required: - switchedOff - removed properties: switchedOff: type: integer minimum: 0 description: Those of current members the Password manager switch is off for. removed: type: integer minimum: 0 description: 'Those of people removed from the organization, or whose address can''t sign in any more. Almost always 0: a safety net.' SavedLoginsPurged: type: object required: - deleted properties: deleted: $ref: '#/components/schemas/SavedLoginCounts' CreateRecorderConnectCodeRequest: type: object additionalProperties: false required: - via properties: via: type: string enum: - web - desktop description: 'How the browser is being connected: from OpenBot in a browser, or by OpenBot Desktop.' RecorderConnectCode: type: object required: - code - expiresAt properties: code: type: string description: The one-time code. A credential, shown this once. expiresAt: type: string format: date-time RecorderConnection: type: object description: A browser whose Recorder is connected as a person. Never its token. required: - id - label - via - extensionId - installId - createdAt - lastUsedAt properties: id: type: string label: type: string description: The browser's name, as its Recorder gave it. via: type: string enum: - web - desktop - openbot-browser - bot-browser description: 'How it was connected: from OpenBot in a browser, by OpenBot Desktop, by OpenBot for the person''s own OpenBot browser, or by OpenBot for one recording in a Bot''s browser.' extensionId: type: string description: The Recorder extension's id. installId: type: string description: 'The connecting copy''s install id: 32 lower-case hex digits.' createdAt: type: string format: date-time lastUsedAt: type: - string - 'null' format: date-time ListedRecorderConnection: allOf: - $ref: '#/components/schemas/RecorderConnection' - type: object required: - recording properties: recording: type: boolean description: Its Recorder said it is recording, in a report recent enough to stand. RecorderConnectionPage: type: object required: - recorderConnections - extensionIds - nextCursor properties: recorderConnections: type: array description: The oldest connection first, then by id. items: $ref: '#/components/schemas/ListedRecorderConnection' extensionIds: type: array description: The Recorder extension ids this OpenBot trusts. items: type: string nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. Recording: type: object required: - id - title - recordedAt - ended - reason properties: id: type: string title: type: - string - 'null' recordedAt: type: string format: date-time ended: type: string enum: - succeeded - stopped - sending - unknown - missing description: 'How it ended: sending while it has not all arrived, missing when it can no longer be found, unknown when that could not be read.' reason: type: - string - 'null' description: Why it stopped, when it said. RecordingPage: type: object required: - recordings - nextCursor properties: recordings: type: array description: The newest recording first, then by id. items: $ref: '#/components/schemas/Recording' unavailable: type: string enum: - unavailable - unreachable description: 'Present when this page could not be read in full: what holds the recordings is turned off (unavailable) or could not be reached (unreachable).' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. ExchangeRecorderConnectCodeRequest: type: object additionalProperties: false required: - code - label - installId properties: code: type: string maxLength: 80 pattern: ^obc_ writeOnly: true description: The connect code. The credential of this request. label: type: string minLength: 1 maxLength: 80 pattern: \S description: The browser's name, to list it by. Trimmed. installId: type: string pattern: ^[0-9a-f]{32}$ description: 'This copy of the Recorder''s install id: 32 lower-case hex digits.' RecorderUser: type: object required: - id - name - email properties: id: type: string name: type: string description: Their name, or their email where they have none. email: type: string RecorderConnectionGrant: type: object required: - token - connection - user properties: token: type: string description: The connection token (recorderConnection). A credential, shown this once. connection: $ref: '#/components/schemas/RecorderConnection' user: $ref: '#/components/schemas/RecorderUser' organizationId: type: string description: The organization the connection works in, the one the connect code was made in. The Recorder names it in every address it calls from now on. Absent from a server that keeps every connection in `default`. organizationName: type: string description: What people call that organization, so the Recorder can say where it records. Absent from a server that keeps every connection in `default`. RecorderProblem: description: 'A problem for the OpenBot Recorder: the shared problem details, with why its connection ended.' allOf: - $ref: '#/components/schemas/Problem' - type: object properties: reason: type: string enum: - revoked - removed - organization description: 'Why a Recorder''s connection ended, on RECORDER_SIGNED_OUT: the connection was ended or is unknown (revoked), the person was removed (removed), or their organization sign-in ended (organization).' RecorderIdentity: type: object required: - user - connectionId properties: user: $ref: '#/components/schemas/RecorderUser' connectionId: type: string organization: type: object description: The organization this connection records into, so the Recorder can say where it records. Absent from a server that keeps every connection in `default`. required: - id - name properties: id: type: string description: The organization's id. Opaque. name: type: string description: What people call it. RecorderLearning: type: object required: - learning properties: learning: type: object required: - state - containerId properties: state: type: string enum: - assigned - unassigned - missing - learning-off - unverified - unjoined description: 'assigned: the space exists. unassigned: Automatic Learning is off, so there is none. missing: it does not exist and could not be made. learning-off: Learning is off, so it was not checked. unverified: it could not be checked for now. unjoined: the recording joined no space in time.' containerId: type: - string - 'null' RecorderActivity: type: object additionalProperties: false required: - phase - actions properties: phase: type: string enum: - idle - starting - recording - stopping recordingId: type: string minLength: 1 maxLength: 200 title: type: string maxLength: 200 startedAt: type: integer minimum: 1 maximum: 9007199254740991 description: When the recording started, in milliseconds since 1970. actions: type: integer minimum: 0 maximum: 9007199254740991 description: How many actions the recording holds so far. ProductEvent: type: object description: The caller saw a Bot's answer, or copied it. Names the answer and nothing about the person, who is the caller. additionalProperties: false required: - kind - threadId - messageId - surface properties: kind: type: string enum: - result_viewed - result_copied description: What the caller did with the answer, result_viewed when it was on screen and result_copied when they copied it. threadId: type: string description: The thread the answer is in, as its messages name it. minLength: 1 maxLength: 256 pattern: ^[A-Za-z0-9_:.-]+$ messageId: type: string description: The answer's message, by the id its thread gives it. minLength: 1 maxLength: 256 pattern: ^[A-Za-z0-9_:.-]+$ runId: type: string description: The run that wrote the answer, when the client knows it. minLength: 1 maxLength: 256 pattern: ^[A-Za-z0-9_:.-]+$ surface: type: string enum: - web - desktop - mobile description: Where the caller saw or copied it. AppError: type: object description: An error the app hit and did not handle, as the app saw it. OpenBot scrubs and bounds it again before it is sent anywhere. additionalProperties: false required: - source - type - message - surface properties: source: type: string enum: - error_boundary - window_error - unhandled_rejection description: How the app caught it. error_boundary when its error screen was shown, window_error for an error the page threw, and unhandled_rejection for a promise nobody handled. type: type: string description: The error's name, such as TypeError. minLength: 1 maxLength: 128 message: type: string description: The error's message. maxLength: 2048 stack: type: string description: The error's stack, as the browser wrote it. maxLength: 12288 surface: type: string enum: - web - desktop - mobile description: Where the app runs. appVersion: type: string description: The release the app was built for, such as 1.1.0-rc.2, when the build knows it. minLength: 1 maxLength: 32 pattern: ^v?\d+(?:\.\d+){1,3}(?:-[a-z]+(?:\.\d{1,9})?)?$ NudgeEvent: type: object description: What the caller did with a nudge, and where. Names nothing about the person, who is the caller. The moment that made the nudge due is added by OpenBot, not sent. additionalProperties: false required: - nudge - action - place - surface properties: nudge: $ref: '#/components/schemas/NoticeId' action: type: string enum: - shown - clicked - dismissed description: shown when the nudge was drawn, clicked when they followed it (for the star nudge, opened the repository), and dismissed when they said Not now. place: type: string enum: - card - settings description: card for the nudge drawn above the message box, settings for its permanent row in Settings, which is never shown as a card. surface: type: string enum: - web - desktop description: Where the caller saw or answered it. LearningSpaceId: type: string description: A Learning space's id in the backend (its container). minLength: 1 maxLength: 64 pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$ LearningTarget: type: object description: A Learning space, by its id in the organization's backend. additionalProperties: false required: - containerId properties: containerId: $ref: '#/components/schemas/LearningSpaceId' revision: type: string minLength: 1 maxLength: 128 description: A published revision to hold the space's skills at. Absent follows the latest. LearningSettings: type: object required: - enabled - defaultTarget - bots - personalReview properties: enabled: type: boolean description: Whether Bots' conversations are learned from and their skills delivered. defaultTarget: description: The space every Bot learns into. Null when none is assigned. oneOf: - $ref: '#/components/schemas/LearningTarget' - type: 'null' bots: type: object description: Each Bot's own space, by Bot id. A Bot not named learns into the default; null keeps one out of Learning. additionalProperties: oneOf: - $ref: '#/components/schemas/LearningTarget' - type: 'null' personalReview: type: string enum: - admins - people description: Who reviews what people's own recordings propose. LearningAutomatic: type: object description: 'What OpenBot last found when it looked for the space it assigns by itself. off: switched off, or the environment names a space. saved: an administrator''s settings decide. assigned: OpenBot assigned it. absent: the project has no such space yet. not_entitled: the plan doesn''t include Learning. learning_off: the backend has Learning switched off. unavailable: the backend couldn''t be asked. pending: not asked yet.' required: - state properties: state: type: string enum: - 'off' - saved - assigned - absent - not_entitled - learning_off - unavailable - pending containerId: $ref: '#/components/schemas/LearningSpaceId' instructions: type: string description: Where the space is absent, what an operator runs to create it. canCreate: type: boolean description: Where the space is absent, whether this deployment can create it (createAutomaticLearningSpace). createError: type: string description: Why the last attempt to create it failed. LearningConfiguration: type: object required: - settings - automatic properties: settings: $ref: '#/components/schemas/LearningSettings' automatic: description: Null where OpenBot never assigns a space by itself. oneOf: - $ref: '#/components/schemas/LearningAutomatic' - type: 'null' organizationSpaceId: description: 'The space OpenBot keeps for this organization alone, which its Bots learn into unless an administrator chooses another. Another space of the organization''s is named after it: this id, a hyphen, then a name of the administrator''s choosing. The id says nothing a person can read, so a screen names the space by the organization and never shows it. Null, or absent, where OpenBot keeps no space for the organization alone and its default is whichever space is assigned or chosen.' oneOf: - $ref: '#/components/schemas/LearningSpaceId' - type: 'null' UpdateLearningSettingsRequest: type: object additionalProperties: false minProperties: 1 properties: enabled: type: boolean defaultTarget: oneOf: - $ref: '#/components/schemas/LearningTarget' - type: 'null' bots: type: object description: Replaces every Bot's own space. additionalProperties: oneOf: - $ref: '#/components/schemas/LearningTarget' - type: 'null' personalReview: type: string enum: - admins - people LearningAutomaticResult: type: object required: - automatic properties: automatic: $ref: '#/components/schemas/LearningAutomatic' LearningOverview: type: object required: - configuration - pendingThreadCount - pendingCandidateCount - publishedSkillCount - insightCount - hasActiveRun - latestRunStatus - links properties: configuration: type: string enum: - not_configured - invalid - configured - selection_required container: type: object required: - id - name properties: id: type: string name: type: string pendingThreadCount: type: - integer - 'null' minimum: 0 pendingCandidateCount: type: integer minimum: 0 publishedSkillCount: type: - integer - 'null' minimum: 0 insightCount: type: - integer - 'null' minimum: 0 hasActiveRun: type: boolean latestRunStatus: type: - string - 'null' links: type: object required: - learning - candidates - runs properties: learning: type: - string - 'null' format: uri candidates: type: - string - 'null' format: uri runs: type: - string - 'null' format: uri modelProblem: type: string description: Why Learning can't run on this machine's model, and what to do. Absent when it can. PublishedSkillSummary: type: object required: - name - description properties: name: type: string description: type: string PublishedSkillPage: type: object required: - containerId - skills - nextCursor properties: containerId: oneOf: - $ref: '#/components/schemas/LearningSpaceId' - type: 'null' skills: type: array items: $ref: '#/components/schemas/PublishedSkillSummary' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. LearnedSkill: type: object required: - name - description - files properties: name: type: string description: type: string files: type: array description: Every file the skill holds, SKILL.md first. items: type: object required: - path - text properties: path: type: string text: type: - string - 'null' description: The file's text, or null for a binary file. recordings: type: array description: The person's own recordings it was learned from. Absent where those could not be read or don't apply. items: type: object required: - id - title - available properties: id: type: string description: The backend's id for the recording. title: type: - string - 'null' available: type: boolean description: False when the backend no longer has the recording. LearningProposal: type: object description: A skill change Learning proposed in a space, waiting for review or reviewed. required: - id - runId - operation - status - title - description - reason - createdAt - reviewedAt - publishedSkillId properties: id: type: string format: uuid runId: type: string format: uuid description: The run that proposed it. operation: type: string enum: - add - update - remove description: Whether it adds a skill, changes one, or removes one. status: type: string x-extensible-enum: - pending_review - approved - rejected title: type: string description: The skill's name. description: type: string reason: type: string description: Why Learning proposes it. createdAt: type: string format: date-time reviewedAt: type: - string - 'null' format: date-time publishedSkillId: type: - string - 'null' description: The skill an approval published. Null until approved. LearningPerson: type: object required: - personId - name - containerId - proposals properties: personId: type: string name: type: string containerId: $ref: '#/components/schemas/LearningSpaceId' proposals: type: - array - 'null' description: What waits for review in their space. Null when their space could not be read. items: $ref: '#/components/schemas/LearningProposal' LearningPersonPage: type: object required: - people - nextCursor properties: people: type: array items: $ref: '#/components/schemas/LearningPerson' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. SkillDelivery: type: object required: - configured - initialized - stale properties: configured: type: boolean containerId: type: string revision: type: string initialized: type: boolean stale: type: boolean lastCheckedAt: type: string format: date-time error: type: object required: - code - message - retryable properties: code: type: string message: type: string retryable: type: boolean SkillSharingRequest: type: object required: - id - personId - name - skillName - requestedAt properties: id: type: string description: The request's id, which approve and decline address it by. personId: type: string name: type: string description: The person's name. skillName: type: string requestedAt: type: string description: When the request was made, as approve and decline take it back. SkillSharingRequestPage: type: object required: - requests - nextCursor properties: requests: type: array items: $ref: '#/components/schemas/SkillSharingRequest' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. SkillSharingDecision: type: object additionalProperties: false required: - requestedAt properties: requestedAt: type: string minLength: 1 maxLength: 64 description: The request's requestedAt, as the administrator read it. SkillSharingOutcome: type: object required: - skillName - sharing properties: skillName: type: string sharing: type: string enum: - requested - approved - declined LearningSharingMode: type: string enum: - closed - open - choose description: 'Who else''s Bots use the skills learned in a person''s own space. closed: only their own Bots. open: every Bot in the organization. choose: every Bot in the organization, for the skills they open one by one. Never a Bot in another organization.' PersonalLearnedSkill: type: object required: - name - description - open - approvedBy - sharing properties: name: type: string description: type: string open: type: boolean description: Whether the person opened it to every Bot, where they choose. approvedBy: type: - string - 'null' enum: - person - admin - null description: Who approved it into their space. Null when no approval is on record. sharing: type: string enum: - none - requested - approved - declined description: Where the person's request to share it with every Bot stands. PersonLearning: type: object required: - mode - sharingAllowed - autoApprove - skills properties: mode: $ref: '#/components/schemas/LearningSharingMode' sharingAllowed: type: boolean description: Whether an administrator lets people open skills to every Bot. While it is false only closed takes effect. autoApprove: type: - boolean - 'null' description: In a single-person OpenBot, whether proposals are approved without a review. Null elsewhere. skills: type: - array - 'null' items: $ref: '#/components/schemas/PersonalLearnedSkill' unavailable: type: string enum: - 'off' - unavailable description: 'Why skills is null. off: Automatic learning is off. unavailable: the backend did not deliver them.' UpdatePersonLearningRequest: type: object additionalProperties: false minProperties: 1 properties: mode: $ref: '#/components/schemas/LearningSharingMode' autoApprove: type: boolean description: Only in a single-person OpenBot. PersonLearningChoices: type: object required: - mode - autoApprove properties: mode: $ref: '#/components/schemas/LearningSharingMode' autoApprove: type: - boolean - 'null' LearningRun: type: object description: One run of Learning over a space. required: - id - status - triggerSource - proposalCount - insightCount - failureCode - failure - createdAt - startedAt - completedAt properties: id: type: string format: uuid status: type: string x-extensible-enum: - queued - freezing - batching - reducing - finalizing - succeeded - failed triggerSource: type: string enum: - automatic - manual proposalCount: type: - integer - 'null' minimum: 0 description: How many proposals it made. Null until it finishes. insightCount: type: - integer - 'null' minimum: 0 failureCode: type: - string - 'null' failure: type: - string - 'null' description: Why a failed run stopped, in a sentence for the person, with what to do. Null unless it failed. createdAt: type: string format: date-time startedAt: type: - string - 'null' format: date-time completedAt: type: - string - 'null' format: date-time LearningSpace: type: object required: - containerId - kind - label - proposals - latestRun properties: containerId: $ref: '#/components/schemas/LearningSpaceId' kind: type: string enum: - recordings - conversations label: type: string proposals: type: - array - 'null' description: What waits for review in it. Null when it could not be read. items: $ref: '#/components/schemas/LearningProposal' latestRun: oneOf: - $ref: '#/components/schemas/LearningRun' - type: 'null' unavailable: type: string enum: - learning-off description: Learning is switched off in the backend, so there is nothing to read. PersonLearningReview: type: object required: - canReview - autoApprove - approved - spaces properties: canReview: type: boolean description: Whether the person decides on proposals themselves. autoApprove: type: - boolean - 'null' description: In a single-person OpenBot, whether proposals are approved without a review. Null elsewhere. approved: type: integer minimum: 0 description: How many proposals reading this approved automatically. modelProblem: type: string description: Why Learning can't run on this machine at all. Absent when nothing is known to be wrong. spaces: type: array items: $ref: '#/components/schemas/LearningSpace' RecordingSkill: type: object required: - containerId - proposal properties: containerId: $ref: '#/components/schemas/LearningSpaceId' proposal: $ref: '#/components/schemas/LearningProposal' RecordingSkillPage: type: object required: - skills - nextCursor properties: skills: type: array items: $ref: '#/components/schemas/RecordingSkill' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. RecordingTitles: type: object required: - recordings properties: recordings: type: array items: type: object required: - id - title properties: id: type: string title: type: - string - 'null' RecordingTitlesRequest: type: object additionalProperties: false required: - ids properties: ids: type: array description: The recordings, by the backend's id, at most 50. minItems: 1 maxItems: 50 items: type: string format: uuid UpdateLearnedSkillRequest: type: object additionalProperties: false required: - open properties: open: type: boolean LearnedSkillOpen: type: object required: - name - open properties: name: type: string open: type: boolean LearningProposalPage: type: object required: - proposals - nextCursor properties: proposals: type: array description: Newest first, reviewed ones included. items: $ref: '#/components/schemas/LearningProposal' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. LearningProposalDetail: description: One proposal with every file it would publish and the insights behind it. Read each insight's evidence on its own. allOf: - $ref: '#/components/schemas/LearningProposal' - type: object required: - files - insights properties: files: type: array description: Every file the skill would hold. items: type: object required: - path - content properties: path: type: string content: type: string insights: type: array description: What Learning noticed that led to it. items: type: object required: - id - statement - impact properties: id: type: string format: uuid statement: type: string impact: type: string LearningReview: type: object description: A proposal as a review left it. required: - proposalId - operation - status - publishedSkillId properties: proposalId: type: string format: uuid operation: type: string enum: - add - update - remove status: type: string enum: - approved - rejected publishedSkillId: type: - string - 'null' LearningEvidence: description: 'One piece of what an insight was learned from: messages cited from a conversation, or events from a recording.' oneOf: - type: object required: - kind - threadId - threadName - threadPresent - unavailable - messageCount - cited properties: kind: type: string const: conversation threadId: type: string description: The backend's id for the conversation. threadName: type: - string - 'null' threadPresent: type: boolean description: False when the conversation is gone. unavailable: type: - string - 'null' enum: - snapshot-missing - snapshot-unreadable - null description: Why what was cited can't be read, if it can't. messageCount: type: integer minimum: 0 cited: type: array items: type: object required: - id - role - content properties: id: type: string role: type: string enum: - user - assistant - tool content: type: string - type: object required: - kind - trajectoryId - trajectoryPresent - unavailable - eventCount - events properties: kind: type: string const: recording trajectoryId: type: string description: The backend's id for the recording. trajectoryPresent: type: boolean description: False when the recording is gone. unavailable: type: - string - 'null' enum: - snapshot-missing - snapshot-unreadable - null eventCount: type: integer minimum: 0 events: type: array description: The cited events, in order. items: type: object required: - seq - name - offsetMs properties: seq: type: integer minimum: 0 name: type: string offsetMs: type: number LearningEvidenceList: type: object required: - evidence properties: evidence: type: array maxItems: 100 items: $ref: '#/components/schemas/LearningEvidence' LearningRunPage: type: object required: - runs - nextCursor properties: runs: type: array description: Newest first. items: $ref: '#/components/schemas/LearningRun' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. Memory: type: object description: One fact a person's Bots remember about them. required: - id - content - provenance - sourceId - enabled - reviewState - formedBy - formedByBotId - sourceApp - sourceLink - observedAt - createdAt - updatedAt properties: id: type: string content: type: string provenance: type: string description: 'Where it came from, in words: You, or the app and item it was read in from.' sourceId: type: - string - 'null' description: The memory source it was read in from, if any. enabled: type: boolean description: False while the person has paused it. A paused memory is never recalled. reviewState: type: string enum: - unreviewed - confirmed - edited description: 'unreviewed: a Bot formed it or a source read it in, and no Bot recalls it until the person accepts it.' formedBy: type: string enum: - person - import - bot - intelligence description: 'Who formed it: the person, a source, a Bot, or the backend (one the backend holds for the person that OpenBot formed no record of, which can be edited or forgotten but not paused).' formedByBotId: type: - string - 'null' description: The Bot that formed it. Only that Bot recalls it. sourceApp: type: - string - 'null' sourceLink: type: - string - 'null' observedAt: type: - string - 'null' format: date-time createdAt: type: string format: date-time updatedAt: type: string format: date-time MemoryPage: type: object required: - memories - nextCursor properties: memories: type: array items: $ref: '#/components/schemas/Memory' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateMemoryRequest: type: object additionalProperties: false required: - content properties: content: type: string minLength: 1 maxLength: 6000 pattern: \S description: Trimmed. provenance: type: string minLength: 1 maxLength: 500 pattern: \S default: You description: Where it came from, in words. Trimmed. enabled: type: boolean default: true UpdateMemoryRequest: type: object additionalProperties: false minProperties: 1 properties: content: type: string minLength: 1 maxLength: 6000 pattern: \S description: The memory's new words. Trimmed. enabled: type: boolean description: False pauses it; true resumes it. reviewState: type: string enum: - unreviewed - confirmed - edited description: confirmed accepts a memory a Bot formed or a source read in. MemorySource: type: object description: One app action a person's Bot reads facts in from. required: - id - botId - toolRef - title - args - enabled - syncStatus - syncError - lastSyncAt - nextSyncAt - createdAt - updatedAt properties: id: type: string botId: type: string description: The Bot that reads it, and the only one that recalls what it read in. toolRef: type: string description: The action, as appId/toolName. title: type: string args: type: object description: What the action is called with. additionalProperties: true enabled: type: boolean syncStatus: type: string x-extensible-enum: - idle - running - succeeded - error syncError: type: - string - 'null' description: Why the last sync failed, in a sentence for the person. lastSyncAt: type: - string - 'null' format: date-time nextSyncAt: type: string format: date-time createdAt: type: string format: date-time updatedAt: type: string format: date-time MemorySourcePage: type: object required: - sources - nextCursor properties: sources: type: array items: $ref: '#/components/schemas/MemorySource' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CreateMemorySourceRequest: type: object additionalProperties: false required: - botId - toolRef - title properties: botId: type: string minLength: 1 maxLength: 128 pattern: \S toolRef: type: string minLength: 1 maxLength: 256 pattern: \S description: One of the Bot's read actions, as appId/toolName. title: type: string minLength: 1 maxLength: 160 pattern: \S args: type: object default: {} additionalProperties: true description: What to call the action with. At most 8 KB as JSON. MemorySourceSync: type: object required: - imported - source properties: imported: type: integer minimum: 0 description: How many facts this sync read in. source: $ref: '#/components/schemas/MemorySource' UpdateMemorySourceRequest: type: object additionalProperties: false required: - enabled properties: enabled: type: boolean MemorySourceTool: type: object required: - ref - title - description - inputSchema properties: ref: type: string description: The action, as appId/toolName. title: type: string description: type: string inputSchema: type: object additionalProperties: true description: The JSON Schema of what the action is called with. MemorySourceToolPage: type: object required: - tools - nextCursor properties: tools: type: array items: $ref: '#/components/schemas/MemorySourceTool' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. BotAgentKind: type: string enum: - openbot - address description: 'openbot: runs inside OpenBot. address: runs at an AG-UI address, somebody''s own or a framework OpenBot runs itself.' BotAgentVisibility: type: string enum: - public - private description: 'public: every member''s Bots may use it, and only an admin may make one. private: only its owner''s Bots may use it.' BotAgentSkill: type: object description: One thing the agent is good at, in the shape of an A2A Agent Card's skill. A Bot reads its agents' skills when it decides which to hand work to. additionalProperties: false required: - name - description properties: name: type: string minLength: 1 maxLength: 80 pattern: \S description: The skill's name, 1 to 80 characters once trimmed. description: type: string minLength: 1 maxLength: 500 pattern: \S description: What it does, 1 to 500 characters once trimmed. examples: type: array maxItems: 5 description: Up to five things a person might ask for that it handles. items: type: string minLength: 1 maxLength: 200 pattern: \S BotAgent: type: object description: 'An agent as the caller sees it. canManage, mine and builtIn are the server''s verdicts for this caller; a client renders them and never recomputes them. No secret is ever part of an agent: hasAuth and hasCallbackToken say whether one is set.' required: - id - name - description - kind - visibility - endpoint - model - skills - hasAuth - hasCallbackToken - builtIn - canManage - mine - botCount - createdAt - updatedAt properties: id: type: string description: The agent's id. name: type: string description: What the agent is called. description: type: string description: What it is good at, in its owner's words. A Bot reads it when it decides which agent to hand work to. kind: $ref: '#/components/schemas/BotAgentKind' visibility: $ref: '#/components/schemas/BotAgentVisibility' endpoint: type: - string - 'null' description: The AG-UI address it runs at, as it was stored. Null for an agent that runs inside OpenBot. framework: type: string description: What runs it, by the name a person reads ("LangChain", "OpenBot"). Absent when OpenBot doesn't know. model: type: - string - 'null' description: The model it runs on, for an agent whose model is OpenBot's to choose. Null for the organization's default, or for an agent that picks its own. skills: type: array items: $ref: '#/components/schemas/BotAgentSkill' hasAuth: type: boolean description: Whether a key is set for its address. Never the key. hasCallbackToken: type: boolean description: Whether it holds a credential for calling OpenBot's tools back. Never the credential. builtIn: type: boolean description: Whether OpenBot runs it, inside OpenBot or at an address OpenBot started, so it needs no callback token of its own. canManage: type: boolean description: Whether the caller may change and delete it. mine: type: boolean description: Whether the caller added it. botCount: type: integer minimum: 0 description: 'How many of the Bots the caller can see may use it, deleted Bots aside. A count only: which Bots is not said. With scope=organization, every Bot in the organization.' createdAt: type: string format: date-time description: When it was added. updatedAt: type: string format: date-time description: When it last changed. BotAgentPage: type: object required: - agents - nextCursor properties: agents: type: array items: $ref: '#/components/schemas/BotAgent' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. BotAgentName: type: string minLength: 1 maxLength: 80 pattern: \S description: What the agent is called, 1 to 80 characters once trimmed. BotAgentDescription: type: string minLength: 1 maxLength: 1000 pattern: \S description: What it is good at, 1 to 1000 characters once trimmed. A Bot reads it when it decides which agent to hand work to, so say what to send it. BotAgentEndpoint: type: string description: 'The AG-UI address it runs at: an absolute http or https address. An address that fits can still be refused: the server refuses one this organization may not reach, and one that does not answer a real AG-UI run.' maxLength: 2048 format: uri pattern: ^[Hh][Tt][Tt][Pp][Ss]?:// BotAgentKey: type: object description: 'A key the agent''s address sits behind. Write-only: stored encrypted and never returned. A blank value sets no key.' additionalProperties: false required: - value properties: header: type: string maxLength: 200 pattern: ^[A-Za-z0-9-]*$ description: The header it is sent in. Blank or absent means Authorization. value: type: string maxLength: 8000 writeOnly: true description: The header's value. BotAgentHarness: type: string description: The framework an agent at an address is built on, by its id in OpenBot's harness list (shared/harnesses.json). Empty means none was named. Kept only for kind address. enum: - '' - crewai - llamaindex - agno - langgraph - langgraph-ts - google-adk - antigravity - pydantic-ai - microsoft-agent-framework - claude-agent-sdk - openai-agents-sdk - strands - ag2 - langroid - mastra BotAgentModel: type: - string - 'null' minLength: 1 maxLength: 500 pattern: \S description: A model the catalogue offers, or null for the organization's default. Read only for an agent whose model is OpenBot's to choose. BotAgentSkills: type: array maxItems: 20 description: Up to twenty things it is good at. Absent on a change leaves them as they are. items: $ref: '#/components/schemas/BotAgentSkill' CreateBotAgentRequest: type: object description: A new agent. endpoint is required for kind address and refused for kind openbot. additionalProperties: false required: - name - description - visibility - kind properties: name: $ref: '#/components/schemas/BotAgentName' description: $ref: '#/components/schemas/BotAgentDescription' visibility: $ref: '#/components/schemas/BotAgentVisibility' kind: $ref: '#/components/schemas/BotAgentKind' endpoint: $ref: '#/components/schemas/BotAgentEndpoint' auth: $ref: '#/components/schemas/BotAgentKey' harness: $ref: '#/components/schemas/BotAgentHarness' model: $ref: '#/components/schemas/BotAgentModel' skills: $ref: '#/components/schemas/BotAgentSkills' BotAgentResponse: type: object required: - agent properties: agent: $ref: '#/components/schemas/BotAgent' UpdateBotAgentRequest: type: object description: An agent's fields after the change. Absent optional fields stay as they are. additionalProperties: false required: - name - description - visibility properties: name: $ref: '#/components/schemas/BotAgentName' description: $ref: '#/components/schemas/BotAgentDescription' visibility: $ref: '#/components/schemas/BotAgentVisibility' endpoint: $ref: '#/components/schemas/BotAgentEndpoint' auth: $ref: '#/components/schemas/BotAgentKey' model: $ref: '#/components/schemas/BotAgentModel' skills: $ref: '#/components/schemas/BotAgentSkills' BotAgentCallbackToken: type: object required: - token properties: token: type: string minLength: 1 description: The agent's credential for calling OpenBot's tools back. Returned this once and never again. BotDelegationMode: type: string enum: - self - orchestrate description: 'self: the Bot runs on its one agent with its apps. orchestrate: the Bot answers on its own model and hands work to the agents it may use.' BotDelegationAgent: type: object description: One agent a Bot may use, as the caller sees it. required: - id - name - description - kind - available properties: id: type: string description: The agent's id. name: type: string description: What the agent is called. An agent private to somebody other than the caller is named Private agent. description: type: string description: What it is good at. Empty for an agent private to somebody other than the caller. kind: $ref: '#/components/schemas/BotAgentKind' framework: type: string description: What runs it, by the name a person reads. Absent when OpenBot doesn't know. available: type: boolean description: 'Whether the Bot may still hand it work: false once the agent is deleted, or private to somebody other than the Bot''s owner.' BotDelegation: type: object description: How a Bot works, and the agents it may use, the first being its default. required: - botId - mode - model - effort - instructions - agents - canManage properties: botId: type: string description: The Bot's id. mode: $ref: '#/components/schemas/BotDelegationMode' model: type: - string - 'null' description: The model the Bot answers on when it orchestrates, or null for the organization's default. effort: type: - string - 'null' description: How hard it thinks when it orchestrates, or null for the model's own. instructions: type: string description: How it hands work out and answers when it orchestrates. May be empty. Empty for a caller who can't change the Bot, since it can name an agent private to its owner. agents: type: array minItems: 1 items: $ref: '#/components/schemas/BotDelegationAgent' canManage: type: boolean description: Whether the caller may change it. ReplaceBotDelegationRequest: type: object additionalProperties: false required: - mode - model - effort - instructions - agentIds properties: mode: $ref: '#/components/schemas/BotDelegationMode' model: type: - string - 'null' minLength: 1 maxLength: 500 pattern: \S description: A model the catalogue offers, or null for the default. Trimmed. effort: type: - string - 'null' minLength: 1 maxLength: 40 pattern: \S description: An effort the model takes, or null for its own. Trimmed, and read in lower case. instructions: type: string maxLength: 4000 description: How it hands work out and answers, up to 4000 characters. May be empty. agentIds: type: array minItems: 1 maxItems: 20 uniqueItems: true description: The agents it may use, in order, the first being its default. Exactly one in mode self. items: type: string minLength: 1 maxLength: 200 pattern: \S ManagementWindow: type: object description: The weekly maintenance window the managed updates service upgrades this OpenBot in, as the service last reported it, once connected. It is agreed for each install; the default is Tuesdays from 14:00 UTC for four hours. required: - weekday - startUtc - hours properties: weekday: type: integer minimum: 0 maximum: 6 description: The day it starts, 0 for Sunday to 6 for Saturday. startUtc: type: string pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$ description: When it starts, as HH:MM in UTC. hours: type: number minimum: 4 maximum: 168 description: How many hours it lasts. ManagementEnrollment: type: object description: Where connecting this OpenBot to managed updates stands. Which fields are present depends on state. required: - state properties: state: type: string x-extensible-enum: - not-connected - waiting-for-approval - waiting-for-agent - connected - connecting - opted-out description: 'not-connected: nothing is under way. waiting-for-approval: the code is waiting for somebody to approve it at verificationUri. waiting-for-agent: approved, and waiting for the management agent to be installed with helmCommand and to report in. connected: the agent reports in. connecting: OpenBot is connecting by itself, by its licence, and the management agent its chart installed is collecting its one-time token and reporting in for the first time; nobody needs to do anything. opted-out: an administrator disconnected OpenBot, so it doesn''t connect by itself; starting a connection turns managed updates back on. A later OpenBot may add a state; read one you don''t know as not connected.' userCode: type: string pattern: ^[A-Z0-9]{4}-[A-Z0-9]{4}$ description: The code to approve, while waiting for approval. verificationUri: type: string format: uri description: The page where the code is approved, while waiting for approval. verificationUriComplete: type: string format: uri description: The same page with the code already filled in, while waiting for approval. expiresAt: type: string format: date-time description: When the code stops working, while waiting for approval. installId: type: string minLength: 1 description: The id the managed updates service gave this OpenBot, once the code is approved. helmCommand: type: string minLength: 1 description: 'The command that installs the management agent in this OpenBot''s cluster, while waiting for the agent. It holds nothing secret: the agent collects its one-time token from OpenBot itself. On a release it pins the agent chart to this OpenBot''s own version with --version, so the agent always matches the server that printed it.' helmCommandNote: type: string minLength: 1 description: A sentence a person reads beside helmCommand, present only when this OpenBot isn't a published release (a build of main or a development build). No published agent chart matches such a build, so helmCommand names no chart version and Helm installs the newest published one. Absent on a release. agentInstalledByChart: type: boolean description: 'True when OpenBot''s own chart installs the management agent beside it (`management.enabled`, on by default), so connecting needs no Helm command and OpenBot connects by itself. False when the chart turned it off: connecting then gives helmCommand to install the agent by hand. Present in every state.' agentRemovedWithChart: type: boolean description: 'True when OpenBot is connected through the agent its own chart installed, and the chart has since turned management off (`management.enabled=false`, so agentInstalledByChart is false). That Helm upgrade removed the agent along with OpenBot''s own release, so there is no Helm release to uninstall: Disconnect retires the install at the service at once. Absent when the connected agent is a release of its own (installed with helmCommand, or the openbot-agent release that runs upgrades), which is uninstalled with Helm before Disconnect, and in every other state.' installName: type: string minLength: 1 description: The name this OpenBot gave itself when it asked to be connected, which the approval page shows the approver, so they can match it. Present while waiting for approval. window: $ref: '#/components/schemas/ManagementWindow' lastHeartbeatAt: type: string format: date-time description: When the agent last reported in, once connected. agentVersion: type: string minLength: 1 description: The version of the agent that last reported in, once connected. upgrades: type: string x-extensible-enum: - 'on' - not-set-up description: 'Whether the managed updates service can upgrade this OpenBot, as the agent last reported, once connected. on: upgrades are set up, and happen in the maintenance window. not-set-up: the agent is connected and reports health, but upgrading needs a one-time setup in the cluster first. Absent when the agent hasn''t said (an older agent). A later OpenBot may add a value; read one you don''t know as absent.' lastError: type: string minLength: 1 description: 'What went wrong with the last attempt, in a sentence a person reads, with what to do next: for example a code that expired before anybody approved it, an approval that was refused, the management service out of reach, a connected agent that has stopped reporting in, or a Stop the service couldn''t be told about. Absent when nothing did.' lastErrorCode: type: string x-extensible-enum: - not-entitled - invalid-licence - unreachable description: 'Which refusal lastError is, where a client acts on it. not-entitled: this OpenBot''s licence doesn''t include managed updates (it isn''t a team licence, or managed updates were turned off for its organization), so connecting again fails the same way until they are added to it. invalid-licence: the licence wasn''t accepted (invalid or expired). unreachable: the managed updates service couldn''t be reached when OpenBot last tried to connect by itself; it tries again within the hour. A later OpenBot may add a code; read one you don''t know as no code.' MoveKind: type: string x-extensible-enum: - bots - skills - conversations - messages - memories - routines - goals - check-ins - files - settings - model-keys - artifacts description: 'A kind of thing that moves. bots: Bots with their settings and instructions. skills: skills, a Bot''s and the person''s (and the organization''s, for an administrator). conversations and messages: every conversation and every message in it. memories: what the person''s Bots remember about them. routines, goals and check-ins: with their schedules. files: files sent in conversations and kept on a Bot''s computer. settings: the person''s standing instructions and preferences. model-keys: a model key, only when the person chose to bring it. artifacts: the person''s artifacts, each with every version and the files it uses (bytes counts every version). A later OpenBot may add a kind; count one you don''t know like any other.' MoveCount: type: object required: - kind - count properties: kind: $ref: '#/components/schemas/MoveKind' count: type: integer minimum: 0 bytes: type: integer minimum: 0 description: For files, how many bytes they hold together. ReconnectApp: type: object description: 'A connection to an app that doesn''t move, because its sign-in stays on the person''s computer: the person connects it again on OpenBot Cloud. Never carries a token, a password or a key.' required: - appId - appName properties: appId: type: string minLength: 1 description: The app's id in the app directory, such as gmail or slack. appName: type: string minLength: 1 description: The app's name as a person reads it. accountLabel: type: string minLength: 1 description: Which account it was connected as, such as an email address or a workspace name, when known. iconUrl: type: string format: uri description: The app's icon, when the directory has one. botNames: type: array description: The Bots that used it, so the person knows which to check. items: type: string reason: type: string minLength: 1 description: 'Why an app that was meant to come across connected (carried) still needs connecting here, in a sentence a person reads: for example, the organization doesn''t allow it. Absent for an app the person signs in to again.' CarriedApp: type: object description: 'A connection to an app made with a key, which moves connected: the key travels sealed to the import''s recipientKey, and the import connects the app with it on OpenBot Cloud and gives it back to the Bots that used it. Never carries the key itself.' required: - appId - appName properties: appId: type: string minLength: 1 description: The app's id in the app directory, or the id it had on the person's computer. appName: type: string minLength: 1 description: The app's name as a person reads it. iconUrl: type: string format: uri description: The app's icon, when the directory has one. botNames: type: array description: The Bots that use it. items: type: string ExportEstimate: type: object required: - counts - estimatedBytes - storedBytes - reconnect - modelKeysAvailable properties: counts: type: array items: $ref: '#/components/schemas/MoveCount' estimatedBytes: type: integer minimum: 0 description: Roughly how big the bundle will be, in bytes. storedBytes: type: integer minimum: 0 description: How much this OpenBot keeps on disk for the person (its database and files), which removing it frees. OpenBot Desktop adds what the engine itself takes. reconnect: type: array description: The apps the person will sign in to again on OpenBot Cloud. The apps in carried are not listed here. items: $ref: '#/components/schemas/ReconnectApp' carried: type: array description: The apps connected with a key this OpenBot holds, which move connected when the export is given recipientKey. items: $ref: '#/components/schemas/CarriedApp' modelKeysAvailable: type: boolean description: True when there is a model key the person could choose to bring. MoveRecipientKey: type: object description: 'A public key as a JSON Web Key (RFC 7517): RSA, 4096 bits, for RSA-OAEP-256. A model key is sealed to it as a JWE (RFC 7516, RSA-OAEP-256 with A256GCM), so only the import that made it reads it.' additionalProperties: false required: - kty - 'n' - e - alg - kid properties: kty: type: string const: RSA 'n': type: string minLength: 1 maxLength: 1024 e: type: string minLength: 1 maxLength: 16 alg: type: string const: RSA-OAEP-256 kid: type: string minLength: 1 maxLength: 128 ExportInput: type: object additionalProperties: false properties: includeModelKeys: type: boolean default: false description: Bring the person's model key, sealed to recipientKey. Without recipientKey this is refused. recipientKey: $ref: '#/components/schemas/MoveRecipientKey' description: The import's public key. Given, the keys of the apps connected with a key travel sealed to it and those apps move connected (carried), and the model key does too when includeModelKeys is true. BundlePart: type: object required: - number - bytes - sha256 properties: number: type: integer minimum: 1 bytes: type: integer minimum: 1 sha256: type: string pattern: ^[0-9a-f]{64}$ Export: type: object required: - id - status - createdAt - expiresAt - includesModelKeys properties: id: type: string minLength: 1 status: type: string x-extensible-enum: - preparing - ready - failed description: 'preparing: the bundle is being written. ready: every part can be downloaded. failed: it stopped; error says why, and starting another export tries again. A later OpenBot may add a status; read one you don''t know as preparing.' formatVersion: type: integer minimum: 1 description: The bundle's format, once ready. This OpenBot writes 1. createdAt: type: string format: date-time expiresAt: type: string format: date-time description: When the bundle is removed. totalBytes: type: integer minimum: 0 description: The bundle's size, once ready. parts: type: array description: The bundle's parts in order, once ready. items: $ref: '#/components/schemas/BundlePart' counts: type: array description: Everything in the bundle by kind, once ready. items: $ref: '#/components/schemas/MoveCount' reconnect: type: array description: The apps to connect again on OpenBot Cloud. items: $ref: '#/components/schemas/ReconnectApp' carried: type: array description: The apps whose keys the bundle carries sealed, once ready, so they move connected. items: $ref: '#/components/schemas/CarriedApp' includesModelKeys: type: boolean progress: type: number minimum: 0 maximum: 1 description: How far writing the bundle has got, while preparing. error: type: string minLength: 1 description: What went wrong, when failed, in a sentence a person reads. MoveNoteBot: type: object required: - id - name properties: id: type: string description: The Bot's id in the organization the move went into. name: type: string description: The Bot's name. MoveNote: type: object description: Something that moved differently, or not at all, and why, in a sentence a person reads. required: - code - message properties: code: type: string x-extensible-enum: - isolated-bot-made-ordinary - business-plan-feature-left-out - model-key-kept-existing - model-key-not-brought - item-skipped - bot-key-not-brought description: 'isolated-bot-made-ordinary: OpenBot Cloud has no isolated computers, so a Bot that had one runs on an ordinary one. business-plan-feature-left-out: the feature needs the Business plan and this organization isn''t on it. model-key-kept-existing: the person already had an AI connection here, which was kept. model-key-not-brought: the person chose not to bring a model key. item-skipped: one item couldn''t be imported; message says which and why. bot-key-not-brought: the key a Bot''s address sits behind couldn''t come across, so the Bot needs it set again here; bots names each one. A later OpenBot may add a code; show the message.' kind: $ref: '#/components/schemas/MoveKind' count: type: integer minimum: 1 description: How many items the note is about. message: type: string minLength: 1 items: type: array description: The names of the items, such as the Bots, when there are a few. items: type: string bots: type: array description: The Bots the note is about, by their id here, so a client can open each one. Only on a note about Bots that need something done (bot-key-not-brought); absent otherwise. items: $ref: '#/components/schemas/MoveNoteBot' Import: type: object required: - id - status - createdAt - recipientKey - maxBundleBytes - maxPartBytes - receivedParts properties: id: type: string minLength: 1 status: type: string x-extensible-enum: - waiting-for-bundle - receiving - ready - importing - imported - failed description: 'waiting-for-bundle: no part has arrived. receiving: part 1 has arrived and others are still to come. ready: every part arrived; apply it. importing: being imported. imported: done; read the summary, then verify. failed: it stopped; error says why, and applying again goes on from there. A later OpenBot may add a status; read one you don''t know as importing.' sourceName: type: string fromOrganizationId: type: string description: For a move from another of the caller's organizations (ImportInput.fromOrganizationId), that organization's id. createdAt: type: string format: date-time finishedAt: type: string format: date-time recipientKey: $ref: '#/components/schemas/MoveRecipientKey' maxBundleBytes: type: integer minimum: 1 maxPartBytes: type: integer minimum: 1 expectedParts: type: array description: The bundle's parts, from its manifest, once part 1 arrived. items: $ref: '#/components/schemas/BundlePart' receivedParts: type: array description: The numbers of the parts that arrived. items: type: integer minimum: 1 expected: type: array description: Everything the bundle holds by kind, from its manifest, once part 1 arrived. items: $ref: '#/components/schemas/MoveCount' imported: type: array description: What has been imported so far by kind, while importing and once imported. Items a repeated import found already here count as imported. items: $ref: '#/components/schemas/MoveCount' notes: type: array items: $ref: '#/components/schemas/MoveNote' reconnect: type: array description: The apps to connect again here, once part 1 arrived. Once imported, an app the bundle carried that couldn't be connected here is listed too, with its reason. items: $ref: '#/components/schemas/ReconnectApp' carried: type: array description: The apps that came across connected, with their Bots given them again, once imported. Before that, the apps the bundle carries. items: $ref: '#/components/schemas/CarriedApp' error: type: string minLength: 1 description: What went wrong, when failed, in a sentence a person reads. ImportPage: type: object required: - items - nextCursor properties: items: type: array items: $ref: '#/components/schemas/Import' nextCursor: type: - string - 'null' ImportInput: type: object additionalProperties: false properties: sourceName: type: string minLength: 1 maxLength: 200 description: A name for where the bundle comes from, such as the computer's name, shown in the list of imports. For a move from another organization, that organization's name when absent. fromOrganizationId: type: string minLength: 1 maxLength: 128 pattern: ^[A-Za-z0-9_-]+$ description: 'Move what the caller has in another of their organizations (its id or slug) into this one, instead of a bundle from their own computer: their own Bots, each with its conversations and their history, routines, goals, check-ins, memories, skills and files, by the same rules and the same verification as a move from their computer. A starter Bot lands on this organization''s own. Apps are connected again here (reconnect). Routines, goals and check-ins don''t run in either organization until the move is checked. Once getImportVerification here says everything arrived, all of it is removed from the other organization, apart from a conversation other people are in, which stays there for them. Any organization the caller belongs to other than this one; another is refused with 400.' ImportVerificationKind: type: object required: - kind - expected - found - leftOut properties: kind: $ref: '#/components/schemas/MoveKind' expected: type: integer minimum: 0 description: How many the bundle held. found: type: integer minimum: 0 description: How many from this OpenBot are in this organization now. leftOut: type: integer minimum: 0 description: How many OpenBot Cloud left out on purpose, as the notes say. expectedBytes: type: integer minimum: 0 description: For files, how many bytes the bundle held. foundBytes: type: integer minimum: 0 description: For files, how many bytes are in this organization's file store now, read from the store itself. ImportVerification: type: object required: - importId - matches - kinds - notes - reconnect properties: importId: type: string minLength: 1 matches: type: boolean description: True when, for every kind, found plus leftOut is expected, and for files foundBytes is expectedBytes. kinds: type: array items: $ref: '#/components/schemas/ImportVerificationKind' notes: type: array items: $ref: '#/components/schemas/MoveNote' reconnect: type: array items: $ref: '#/components/schemas/ReconnectApp' carried: type: array description: The apps that came across connected. items: $ref: '#/components/schemas/CarriedApp' ConversationRun: type: object description: One of a Bot's runs in a conversation, and how it ended. required: - id - outcome - endedAt properties: id: type: string minLength: 1 description: The run's id, as its events carry it. outcome: type: - string - 'null' x-extensible-enum: - succeeded - interrupted - cancelled - failed description: 'How the run ended, as its own last event said. succeeded: it finished. interrupted: it stopped to ask a person (an approval, a missing value). cancelled: it was stopped. failed: it ended with an error, or its stream failed, or its server ended it on the way down. Null while the run is going, and for a run that ended without saying how.' endedAt: type: - string - 'null' format: date-time description: When the run ended, or null while outcome is null. ConversationRunResponse: type: object required: - run properties: run: $ref: '#/components/schemas/ConversationRun' WebPushKey: type: object required: - publicKey properties: publicKey: type: string pattern: ^[A-Za-z0-9_-]{87}$ description: 'The public key: an uncompressed P-256 point (65 bytes), in URL-safe base64 with no padding, as the Push API''s applicationServerKey takes it.' WebPushSubscriptionKeys: type: object additionalProperties: false required: - p256dh - auth description: The keys the browser encrypts with (RFC 8291), as the subscription's getKey() or toJSON() gives them, in URL-safe base64. properties: p256dh: type: string minLength: 87 maxLength: 88 pattern: ^[A-Za-z0-9_-]+=?$ description: The browser's P-256 public key, uncompressed (65 bytes). auth: type: string minLength: 22 maxLength: 24 pattern: ^[A-Za-z0-9_-]+={0,2}$ description: The authentication secret (16 bytes). SaveWebPushSubscriptionRequest: type: object additionalProperties: false required: - endpoint - keys properties: endpoint: type: string format: uri maxLength: 2048 pattern: ^https:// description: 'The subscription''s endpoint, the address its push service gave it. It is a credential: OpenBot never sends it back.' keys: $ref: '#/components/schemas/WebPushSubscriptionKeys' WebPushSubscription: type: object description: A browser that gets push notifications for the person, from every one of their Bots in this organization. Never its endpoint or keys. required: - id - createdAt properties: id: type: string format: uuid description: The id the app made for the browser. createdAt: type: string format: date-time description: When OpenBot first saved a subscription under this id. WebPushSubscriptionResponse: type: object required: - webPushSubscription properties: webPushSubscription: $ref: '#/components/schemas/WebPushSubscription' ArtifactListView: type: string description: 'all: every artifact the caller can open. mine: the ones they own. shared: the ones somebody else owns that the caller can open. pinned: the ones the caller pinned.' enum: - all - mine - shared - pinned ArtifactKind: type: string description: 'What an artifact is, which decides its content''s shape and how it is shown. document: Markdown. slides: a deck of slides. dashboard: charts, numbers and tables over datasets. sheet: tables of rows. diagram: a Mermaid or SVG diagram. page: a freeform HTML or React page, shown in a sandbox.' enum: - document - slides - dashboard - sheet - diagram - page ArtifactKindAnswer: type: string description: What an artifact is, as the server answers it (see ArtifactKind). A later OpenBot may add a kind; show one you don't know as a page you can't open here. x-extensible-enum: - document - slides - dashboard - sheet - diagram - page ArtifactVisibility: type: string description: 'Who can open an artifact besides the people it is shared with. private: only its owner and the people and teams it is shared with. organization: everybody in the organization. public: anybody with its link. A later OpenBot may add one; read one you don''t know as private.' x-extensible-enum: - private - organization - public ArtifactPerson: type: object description: A person, as an artifact names them. required: - id - name properties: id: type: string description: The person's id. name: type: - string - 'null' description: What OpenBot calls them. Null when they haven't said, or their account is gone, and to somebody outside the organization. ArtifactSource: type: object description: Where an artifact was made. required: - conversationId - turnId properties: conversationId: type: string description: The conversation it was made in. turnId: type: - string - 'null' description: The Bot's turn (its run) that made it, when known. ArtifactSummary: type: object description: One artifact, as a list shows it. The can fields are the server's verdicts about the caller. required: - id - title - kind - visibility - owner - source - pinned - canEdit - canDelete - canShare - createdAt - updatedAt properties: id: type: string description: The artifact's id. Its link is built on it. title: type: string description: What it is called. kind: $ref: '#/components/schemas/ArtifactKindAnswer' visibility: $ref: '#/components/schemas/ArtifactVisibility' owner: $ref: '#/components/schemas/ArtifactPerson' source: oneOf: - $ref: '#/components/schemas/ArtifactSource' - type: 'null' description: The conversation and turn that made it. Null when none did. pinned: type: boolean description: Whether the caller pinned it. canEdit: type: boolean description: Whether the caller may save new versions of it and rename it. canDelete: type: boolean description: Whether the caller may delete it. Only its owner may. canShare: type: boolean description: Whether the caller may change who can open it. createdAt: type: string format: date-time description: When it was made. updatedAt: type: string format: date-time description: When it last changed, its content or its title. ArtifactPage: type: object required: - artifacts - nextCursor properties: artifacts: type: array description: Most recently changed first. items: $ref: '#/components/schemas/ArtifactSummary' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. ArtifactTitle: type: string minLength: 1 maxLength: 200 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: What the artifact is called. ArtifactContent: type: object additionalProperties: true description: 'An artifact''s content: the kind''s own document. document is { markdown }. slides is { theme?, slides: [{ layout, blocks, notes? }] }. dashboard is { theme?, datasets, widgets }. sheet is { sheets: [{ name, columns, rows }] }. diagram is { format: mermaid | svg, source }. page is { files, entry, packages? }: its source files by path, the file that starts it, and the npm packages it uses at exact versions. theme is { colors?, fontFamily?, radius? } over OpenBot''s own design. The server checks content against its kind before it saves it. Images and other files are uploaded with uploadArtifactAsset and named in content by their ref (asset:), never inlined and never by an address. At most 8 MiB written as JSON.' ArtifactNote: type: string maxLength: 500 pattern: ^[^\x00]*$ description: What changed in this version, in a few words. ArtifactSourceInput: type: object additionalProperties: false required: - conversationId properties: conversationId: type: string minLength: 1 maxLength: 200 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: A conversation in this organization the caller is in. turnId: type: string minLength: 1 maxLength: 200 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: The Bot's turn (its run) in that conversation. CreateArtifactRequest: type: object additionalProperties: false required: - title - kind - content properties: title: $ref: '#/components/schemas/ArtifactTitle' kind: $ref: '#/components/schemas/ArtifactKind' content: $ref: '#/components/schemas/ArtifactContent' note: $ref: '#/components/schemas/ArtifactNote' source: $ref: '#/components/schemas/ArtifactSourceInput' ArtifactContentUrl: type: - string - 'null' format: uri maxLength: 4096 description: 'Where a page artifact''s page runs, sandboxed, on the artifacts host: the address to frame, with a signed ticket of a few minutes naming the caller (the app''s own session never reaches the artifacts host). Read it again for a fresh ticket rather than keeping it. Null for a typed kind, which OpenBot draws with its own components, and where this OpenBot has no artifacts host.' Artifact: description: One artifact, with its current version's number. allOf: - $ref: '#/components/schemas/ArtifactSummary' - type: object required: - currentVersion properties: currentVersion: type: integer minimum: 1 description: The number of its current version. contentUrl: $ref: '#/components/schemas/ArtifactContentUrl' ArtifactAuthorKind: type: string description: 'Who made a version. person: a person, in OpenBot or through the API. bot: one of OpenBot''s Bots, working for the person named in onBehalfOf. connected-bot: a Bot connected to OpenBot over AG-UI, working for the person named in onBehalfOf. A later OpenBot may add one; read one you don''t know as a Bot.' x-extensible-enum: - person - bot - connected-bot ArtifactAuthor: type: object description: Who made a version. required: - kind - id - name properties: kind: $ref: '#/components/schemas/ArtifactAuthorKind' id: type: - string - 'null' description: The person's id, or the Bot's. Null when their account is gone, and to somebody outside the organization. name: type: - string - 'null' description: The person's or the Bot's name, as it was when the version was made. Null to somebody outside the organization. onBehalfOf: oneOf: - $ref: '#/components/schemas/ArtifactPerson' - type: 'null' description: For a Bot, the person it was working for. ArtifactVersion: type: object description: One saved version of an artifact. It never changes. required: - number - author - note - createdAt - bytes - current properties: number: type: integer minimum: 1 description: The version's number, counted from 1. author: $ref: '#/components/schemas/ArtifactAuthor' note: type: - string - 'null' description: What changed, in the words of whoever saved it. Null when they didn't say. restoredFrom: type: - integer - 'null' minimum: 1 description: For a restore, the number of the version it copies. createdAt: type: string format: date-time description: When it was saved. bytes: type: integer minimum: 0 description: How big its content is, in bytes. current: type: boolean description: Whether it is the artifact's current version. ArtifactContentIssue: type: object description: One problem with content, and where it is. required: - path - pointer - message properties: path: type: string maxLength: 1000 description: Where, as a JSON path such as slides[3].blocks[0].src. Empty for the content itself. pointer: type: string maxLength: 1000 description: The same place as a JSON Pointer (RFC 6901), for a JSON Patch that fixes it. message: type: string maxLength: 2000 description: What is wrong there. file: type: string maxLength: 1000 description: For a page's build, the file it is in, by its path. A package's own file starts node_modules/. line: type: integer minimum: 1 description: For a page's build, the line in file, counted from 1. column: type: integer minimum: 1 description: For a page's build, the column on that line, counted from 1. ArtifactWriteResult: type: object description: An artifact after a write, and the version the write made. required: - artifact - version properties: artifact: $ref: '#/components/schemas/Artifact' version: $ref: '#/components/schemas/ArtifactVersion' warnings: type: array maxItems: 20 description: For a page, what its build warned about, at most 20, each in the page's own file by line and column where the build said where. The version is saved and the page works; a warning is something that is probably a mistake, such as a key written twice in one object. Absent when the build warned about nothing, and for every other kind. items: $ref: '#/components/schemas/ArtifactContentIssue' ArtifactContentProblem: description: Content that doesn't fit the artifact's kind, with every problem by its path. allOf: - $ref: '#/components/schemas/Problem' - type: object required: - issues properties: issues: type: array maxItems: 20 description: Each problem with the content, at most 20; fix them and save again. items: $ref: '#/components/schemas/ArtifactContentIssue' ArtifactResponse: type: object required: - artifact properties: artifact: $ref: '#/components/schemas/Artifact' UpdateArtifactRequest: type: object additionalProperties: false minProperties: 1 properties: title: $ref: '#/components/schemas/ArtifactTitle' pinned: type: boolean description: Pin it for the caller, or unpin it. ArtifactAsset: type: object description: A file an artifact uses, stored by the SHA-256 of its bytes. required: - sha256 - contentType - bytes - url - ref properties: sha256: type: string pattern: ^[0-9a-f]{64}$ contentType: type: string description: The type it was uploaded as. bytes: type: integer minimum: 0 url: type: string description: Its address here (downloadArtifactAsset). ref: type: string pattern: ^asset:[0-9a-f]{64}$ description: 'How content names it: asset: and its SHA-256. A renderer turns a ref into the address of this artifact''s asset wherever it shows the artifact, so content never holds an address and a duplicate or a moved artifact keeps its files.' ArtifactThumbnail: type: object description: 'A still picture of one version of a page: the top of the page as a 1280 by 720 screen shows it, once in OpenBot''s light look and once in its dark one. Each is a file of the artifact, stored by the SHA-256 of its bytes and read with downloadArtifactAsset, so only somebody who can open the artifact can read it. A version never changes, so neither does its picture.' required: - width - height - light - dark properties: width: type: integer minimum: 1 description: Each picture's width, in pixels. height: type: integer minimum: 1 description: Each picture's height, in pixels. light: $ref: '#/components/schemas/ArtifactAsset' dark: $ref: '#/components/schemas/ArtifactAsset' ArtifactVersionContent: type: object description: One version of an artifact and its content. required: - artifactId - kind - version - content properties: artifactId: type: string kind: $ref: '#/components/schemas/ArtifactKindAnswer' version: $ref: '#/components/schemas/ArtifactVersion' content: $ref: '#/components/schemas/ArtifactContent' contentUrl: $ref: '#/components/schemas/ArtifactContentUrl' thumbnail: description: For a page, a still picture of this version, to show where the page itself isn't run (a card, a list). Null while the picture is being made after a save, where this OpenBot can't draw pictures, and for a typed kind, which OpenBot draws with its own components. Absent from servers that don't make pictures. oneOf: - $ref: '#/components/schemas/ArtifactThumbnail' - type: 'null' SaveArtifactContentRequest: type: object additionalProperties: false required: - content properties: content: $ref: '#/components/schemas/ArtifactContent' note: $ref: '#/components/schemas/ArtifactNote' ArtifactVersionConflictProblem: description: A write built on a version that is no longer the current one, with the current one's number. allOf: - $ref: '#/components/schemas/Problem' - type: object required: - currentVersion properties: currentVersion: type: integer minimum: 1 description: The artifact's current version. Read it, merge and write again. ArtifactEdit: type: object additionalProperties: false required: - oldText - newText properties: oldText: type: string minLength: 1 maxLength: 1048576 description: Text that appears exactly once, character for character. newText: type: string maxLength: 1048576 description: What replaces it. Empty removes it. path: type: string minLength: 1 maxLength: 500 pattern: ^[^\x00]*[^\s\x00][^\x00]*$ description: For a page, which file. The page's entry when absent. ApplyArtifactEditsRequest: type: object additionalProperties: false required: - edits properties: edits: type: array minItems: 1 maxItems: 100 description: Applied in order, all or none. items: $ref: '#/components/schemas/ArtifactEdit' note: $ref: '#/components/schemas/ArtifactNote' ArtifactEditProblem: description: An edit that can't apply, with which one. allOf: - $ref: '#/components/schemas/Problem' - type: object required: - editIndex - matches properties: editIndex: type: integer minimum: 0 description: Which edit, counted from 0 in the order sent. matches: type: integer minimum: 0 description: How many times its oldText appears where it was looked for. issues: type: array maxItems: 20 description: When the edits leave content that doesn't fit the kind (ARTIFACT_CONTENT_INVALID), every problem with it. items: $ref: '#/components/schemas/ArtifactContentIssue' JsonPatchOperation: type: object additionalProperties: false description: One JSON Patch operation (RFC 6902). required: - op - path properties: op: type: string enum: - add - remove - replace - move - copy - test path: type: string maxLength: 2000 description: A JSON Pointer (RFC 6901) into the content. from: type: string maxLength: 2000 description: For move and copy, the JSON Pointer to take from. value: description: For add, replace and test, the value. ApplyArtifactPatchRequest: type: object additionalProperties: false required: - operations properties: operations: type: array minItems: 1 maxItems: 1000 description: Applied in order, all or none. items: $ref: '#/components/schemas/JsonPatchOperation' note: $ref: '#/components/schemas/ArtifactNote' ArtifactPatchProblem: description: A JSON Patch operation that can't apply, with which one. allOf: - $ref: '#/components/schemas/Problem' - type: object required: - operationIndex properties: operationIndex: type: - integer - 'null' minimum: 0 description: Which operation, counted from 0. Null when every operation applied but the result isn't content of the kind. ArtifactVersionPage: type: object required: - versions - nextCursor properties: versions: type: array description: Newest first. items: $ref: '#/components/schemas/ArtifactVersion' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. RestoreArtifactVersionRequest: type: object additionalProperties: false properties: note: $ref: '#/components/schemas/ArtifactNote' ArtifactDiffFormat: type: string description: 'text: unified diffs of the content''s text. json: a JSON Patch between the two contents. A later OpenBot may add one; show one you don''t know as unavailable.' x-extensible-enum: - text - json ArtifactTextChange: type: object description: How one text changed, as a unified diff. required: - path - unified - additions - deletions properties: path: type: - string - 'null' description: For a page, the file. Null for a document's Markdown or a diagram's source. unified: type: string description: The change as a unified diff, three lines of context around each change. additions: type: integer minimum: 0 description: Lines added. deletions: type: integer minimum: 0 description: Lines removed. ArtifactJsonChange: type: object description: One JSON Patch operation (RFC 6902) of a diff. required: - op - path properties: op: type: string x-extensible-enum: - add - remove - replace - move - copy - test path: type: string from: type: string value: description: For add and replace, the new value. ArtifactDiff: type: object description: What changed between two versions. required: - from - to - format properties: from: type: integer minimum: 1 to: type: integer minimum: 1 format: $ref: '#/components/schemas/ArtifactDiffFormat' text: type: array description: For format text, each text that changed. Empty when none did. items: $ref: '#/components/schemas/ArtifactTextChange' operations: type: array description: For format json, the operations that turn from into to. Empty when nothing changed. items: $ref: '#/components/schemas/ArtifactJsonChange' DuplicateArtifactRequest: type: object additionalProperties: false properties: title: $ref: '#/components/schemas/ArtifactTitle' version: type: integer minimum: 1 maximum: 1000000 description: The version to copy. The current one when absent. ArtifactAssetUpload: type: object required: - file properties: file: type: string format: binary description: The file. Its type is kept and answered when it is downloaded. ArtifactSharingVisibility: type: string description: Who an artifact is open to, as ArtifactVisibilityChoice says. A client reads a value it doesn't know as private. x-extensible-enum: - private - organization - public ArtifactSharingPerson: type: object description: A person, as an artifact's sharing names them. required: - id - email - name - image properties: id: type: string description: The person's id. email: type: string description: Their address. name: type: - string - 'null' description: What OpenBot calls them. Null until they choose. image: type: - string - 'null' description: Their picture's address, when they have one. ArtifactRoleAnswer: type: string description: 'A role, as an answer: owner, editor or viewer. A client reads a value it doesn''t know as viewer.' x-extensible-enum: - owner - editor - viewer ArtifactAccessSource: type: string description: 'Where somebody''s access to an artifact comes from. owner: it is theirs. person: it was shared with them. team: it was shared with a team they are in. organization: everyone in the organization can view it. public: anyone with the link can. invite: they used an invitation''s code. A client reads a value it doesn''t know as person.' x-extensible-enum: - owner - person - team - organization - public - invite ArtifactCallerAccess: type: object description: 'The caller''s own access to the artifact, and what they may do with it: the server''s verdict, from the same rule every route asks.' required: - role - source - canEdit - canShare - canChangeVisibility - canDelete properties: role: $ref: '#/components/schemas/ArtifactRoleAnswer' source: $ref: '#/components/schemas/ArtifactAccessSource' canEdit: type: boolean description: Whether the caller may change the artifact. canShare: type: boolean description: Whether the caller may share it with people and teams, invite outside people and answer requests for access. canChangeVisibility: type: boolean description: Whether the caller may change who the artifact is open to. canDelete: type: boolean description: Whether the caller may delete the artifact. ArtifactPersonGrant: type: object description: A person the artifact is shared with. required: - person - role - grantedBy - grantedAt properties: person: $ref: '#/components/schemas/ArtifactSharingPerson' role: $ref: '#/components/schemas/ArtifactRoleAnswer' grantedBy: type: - string - 'null' description: Who shared it with them, by id. Null when that person is gone. grantedAt: type: string format: date-time description: When it was shared with them, or their role last changed. ArtifactTeamGrant: type: object description: A team the artifact is shared with. required: - team - role - grantedBy - grantedAt properties: team: type: object required: - id - name - memberCount properties: id: type: string description: The team's id. name: type: string description: What people call it. memberCount: type: integer minimum: 0 description: How many people are in the team itself. role: $ref: '#/components/schemas/ArtifactRoleAnswer' grantedBy: type: - string - 'null' description: Who shared it with the team, by id. Null when that person is gone. grantedAt: type: string format: date-time description: When it was shared with the team, or its role last changed. ArtifactInviteStatus: type: string description: 'Where an outside invitation stands. pending: its code has not been used and hasn''t run out. accepted: its code was used, and the person can view the artifact. expired: its code ran out unused. A client reads a value it doesn''t know as pending.' x-extensible-enum: - pending - accepted - expired ArtifactInvite: type: object description: 'An invitation to somebody outside the organization. Its code is never read back: only the answer that made it carries its link.' required: - id - email - role - status - invitedBy - createdAt - expiresAt - acceptedAt properties: id: type: string description: The invitation's id. email: type: string description: The address invited, in lower case. role: $ref: '#/components/schemas/ArtifactRoleAnswer' status: $ref: '#/components/schemas/ArtifactInviteStatus' invitedBy: type: - string - 'null' description: Who invited them, by id. Null when that person is gone. createdAt: type: string format: date-time description: When the code was sent. expiresAt: type: string format: date-time description: When an unused code runs out. acceptedAt: type: - string - 'null' format: date-time description: When the code was used. Null while it hasn't been. ArtifactAccessRequest: type: object description: A member of the organization asking for access. required: - id - person - role - message - createdAt properties: id: type: string description: The request's id. person: $ref: '#/components/schemas/ArtifactSharingPerson' role: $ref: '#/components/schemas/ArtifactRoleAnswer' message: type: - string - 'null' description: What they wrote, when they wrote something. createdAt: type: string format: date-time description: When they asked, or last asked again. ArtifactSharingPolicy: type: object description: What the organization's policy and this OpenBot allow for this artifact's sharing, so a Share dialog offers only what will be taken. required: - publicLinks - outsideInvites properties: publicLinks: type: string description: 'Whether the artifact can be made public. allowed: it can. off: an admin turned public links off for the organization. unavailable: this OpenBot has no public address for artifacts, as on OpenBot Desktop. A client reads a value it doesn''t know as off.' x-extensible-enum: - allowed - 'off' - unavailable outsideInvites: type: string description: 'Whether people outside the organization can be invited. allowed: they can. off: an admin turned outside invitations off. unavailable: this OpenBot can''t serve them. A client reads a value it doesn''t know as off.' x-extensible-enum: - allowed - 'off' - unavailable ArtifactSharing: type: object description: Who can see and edit an artifact. invites and accessRequests are listed only for its owner and its editors, and are empty for anybody else. An artifact has at most 200 people and teams and 50 outside invitations, so the lists are whole. required: - artifactId - organizationId - url - visibility - effectiveVisibility - owner - access - people - teams - invites - accessRequests - policy properties: artifactId: type: string description: The artifact's id. organizationId: type: string description: The organization the artifact belongs to. url: type: string format: uri description: 'The artifact''s link: its address on the artifacts host. The one link to share, whoever it is for; who it opens for is decided by the sharing, never by the link.' visibility: $ref: '#/components/schemas/ArtifactSharingVisibility' effectiveVisibility: $ref: '#/components/schemas/ArtifactSharingVisibility' owner: $ref: '#/components/schemas/ArtifactSharingPerson' access: $ref: '#/components/schemas/ArtifactCallerAccess' people: type: array maxItems: 200 description: The people it is shared with, in the order they were added. items: $ref: '#/components/schemas/ArtifactPersonGrant' teams: type: array maxItems: 200 description: The teams it is shared with, in the order they were added. items: $ref: '#/components/schemas/ArtifactTeamGrant' invites: type: array maxItems: 50 description: The outside people invited, pending or accepted, newest first. Invitations taken back are not listed. items: $ref: '#/components/schemas/ArtifactInvite' accessRequests: type: array maxItems: 200 description: The requests for access waiting for an answer, oldest first. items: $ref: '#/components/schemas/ArtifactAccessRequest' policy: $ref: '#/components/schemas/ArtifactSharingPolicy' ArtifactVisibilityChoice: type: string description: 'Who an artifact is open to, beside the people and teams it is shared with. private: only its owner and them. organization: everyone in the organization can view it. public: anyone with its link can view it, signed in or not.' enum: - private - organization - public SetArtifactVisibilityRequest: type: object additionalProperties: false required: - visibility properties: visibility: $ref: '#/components/schemas/ArtifactVisibilityChoice' ArtifactGrantRole: type: string description: 'What a person or a team may do with an artifact. viewer: read it and its versions. editor: also change it and share it.' enum: - viewer - editor ArtifactGrantRequest: type: object additionalProperties: false required: - role properties: role: $ref: '#/components/schemas/ArtifactGrantRole' ArtifactInviteRole: type: string description: 'What an outside person may do with the artifact. viewer: read it and its versions, without an OpenBot account.' enum: - viewer CreateArtifactInviteRequest: type: object additionalProperties: false required: - email properties: email: type: string format: email minLength: 3 maxLength: 320 description: The address to invite. Its case doesn't matter. role: $ref: '#/components/schemas/ArtifactInviteRole' message: type: string maxLength: 1000 pattern: ^[^\x00]*$ description: A note for the email, from the inviter. CreatedArtifactInvite: type: object required: - invite - link - code - emailed - sharing properties: invite: $ref: '#/components/schemas/ArtifactInvite' link: type: string format: uri description: 'The link the email carries, with its code. Shown this once: the code is kept only as a hash.' code: type: string description: The one-time code itself, as the email shows it, for somebody who types it in. emailed: type: boolean description: 'Whether the mail server took the email. False where OpenBot sends no mail, or the mail server refused it: pass the link on yourself.' sharing: $ref: '#/components/schemas/ArtifactSharing' RequestArtifactAccessRequest: type: object additionalProperties: false properties: role: $ref: '#/components/schemas/ArtifactGrantRole' message: type: string maxLength: 1000 pattern: ^[^\x00]*$ description: A note for the owner. ArtifactAccessRequested: type: object required: - requested properties: requested: type: boolean const: true description: Always true. The answer says nothing about the artifact. ArtifactPolicy: type: object description: What the organization allows its members to do with artifacts. required: - publicLinks - outsideInvites - connectedApps - retentionDays - publicLinksAvailable properties: publicLinks: type: boolean description: Whether artifacts may be opened to anyone with their link. Off, no artifact is public, including those made public before. outsideInvites: type: boolean description: Whether people outside the organization may be invited by email. Off, nobody outside can view an artifact, including those invited before. connectedApps: type: boolean description: Whether an artifact's page may use the viewer's connected apps, after asking them. retentionDays: type: - integer - 'null' minimum: 1 maximum: 36500 description: How many days an artifact's earlier versions are kept. Null keeps them for good. The latest version is always kept. publicLinksAvailable: type: boolean description: 'Whether this OpenBot can serve public links at all. False on OpenBot Desktop, which has no public address: publicLinks then changes nothing.' UpdateArtifactPolicyRequest: type: object additionalProperties: false minProperties: 1 properties: publicLinks: type: boolean outsideInvites: type: boolean connectedApps: type: boolean retentionDays: type: - integer - 'null' minimum: 1 maximum: 36500 description: Null keeps earlier versions for good. RedeemArtifactInviteRequest: type: object additionalProperties: false required: - artifactId - code properties: artifactId: type: string minLength: 16 maxLength: 64 pattern: ^[A-Za-z0-9_-]+$ description: The artifact the invitation is for. code: type: string minLength: 1 maxLength: 64 pattern: ^[A-Za-z0-9 -]+$ description: The code from the email. Spaces, hyphens and case are ignored. RedeemedArtifactInvite: type: object required: - artifactId - organizationId - role - url properties: artifactId: type: string description: The artifact this browser can now view. organizationId: type: string description: The organization it belongs to. role: $ref: '#/components/schemas/ArtifactRoleAnswer' url: type: string format: uri description: The artifact's link, to open now. ArtifactExportFormat: type: string description: 'The file to make. document: pdf, docx, markdown. slides: pptx, pdf, png. dashboard: pdf, png. sheet: xlsx, csv. diagram: svg, png, pdf. page: html, pdf, png.' enum: - pdf - docx - markdown - pptx - png - xlsx - csv - svg - html CreateArtifactExportRequest: type: object additionalProperties: false required: - format properties: format: $ref: '#/components/schemas/ArtifactExportFormat' version: type: integer minimum: 1 maximum: 1000000 description: The version to export. Leave out for the current version. ArtifactExportFormatAnswer: type: string description: The file's format, as the server answers it (see ArtifactExportFormat). A later OpenBot may add a format; show one you don't know by its file name. x-extensible-enum: - pdf - docx - markdown - pptx - png - xlsx - csv - svg - html ArtifactExportStatus: type: string description: 'preparing: the file is being made. ready: it can be downloaded. failed: it couldn''t be made; error says why, and asking again makes it again. A later OpenBot may add a status; read one you don''t know as preparing.' x-extensible-enum: - preparing - ready - failed ArtifactExport: type: object required: - id - artifactId - version - format - status - createdAt properties: id: type: string minLength: 1 description: The version and the format, such as v3-pptx. artifactId: type: string minLength: 1 version: type: integer minimum: 1 description: The version the file is made from. format: $ref: '#/components/schemas/ArtifactExportFormatAnswer' status: $ref: '#/components/schemas/ArtifactExportStatus' createdAt: type: string format: date-time description: When the file was asked for. finishedAt: type: string format: date-time description: When the file was ready, or failed. fileName: type: string minLength: 1 description: The name the file downloads as, from the artifact's title, such as "Q3 review.pptx". Once ready. mediaType: type: string minLength: 1 description: The file's media type, once ready. bytes: type: integer minimum: 0 description: The file's size, once ready. sha256: type: string pattern: ^[0-9a-f]{64}$ description: The file's SHA-256 in hex, once ready. files: type: integer minimum: 1 description: How many files a .zip holds (one per slide, or one per tab), once ready. Absent for a single file. error: type: string minLength: 1 description: Why it failed, in a sentence a person reads. Only when failed. ArtifactCommentAnchor: type: object description: 'Where on the artifact a thread was started. text: a stretch of its text, found again by its exact words and what comes before and after them (a W3C Web Annotation text quote). element: one element of a page, by a CSS selector the page can answer, with a label for people.' additionalProperties: false required: - kind properties: kind: type: string enum: - text - element exact: type: string minLength: 1 maxLength: 1000 description: The words commented on. Required for text. prefix: type: string maxLength: 64 description: A few words just before them. suffix: type: string maxLength: 64 description: A few words just after them. selector: type: string minLength: 1 maxLength: 500 description: The element, as a CSS selector. Required for element. label: type: string maxLength: 200 description: What the element is, in a few words, such as "Revenue chart". ArtifactCommentAuthor: type: object description: 'Who wrote a comment: a person, or a Bot answering for the person who sent it the thread, shown as " for ".' required: - kind - personId - name - image - botId - botName properties: kind: type: string x-extensible-enum: - person - bot personId: type: string description: The person, or for a Bot the person it answered for. name: type: - string - 'null' description: The person's name, or for a Bot the name of the person it answered for. image: type: - string - 'null' description: The person's picture. botId: type: - string - 'null' description: The Bot that wrote it. Null for a person. botName: type: - string - 'null' description: The Bot's name. Null for a person. ArtifactCommentBotRequest: type: object description: The Bot a thread was sent to, and where that stands. required: - botId - botName - sentBy - sentByName - sentAt - state - conversationId properties: botId: type: string botName: type: - string - 'null' sentBy: type: string description: The person who sent it, whom the Bot answers for. sentByName: type: - string - 'null' sentAt: type: string format: date-time state: type: string x-extensible-enum: - waiting - answered - failed description: 'waiting: the Bot has it and hasn''t answered. answered: it replied or resolved the thread. failed: it couldn''t start, or finished without answering; sending again asks it again.' conversationId: type: - string - 'null' description: The conversation of the sender's own the Bot works on it in. ArtifactComment: type: object required: - id - threadId - body - author - createdAt - canDelete properties: id: type: string threadId: type: string body: type: string description: The comment, as Markdown. author: $ref: '#/components/schemas/ArtifactCommentAuthor' createdAt: type: string format: date-time canDelete: type: boolean description: Whether the caller may delete it. ArtifactCommentThread: type: object required: - id - artifactId - version - anchor - status - createdBy - createdAt - updatedAt - resolvedAt - resolvedBy - botRequest - comments - canResolve properties: id: type: string artifactId: type: string version: type: integer minimum: 1 description: The version it was started on. anchor: oneOf: - $ref: '#/components/schemas/ArtifactCommentAnchor' - type: 'null' description: Where on the artifact it was started, or null for the whole artifact. status: type: string x-extensible-enum: - open - resolved createdBy: $ref: '#/components/schemas/ArtifactCommentAuthor' createdAt: type: string format: date-time updatedAt: type: string format: date-time description: When it last changed, a comment, a resolve or a send included. resolvedAt: type: - string - 'null' format: date-time resolvedBy: oneOf: - $ref: '#/components/schemas/ArtifactCommentAuthor' - type: 'null' botRequest: oneOf: - $ref: '#/components/schemas/ArtifactCommentBotRequest' - type: 'null' description: The Bot it was last sent to, or null when it never was. comments: type: array description: Every comment, oldest first. items: $ref: '#/components/schemas/ArtifactComment' canResolve: type: boolean description: Whether the caller may resolve and reopen it. ArtifactCommentThreadPage: type: object required: - threads - nextCursor properties: threads: type: array items: $ref: '#/components/schemas/ArtifactCommentThread' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. SendArtifactCommentThreadToBotRequest: type: object additionalProperties: false properties: botId: type: string minLength: 1 maxLength: 128 pattern: \S description: The Bot to send it to. The one that made the artifact when left out. CreateArtifactCommentThreadRequest: type: object additionalProperties: false required: - version - body properties: version: type: integer minimum: 1 description: The version the person is looking at. body: type: string minLength: 1 maxLength: 4000 pattern: \S description: The first comment, as Markdown. Trimmed. anchor: $ref: '#/components/schemas/ArtifactCommentAnchor' sendToBot: $ref: '#/components/schemas/SendArtifactCommentThreadToBotRequest' CreateArtifactCommentRequest: type: object additionalProperties: false required: - body properties: body: type: string minLength: 1 maxLength: 4000 pattern: \S description: The comment, as Markdown. Trimmed. ArtifactViewer: type: object description: Somebody who has the artifact open. required: - personId - name - image - since - isMe properties: personId: type: string name: type: - string - 'null' image: type: - string - 'null' since: type: string format: date-time description: When they opened it. isMe: type: boolean description: Whether it is the caller. ArtifactViewerPage: type: object required: - viewers - nextCursor properties: viewers: type: array items: $ref: '#/components/schemas/ArtifactViewer' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. ArtifactCollaborationSetting: type: object required: - presence - appsInPages properties: presence: type: boolean description: Whether people see who else has an artifact open. appsInPages: type: boolean description: 'Whether pages in artifacts may use the viewer''s connected apps, with the viewer''s consent. The same switch as the artifact policy''s connected apps (Connected apps in artifacts): changing either changes both.' UpdateArtifactCollaborationSettingRequest: type: object additionalProperties: false minProperties: 1 properties: presence: type: boolean appsInPages: type: boolean ArtifactPageCapabilityState: type: object required: - available - decision - botId - botName properties: available: type: boolean description: Whether the page can have it here at all. apps is unavailable while the organization has apps in pages turned off; model while OpenBot has no model to answer with. decision: type: - string - 'null' x-extensible-enum: - allow - deny description: What the caller answered, or null until they do. botId: type: - string - 'null' description: For apps, the Bot the page acts through. botName: type: - string - 'null' ArtifactPagePermissions: type: object required: - storage - model - apps - user - defaultBotId properties: storage: $ref: '#/components/schemas/ArtifactPageCapabilityState' model: $ref: '#/components/schemas/ArtifactPageCapabilityState' apps: $ref: '#/components/schemas/ArtifactPageCapabilityState' user: $ref: '#/components/schemas/ArtifactPageCapabilityState' defaultBotId: type: - string - 'null' description: 'The Bot to offer first for apps: the one that made the artifact when the caller may use it, else null.' SetArtifactPagePermissionRequest: type: object additionalProperties: false required: - decision properties: decision: type: string enum: - allow - deny botId: type: string minLength: 1 maxLength: 128 pattern: \S description: For apps, which of the caller's Bots the page acts through. Required to allow apps. ArtifactPageDocument: type: object required: - key - scope - value - version - updatedAt - updatedBy properties: key: type: string scope: type: string x-extensible-enum: - mine - shared value: description: The document, any JSON value. version: type: integer minimum: 1 description: Goes up by one with every write; send it back as ifVersion. updatedAt: type: string format: date-time updatedBy: type: string description: The person who wrote it last. ArtifactPageDocumentPage: type: object required: - documents - nextCursor properties: documents: type: array items: $ref: '#/components/schemas/ArtifactPageDocument' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. PutArtifactPageDocumentRequest: type: object additionalProperties: false required: - value properties: value: description: The document, any JSON value. At most 64 KB as JSON. ifVersion: type: integer minimum: 0 description: Write only if the document is at this version; 0 when it must not exist yet. AskArtifactPageModelMessage: type: object additionalProperties: false required: - role - content properties: role: type: string enum: - user - assistant content: type: string minLength: 1 maxLength: 100000 AskArtifactPageModelRequest: type: object additionalProperties: false required: - messages properties: system: type: string maxLength: 20000 description: What the model is told before the messages. messages: type: array minItems: 1 maxItems: 100 items: $ref: '#/components/schemas/AskArtifactPageModelMessage' maxTokens: type: integer minimum: 1 maximum: 8192 default: 1024 ArtifactPageAppAction: type: object required: - action - app - title - description - inputSchema - effect properties: action: type: string description: The action, as appId/actionName. Send it to callArtifactPageAppAction. app: type: string description: The app's name, for people. title: type: string description: type: string inputSchema: type: object additionalProperties: true description: The JSON Schema of what the action is called with. effect: type: string x-extensible-enum: - read - write ArtifactPageAppActionPage: type: object required: - actions - nextCursor properties: actions: type: array items: $ref: '#/components/schemas/ArtifactPageAppAction' nextCursor: type: - string - 'null' maxLength: 4096 pattern: ^[A-Za-z0-9_-]+$ description: Pass as cursor for the next page. Null ends the list. Written in URL-safe base64, the only form the cursor parameter accepts. CallArtifactPageAppActionRequest: type: object additionalProperties: false required: - action properties: action: type: string minLength: 1 maxLength: 256 pattern: \S description: The action, as appId/actionName. args: type: object default: {} additionalProperties: true description: What to call it with. At most 32 KB as JSON. ArtifactPageAppActionResult: type: object required: - refused - result properties: refused: type: boolean description: True when the rules refused it; result then says why, for the person. result: type: string description: What the action answered, as text (often JSON), or why it was refused. ArtifactPageUser: type: object required: - id - name - image - isOwner properties: id: type: string name: type: - string - 'null' image: type: - string - 'null' isOwner: type: boolean description: Whether the viewer owns the artifact. responses: InvalidRequest: description: A parameter is malformed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: invalid: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A Bot id is required. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example InvalidBot: description: A field is missing or out of bounds, the address is one this deployment may not reach, or the deployment cannot give a Bot a computer of its own. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: name: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Name must be text between 1 and 80 characters. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example noIsolation: value: type: https://open.bot/errors/isolation-unavailable title: This OpenBot can't give a Bot a computer of its own. status: 400 detail: This OpenBot can't give a Bot a computer of its own, so it runs on yours. code: ISOLATION_UNAVAILABLE category: validation retryable: false requestId: req_example traceId: trace_example Unauthenticated: description: The caller is not signed in. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/auth-unauthenticated title: Authentication is required. status: 401 detail: Authentication required. code: AUTH_UNAUTHENTICATED category: auth retryable: false requestId: req_example traceId: trace_example Forbidden: description: The caller holds no role in this organization, or the organization requires signing in through the company's identity provider and the caller hasn't (SSO_REQUIRED). Or a deletion of the caller's account stopped partway and is still finishing (ACCOUNT_PENDING_DELETION), which every operation but getAccountDeletion and requestAccountDeletion answers until the account is gone. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: noRole: value: type: https://open.bot/errors/permission-denied title: Authorization required. status: 403 detail: Authorization required. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example ssoRequired: value: type: https://open.bot/errors/sso-required title: Sign in through your company's identity provider. status: 403 detail: This organization requires signing in through your company's identity provider. Sign in with your work email to continue. code: SSO_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example accountPendingDeletion: value: type: https://open.bot/errors/account-pending-deletion title: Your account is being deleted. status: 403 detail: Your account is being deleted. code: ACCOUNT_PENDING_DELETION category: permission retryable: false requestId: req_example traceId: trace_example BotForbidden: description: The caller may not manage this Bot, the Bot comes with OpenBot, or the caller may not give it a computer of its own. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: You can't manage this Bot. status: 403 detail: You can't manage this Bot. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example isolation: value: type: https://open.bot/errors/capability-required title: Your admin hasn't turned on Isolated Bots for you. status: 403 detail: Your admin hasn't turned on Isolated Bots for you. code: CAPABILITY_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example capability: isolatedComputers AdminOnly: description: The caller is not an administrator of the organization, or holds no role in it. Or the organization requires signing in through the company's identity provider and the caller hasn't (SSO_REQUIRED). headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notAdmin: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an admin can do this. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example ssoRequired: value: type: https://open.bot/errors/sso-required title: Sign in through your company's identity provider. status: 403 detail: This organization requires signing in through your company's identity provider. Sign in with your work email to continue. code: SSO_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example InvalidAuditQuestion: description: The question is blank or longer than 500 characters once trimmed, holds a character OpenBot can't keep, or a parameter is malformed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: blank: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Ask a question first. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example long: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Keep the question under 500 characters. Ask one thing at a time. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example AuditQuestionNotUnderstood: description: The model's filters still failed their check on its second try, so none are given. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notUnderstood: value: type: https://open.bot/errors/question-not-understood title: Couldn't turn that question into filters. status: 422 detail: Couldn't turn that question into filters. Ask it another way, or set the filters yourself. code: QUESTION_NOT_UNDERSTOOD category: validation retryable: false requestId: req_example traceId: trace_example ModelFailed: description: The model didn't answer, or didn't answer usefully. Asking again may work. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unreachable: value: type: https://open.bot/errors/model-failed title: The model didn't answer. status: 502 detail: Couldn't reach the model. Try again. code: MODEL_FAILED category: dependency retryable: true requestId: req_example traceId: trace_example ModelNotConfigured: description: The deployment has no model to read a question with. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: noModel: value: type: https://open.bot/errors/model-not-configured title: OpenBot has no model to answer with. status: 503 detail: OpenBot needs a model key to answer a question. Add one in the Vault, or set the filters yourself. code: MODEL_NOT_CONFIGURED category: dependency retryable: false requestId: req_example traceId: trace_example OrganizationNotFound: description: The organization does not exist or is not visible to the caller. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/organization-not-found title: Organization not found. status: 404 detail: Couldn't find that organization. code: ORGANIZATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example BotNotFound: description: The Bot does not exist, was deleted, or is not visible to the caller, or the organization is not. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/bot-not-found title: Bot not found. status: 404 detail: Couldn't find that Bot. code: BOT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example IdempotencyConflict: description: The Idempotency-Key was already used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example InvalidPerson: description: The change is empty, names something a person doesn't have, or the name is blank or longer than 100 characters once trimmed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: name: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Enter a name between 1 and 100 characters. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example PersonForbidden: description: The caller asked about or changed somebody else without being an administrator, changed somebody else's name, or changed a role without being an administrator. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notAdmin: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an admin can see someone else's account. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example name: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can change their name. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example OwnOnly: description: 'The caller asked about somebody else''s own things, which only that person may read or change: an administrator can''t either.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can see their standing instructions. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example SignedInOwnOnly: description: The caller asked about somebody else's API keys or sessions, or authenticated with an API key or app OAuth token. Only the person themselves can make this request from OpenBot. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can see their API keys. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example key: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: An API key or an app can't manage API keys or sessions. Sign in to OpenBot to do this. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example SignedInAdminOnly: description: The caller is not an administrator, or signed the request with an API key or an app's sign-in rather than signing in to OpenBot. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notAdmin: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an admin can do this. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example PersonNotFound: description: 'Nobody with that id has signed in here, or the organization does not exist. Only an administrator is told so: anybody else is refused first.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/person-not-found title: Person not found. status: 404 detail: That person is not here. code: PERSON_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example PersonConflict: description: 'The change would leave the organization without a way back in: an administrator removing their own role or access, or a change to somebody the deployment''s configuration names as an administrator. Or the Idempotency-Key was used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: ownRole: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: You can't remove your own admin role. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example ApiKeyNotFound: description: The person has no such API key, it was deleted, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/api-key-not-found title: API key not found. status: 404 detail: Couldn't find that API key. code: API_KEY_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example SessionNotFound: description: The person has no such session, it ended, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/session-not-found title: Session not found. status: 404 detail: Couldn't find that session. It may have ended already. code: SESSION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example LinkedAccountNotFound: description: 'The person has no such linked account: it was unlinked already, or never was. Or the organization does not exist.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/linked-account-not-found title: Linked account not found. status: 404 detail: Linked account not found. code: LINKED_ACCOUNT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example LinkProviderUnavailable: description: This deployment can't link an account at that service, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unavailable: value: type: https://open.bot/errors/link-provider-unavailable title: That account type can't be linked here. status: 404 detail: That account type cannot be linked here. code: LINK_PROVIDER_UNAVAILABLE category: not_found retryable: false requestId: req_example traceId: trace_example LinkedAccountsUnavailable: description: This deployment keeps no linked accounts at all. The apps read this as nothing to show, unlike any other 503. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unavailable: value: type: https://open.bot/errors/linked-accounts-unavailable title: Linked accounts aren't available here. status: 503 detail: Linked accounts are not available. code: LINKED_ACCOUNTS_UNAVAILABLE category: dependency retryable: false requestId: req_example traceId: trace_example IdentityProviderNotFound: description: No identity provider has that id, it was removed, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/identity-provider-not-found title: Identity provider not found. status: 404 detail: There is no such provider. code: IDENTITY_PROVIDER_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example IdentityProviderConflict: description: A provider with that id is registered already, the Idempotency-Key was used for a different request, or people sign in here with their OpenBot by CopilotKit account, so no organization registers a provider of its own (HOSTED_SIGN_IN_ONLY). headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: taken: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: An identity provider with that name is registered already. Choose another name. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example hostedSignIn: value: type: https://open.bot/errors/hosted-sign-in-only title: Sign-in here is through OpenBot by CopilotKit. status: 409 detail: People sign in here with their OpenBot by CopilotKit account, so an organization can't set up its own company sign-in. code: HOSTED_SIGN_IN_ONLY category: conflict retryable: false requestId: req_example traceId: trace_example SignInUnavailable: description: This OpenBot signs nobody in, so it doesn't offer the API keys, sign-in sessions or single sign-on this operation needs. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: single: value: type: https://open.bot/errors/sign-in-unavailable title: This OpenBot signs nobody in. status: 503 detail: This OpenBot signs nobody in, so it has no sessions. code: SIGN_IN_UNAVAILABLE category: dependency retryable: false requestId: req_example traceId: trace_example SettingsConflict: description: Single sign-on can't be required before an identity provider is registered, ssoRequired was sent in an organization other than the one this OpenBot keeps, people sign in here with their OpenBot by CopilotKit account so no organization requires it (HOSTED_SIGN_IN_ONLY), or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notTheFirstOrganization: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Requiring SSO applies to signing in to this OpenBot as a whole, so it can't be set for one organization. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example noProvider: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Register an identity provider before requiring SSO, or nobody but the break-glass administrators can sign in. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example hostedSignIn: value: type: https://open.bot/errors/hosted-sign-in-only title: Sign-in here is through OpenBot by CopilotKit. status: 409 detail: People sign in here with their OpenBot by CopilotKit account, so an organization can't set up its own company sign-in. code: HOSTED_SIGN_IN_ONLY category: conflict retryable: false requestId: req_example traceId: trace_example SignOutUnfinished: description: Single sign-on is now required, but not everybody could be signed out yet. Saving it again finishes. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: again: value: type: https://open.bot/errors/service-unavailable title: A service OpenBot depends on is unavailable. status: 503 detail: SSO is now required, but not everybody could be signed out yet. Save it again to finish. code: SERVICE_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example CapabilityNotFound: description: No permission switch has that id, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/capability-not-found title: Permission not found. status: 404 detail: There is no such permission. code: CAPABILITY_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidCapabilityChanges: description: A change is malformed, or one the rule would ignore, such as a group nobody is in. problems says which. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: empty: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Add at least one change. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example NetworkPolicyNotFound: description: No such network policy is set, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/network-policy-not-found title: Network policy not found. status: 404 detail: There is no such network policy. code: NETWORK_POLICY_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example NoTrailToReplay: description: This OpenBot keeps no audit trail it can read, so there is nothing to test against. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: noTrail: value: type: https://open.bot/errors/no-trail title: There is no history to test against. status: 503 detail: This OpenBot records no readable trail, so there is no history to test against. code: NO_TRAIL category: dependency retryable: false requestId: req_example traceId: trace_example PayloadTooLarge: description: The body is larger than this address takes. Only an address that limits its body answers this; the detail says how much it takes where the limit is a person's to meet. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: tooLarge: value: type: https://open.bot/errors/payload-too-large title: The request is too large. status: 413 detail: That request is too large. code: PAYLOAD_TOO_LARGE category: validation retryable: false requestId: req_example traceId: trace_example TooManyRequests: description: The caller (the person, their API key or their organization) is asking faster than this OpenBot answers for any one of them, or already has one of these running. Any signed-in operation can answer this. Normal use doesn't reach the limit. Try again after the seconds Retry-After gives. headers: Retry-After: description: Whole seconds to wait before trying again. schema: type: integer minimum: 0 X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: tooFast: value: type: https://open.bot/errors/rate-limited title: Too many requests. status: 429 detail: You're sending requests too quickly. Try again in a few seconds. code: RATE_LIMITED category: rate_limit retryable: true requestId: req_example traceId: trace_example ServerError: description: The server could not complete the request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: internal: value: type: https://open.bot/errors/internal-server-error title: Unexpected server error. status: 500 detail: Unexpected server error. code: INTERNAL_SERVER_ERROR category: internal retryable: true requestId: req_example traceId: trace_example UnexpectedError: description: Any other status, in the same problem details shape. The statuses listed for an operation are the ones its own rules produce; this covers the rest, such as a proxy in front of the server refusing a request too large to read (413, 414, 431) or a gateway that cannot reach it (502, 503, 504). A client reads detail and retryable from it like any other problem. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unavailable: value: type: https://open.bot/errors/service-unavailable title: OpenBot isn't available right now. status: 503 detail: OpenBot isn't available right now. Try again in a moment. code: SERVICE_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example clientUpdateRequired: value: type: https://open.bot/errors/client-update-required title: This app is too old for this OpenBot. status: 400 detail: This OpenBot needs OpenBot Desktop 1.2.0 or later. Update OpenBot, then try again. code: CLIENT_UPDATE_REQUIRED category: validation retryable: false requestId: req_example traceId: trace_example client: desktop minimumVersion: 1.2.0 clientUpdateRequiredSecurity: value: type: https://open.bot/errors/client-update-required title: This app is too old for this OpenBot. status: 400 detail: This version of OpenBot has a security problem. Update to keep using it. code: CLIENT_UPDATE_REQUIRED category: validation retryable: false requestId: req_example traceId: trace_example client: desktop minimumVersion: 1.2.0 security: true PlanRequired: description: This OpenBot runs an organization's Bots only while it is on a plan, or while the person the run counts against has free runs left. This organization isn't on the plan and those free runs are used up, or its last payment failed (PLAN_REQUIRED). An owner or an admin adds a card at addCardUrl. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: freeRunsUsedUp: value: type: https://open.bot/errors/plan-required title: This organization needs a plan. status: 402 detail: You've used your free trial. Add a card to keep your Bots running for $5 a month. code: PLAN_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example addCardUrl: /api/auth/hosted/checkout?organizationId=Jq3xT9mLw2Vb8RnC5sYd0fKe freeRunsUsedUpMember: value: type: https://open.bot/errors/plan-required title: This organization needs a plan. status: 402 detail: You've used your free trial. Ask an admin to add a card to keep your Bots running. code: PLAN_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example ConversationNotFound: description: The conversation does not exist, was removed, or the caller is not in it, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/conversation-not-found title: Conversation not found. status: 404 detail: Couldn't find that conversation. code: CONVERSATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ConversationNotJoinable: description: 'The conversation has nothing to join: no Bot has run in it yet, or it is a group conversation, which has no single thread. Or the Idempotency-Key was already used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notStarted: value: type: https://open.bot/errors/conversation-not-started title: Nothing to join yet. status: 409 detail: No Bot has run in this conversation yet. code: CONVERSATION_NOT_STARTED category: conflict retryable: false requestId: req_example traceId: trace_example LiveChannelsUnavailable: description: The service that carries live runs did not answer. Try again. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unavailable: value: type: https://open.bot/errors/live-channels-unavailable title: Live updates are unavailable. status: 502 detail: Couldn't reach live updates. Try again. code: LIVE_CHANNELS_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example InvalidCredential: description: A field is missing or out of bounds, a connector or app token was sent without a key id, or a name or a note holds text that can't be kept. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: invalid: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Credential input is invalid. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example CredentialNotFound: description: 'No live credential has that id: it never existed or is revoked already. Or the organization does not exist.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/credential-not-found title: Credential not found. status: 404 detail: Credential was not found or already revoked code: CREDENTIAL_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example CredentialsUnavailable: description: This OpenBot keeps no vault. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: noVault: value: type: https://open.bot/errors/service-unavailable title: A service OpenBot depends on is unavailable. status: 503 detail: Credential storage is not configured. code: SERVICE_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example ModelKeyNotFound: description: This OpenBot's Bots don't read a model key from the vault. Or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: none: value: type: https://open.bot/errors/model-key-not-found title: Model key not found. status: 404 detail: The Bots here don't read a model key from the vault. code: MODEL_KEY_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidModelChoice: description: The body is malformed, the model isn't one the catalogue offers, or the model can't think at that effort. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notOffered: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: That model isn't available. Pick another one. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example effort: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: That model can't think at that level. Pick another one. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example ModelChoiceForbidden: description: The conversation is somebody else's choice to make, an administrator turned choosing a model off, or the caller may not use Bots. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can choose the model for their conversations. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example turnedOff: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Choosing a model is turned off. Ask an admin to turn it on. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example AppNotFound: description: No app has that id here, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/app-not-found title: App not found. status: 404 detail: That app hasn't been added. code: APP_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example AppDirectoryUnavailable: description: 'This OpenBot can''t add or connect apps from the directory: it isn''t set up here, or what it was asked for can''t be used here. Trying again won''t help until an administrator changes something.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unavailable: value: type: https://open.bot/errors/app-directory-unavailable title: The app directory isn't available here. status: 503 detail: Apps from the directory aren't set up on this OpenBot. Ask an admin. code: APP_DIRECTORY_UNAVAILABLE category: dependency retryable: false requestId: req_example traceId: trace_example AppServiceFailed: description: The service behind an app was asked and didn't answer usefully. Nothing here broke; trying again later can succeed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: failed: value: type: https://open.bot/errors/app-service-failed title: The service behind this app didn't answer. status: 502 detail: Couldn't reach the app. Try again in a moment. code: APP_SERVICE_FAILED category: dependency retryable: true requestId: req_example traceId: trace_example ServiceTermsConflict: description: The version sent isn't the current one, so the person has to read the new terms first (SERVICE_TERMS_CHANGED). Or this OpenBot has no terms to agree to (SERVICE_TERMS_NONE). Or the Idempotency-Key was already used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: changed: value: type: https://open.bot/errors/service-terms-changed title: The terms have changed. status: 409 detail: The terms have changed since you opened them. Read the new version and agree again. code: SERVICE_TERMS_CHANGED category: conflict retryable: false requestId: req_example traceId: trace_example none: value: type: https://open.bot/errors/service-terms-none title: There are no terms to agree to. status: 409 detail: This OpenBot has no terms to agree to. code: SERVICE_TERMS_NONE category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example IdentityProviderNotRemovable: description: The caller is not an administrator of the organization, or holds no role in it. Or the provider was registered for the whole OpenBot, so it can't be removed from this organization. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notAdmin: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an admin can do this. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example deployment: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: This identity provider is set up for all of OpenBot, so it can't be removed here. Ask the admin who runs OpenBot. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example IdentityProviderRemovalConflict: description: The Idempotency-Key was used for a different request, or people sign in here with their OpenBot by CopilotKit account, so no organization changes a provider of its own (HOSTED_SIGN_IN_ONLY). headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example hostedSignIn: value: type: https://open.bot/errors/hosted-sign-in-only title: Sign-in here is through OpenBot by CopilotKit. status: 409 detail: People sign in here with their OpenBot by CopilotKit account, so an organization can't set up its own company sign-in. code: HOSTED_SIGN_IN_ONLY category: conflict retryable: false requestId: req_example traceId: trace_example InvalidCompanySignInTicket: description: No providerId was sent, or the body or the Idempotency-Key is malformed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: noProvider: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Name the identity provider to sign in through, as providerId. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example CompanySignInTicketForbidden: description: The ticket is for somebody else, or the request is signed in with an API key, which never links a company account. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: someoneElse: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can link their company account. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example apiKey: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Link your company account from OpenBot or its app, not with an API key. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example CompanySignInProviderNotFound: description: The organization does not exist or the caller is not in it, or no identity provider by that id counts for it. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: organization: value: type: https://open.bot/errors/organization-not-found title: Organization not found. status: 404 detail: Couldn't find that organization. code: ORGANIZATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example provider: value: type: https://open.bot/errors/identity-provider-not-found title: Identity provider not found. status: 404 detail: This organization has no such identity provider for signing in. code: IDENTITY_PROVIDER_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example CompanySignInTicketConflict: description: 'The Idempotency-Key was used already. A ticket is a credential shown once, so its answer is never given again: ask with a new key. Or people sign in here with their OpenBot by CopilotKit account, so there is no company account to link (HOSTED_SIGN_IN_ONLY).' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used already. Ask again with a new one. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example hostedSignIn: value: type: https://open.bot/errors/hosted-sign-in-only title: Sign-in here is through OpenBot by CopilotKit. status: 409 detail: People sign in here with their OpenBot by CopilotKit account, so an organization can't set up its own company sign-in. code: HOSTED_SIGN_IN_ONLY category: conflict retryable: false requestId: req_example traceId: trace_example NoBotToAnswer: description: 'No Bot can answer the message: the caller has none, none offers every skill asked for, or more than one has the name the message used. Or the Idempotency-Key was already used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: none: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: No Bot is available. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example ambiguous: value: type: https://open.bot/errors/bot-name-ambiguous title: More than one Bot has that name. status: 409 detail: More than one Bot has that name. Research Helper, Research Helper. Choose one with @. code: BOT_NAME_AMBIGUOUS category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example ConversationConflict: description: 'The conversation cannot take this: it comes with OpenBot and cannot be deleted, it is no longer active, or the call was already saved in another conversation. Or the Idempotency-Key was already used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: builtIn: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: This conversation is built in and can't be deleted. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example ServiceUnavailable: description: 'Something this needs is not set up or did not answer: the service behind it, or OpenBot''s own store. Try again.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unavailable: value: type: https://open.bot/errors/service-unavailable title: The service is unavailable. status: 503 detail: Couldn't load your tasks. Try again. code: SERVICE_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example AttachmentConflict: description: 'The file cannot be taken: the message already holds as many files as it may, or the caller is holding too many unsent files. Or it cannot be removed because it is already part of a sent message. Or the Idempotency-Key was already used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: sent: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: This attachment is already part of a sent message. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example UnsupportedFile: description: The file is not a type OpenBot can read. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unsupported: value: type: https://open.bot/errors/unsupported-media-type title: That media type is not supported. status: 415 detail: This recording format is not supported. Use WebM, MP4, or WAV audio. code: UNSUPPORTED_MEDIA_TYPE category: validation retryable: false requestId: req_example traceId: trace_example AttachmentNotFound: description: The attachment does not exist or the caller may not read it, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/not-found title: Not found. status: 404 detail: No such attachment. code: NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example TaskNotFound: description: The task does not exist or is another person's, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/not-found title: Not found. status: 404 detail: Couldn't find that task. code: NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example TaskConflict: description: The task is not in a state this can change. Or the Idempotency-Key was already used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notFailed: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Only a task that failed can be tried again. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example NoSpeech: description: The recording held no speech to write down. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: silent: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 422 detail: No speech was detected. Try recording again. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example InvalidAiConnection: description: The body is malformed, the provider doesn't take that login, the address isn't http or https or has something in it that signs in, or a key, an address or a model the login needs is missing. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: pair: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: xAI doesn't take a plan. Pick an API key or a sign-in. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example googleSignInRetired: summary: A Google sign-in for Gemini, which OpenBot no longer offers. value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Google sign-in for Gemini has ended. Add a Gemini API key in Settings under AI providers to keep using Gemini. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example keyMissing: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Paste a key, or use the saved key. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example credentialsInAddress: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Take the user name and password out of the address, and paste the key in its own field. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example AiConnectionFixed: description: Whoever runs this OpenBot sets its AI provider (editable is false), so it can't be changed here. Or the Idempotency-Key was already used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: fixed: value: type: https://open.bot/errors/ai-connection-fixed title: The AI provider is set by whoever runs OpenBot. status: 409 detail: This OpenBot's AI provider is set by whoever runs it. Change its key in the vault. code: AI_CONNECTION_FIXED category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example AiConnectionRefused: description: 'OpenBot checked the connection and can''t use it, so nothing was saved and the connection in use keeps running. code says why: AI_CONNECTION_KEY_REFUSED, the provider didn''t accept the key; AI_CONNECTION_UNREACHABLE, the address didn''t answer; AI_CONNECTION_MODEL_UNAVAILABLE, the key can''t use that model; AI_CONNECTION_SIGN_IN_MISSING, there''s no sign-in to read; AI_CONNECTION_ENGINE_NOT_READY, the plan''s engine isn''t answering yet. detail is OpenBot''s own sentence, naming the provider or the host, never what the provider said.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: keyRefused: value: type: https://open.bot/errors/ai-connection-refused title: OpenBot couldn't use that connection. status: 422 detail: Anthropic didn't accept that key. Check it and paste it again. code: AI_CONNECTION_KEY_REFUSED category: validation retryable: false requestId: req_example traceId: trace_example unreachable: value: type: https://open.bot/errors/ai-connection-refused title: OpenBot couldn't use that connection. status: 422 detail: OpenBot couldn't reach api.example.com. Check the address. code: AI_CONNECTION_UNREACHABLE category: validation retryable: false requestId: req_example traceId: trace_example modelUnavailable: value: type: https://open.bot/errors/ai-connection-refused title: OpenBot couldn't use that connection. status: 422 detail: That key can't use gemini-3-pro. Pick another model. code: AI_CONNECTION_MODEL_UNAVAILABLE category: validation retryable: false requestId: req_example traceId: trace_example signInMissing: value: type: https://open.bot/errors/ai-connection-refused title: OpenBot couldn't use that connection. status: 422 detail: Sign in to xAI first, then try again. code: AI_CONNECTION_SIGN_IN_MISSING category: validation retryable: false requestId: req_example traceId: trace_example engineNotReady: value: type: https://open.bot/errors/ai-connection-refused title: OpenBot couldn't use that connection. status: 422 detail: Claude hasn't started yet. Try again in a moment. code: AI_CONNECTION_ENGINE_NOT_READY category: validation retryable: true requestId: req_example traceId: trace_example PersonalAiConnectionUnavailable: description: 'A person can''t set an AI connection of their own here (available is false): the organization''s AI is the only one. Or the Idempotency-Key was already used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: organizationOnly: value: type: https://open.bot/errors/personal-ai-connection-unavailable title: This OpenBot uses its organization's AI. status: 409 detail: Bots here use your organization's AI. An admin changes it in Settings. code: PERSONAL_AI_CONNECTION_UNAVAILABLE category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example AiSignInNotFound: description: 'No sign-in has that id for this person: it was never started, was started by somebody else, or its id was changed.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/ai-sign-in-not-found title: Sign-in not found. status: 404 detail: That sign-in isn't there. Sign in again. code: AI_SIGN_IN_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example AiConnectionNotFound: description: 'No AI connection has that id here: it was never connected, was removed, or belongs to somebody else.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/ai-connection-not-found title: AI connection not found. status: 404 detail: That AI connection isn't connected anymore. code: AI_CONNECTION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example AiConnectionNotReady: description: The AI connection can't run now (ready false), so it can't be the default. Or the Idempotency-Key was already used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notReady: value: type: https://open.bot/errors/ai-connection-not-ready title: This AI connection can't run now. status: 409 detail: Your Claude plan sign-in ended. Sign in again before you make it the default. code: AI_CONNECTION_NOT_READY category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example InvalidApp: description: A field is missing or out of bounds, the directory entry isn't one that can be added, the address is refused, the server needs a key nobody gave, or the server couldn't be reached or set up for signing in. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: title: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Give the server a name and an address. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example address: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Use the server's https address. OpenBot doesn't send your data over plain http. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example needsKey: value: type: https://open.bot/errors/app-needs-key title: That app needs a key. status: 400 detail: Acme Wiki needs a key to connect. Add the key it gave you and try again. code: APP_NEEDS_KEY category: validation retryable: false requestId: req_example traceId: trace_example AppAddForbidden: description: 'Only an administrator may add this app here: the organization''s apps are locked down, the server would be given a key everyone''s Bots use, or the app needs what only an administrator can enter. Or the MCP allowlist doesn''t approve the address.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notAdmin: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an admin can do this. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example key: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Every Bot that uses this server would use that key, so only an admin can add one. Ask an admin to add it. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example notApproved: value: type: https://open.bot/errors/app-not-approved title: That address isn't approved. status: 403 detail: Your admin only allows approved MCP servers, and mcp.acme.com isn't one of them. Ask an admin to approve it. code: APP_NOT_APPROVED category: permission retryable: false requestId: req_example traceId: trace_example AppAddConflict: description: A server at that address is already here (appId names it), the app was added but couldn't be read back, OpenBot's own records of the app disagree, or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/AppProblem' examples: alreadyAdded: value: type: https://open.bot/errors/app-already-added title: That app is already here. status: 409 detail: That server is already here, as Acme Wiki. code: APP_ALREADY_ADDED category: conflict retryable: false requestId: req_example traceId: trace_example appId: acme-wiki records: $ref: '#/components/examples/AppRecordsConflictExample' idempotency: $ref: '#/components/examples/AppIdempotencyConflictExample' InvalidAppChange: description: 'A field is missing or out of bounds, or the change doesn''t fit this app: an id or address that can''t be used, an app that isn''t from the directory or needs no account, or one that takes no OAuth client.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: noAccount: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Acme Wiki needs no account, so there is nothing to share. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example noOAuthClient: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: acme-wiki is not reached with an OAuth client. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example id: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A server name is lower-case letters, numbers and hyphens. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example AppConflict: description: OpenBot's own records of the app disagree, so it can't do this until they're corrected, or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: records: $ref: '#/components/examples/AppRecordsConflictExample' idempotency: $ref: '#/components/examples/AppIdempotencyConflictExample' AppRemovalForbidden: description: The caller is not an administrator, and either didn't add the app or the organization's apps are locked down. Or the app is one every Bot always has. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notAdmin: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an admin can do this. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example notWhoAddedIt: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an admin or the person who added this app can remove it. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example alwaysOn: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Routines are always on, for every Bot. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example AppAccountModeUnavailable: description: 'This OpenBot can''t switch whose account an app acts in: shared accounts aren''t available here, or the app directory isn''t set up. Trying again won''t help until an administrator changes something.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: sharedAccounts: value: type: https://open.bot/errors/service-unavailable title: A service OpenBot depends on is unavailable. status: 503 detail: Shared accounts are not available on this deployment. code: SERVICE_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example directory: value: type: https://open.bot/errors/app-directory-unavailable title: The app directory isn't available here. status: 503 detail: Apps from the directory aren't set up on this OpenBot. Ask an admin. code: APP_DIRECTORY_UNAVAILABLE category: dependency retryable: false requestId: req_example traceId: trace_example AppStateConflict: description: OpenBot's own records of its apps disagree, so it can't answer until they're corrected. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: records: $ref: '#/components/examples/AppRecordsConflictExample' ConnectionNotFound: description: No app has that id here, the person hasn't connected it, the app uses one shared account, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notConnected: value: type: https://open.bot/errors/connection-not-found title: Connection not found. status: 404 detail: You haven't connected Linear. code: CONNECTION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example shared: value: type: https://open.bot/errors/connection-not-found title: Connection not found. status: 404 detail: Linear uses one shared account. An admin connects it on its page under Apps. code: CONNECTION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example noApp: value: type: https://open.bot/errors/app-not-found title: App not found. status: 404 detail: That app hasn't been added. code: APP_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ConnectionRefused: description: 'A parameter or the body is malformed, or the app can''t be connected this way: it needs no account, OpenBot keeps its sign-in itself so there is nothing to confirm or check, the values don''t match the form it asks for, the app refused the key, or it has no action by that name.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notThisWay: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: That app doesn't connect this way. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example noAccount: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Weather needs no account, so there's nothing to connect. Bots that can use it already work. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example required: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Linear needs api_key, so nothing was sent. Fill in every required box and press Connect again. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example noAction: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: GitHub has no action by that name. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example ConnectionForbidden: description: The caller asked to connect somebody else's account, which only that person may do, or the app connects only as one shared account. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can see or change their connections. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example sharedOnly: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Shopify connects only as one shared account, so no account was made. Ask an admin to make it shared on its page under Apps and connect it there. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example ConnectionConflict: description: The app uses one shared account, which an administrator connects on its own page. Or, on a write, a connection or consent is already in progress or settled another way, or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: shared: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Linear uses one shared account. An admin connects it on its page under Apps. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example inProgress: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: You're already connecting an app. Finish it, or wait for it to expire, before starting another. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example ConnectionsUnavailable: description: 'This OpenBot can''t connect apps this way: connecting apps isn''t set up here, it has no address to bring the person back to, or the app can''t be used here. Trying again won''t help until an administrator changes something.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notSetUp: value: type: https://open.bot/errors/connections-unavailable title: Connecting apps isn't available here. status: 503 detail: Connecting apps isn't set up yet, so nothing was asked. Ask an admin to set it up. code: CONNECTIONS_UNAVAILABLE category: dependency retryable: false requestId: req_example traceId: trace_example ConnectedAccountNotFound: description: The person has no account by that id at the app, no app has that id here, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notConnected: value: type: https://open.bot/errors/connected-account-not-found title: Account not found. status: 404 detail: That account isn't connected. Reload the page. code: CONNECTED_ACCOUNT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example noApp: value: type: https://open.bot/errors/app-not-found title: App not found. status: 404 detail: That app hasn't been added. code: APP_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example SharedConnectionNotFound: description: No app has that id here, the app is connected by each person and has no shared account, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: personal: value: type: https://open.bot/errors/connection-not-found title: Connection not found. status: 404 detail: Linear is connected by each person, so it has no shared account. code: CONNECTION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example noApp: value: type: https://open.bot/errors/app-not-found title: App not found. status: 404 detail: That app hasn't been added. code: APP_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example SharedConnectionConflict: description: The app is connected by each person and has no shared account. Or, on a write, a shared account is connected already where the app connects once, a consent is already in progress, or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: personal: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Linear is connected by each person, so it has no shared account. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example connected: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Linear already has a shared account connected. Disconnect it first if you want to connect a different one. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example InvalidBotGrantChanges: description: The change is malformed, names an action of another app, turns one action both on and off, changes nothing, or turns on an action the app doesn't offer now. problems says which. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: empty: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: There's nothing to change. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example notOffered: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: notion/notion-archive isn't an action this app offers now. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example BotGrantForbidden: description: 'The caller may not give the Bot this or take it away: only an administrator may, the Bot or the skill isn''t theirs, the app isn''t open to owners, an administrator turned giving apps off for them, or it is something every Bot always has.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: adminOnly: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an admin can choose which Bots use a tool. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example notYourBot: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: You can only give apps to Bots you own. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example alwaysOn: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Routines are always on, for every Bot. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example turnedOff: value: type: https://open.bot/errors/capability-required title: An admin hasn't turned this on for you. status: 403 detail: An admin has turned off "Give apps to their own Bots" for you, so that wasn't done. code: CAPABILITY_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example capability: ownerApps BotOrAppNotFound: description: The Bot isn't one the caller can use, OpenBot has no app by that id or name, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: bot: value: type: https://open.bot/errors/bot-not-found title: Bot not found. status: 404 detail: There is no such Bot. code: BOT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example app: value: type: https://open.bot/errors/app-not-found title: App not found. status: 404 detail: OpenBot has no app called asana. code: APP_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example BotGrantConflict: description: The app lists no actions yet, or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: noActions: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Notion lists no actions yet. Refresh its tools, then try again. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example BotGrantNotFound: description: The Bot isn't one the caller can use, the Bot doesn't have that, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: bot: value: type: https://open.bot/errors/bot-not-found title: Bot not found. status: 404 detail: There is no such Bot. code: BOT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example grant: value: type: https://open.bot/errors/bot-grant-not-found title: Grant not found. status: 404 detail: This Bot doesn't have that. code: BOT_GRANT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example BotAppConflict: description: 'The app''s state doesn''t allow it: there is nothing to give or to ask an administrator for, or the app needs something only an administrator can add. Or the Idempotency-Key was used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: ready: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Notion is ready to use. There's nothing to ask an admin for. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example noTools: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Notion has nothing to give yet. Ask an admin to refresh it. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example AppOrTeamNotFound: description: OpenBot has no app by that id, a team named is not one of this organization's, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: app: value: type: https://open.bot/errors/app-not-found title: App not found. status: 404 detail: OpenBot has no app called asana. code: APP_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example team: value: type: https://open.bot/errors/team-not-found title: Team not found. status: 404 detail: Couldn't find that team. code: TEAM_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example TooManyPendingRequests: description: The person already has as many requests waiting as they may. Or the caller is asking too fast for the limit every signed-in operation has (TooManyRequests), answered with RATE_LIMITED and Retry-After. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: cap: value: type: https://open.bot/errors/too-many-pending-requests title: Too many requests are waiting. status: 429 detail: You already have 20 requests waiting for an admin. Withdraw one, or wait for an answer, then ask again. code: TOO_MANY_PENDING_REQUESTS category: rate_limit retryable: false requestId: req_example traceId: trace_example AppAccessRequestNotFound: description: No request has that id, it is somebody else's, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/app-access-request-not-found title: Access request not found. status: 404 detail: There is no such request. code: APP_ACCESS_REQUEST_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example AppAccessRequestConflict: description: The request was already answered, what it asks for needs something only an administrator can add first, or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: answered: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: That request has already been answered. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example needsKey: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Exa Search (API key) needs the token it is reached with. Add it on its page under Apps, then approve this request again. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example InvalidComponent: description: 'A field is missing or blank once trimmed, holds text that can''t be kept, or doesn''t fit this kind of component: a title or source for one that comes with OpenBot, a Playground name that isn''t custom_ and lower-case letters, numbers and underscores, an announced name that starts with @, or a data function this OpenBot doesn''t ship.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: nameStartsWithAt: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Component at index 0 has a name that starts with @, which a component's name can't. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example announcement: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Component at index 2 needs a name, a title, a kind and a description. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example description: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A description is required. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example ComponentNotFound: description: No component has that name, the caller isn't an admin and it isn't published, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/component-not-found title: Component not found. status: 404 detail: No component is called showWeather. code: COMPONENT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ComponentConflict: description: A Playground component needs a description and HTML before it can be published, a component that comes with OpenBot can't be deleted or written in Playground, or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notReady: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Weather card needs HTML before it can be published. Add it in Playground. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example comesWithOpenBot: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Bar chart comes with OpenBot, so it can't be deleted. Unpublish it to stop Bots drawing it. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example BotComponentNotFound: description: The Bot does not exist, was deleted or is not visible to the caller, no component has that name, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: bot: value: type: https://open.bot/errors/bot-not-found title: Bot not found. status: 404 detail: Couldn't find that Bot. code: BOT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example component: value: type: https://open.bot/errors/component-not-found title: Component not found. status: 404 detail: No component is called showWeather. code: COMPONENT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example DataReadFailed: description: The data function ran and failed. Nothing refused it, so asking again may work. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: failed: value: type: https://open.bot/errors/data-read-failed title: The data couldn't be read. status: 502 detail: Couldn't read that data. Try again in a moment. code: DATA_READ_FAILED category: dependency retryable: true requestId: req_example traceId: trace_example SkillNotFound: description: No skill has that slug, the caller isn't an admin and can't see it, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/skill-not-found title: Skill not found. status: 404 detail: There's no skill called standup. code: SKILL_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidSkill: description: A field is missing, blank once trimmed or holds text that can't be kept, or a tool is one OpenBot hasn't seen. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unknownTool: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Couldn't find a tool called gmail/send_mail. Check its name, or refresh its app and try again. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example SkillForbidden: description: Only an admin may write a skill for everyone, or change or delete the organization's or somebody else's. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: forEveryone: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an admin can write a skill for everyone. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example organization: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: standup belongs to everyone. Only an admin can change it. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example someoneElse: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: standup is somebody else's skill. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example SkillOrTeamNotFound: description: There is no skill by that slug, a team named is not one of this organization's, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: skill: value: type: https://open.bot/errors/skill-not-found title: Skill not found. status: 404 detail: There is no skill called standup. code: SKILL_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example team: value: type: https://open.bot/errors/team-not-found title: Team not found. status: 404 detail: Couldn't find that team. code: TEAM_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example TransportUnavailable: description: 'This deployment hasn''t set up that way of reaching people: push notifications, the Slack and Teams pairing, or text messages. Or the organization does not exist.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: sms: value: type: https://open.bot/errors/transport-unavailable title: That way of reaching people isn't set up here. status: 404 detail: SMS is not configured on this deployment. code: TRANSPORT_UNAVAILABLE category: not_found retryable: false requestId: req_example traceId: trace_example DeviceConflict: description: Another account has the phone registered and hasn't signed out on it. Or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: anotherAccount: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: This device is already registered to another account. Sign out of OpenBot on it first. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example DeviceNotFound: description: 'The person has no such device: it was removed already, or never registered. Or the organization does not exist.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/device-not-found title: Device not found. status: 404 detail: Device not found. code: DEVICE_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidDestination: description: The request doesn't match the API, the conversation isn't the person's or the Bot isn't in it, a phone's verification expired, was used already or its code was wrong, the phone is connected to another person, or the Slack account, Teams account or phone is connected in another organization. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: connectedInAnotherOrganization: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: That account is already connected to OpenBot in another organization. Disconnect it there, then connect it here. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example notTheirs: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Choose an accessible Bot in your conversation. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example wrongCode: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: The verification code was not approved. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example DestinationForbidden: description: The caller asked to link somebody else's account, or an administrator hasn't let them add Bots to Slack and Teams. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can see or change where their Bots reach them. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example switchedOff: value: type: https://open.bot/errors/capability-required title: An admin hasn't turned this on for you. status: 403 detail: An admin has turned off "Add Bots to Slack and Teams" for you, so that wasn't done. code: CAPABILITY_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example capability: slackTeams TextMessagesUnavailable: description: The text message provider didn't answer, so no code was sent or checked. Trying again can work. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: provider: value: type: https://open.bot/errors/service-unavailable title: A service OpenBot depends on is unavailable. status: 503 detail: Delivery is unavailable. Try again. code: SERVICE_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example DestinationNotFound: description: 'The person has no such destination: it was disconnected already, or never connected. Or the organization does not exist.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/destination-not-found title: Destination not found. status: 404 detail: Connection not found. code: DESTINATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidRoutine: description: A field is missing or out of bounds, the schedule is not five cron fields or runs more often than hourly, the Bot is not in that conversation, the routine is paused or already running, or the caller has 20 routines switched on. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: invalid: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Choose when it runs. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example RoutineNotFound: description: The routine does not exist or is somebody else's, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/routine-not-found title: Routine not found. status: 404 detail: That routine does not exist. code: ROUTINE_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidCheckIn: description: A field is missing or out of bounds, the Bot or the conversation is not one the caller can use, or a check-in is running already or ran in the last ten minutes. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: invalid: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Invalid settings. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example CheckInConflict: description: The Bot already checks in on this and refuseExisting was asked for, or the Idempotency-Key was already used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: sameCheckIn: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: This Bot already checks in on this. Give this one a different name, or change that one on its row. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example CheckInNotFound: description: The check-in does not exist or is somebody else's, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/check-in-not-found title: Check-in not found. status: 404 detail: This could not be found. code: CHECK_IN_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example CheckInItemNotFound: description: The item does not exist, is somebody else's or is no longer open, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/check-in-item-not-found title: Item not found. status: 404 detail: This could not be found. code: CHECK_IN_ITEM_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidGoal: description: A field is missing or out of bounds, the Bot or the conversation is not one the caller can use, the goal both repeats and ends when met, the goal is paused or completed, or a trigger's configuration or secret is not one its kind takes. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: invalid: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A goal can't both repeat and end when it's met. Turn one of them off. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example GoalNotFound: description: The goal does not exist or is somebody else's, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/goal-not-found title: Goal not found. status: 404 detail: This goal could not be found. code: GOAL_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example GoalTriggerNotFound: description: The trigger does not exist, is not this goal's or is somebody else's, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/goal-trigger-not-found title: Trigger not found. status: 404 detail: This goal could not be found. code: GOAL_TRIGGER_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example GithubEventSourceNotFound: description: The source does not exist or is somebody else's, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/github-event-source-not-found title: GitHub event source not found. status: 404 detail: This goal could not be found. code: GITHUB_EVENT_SOURCE_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example FollowUpNotFound: description: The follow-up already ran, was cancelled or is somebody else's, the Bot is not one the caller can see, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/follow-up-not-found title: Follow-up not found. status: 404 detail: That follow-up has already run or was cancelled. code: FOLLOW_UP_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidOrganization: description: The name or the slug is missing or malformed, or the Idempotency-Key is. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: name: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A name of 1 to 100 characters is required. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example OrganizationNotAllowed: description: The caller already owns as many organizations as this OpenBot allows one person. Or the request was refused for the caller, as any request can be (SSO_REQUIRED). headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: limitReached: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: You already own 3 organizations, the most anyone can here. Delete one you created to create another. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example OrganizationConflict: description: Another organization has that slug. Or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: slugTaken: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Another organization already uses that slug. Choose another. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example creationUnderWay: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: You're already creating an organization. Wait for it to finish, then try again. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example OrganizationNotCreated: description: This OpenBot could not finish setting the organization up, so it was not created. Nothing of it is left behind. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unfinished: value: type: https://open.bot/errors/service-unavailable title: A service OpenBot depends on is unavailable. status: 503 detail: The organization couldn't be set up, so it wasn't created. Try again. code: SERVICE_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example OwnerOnly: description: The caller is not an owner of the organization, or holds no role in it. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notOwner: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an owner can delete this organization. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example OrganizationStays: description: 'The organization can''t be deleted: it is a person''s own organization, or it is `default`. Or the Idempotency-Key was used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: personal: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: This is your own organization, so it stays. You can delete organizations you created. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example default: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: This organization comes with OpenBot, so it stays. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example OrganizationNotDeleted: description: This OpenBot could not finish deleting the organization, so it was not deleted. Asking again may work. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unfinished: value: type: https://open.bot/errors/service-unavailable title: A service OpenBot depends on is unavailable. status: 503 detail: The organization couldn't be deleted. Try again. code: SERVICE_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example OwnerStays: description: 'The person stays in the organization: they own it, or this OpenBot''s settings keep them as an admin of it. The members list says who, as removable.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: owner: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: They own this organization, so they stay a member of it. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example InvalidOrganizationInvitation: description: The address or the role is missing or malformed, or the Idempotency-Key is. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: role: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A role of admin or member is required. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example SeatRequired: description: The organization pays for each member, and every seat it has paid for is taken (SEAT_REQUIRED). An owner or an admin adds a seat at addSeatUrl, and the invitation can be sent once it is added. Nothing was invited. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: noFreeSeat: value: type: https://open.bot/errors/seat-required title: This organization needs another seat. status: 402 detail: Each member is $5 a month. Add a seat to invite someone. code: SEAT_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example addSeatUrl: /api/auth/hosted/add-seat?organizationId=Jq3xT9mLw2Vb8RnC5sYd0fKe OrganizationInvitationConflict: description: They are already a member, or already have an invitation waiting. Or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: already: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: They're already a member of this organization. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example invited: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: They already have an invitation waiting. Cancel it to send a new one. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example OrganizationOrInvitationNotFound: description: The organization does not exist or is not visible to the caller, or it has no such invitation. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: organization: value: type: https://open.bot/errors/organization-not-found title: Organization not found. status: 404 detail: Couldn't find that organization. code: ORGANIZATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example invitation: value: type: https://open.bot/errors/invitation-not-found title: Invitation not found. status: 404 detail: Couldn't find that invitation. code: INVITATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvitationNotFound: description: There is no such invitation, or it was sent to another address. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: invitation: value: type: https://open.bot/errors/invitation-not-found title: Invitation not found. status: 404 detail: Couldn't find that invitation. Check that you're signed in with the address it was sent to. code: INVITATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvitationNotWaiting: description: The invitation expired, was canceled or was already answered. Or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: expired: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: This invitation has expired. Ask whoever invited you to send a new one. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example AccountDeletionSignInOnly: description: The request was signed with an API key rather than by the person signed in to OpenBot or its app. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: key: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: An API key can't delete an account. Sign in to OpenBot to do this. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example AccountDeletionForbidden: description: The session signed in more than 10 minutes ago, so the person signs in again first (REAUTHENTICATE). Or the request was signed with an API key. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: reauthenticate: value: type: https://open.bot/errors/reauthenticate title: Sign in again. status: 403 detail: To delete your account, sign in again first. code: REAUTHENTICATE category: auth retryable: false requestId: req_example traceId: trace_example key: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: An API key can't delete an account. Sign in to OpenBot to do this. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example AccountDeletionConflict: description: 'An organization stops the account being deleted (ACCOUNT_DELETION_BLOCKED): blockers lists each. Or another request is deleting the account right now (ACCOUNT_DELETION_UNDER_WAY): send it again in a moment. Or the Idempotency-Key was already used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/AccountDeletionProblem' examples: blocked: value: type: https://open.bot/errors/account-deletion-blocked title: Deal with your organizations first. status: 409 detail: You're the only owner of Acme. Make someone else an owner, or delete the organization, then try again. code: ACCOUNT_DELETION_BLOCKED category: conflict retryable: false requestId: req_example traceId: trace_example blockers: - organizationId: org_acme organizationName: Acme reason: only_owner underWay: value: type: https://open.bot/errors/account-deletion-under-way title: Your account is already being deleted. status: 409 detail: Your account is already being deleted. Try again in a moment. code: ACCOUNT_DELETION_UNDER_WAY category: conflict retryable: true requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example AccountDeletionNotConfirmed: description: 'The email address isn''t the one the person signs in with, or the words aren''t delete my account, or immediate isn''t true (an app from before deleting was immediate: update OpenBot).' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: email: value: type: https://open.bot/errors/account-deletion-not-confirmed title: The confirmation doesn't match. status: 422 detail: That isn't the email address you sign in with. code: ACCOUNT_DELETION_NOT_CONFIRMED category: validation retryable: false requestId: req_example traceId: trace_example phrase: value: type: https://open.bot/errors/account-deletion-not-confirmed title: The confirmation doesn't match. status: 422 detail: Type delete my account to confirm. code: ACCOUNT_DELETION_NOT_CONFIRMED category: validation retryable: false requestId: req_example traceId: trace_example updateOpenBot: value: type: https://open.bot/errors/account-deletion-not-confirmed title: The confirmation doesn't match. status: 422 detail: Update OpenBot to delete your account. Deleting is now immediate. code: ACCOUNT_DELETION_NOT_CONFIRMED category: validation retryable: false requestId: req_example traceId: trace_example AccountDeletionIncomplete: description: The deletion stopped partway (ACCOUNT_DELETION_INCOMPLETE). What was deleted stays deleted. Send the request again to finish it; the server also finishes it on its own. headers: X-Request-Id: $ref: '#/components/headers/RequestId' Retry-After: description: Seconds to wait before sending it again. schema: type: integer minimum: 0 content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: incomplete: value: type: https://open.bot/errors/account-deletion-incomplete title: Your account isn't fully deleted yet. status: 503 detail: Your account is partly deleted. Try again to finish deleting it. code: ACCOUNT_DELETION_INCOMPLETE category: internal retryable: true requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example AccountDeletionUnderWay: description: Deleting an account is immediate, so it can't be cancelled (ACCOUNT_DELETION_UNDER_WAY). Or the Idempotency-Key was already used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: underWay: value: type: https://open.bot/errors/account-deletion-under-way title: Your account is already being deleted. status: 409 detail: Your account is already being deleted, so it can't be cancelled. code: ACCOUNT_DELETION_UNDER_WAY category: conflict retryable: false requestId: req_example traceId: trace_example InvalidTeam: description: The name, the description or the parent is missing or malformed, the parent is not a team that can hold this one, or the Idempotency-Key is malformed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: name: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A name of 1 to 100 characters is required. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example parent: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A team can't sit under itself or under a team beneath it. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example TeamConflict: description: Another team of the organization has that name. Or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: nameTaken: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Another team here already has that name. Choose another. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example TeamNotFound: description: The organization or the team does not exist or is not visible to the caller. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: organization: value: type: https://open.bot/errors/organization-not-found title: Organization not found. status: 404 detail: Couldn't find that organization. code: ORGANIZATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example team: value: type: https://open.bot/errors/team-not-found title: Team not found. status: 404 detail: Couldn't find that team. code: TEAM_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example TeamForbidden: description: 'The caller may not change this team: they are neither an owner or an admin of the organization nor one of the team''s maintainers. Or the team comes from the company''s directory, which is where it is changed.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notAllowed: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an admin of this organization or a maintainer of this team can change it. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example directory: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: This team comes from your company's directory. Change its people there. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example InvalidTeamMember: description: The role is missing or malformed, or the Idempotency-Key is. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: role: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A role of maintainer or member is required. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example TeamOrPersonNotFound: description: The organization or the team does not exist or is not visible to the caller, or the person is not a member of the organization. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: team: value: type: https://open.bot/errors/team-not-found title: Team not found. status: 404 detail: Couldn't find that team. code: TEAM_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example person: value: type: https://open.bot/errors/person-not-found title: Person not found. status: 404 detail: They aren't a member of this organization. Add them to the organization first. code: PERSON_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidTeamModels: description: The models are missing, empty, repeated or malformed, one is not a model the organization's catalogue offers, or the Idempotency-Key is malformed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unknown: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: openai/claude-x isn't a model this organization offers. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example empty: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Choose at least one model. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example TeamModelsAdminOnly: description: 'The caller is not an owner or an admin of the organization: a team''s maintainers don''t change its models. Or the organization requires signing in through the company''s identity provider and the caller hasn''t (SSO_REQUIRED).' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notAdmin: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an admin of this organization can change a team's models. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example ssoRequired: value: type: https://open.bot/errors/sso-required title: Sign in through your company's identity provider. status: 403 detail: This organization requires signing in through your company's identity provider. Sign in with your work email to continue. code: SSO_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example ApprovalsOwnOnly: description: 'The caller asked about somebody else''s approvals, questions, preferences or rules, which only that person may read or change: an administrator can''t either.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can see or answer what their Bots are waiting on. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example ApprovalRefused: description: The request is malformed, or the approval, question or rule can't take it as it stands. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: alreadyDecided: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: This request was already decided. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example asksEveryTime: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Your admin set this to ask every time. Allow it once, or deny it. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example customRulesOff: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Your workspace has switched custom rules off, so personal rules cannot be edited. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example ApprovalsForbidden: description: The caller asked about somebody else's, or an administrator hasn't turned Custom rules on for them, which saving a rule or a preference of their own needs. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can see or answer what their Bots are waiting on. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example customRules: value: type: https://open.bot/errors/capability-required title: An admin hasn't turned this on for you. status: 403 detail: Your admin hasn't turned on Custom rules for you. code: CAPABILITY_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example capability: customRules ApprovalNotFound: description: The person has no such approval, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/approval-not-found title: Approval not found. status: 404 detail: This approval could not be found. code: APPROVAL_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example QuestionNotFound: description: The person has no such question waiting, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/question-not-found title: Question not found. status: 404 detail: This approval could not be found. code: QUESTION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ApprovalRuleNotFound: description: There is no such rule in force, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/approval-rule-not-found title: Approval rule not found. status: 404 detail: This approval could not be found. code: APPROVAL_RULE_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ConversationGrantNotFound: description: The person allowed no such thing for a conversation, or turned it off already, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/conversation-grant-not-found title: Conversation approval not found. status: 404 detail: This approval could not be found. code: CONVERSATION_GRANT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidApprovalRuleDrafts: description: The rules are malformed, or one does not match a real tool, kind of action or Bot. The problem's problems member lists each one as its rule (row, counted from 1), its field and a message. Nothing is saved. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: noSuchTool: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: 'the tool: "mcp/gmail/*" matches no tool: no tool here starts with mcp/. An app''s tool is /, such as composio-gmail/*.' code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example ReviewerGuidanceRefused: description: 'The words are missing or too long, or they do not read as guidance about reviewing a Bot''s actions: they try to switch built-in safety off, or are about something else. Nothing is saved.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: weakensSafety: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Guidance can't switch off safety or tell the reviewer to let everything through. Say what it should ask about, or what is routine. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example ReviewerGuidanceReplayUnavailable: description: 'The replay cannot run here: the deployment has no model for auto-review, or it keeps no requests to test against.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: noModel: value: type: https://open.bot/errors/model-not-configured title: OpenBot has no model to answer with. status: 503 detail: OpenBot needs a model key to run auto-review. Add one in the Vault. code: MODEL_NOT_CONFIGURED category: dependency retryable: false requestId: req_example traceId: trace_example noRequests: value: type: https://open.bot/errors/no-trail title: There is no history to test against. status: 503 detail: This OpenBot keeps no requests to test against. code: NO_TRAIL category: dependency retryable: false requestId: req_example traceId: trace_example BoundariesNotSaved: description: The boundaries could not be saved, so the previous ones still apply. Saving again may work. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notSaved: value: type: https://open.bot/errors/service-unavailable title: A service OpenBot depends on is unavailable. status: 503 detail: Couldn't save that rule. The previous boundary still applies. code: SERVICE_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example WhatIfActionNotUnderstood: description: The action the model named still failed its check on its second try, so none is given. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notUnderstood: value: type: https://open.bot/errors/action-not-understood title: Couldn't turn that question into one action. status: 422 detail: Couldn't turn that into one action. Ask it another way, or set the action yourself. code: ACTION_NOT_UNDERSTOOD category: validation retryable: false requestId: req_example traceId: trace_example AuditEventNotFound: description: No audit event has that id, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/audit-event-not-found title: Audit event not found. status: 404 detail: That event isn't on the trail. code: AUDIT_EVENT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example AuditEventNotExplainable: description: The event is not a Bot's computer action or app call, so no control decided it. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notExplainable: value: type: https://open.bot/errors/audit-event-not-explainable title: No control decides this kind of event. status: 422 detail: No control decides this kind of event, so there's nothing to explain. code: AUDIT_EVENT_NOT_EXPLAINABLE category: validation retryable: false requestId: req_example traceId: trace_example InvalidSharedUseRequest: description: The body is malformed, names no Bot, app or reason, holds a character OpenBot can't keep, or names an app the Bot does not hold as a shared app. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Name the Bot, the app and why. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example notHeld: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: That Bot does not use that shared app. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example SharedUseOwnerOnly: description: The caller is neither the Bot's owner nor an administrator. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: ask: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only the Bot's owner can ask. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example see: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only the Bot's owner can see this. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example SharedUseRequestDecided: description: 'The request is not waiting for an answer: it was approved, declined or replaced already, or was never filed. Or the Idempotency-Key was used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: decided: value: type: https://open.bot/errors/shared-use-request-decided title: That request has already been decided. status: 409 detail: That request has already been decided. code: SHARED_USE_REQUEST_DECIDED category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example HostAccessOwnOnly: description: 'The caller asked about somebody else''s folder access, which only that person may read or change: an administrator can''t either.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can see or change their folder access. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example HostAccessForbidden: description: The caller asked for somebody else, or an administrator has not let them use this computer. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can see or change their folder access. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example turnedOff: value: type: https://open.bot/errors/capability-required title: An admin hasn't turned this on for you. status: 403 detail: Your admin hasn't turned on This computer for you. code: CAPABILITY_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example capability: localComputer HostAccessConflict: description: This OpenBot does not run in OpenBot Desktop, Desktop is not connected, the person turned the folder down or let the chooser run out of time, or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: noDesktop: value: type: https://open.bot/errors/host-access-unavailable title: OpenBot Desktop can't be reached. status: 409 detail: Only OpenBot Desktop can open folders on this computer. This OpenBot isn't running in it. code: HOST_ACCESS_UNAVAILABLE category: conflict retryable: false requestId: req_example traceId: trace_example offline: value: type: https://open.bot/errors/host-access-unavailable title: OpenBot Desktop can't be reached. status: 409 detail: The desktop app is offline. Open it, then choose the folder again. code: HOST_ACCESS_UNAVAILABLE category: conflict retryable: false requestId: req_example traceId: trace_example refused: value: type: https://open.bot/errors/host-access-refused title: The folder was not given. status: 409 detail: The folder was not granted. code: HOST_ACCESS_REFUSED category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example HostAccessGrantNotFound: description: The person gave no such folder, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/host-access-grant-not-found title: Folder grant not found. status: 404 detail: That folder grant is not available to revoke. code: HOST_ACCESS_GRANT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example BotAssigned: description: An admin assigned this Team Bot to the caller, so it stays in their list, or the Idempotency-Key was already used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: assigned: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: This Bot was assigned to you by an admin and can't be hidden. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example HandoffNotFound: description: The handoff is not running or queued for the caller, the Bot is not one the caller can see, or the organization is not found. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: finished: value: type: https://open.bot/errors/handoff-not-found title: Handoff not found. status: 404 detail: That delegated task is not running or queued. code: HANDOFF_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example TeamBotNotFound: description: The Bot is not published, not published to the caller, not theirs to publish, or the organization is not found. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/team-bot-not-found title: Team Bot not found. status: 404 detail: That Team Bot was not found. code: TEAM_BOT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidTeamBot: description: A field is out of bounds, the Bot has no real name or description, a person named has never signed in here, nobody is named for people, or the Bot is not published yet. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: undescribed: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Give this Bot a name and a description before publishing it to your team. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example TeamBotForbidden: description: An administrator hasn't turned on Team Bots for the caller. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: switchedOff: value: type: https://open.bot/errors/capability-required title: An admin hasn't turned this on for you. status: 403 detail: Your admin hasn't turned on Team Bots for you. code: CAPABILITY_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example capability: teamBots ComputerUnavailable: description: 'The computer could not be reached, or is still starting: the call was not performed, and is worth sending again in a moment.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ComputerProblem' examples: starting: value: type: https://open.bot/errors/computer-starting title: The computer is still starting. status: 503 detail: The computer is still starting. This call was not performed. Try it again in a moment. code: COMPUTER_STARTING category: dependency retryable: true requestId: req_example traceId: trace_example unreachable: value: type: https://open.bot/errors/service-unavailable title: A service OpenBot depends on is unavailable. status: 503 detail: The computer could not be reached. code: SERVICE_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example restoring: value: type: https://open.bot/errors/computer-restoring title: The computer is being restored. status: 503 detail: This computer is being restored from a saved copy. It's back in a few minutes. code: COMPUTER_RESTORING category: dependency retryable: true requestId: req_example traceId: trace_example OrganizationComputerNotFound: description: The computer named is not one of the organization's Bots' computers, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: computer: value: type: https://open.bot/errors/bot-not-found title: Bot not found. status: 404 detail: Couldn't find that computer. code: BOT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example organization: value: type: https://open.bot/errors/organization-not-found title: Organization not found. status: 404 detail: Couldn't find that organization. code: ORGANIZATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ComputerBotNotFound: description: The Bot does not exist or is not the caller's to use, a file or a control request the call names does not exist, or the organization does not. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ComputerProblem' examples: bot: value: type: https://open.bot/errors/bot-not-found title: Bot not found. status: 404 detail: There is no such Bot. code: BOT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example file: value: type: https://open.bot/errors/not-found title: Not found. status: 404 detail: There is no file at reports/q3.md. code: NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example request: value: type: https://open.bot/errors/control-request-not-found title: Control request not found. status: 404 detail: There is no such request. code: CONTROL_REQUEST_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example organization: value: type: https://open.bot/errors/organization-not-found title: Organization not found. status: 404 detail: Couldn't find that organization. code: ORGANIZATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example WorkspaceSnapshotNotFound: description: The Bot does not exist or is not the caller's to use, the saved copy is not one of this computer's, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ComputerProblem' examples: snapshot: value: type: https://open.bot/errors/not-found title: Not found. status: 404 detail: Couldn't find that saved copy of this computer. code: NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example bot: value: type: https://open.bot/errors/bot-not-found title: Bot not found. status: 404 detail: There is no such Bot. code: BOT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ComputerRestoreConflict: description: A restore of this computer is already running, or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ComputerProblem' examples: running: value: type: https://open.bot/errors/computer-restore-running title: A restore is already running. status: 409 detail: This computer is already being restored. Wait for it to finish, then try again. code: COMPUTER_RESTORE_RUNNING category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example ComputerActionConflict: description: 'Nothing is broken, and the caller has something else to do first: take a new snapshot, wait for the person driving, clear what is in the way, or send the call through its conversation. Or the Idempotency-Key was already used for a different request. Or the call named a step, by threadId and toolCallId, that the server is running now (COMPUTER_STEP_RUNNING: ask again with the same ids for its result) or that was cut off before it answered (COMPUTER_STEP_OUTCOME_UNKNOWN: check before doing it again).' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ComputerProblem' examples: stepRunning: $ref: '#/components/examples/ComputerStepRunningProblemExample' stepOutcomeUnknown: $ref: '#/components/examples/ComputerStepOutcomeUnknownProblemExample' stale: value: type: https://open.bot/errors/computer-snapshot-stale title: The page changed since that snapshot. status: 409 detail: The page changed since that snapshot. Take a new snapshot. code: COMPUTER_SNAPSHOT_STALE category: conflict retryable: false requestId: req_example traceId: trace_example snapshotRequired: true personDriving: value: type: https://open.bot/errors/computer-person-has-control title: A person is driving this computer. status: 409 detail: A person is using the browser. Wait until they hand it back. code: COMPUTER_PERSON_HAS_CONTROL category: conflict retryable: false requestId: req_example traceId: trace_example controlRequestId: 6f1c2b9a-0d4e-4e1b-9a53-1f2e3d4c5b6a unfinished: value: type: https://open.bot/errors/computer-action-unfinished title: The action could not finish. status: 409 detail: Something covers that button. code: COMPUTER_ACTION_UNFINISHED category: conflict retryable: false requestId: req_example traceId: trace_example unfinished: covered needsConversation: value: type: https://open.bot/errors/computer-needs-conversation title: This action needs approval in a conversation. status: 409 detail: This action needs your approval in a chat with this Bot. code: COMPUTER_NEEDS_CONVERSATION category: conflict retryable: false requestId: req_example traceId: trace_example gone: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: That element is no longer on the page. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example ComputerControlConflict: description: The control request has already ended or is somebody else's, or the Idempotency-Key was already used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ComputerProblem' examples: ended: value: type: https://open.bot/errors/control-request-conflict title: That control request can't do this now. status: 409 detail: That request has already ended. code: CONTROL_REQUEST_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example ComputerSecretsOff: description: An administrator has not turned the password manager on for the caller, or the caller holds no role in this organization. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ComputerProblem' examples: 'off': value: type: https://open.bot/errors/capability-required title: An admin hasn't turned this on for you. status: 403 detail: Your admin hasn't turned on saved logins for you. code: CAPABILITY_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example capability: passwordManager noRole: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Authorization required. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example ComputerAnswerNotKept: description: 'Either the action was already done with this Idempotency-Key, and its answer is never kept, so it is not sent again (ANSWER_NOT_KEPT: it ran once; send a new key to run it again). Or the caller has something else to do first: take a new snapshot, wait for the person driving, clear what is in the way, or send the call through its conversation. Or the Idempotency-Key was already used for a different request. Or the call named a step, by threadId and toolCallId, that the server is running now (COMPUTER_STEP_RUNNING: ask again with the same ids for its result) or that was cut off before it answered (COMPUTER_STEP_OUTCOME_UNKNOWN: check before doing it again).' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ComputerProblem' examples: stepRunning: $ref: '#/components/examples/ComputerStepRunningProblemExample' stepOutcomeUnknown: $ref: '#/components/examples/ComputerStepOutcomeUnknownProblemExample' answerNotKept: value: type: https://open.bot/errors/answer-not-kept title: That was already done, and its answer is not kept. status: 409 detail: That was already done, and what it answered is never kept. Use a new Idempotency-Key to do it again. code: ANSWER_NOT_KEPT category: conflict retryable: false requestId: req_example traceId: trace_example personDriving: value: type: https://open.bot/errors/computer-person-has-control title: A person is driving this computer. status: 409 detail: A person is driving this computer. Wait until they hand it back. code: COMPUTER_PERSON_HAS_CONTROL category: conflict retryable: false requestId: req_example traceId: trace_example controlRequestId: req_1 ComputerActionRefused: description: The boundary, a network rule or the workspace refused the action, and nothing was done. rule names the boundary rule when one did. Or the caller holds no role in this organization. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ComputerProblem' examples: rule: value: type: https://open.bot/errors/computer-action-refused title: The action was refused. status: 403 detail: A rule stops Bots from clicking Delete. code: COMPUTER_ACTION_REFUSED category: permission retryable: false requestId: req_example traceId: trace_example rule: deny click when element.name == "Delete" address: value: type: https://open.bot/errors/computer-action-refused title: The action was refused. status: 403 detail: That address is on this computer's own network, which Bots may not open. code: COMPUTER_ACTION_REFUSED category: permission retryable: false requestId: req_example traceId: trace_example rule: null noRole: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Authorization required. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example BrowserInvalidRequest: description: The body does not match, the address is not a web address, a narration time does not fit the recording, or the Idempotency-Key is missing. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notWeb: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Only web addresses open here. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example phraseTimes: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: That phrase's times do not fit the recording, so it was not added. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example BrowserForbidden: description: The sign-in does not allow this, the browser is somebody else's own, or nothing can be recorded in a Bot's browser here. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can use their browser. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example sharedComputer: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Recording isn't available in a Bot's browser here, because the Bots share one computer. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example BrowserUnfinished: description: 'The server could not complete the request, or did part of it: a browser that was cleared whose record could not be written, or a Recorder that could not be connected.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: cleared: value: type: https://open.bot/errors/browser-unfinished title: The browser couldn't finish. status: 500 detail: Your browser was cleared, but OpenBot couldn't finish. Clear it again. code: BROWSER_UNFINISHED category: internal retryable: true requestId: req_example traceId: trace_example internal: value: type: https://open.bot/errors/internal-server-error title: Unexpected server error. status: 500 detail: Unexpected server error. code: INTERNAL_SERVER_ERROR category: internal retryable: true requestId: req_example traceId: trace_example BrowserNotAnswering: description: The browser, or its computer, took too long to answer. The page may still be loading. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: slow: value: type: https://open.bot/errors/browser-not-answering title: The browser is taking too long to answer. status: 504 detail: The Bot's browser is taking too long to answer. The page may still be loading. code: BROWSER_NOT_ANSWERING category: dependency retryable: true requestId: req_example traceId: trace_example BrowserConflict: description: The caller does not hold control of the Bot's computer, the recording is not theirs or not running, the browser is not open, or the Idempotency- Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: takeControl: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Take control of the Bot's browser first. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example someoneElses: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: Someone else is recording in this Bot's browser, so only they can do that. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example keyReused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. Use a new key for a new write. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example BrowserRequestNotJson: description: The body was not sent as JSON. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notJson: value: type: https://open.bot/errors/unsupported-media-type title: Unsupported media type. status: 415 detail: Send the request as JSON. code: UNSUPPORTED_MEDIA_TYPE category: validation retryable: false requestId: req_example traceId: trace_example BrowserUnreachable: description: The browser's computer could not be reached, or the browser failed and said why. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unreachable: value: type: https://open.bot/errors/browser-unreachable title: The browser couldn't be reached. status: 502 detail: The Bot's browser could not be reached. Try again. code: BROWSER_UNREACHABLE category: dependency retryable: true requestId: req_example traceId: trace_example BrowserUnavailable: description: 'This OpenBot cannot run the browser: it has no way to run a person''s browser, or its setup stops one opening.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unavailable: value: type: https://open.bot/errors/browser-unavailable title: This OpenBot can't run that browser. status: 503 detail: This OpenBot cannot open a browser for you. code: BROWSER_UNAVAILABLE category: dependency retryable: false requestId: req_example traceId: trace_example BrowserTooManyConnections: description: Too many Recorder connections were asked for at once. Or the caller is asking too fast for the limit every signed-in operation has (TooManyRequests), answered with RATE_LIMITED and Retry-After. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: tooMany: value: type: https://open.bot/errors/rate-limited title: Too many requests. status: 429 detail: Too many recordings were started at once. Wait a few minutes and try again. code: RATE_LIMITED category: rate_limit retryable: true requestId: req_example traceId: trace_example WindowsComputerNotFound: description: 'There is no Windows computer here: Windows computers are not on for this OpenBot, or the organization does not exist.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/not-found title: Not found. status: 404 detail: Windows computers aren't on for this OpenBot. code: NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example WindowsComputerConflict: description: 'The Windows computer can''t do this now: a recording is already running, or none is, or the Windows computer refused. Or the Idempotency-Key was already used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: recording: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: A recording is already running on the Windows computer. Stop it first. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. Use a new key for a new write. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example WindowsComputerUnavailable: description: 'The Windows computer didn''t answer, or Learning isn''t set up or didn''t answer: nothing was done, and it is worth trying again in a moment.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: windowsComputer: value: type: https://open.bot/errors/service-unavailable title: A service OpenBot depends on is unavailable. status: 503 detail: The Windows computer isn't answering. Try again. code: SERVICE_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example learning: value: type: https://open.bot/errors/learning-unavailable title: Learning is unavailable. status: 503 detail: Couldn't reach Learning to start the recording. Try again. code: LEARNING_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example TooManyWindowsComputerEnrollmentCodes: description: Too many enrollment codes are live for this person at once. Or the caller is asking too fast for the limit every signed-in operation has (TooManyRequests), answered with RATE_LIMITED and Retry-After. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: codes: value: type: https://open.bot/errors/rate-limited title: Too many requests. status: 429 detail: Too many codes were asked for at once. Wait a few minutes and try again. code: RATE_LIMITED category: rate_limit retryable: true requestId: req_example traceId: trace_example InvalidWindowsComputerEnrollmentCode: description: The request was not complete, the Idempotency-Key is missing, or the code is unknown, expired or already used, which all read the same. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: code: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: This code has expired or was already used. Make a new one in OpenBot. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example SignInBotNotFound: description: There is no such Bot, or not one whose computer the person may use, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: bot: value: type: https://open.bot/errors/bot-not-found title: Bot not found. status: 404 detail: There is no such Bot. code: BOT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example organization: value: type: https://open.bot/errors/organization-not-found title: Organization not found. status: 404 detail: Couldn't find that organization. code: ORGANIZATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example SignInComputersUnavailable: description: This OpenBot has no computers for Bots, so there is nowhere to sign a Bot in. Nothing was opened. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: noComputers: value: type: https://open.bot/errors/service-unavailable title: A service OpenBot depends on is unavailable. status: 503 detail: This OpenBot has no computers for Bots. code: SERVICE_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example SignInRequestNotFound: description: The person has no such sign-in request, the saved login named is not one of theirs for this site, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/sign-in-request-not-found title: Sign-in request not found. status: 404 detail: There is no such sign-in request. code: SIGN_IN_REQUEST_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example otherSite: value: type: https://open.bot/errors/saved-login-not-found title: Saved login not found. status: 404 detail: That saved login is not for this site. code: SAVED_LOGIN_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example organization: value: type: https://open.bot/errors/organization-not-found title: Organization not found. status: 404 detail: Couldn't find that organization. code: ORGANIZATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example SignInForbidden: description: The request is somebody else's, which only they may answer, or saved passwords are turned off for this person. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can see or answer their sign-in requests. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example managerOff: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Saved passwords are turned off for this workspace. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example SignInRequestConflict: description: The request is no longer in a state this action applies to, or the site did not take what was typed after the request had moved on. Or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: closed: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: This sign-in request is no longer open. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example SavedLoginNotFound: description: The person has no such saved login, it was deleted, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/saved-login-not-found title: Saved login not found. status: 404 detail: There is no such saved login. code: SAVED_LOGIN_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example organization: value: type: https://open.bot/errors/organization-not-found title: Organization not found. status: 404 detail: Couldn't find that organization. code: ORGANIZATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example RecorderSecretConflict: description: 'This write was already done with this Idempotency-Key. Its answer held a credential, which is never kept, so it cannot be sent again: make the request again with a new key. Or the key was used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notKept: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: That write was already done, and its answer held a credential that is never kept. Use a new Idempotency-Key to make a new one. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example reused: value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example RecorderJsonOnly: description: The body was not sent as application/json, which a cross-site form cannot send. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: json: value: type: https://open.bot/errors/unsupported-media-type title: Unsupported media type. status: 415 detail: Send the request as JSON. code: UNSUPPORTED_MEDIA_TYPE category: validation retryable: false requestId: req_example traceId: trace_example TooManyRecorderConnectCodes: description: Too many connect codes are live for this person at once. Or the caller is asking too fast for the limit every signed-in operation has (TooManyRequests), answered with RATE_LIMITED and Retry-After. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: codes: value: type: https://open.bot/errors/rate-limited title: Too many requests. status: 429 detail: Too many connection codes were asked for at once. Wait a few minutes and try again. code: RATE_LIMITED category: rate_limit retryable: true requestId: req_example traceId: trace_example RecorderConnectionNotFound: description: 'There is no such live connection: it was never the person''s, or it has already ended. Or the organization does not exist.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/recorder-connection-not-found title: Recorder connection not found. status: 404 detail: That connection was not found. code: RECORDER_CONNECTION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example organization: value: type: https://open.bot/errors/organization-not-found title: Organization not found. status: 404 detail: Couldn't find that organization. code: ORGANIZATION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example RecordingsUnavailable: description: This OpenBot keeps no recordings. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: 'off': value: type: https://open.bot/errors/recordings-unavailable title: Recordings aren't available here. status: 503 detail: Recordings are not available here. code: RECORDINGS_UNAVAILABLE category: dependency retryable: false requestId: req_example traceId: trace_example InvalidRecorderConnectCode: description: The request was not complete, the Idempotency-Key is missing, or the code is unknown, expired or already used, which all read the same. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: code: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: This connection code has expired or was already used. Choose Connect this browser in OpenBot again. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example RecorderOriginRefused: description: The request did not come from the OpenBot Recorder extension, by its browser Origin. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: origin: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only the OpenBot Recorder extension can finish connecting. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example RecorderSignedOut: description: 'The request carries no live connection token: the connection was ended, is unknown, the person was removed, or their organization sign-in ended. reason says which, and the Recorder forgets its connection.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/RecorderProblem' examples: revoked: value: type: https://open.bot/errors/recorder-signed-out title: This browser's Recorder is no longer connected. status: 401 detail: This browser is no longer connected to OpenBot. Connect it again. code: RECORDER_SIGNED_OUT category: auth retryable: false requestId: req_example traceId: trace_example reason: revoked RecorderAuthorityUnavailable: description: 'The organization''s sign-in server could not answer for now. Never a sign-out: the Recorder keeps its connection and tries again.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unavailable: value: type: https://open.bot/errors/recorder-authority-unavailable title: The organization's sign-in could not answer. status: 503 detail: Your organization could not answer. Try again in a moment. code: RECORDER_AUTHORITY_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example InvalidLearningSettings: description: 'A setting is malformed: a space id that can''t be one, an unknown field, or no change at all.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: badSpace: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A Learning container ID is lower-case letters, numbers and single hyphens. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example AutomaticLearningOff: description: OpenBot doesn't assign a Learning space by itself here. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: 'off': value: type: https://open.bot/errors/automatic-learning-off title: Automatic assignment is off. status: 409 detail: Automatic Learning assignment is switched off. code: AUTOMATIC_LEARNING_OFF category: conflict retryable: false requestId: req_example traceId: trace_example LearningAdminOnly: description: The caller is not an administrator, or the backend's licence doesn't include Learning. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notAdmin: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only an admin can do this. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example notLicensed: value: type: https://open.bot/errors/learning-not-enabled title: Learning isn't licensed. status: 403 detail: The backend's licence doesn't include Learning. code: LEARNING_NOT_ENABLED category: permission retryable: false requestId: req_example traceId: trace_example LearningSpaceNotFound: description: The Learning space assigned doesn't exist in the backend yet. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/learning-space-not-found title: Learning space not found. status: 404 detail: This Learning container doesn't exist in the backend yet. code: LEARNING_CONTAINER_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example LearningOff: description: Learning is switched off in the backend, or it has no model to learn with. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: 'off': value: type: https://open.bot/errors/learning-off title: Learning is off. status: 409 detail: Learning is switched off in the backend. Turn it on there (learning.enabled in its Helm chart). code: LEARNING_OFF category: conflict retryable: false requestId: req_example traceId: trace_example LearningBusy: description: The backend is busy. Asking again in a minute may work. Or the caller is asking too fast for the limit every signed-in operation has (TooManyRequests), answered with Retry-After. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: busy: value: type: https://open.bot/errors/rate-limited title: Try again shortly. status: 429 detail: The backend is busy. Try again in a minute. code: RATE_LIMITED category: rate_limit retryable: true requestId: req_example traceId: trace_example LearningUnreachable: description: The backend's Learning didn't answer. Asking again may work. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unreachable: value: type: https://open.bot/errors/learning-unreachable title: Learning didn't answer. status: 502 detail: Couldn't reach Learning in the backend. Try again. code: LEARNING_UNREACHABLE category: dependency retryable: true requestId: req_example traceId: trace_example LearningUnavailable: description: OpenBot couldn't read Learning from the backend just now. Asking again may work. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unavailable: value: type: https://open.bot/errors/learning-unavailable title: Learning is unavailable. status: 503 detail: Couldn't read your Skills from the backend just now. Try again. code: LEARNING_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example LearnedSkillNotFound: description: No skill by that name is published in the space, or none is assigned, or the person has none by that name. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/learned-skill-not-found title: Skill not found. status: 404 detail: This skill doesn't exist. code: LEARNED_SKILL_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example SharingRequestNotFound: description: That person made no request to share a skill by that name. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/sharing-request-not-found title: Sharing request not found. status: 404 detail: This sharing request doesn't exist. code: SHARING_REQUEST_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example SharingRequestChanged: description: The skill changed after the administrator read the request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: changed: value: type: https://open.bot/errors/sharing-request-changed title: The skill changed. status: 409 detail: This skill changed after you opened it. Open it again to see the new version. code: SHARING_REQUEST_CHANGED category: conflict retryable: false requestId: req_example traceId: trace_example LearningOwnOnly: description: The caller asked about somebody else's Learning, which only that person may read or change. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can see their Learning. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example InvalidLearningChoice: description: The choice is malformed, empty, or sets automatic approval outside a single-person OpenBot. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: badMode: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Choose closed, open or choose for your skills. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example SharingNotAllowed: description: The caller asked about somebody else's skills, or tried to open skills to every Bot while an administrator hasn't allowed it. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: sharingOff: value: type: https://open.bot/errors/sharing-not-allowed title: Sharing isn't on. status: 403 detail: An admin hasn't turned on sharing skills with every Bot, so your skills stay with your own Bots. code: SHARING_NOT_ALLOWED category: permission retryable: false requestId: req_example traceId: trace_example LearningOffForPerson: description: Automatic learning is off, so the person has no skills to change. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: 'off': value: type: https://open.bot/errors/learning-off title: Learning is off. status: 409 detail: An admin has turned off automatic learning, so you have no skills to change. code: LEARNING_OFF category: conflict retryable: false requestId: req_example traceId: trace_example SharingNotNeeded: description: The skill isn't one the person approved for themselves, so its Open switch shares it without a request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notNeeded: value: type: https://open.bot/errors/sharing-not-needed title: No request needed. status: 409 detail: Only a skill you approved yourself needs an admin to share it. Share any other skill with its Open switch. code: SHARING_NOT_NEEDED category: conflict retryable: false requestId: req_example traceId: trace_example LearningProposalNotFound: description: No proposal has that id in the space, the space isn't one the caller may reach, or none is assigned. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: gone: value: type: https://open.bot/errors/learning-proposal-not-found title: Proposal not found. status: 404 detail: The backend no longer has this skill. Refresh the list. code: LEARNING_PROPOSAL_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example LearningProposalReviewed: description: The proposal was already reviewed the other way. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: reviewed: value: type: https://open.bot/errors/learning-proposal-reviewed title: Already reviewed. status: 409 detail: This skill was already reviewed. Refresh the list to see it. code: LEARNING_PROPOSAL_REVIEWED category: conflict retryable: false requestId: req_example traceId: trace_example LearningInsightNotFound: description: No insight has that id in the space, or the space isn't one the caller may reach. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: gone: value: type: https://open.bot/errors/learning-insight-not-found title: Insight not found. status: 404 detail: The backend no longer has this insight. Refresh the skill. code: LEARNING_INSIGHT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example LearningCannotRun: description: 'Learning can''t start: it is switched off in the backend, or it has no model to learn with.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: 'off': value: type: https://open.bot/errors/learning-off title: Learning is off. status: 409 detail: Learning is switched off in the backend. Turn it on there (learning.enabled in its Helm chart). code: LEARNING_OFF category: conflict retryable: false requestId: req_example traceId: trace_example noModel: value: type: https://open.bot/errors/learning-model-not-configured title: Learning has no model. status: 409 detail: The backend has no Learning model yet. Give its Learning agent a model and key, then try again. code: LEARNING_MODEL_NOT_CONFIGURED category: conflict retryable: false requestId: req_example traceId: trace_example LearningReviewNotYours: description: 'The caller may not decide here: an administrator reviews what people''s recordings propose, or the space is somebody else''s and the caller isn''t an administrator, or only the person may start Learning in their own space.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: adminsReview: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: An admin reviews these skills. You can't review them. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example LearningProposalUnnamed: description: The proposed skill has no name, so its approval can't be recorded. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unnamed: value: type: https://open.bot/errors/learning-proposal-unnamed title: The skill has no name. status: 422 detail: This skill has no name OpenBot can record, so it can't be approved here. code: LEARNING_PROPOSAL_UNNAMED category: validation retryable: false requestId: req_example traceId: trace_example MemoryOwnOnly: description: 'The caller asked about somebody else''s memories, which only that person may read or change: an administrator can''t either.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only they can see their memories. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example MemoryNotFound: description: No memory of the person's has that id, it was forgotten, this OpenBot keeps no memory, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/memory-not-found title: Memory not found. status: 404 detail: This memory could not be found. code: MEMORY_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidMemory: description: A field is missing, blank once trimmed or too long, the change is empty, or it pauses or reviews a memory only the backend holds. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notPausable: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A memory kept in the backend can be edited or forgotten, not paused. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example MemoryUnavailable: description: The memory is one only the backend holds, and the backend can't be reached right now. Asking again may work. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unreachable: value: type: https://open.bot/errors/memory-unavailable title: Memory is unavailable. status: 503 detail: This memory is kept in OpenBot's backend, which cannot be reached right now. Try again. code: MEMORY_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example InvalidMemorySource: description: A field is missing or too long, the Bot isn't the person's or doesn't hold that read action, the app isn't connected for them, its policy refused the read, or the source is off or already syncing. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notConnected: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Your Google Drive account is not connected. Connect it under Connections, then sync again. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example MemorySourceNotFound: description: No memory source of the person's has that id, this OpenBot keeps no memory, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/memory-source-not-found title: Memory source not found. status: 404 detail: This memory source could not be found. code: MEMORY_SOURCE_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidBotAgent: description: A field is missing or out of bounds, kind and endpoint don't agree, the address is one this organization may not reach or did not answer a real AG-UI run, the model is not one the catalogue offers, or the agent runs inside OpenBot and so takes no callback token. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: description: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Say what this agent is good at, so your Bots know what to send it. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example unreachable: value: type: https://open.bot/errors/bot-agent-unreachable title: Couldn't reach that agent. status: 400 detail: Couldn't reach an agent at that address. Check the address and its key, then try again. code: BOT_AGENT_UNREACHABLE category: validation retryable: false requestId: req_example traceId: trace_example BotAgentForbidden: description: The caller may not manage this agent, or only an admin may make an agent public. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: You can't manage this agent. status: 403 detail: You can't manage this agent. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example publicAdminOnly: value: type: https://open.bot/errors/permission-denied title: Only an admin can share an agent with everyone. status: 403 detail: Only an admin can share an agent with everyone. Keep it private to use it with your own Bots. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example BotAgentNotFound: description: The agent does not exist, was deleted, or is not visible to the caller, or the organization is not. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/bot-agent-not-found title: Agent not found. status: 404 detail: Couldn't find that agent. code: BOT_AGENT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example BotAgentInUse: description: The agent is the only agent of a Bot, or a repeated request with the same Idempotency-Key had a different body. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: onlyAgent: value: type: https://open.bot/errors/bot-agent-in-use title: A Bot runs on this agent alone. status: 409 detail: Quote Checker and 1 other Bot run on this agent alone. Give them another agent first, then delete this one. code: BOT_AGENT_IN_USE category: conflict retryable: false requestId: req_example traceId: trace_example InvalidBotDelegation: description: A field is missing or out of bounds, mode self names other than one agent, an agent named is not one the caller can see, or the model or effort is not one the catalogue offers. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: selfTakesOne: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A Bot that works on its own runs on one agent. Turn on handing work to agents to choose more. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example unknownAgent: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Couldn't find one of those agents. Choose from the agents you can see. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example ManagementUnavailable: description: 'CopilotKit management doesn''t apply here: the personal edition, OpenBot Cloud, or an organization other than `default`.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unavailable: value: type: https://open.bot/errors/management-unavailable title: Managed updates aren't available here. status: 404 detail: Managed updates aren't available for this OpenBot. code: MANAGEMENT_UNAVAILABLE category: not_found retryable: false requestId: req_example traceId: trace_example ManagementConflict: description: This OpenBot is already connected, CopilotKit's management service refused to connect it, or the Idempotency-Key was used for a different request. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: connected: value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: OpenBot already gets managed updates. To stop them, uninstall the management agent with Helm. code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example refused: value: type: https://open.bot/errors/management-refused title: The managed updates service refused this OpenBot. status: 409 detail: The licence in COPILOTKIT_LICENSE_TOKEN wasn't accepted. Check it, or contact OpenBot by CopilotKit. code: MANAGEMENT_REFUSED category: conflict retryable: false requestId: req_example traceId: trace_example ManagementServiceFailed: description: CopilotKit's management service couldn't be reached, or answered in a way OpenBot doesn't understand. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unreachable: value: type: https://open.bot/errors/management-service-failed title: The managed updates service didn't answer. status: 502 detail: Couldn't reach the managed updates service at enroll.bot.copilotkit.ai. Check that OpenBot can reach it, then try again. code: MANAGEMENT_SERVICE_FAILED category: dependency retryable: true requestId: req_example traceId: trace_example MoveUnavailable: description: 'Moving isn''t served here: exports only by an OpenBot on the person''s own computer, imports only by OpenBot Cloud.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: unavailable: value: type: https://open.bot/errors/move-unavailable title: Moving isn't available here. status: 404 detail: Importing is available only on OpenBot Cloud. code: MOVE_UNAVAILABLE category: not_found retryable: false requestId: req_example traceId: trace_example TooManyMoves: description: Too many exports, imports or parts at once for one person. Or the caller is asking too fast for the limit every signed-in operation has (TooManyRequests). headers: Retry-After: description: Seconds to wait. schema: type: integer minimum: 1 X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: tooMany: value: type: https://open.bot/errors/rate-limited title: Too many requests. status: 429 detail: That's a lot of uploads at once. Wait a minute, then go on. code: RATE_LIMITED category: rate_limit retryable: true requestId: req_example traceId: trace_example ExportNotFound: description: The export doesn't exist, has been removed, or isn't the caller's. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notFound: value: type: https://open.bot/errors/export-not-found title: Export not found. status: 404 detail: That export isn't here any more. Start the move again. code: EXPORT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ExportNotReady: description: The export is still being written, or failed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: preparing: value: type: https://open.bot/errors/export-not-ready title: The export isn't ready. status: 409 detail: The export is still being prepared. Try again when it's ready. code: EXPORT_NOT_READY category: conflict retryable: true requestId: req_example traceId: trace_example RangeNotSatisfiable: description: The Range asked for lies outside the part. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: outside: value: type: https://open.bot/errors/range-not-satisfiable title: That range isn't in the part. status: 416 detail: The part is 33554432 bytes long. code: RANGE_NOT_SATISFIABLE category: validation retryable: false requestId: req_example traceId: trace_example MoveNotAllowed: description: This organization doesn't let the caller use Bots, so nothing can move into it (MOVE_NOT_ALLOWED). Or the caller holds no role in it, or it requires signing in through the company's identity provider and the caller hasn't (SSO_REQUIRED). headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notAllowed: value: type: https://open.bot/errors/move-not-allowed title: You can't move Bots into this organization. status: 403 detail: An admin of Acme hasn't let you use Bots there, so your Bots can't move in. Ask an admin of Acme to turn on Use Bots for you. code: MOVE_NOT_ALLOWED category: permission retryable: false requestId: req_example traceId: trace_example ImportNotFound: description: The import doesn't exist, or isn't the caller's. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notFound: value: type: https://open.bot/errors/import-not-found title: Import not found. status: 404 detail: That import isn't here. Start the move again. code: IMPORT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ImportConflict: description: 'The import can''t do that in its state: a part doesn''t match the manifest (IMPORT_PART_MISMATCH), part 1 hasn''t arrived (IMPORT_MANIFEST_MISSING), a part is missing (IMPORT_INCOMPLETE), the import hasn''t finished (IMPORT_NOT_FINISHED), or the Idempotency-Key was used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: incomplete: value: type: https://open.bot/errors/import-incomplete title: Some parts haven't arrived. status: 409 detail: Parts 3 and 4 haven't arrived yet. Upload them, then import. code: IMPORT_INCOMPLETE category: conflict retryable: false requestId: req_example traceId: trace_example mismatch: value: type: https://open.bot/errors/import-part-mismatch title: That part doesn't match the bundle. status: 409 detail: Part 2 arrived damaged. Download it again and upload it. code: IMPORT_PART_MISMATCH category: conflict retryable: true requestId: req_example traceId: trace_example ImportBundleRefused: description: 'Part 1 isn''t a bundle this OpenBot reads: not a bundle at all, a format newer than it reads (IMPORT_FORMAT_UNSUPPORTED), larger than maxBundleBytes, or a model key sealed to another import''s key.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: newer: value: type: https://open.bot/errors/import-format-unsupported title: This bundle is newer than OpenBot Cloud reads. status: 422 detail: This bundle was made by a newer OpenBot. Try again once OpenBot Cloud is updated. code: IMPORT_FORMAT_UNSUPPORTED category: validation retryable: false requestId: req_example traceId: trace_example ConversationRunNotFound: description: The conversation does not exist, or the caller is not in it, or this server keeps no record of a run by that id in the conversation. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/conversation-run-not-found title: Run not found. status: 404 detail: Couldn't find that run in this conversation. code: CONVERSATION_RUN_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidWebPushSubscription: description: The request doesn't match the API, or the endpoint is not a browser push service's address. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notAPushService: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: That address isn't a browser push service's, so OpenBot can't send notifications to it. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example WebPushSubscriptionNotFound: description: 'The person has no such subscription in this organization: it was removed already, or never saved. Or the organization does not exist.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/web-push-subscription-not-found title: Subscription not found. status: 404 detail: Subscription not found. code: WEB_PUSH_SUBSCRIPTION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ArtifactsUnavailable: description: This OpenBot has no artifact store set up, or it can't be reached just now. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notSetUp: value: type: https://open.bot/errors/artifacts-unavailable title: Artifacts aren't available. status: 503 detail: This OpenBot has no place to keep artifacts yet. Ask an admin to set up artifact storage. code: ARTIFACTS_UNAVAILABLE category: dependency retryable: false requestId: req_example traceId: trace_example unreachable: value: type: https://open.bot/errors/artifacts-unavailable title: Artifacts aren't available. status: 503 detail: Couldn't reach artifact storage. Try again in a moment. code: ARTIFACTS_UNAVAILABLE category: dependency retryable: true requestId: req_example traceId: trace_example InvalidArtifact: description: A field is missing or malformed, the conversation named as the source isn't one the caller is in, or the Idempotency-Key or If-Match is malformed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: title: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: A title of 1 to 200 characters is required. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example ArtifactContentInvalid: description: The content doesn't fit the artifact's kind, or a page's files don't compile into its page. Nothing was saved. The problem lists every issue by its path (a compile error by the file and line it is in). headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ArtifactContentProblem' examples: content: value: type: https://open.bot/errors/artifact-content-invalid title: That content doesn't fit the artifact's kind. status: 422 detail: |- The slides content isn't valid: - slides[0].blocks[0].src: Use asset: for an image stored with the artifact, an https:// address, or a base64 PNG, JPEG, GIF or WebP data: address code: ARTIFACT_CONTENT_INVALID category: validation retryable: false issues: - path: slides[0].blocks[0].src pointer: /slides/0/blocks/0/src message: 'Use asset: for an image stored with the artifact, an https:// address, or a base64 PNG, JPEG, GIF or WebP data: address' requestId: req_example traceId: trace_example ArtifactNotFound: description: The organization or the artifact does not exist, or the caller can't open it. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: artifact: value: type: https://open.bot/errors/artifact-not-found title: Artifact not found. status: 404 detail: Couldn't find that artifact. code: ARTIFACT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ArtifactForbidden: description: 'The caller can open the artifact but may not do this to it: only people it is shared with to edit can change it, and only its owner can delete it.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: edit: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: You can view this artifact but not edit it. Ask its owner for edit access. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example delete: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only the artifact's owner can delete it. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example ArtifactVersionConflict: description: 'If-Match names a version that is no longer the current one: somebody saved since. currentVersion says which is current; read it, merge and write again.' headers: ETag: $ref: '#/components/headers/ArtifactVersionETag' X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ArtifactVersionConflictProblem' examples: stale: value: type: https://open.bot/errors/artifact-version-conflict title: The artifact changed since you read it. status: 412 detail: This was built on version 3, but the artifact is at version 4 now. Read version 4 and make the change again. code: ARTIFACT_VERSION_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example currentVersion: 4 ArtifactEditFailed: description: An edit's oldText appears nowhere (ARTIFACT_EDIT_NOT_FOUND) or more than once (ARTIFACT_EDIT_NOT_UNIQUE), or the edits leave slides, a dashboard or a sheet that isn't valid JSON of its kind (ARTIFACT_CONTENT_INVALID). Nothing was saved. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ArtifactEditProblem' examples: notFound: value: type: https://open.bot/errors/artifact-edit-not-found title: An edit found nothing to change. status: 422 detail: Edit 2's oldText doesn't appear in the artifact. Nothing was changed. Read the artifact and send the text exactly as it is. code: ARTIFACT_EDIT_NOT_FOUND category: validation retryable: false requestId: req_example traceId: trace_example editIndex: 1 matches: 0 notUnique: value: type: https://open.bot/errors/artifact-edit-not-unique title: An edit matched more than once. status: 422 detail: Edit 1's oldText appears 3 times in the artifact. Nothing was changed. Include more of the text around it so it appears once. code: ARTIFACT_EDIT_NOT_UNIQUE category: validation retryable: false requestId: req_example traceId: trace_example editIndex: 0 matches: 3 ArtifactPatchFailed: description: A JSON Patch operation can't apply, or the result isn't content of the kind. Nothing was saved. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/ArtifactPatchProblem' examples: missingPath: value: type: https://open.bot/errors/artifact-patch-failed title: A patch operation couldn't apply. status: 422 detail: Operation 1 replaces /slides/9, which isn't there. Nothing was changed. code: ARTIFACT_PATCH_FAILED category: validation retryable: false requestId: req_example traceId: trace_example operationIndex: 0 ArtifactVersionNotFound: description: The organization, the artifact or the version does not exist, or the caller can't open the artifact. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: artifact: value: type: https://open.bot/errors/artifact-not-found title: Artifact not found. status: 404 detail: Couldn't find that artifact. code: ARTIFACT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example version: value: type: https://open.bot/errors/artifact-version-not-found title: Version not found. status: 404 detail: This artifact has no version 7. code: ARTIFACT_VERSION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ArtifactAssetNotFound: description: The organization, the artifact or the asset does not exist, or the caller can't open the artifact. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: asset: value: type: https://open.bot/errors/artifact-asset-not-found title: File not found. status: 404 detail: This artifact has no such file. code: ARTIFACT_ASSET_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example SharedArtifactNotFound: description: No such artifact in the organization, or the caller can't view it. The two answer the same, so the answer reveals nothing. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/artifact-not-found title: Artifact not found. status: 404 detail: This artifact doesn't exist, or you can't see it. code: ARTIFACT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ArtifactShareForbidden: description: 'The caller can view the artifact but may not do this: only its owner sets who it is open to, and only its owner and its editors share it.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: viewer: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: You can view this artifact but not share it. Ask its owner for edit access. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example ArtifactSharingConflict: description: 'The sharing can''t change this way. PUBLIC_LINKS_OFF: an admin turned public links off for the organization. PUBLIC_LINKS_UNAVAILABLE: this OpenBot has no public address for artifacts. OUTSIDE_INVITES_OFF: an admin turned outside invitations off. INVITEE_IS_MEMBER: the address belongs to a member of the organization, so share with them instead. OWNER_ACCESS: the owner''s own access can''t be changed. SHARING_LIMIT_REACHED: the artifact has as many people, teams or outside invitations as it can. IDEMPOTENCY_KEY_CONFLICT: the key was used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: publicLinksOff: value: type: https://open.bot/errors/public-links-off title: Public links are off. status: 409 detail: An admin turned off public links for your organization. Share it with people or teams instead. code: PUBLIC_LINKS_OFF category: conflict retryable: false requestId: req_example traceId: trace_example outsideInvitesOff: value: type: https://open.bot/errors/outside-invites-off title: Outside invitations are off. status: 409 detail: An admin turned off invitations to people outside your organization. code: OUTSIDE_INVITES_OFF category: conflict retryable: false requestId: req_example traceId: trace_example inviteeIsMember: value: type: https://open.bot/errors/invitee-is-member title: Already in your organization. status: 409 detail: This address belongs to someone in your organization. Share it with them instead. code: INVITEE_IS_MEMBER category: conflict retryable: false requestId: req_example traceId: trace_example ArtifactGranteeNotFound: description: No such artifact the caller can view, or no such person or team in the organization. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: person: value: type: https://open.bot/errors/person-not-found title: Person not found. status: 404 detail: Nobody in this organization has that id. To share with somebody outside it, invite them by email. code: PERSON_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example team: value: type: https://open.bot/errors/team-not-found title: Team not found. status: 404 detail: This organization has no team with that id. code: TEAM_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ArtifactInviteNotFound: description: No such invitation to this artifact, or the caller can't view the artifact. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/artifact-invite-not-found title: Invitation not found. status: 404 detail: This artifact has no invitation with that id. code: ARTIFACT_INVITE_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ArtifactInviteCodeInvalid: description: The code is wrong, was used already, ran out or was taken back. All answer the same. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: invalid: value: type: https://open.bot/errors/invite-code-invalid title: This code doesn't work. status: 404 detail: This code doesn't work. It may have been used already or run out. Ask whoever invited you to send a new one. code: INVITE_CODE_INVALID category: not_found retryable: false requestId: req_example traceId: trace_example ArtifactInviteRateLimited: description: Too many codes were tried from here. Wait, then try again. headers: Retry-After: description: Seconds to wait. schema: type: integer X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: limited: value: type: https://open.bot/errors/rate-limited title: Too many requests. status: 429 detail: Too many codes were tried. Wait a minute and try again. code: RATE_LIMITED category: rate_limit retryable: true requestId: req_example traceId: trace_example ExportArtifactNotFound: description: The organization, the artifact or the version does not exist, or the caller can't open the artifact. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: artifact: value: type: https://open.bot/errors/artifact-not-found title: Artifact not found. status: 404 detail: Couldn't find that artifact. code: ARTIFACT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example version: value: type: https://open.bot/errors/artifact-version-not-found title: Version not found. status: 404 detail: This artifact has no version 7. code: ARTIFACT_VERSION_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ArtifactExportFormatUnsupported: description: The artifact's kind doesn't export to that format. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: format: value: type: https://open.bot/errors/artifact-export-format-unsupported title: This artifact doesn't export to that format. status: 422 detail: A sheet exports as xlsx or csv, not pptx. code: ARTIFACT_EXPORT_FORMAT_UNSUPPORTED category: validation retryable: false requestId: req_example traceId: trace_example ArtifactExportsBusy: description: This OpenBot is making as many files as it can at once. Retry-After says when to ask again. The general limit on asking too fast (TooManyRequests, RATE_LIMITED) can answer this too. headers: Retry-After: description: Seconds to wait before asking again. schema: type: integer minimum: 1 X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: busy: value: type: https://open.bot/errors/artifact-exports-busy title: Too many files are being made. status: 429 detail: OpenBot is making other files just now. Try again in a minute. code: ARTIFACT_EXPORTS_BUSY category: rate_limit retryable: true requestId: req_example traceId: trace_example ArtifactExportsUnavailable: description: This OpenBot has no artifact store set up, or it can't be reached just now. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notSetUp: value: type: https://open.bot/errors/artifacts-unavailable title: Artifacts aren't available. status: 503 detail: This OpenBot has no place to keep artifacts yet. Ask an admin to set up artifact storage. code: ARTIFACTS_UNAVAILABLE category: dependency retryable: false requestId: req_example traceId: trace_example ArtifactExportNotFound: description: The artifact or the export does not exist, or the caller can't open the artifact. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: export: value: type: https://open.bot/errors/artifact-export-not-found title: Export not found. status: 404 detail: This artifact hasn't been exported to that format. Export it first. code: ARTIFACT_EXPORT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example artifact: value: type: https://open.bot/errors/artifact-not-found title: Artifact not found. status: 404 detail: Couldn't find that artifact. code: ARTIFACT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example ArtifactExportNotReady: description: The file is still being made, or making it failed. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: preparing: value: type: https://open.bot/errors/artifact-export-not-ready title: The file isn't ready. status: 409 detail: The file is still being made. Try again in a moment. code: ARTIFACT_EXPORT_NOT_READY category: conflict retryable: true requestId: req_example traceId: trace_example failed: value: type: https://open.bot/errors/artifact-export-not-ready title: The file isn't ready. status: 409 detail: The file couldn't be made. Export it again. code: ARTIFACT_EXPORT_NOT_READY category: conflict retryable: true requestId: req_example traceId: trace_example ArtifactExportRangeNotSatisfiable: description: The Range asked for lies outside the file. headers: Content-Range: description: The file's size, as bytes */. schema: type: string example: bytes */184320 X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: outside: value: type: https://open.bot/errors/range-not-satisfiable title: That range isn't in the part. status: 416 detail: The file is 184320 bytes long. code: RANGE_NOT_SATISFIABLE category: validation retryable: false requestId: req_example traceId: trace_example ArtifactCommentsNotFound: description: No artifact the caller may view has that id, the thread or comment isn't on it, the caller opened it without an OpenBot account, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/artifact-comment-not-found title: Comment not found. status: 404 detail: Couldn't find that comment. code: ARTIFACT_COMMENT_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidArtifactComment: description: A field is missing, blank once trimmed or too long, the anchor lacks what its kind needs, or the version is newer than the artifact's. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: blank: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: Write a comment first. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example ArtifactCommentNotYours: description: 'The caller may read the thread but not do this to it: delete a comment somebody else wrote, or resolve or reopen a thread they didn''t start on an artifact they can''t edit.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYours: value: type: https://open.bot/errors/permission-denied title: Permission denied. status: 403 detail: Only the person who wrote this comment can delete it. code: PERMISSION_DENIED category: permission retryable: false requestId: req_example traceId: trace_example ArtifactCommentBotUnavailable: description: 'The Bot can''t take the thread: the caller can''t use it, the artifact was made by no Bot and botId names none, the Bot is paused, or the Idempotency-Key was already used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notYourBot: value: type: https://open.bot/errors/artifact-comment-bot-unavailable title: That Bot can't answer this. status: 409 detail: You can't use the Bot that made this artifact. Pick one of your Bots instead. code: ARTIFACT_COMMENT_BOT_UNAVAILABLE category: conflict retryable: false requestId: req_example traceId: trace_example ArtifactPageNotFound: description: No artifact the caller may view has that id, the document doesn't exist, the caller opened it without an OpenBot account, or the organization does not exist. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: missing: value: type: https://open.bot/errors/artifact-page-not-found title: Not found. status: 404 detail: Couldn't find that artifact. code: ARTIFACT_PAGE_NOT_FOUND category: not_found retryable: false requestId: req_example traceId: trace_example InvalidArtifactPageRequest: description: A field is missing or too big, a document is over 64 KB or the page has too many, or allowing apps names no Bot. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: tooBig: value: type: https://open.bot/errors/validation-error title: Request validation failed. status: 400 detail: This document is over 64 KB. Keep page data small. code: VALIDATION_ERROR category: validation retryable: false requestId: req_example traceId: trace_example ArtifactPageCapabilityUnavailable: description: 'The capability isn''t available here: apps while the organization has apps in pages turned off, or a Bot the caller can''t use. Or the Idempotency-Key was already used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: appsOff: value: type: https://open.bot/errors/artifact-page-capability-unavailable title: Not available. status: 409 detail: Your organization doesn't let pages use connected apps. code: ARTIFACT_PAGE_CAPABILITY_UNAVAILABLE category: conflict retryable: false requestId: req_example traceId: trace_example ArtifactPagePermissionRequired: description: The caller hasn't allowed the page this capability, or refused it. headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: notAllowed: value: type: https://open.bot/errors/artifact-page-permission-required title: Not allowed. status: 403 detail: You haven't allowed this page to save data. code: ARTIFACT_PAGE_PERMISSION_REQUIRED category: permission retryable: false requestId: req_example traceId: trace_example ArtifactPageDocumentChanged: description: 'The document isn''t at the version ifVersion named: somebody wrote it since. Nothing was written. Read it again and write again. Or the Idempotency-Key was already used for a different request.' headers: X-Request-Id: $ref: '#/components/headers/RequestId' content: application/problem+json: schema: $ref: '#/components/schemas/Problem' examples: changed: value: type: https://open.bot/errors/artifact-page-document-changed title: The document changed. status: 409 detail: Somebody changed this since you read it. Read it again, then save. code: ARTIFACT_PAGE_DOCUMENT_CHANGED category: conflict retryable: false requestId: req_example traceId: trace_example examples: ReactionPageLast: summary: Every reaction in a conversation, on one page. value: reactions: - messageId: msg_2f0c1e7a agentId: general-assistant emoji: 👍 createdAt: '2026-11-12T22:41:07.000Z' nextCursor: null AuditEventPageFirst: summary: The newest event, with older ones to follow. value: auditEvents: - id: 0b8f3a52-5d0e-4f5c-9a43-1c2b6c3e9f10 actorUserId: null initiatorKind: routine initiatorId: routine_7f2c eventType: computer.action_refused targetType: computer targetId: research-assistant payload: bot: research-assistant decision: allowed: false rule: network.deny createdAt: '2026-11-14T09:12:44.501Z' nextCursor: eyJ2IjoxLCJvIjoiZGVmYXVsdCJ9 AuditVocabularyExample: summary: One Bot, one person, one app and one rule. value: bots: - id: research-assistant name: Research Assistant people: - id: user_2b7c name: Dana Reyes email: dana@example.com apps: - key: gmail name: Gmail tools: - app: gmail tool: GMAIL_SEND_EMAIL calls: 12 rules: - rule: network.deny name: Keep Bots off the internal network refusals: 3 AuditAnswerExample: summary: A question the trail answers. value: answerable: 'yes' unanswered: null filters: bot: research-assistant eventType: - computer.action_refused - mcp.call_rejected from: '2026-11-13T00:00:00.000Z' to: '2026-11-14T00:00:00.000Z' reading: Actions the Research Assistant was refused on 13 November. labels: bots: research-assistant: Research Assistant people: {} apps: {} rules: {} BotPageLast: summary: Every Bot, on one page. value: bots: - id: general-assistant name: General Assistant title: Everyday Work roleDescription: Help with everyday work using clear, concise, and accurate answers. avatarSeed: general-assistant visibility: public hidden: false pinned: false systemOwned: true endpoint: null hasAuth: false hasCallbackToken: false isolated: false framework: OpenBot canManage: false mine: false assignedToMe: false builtIn: false runsOnOpenBotModel: true keyFromOpenBot: false isolationActive: false isolationOffReason: null nextCursor: null StarterBot: summary: A Bot that comes with OpenBot. value: bot: id: general-assistant name: General Assistant title: Everyday Work roleDescription: Help with everyday work using clear, concise, and accurate answers. avatarSeed: general-assistant visibility: public hidden: false pinned: false systemOwned: true endpoint: null hasAuth: false hasCallbackToken: false isolated: false framework: OpenBot canManage: false mine: false assignedToMe: false builtIn: false runsOnOpenBotModel: true keyFromOpenBot: false isolationActive: false isolationOffReason: null CreatedBot: summary: A Bot a person made, running inside OpenBot. value: bot: id: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 name: Expense Review title: Finance Operations roleDescription: Review receipts, categorize expenses, and prepare reimbursement reports. avatarSeed: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 visibility: private hidden: false pinned: false systemOwned: false endpoint: null hasAuth: false hasCallbackToken: false isolated: false framework: OpenBot canManage: true mine: true assignedToMe: false builtIn: false runsOnOpenBotModel: true keyFromOpenBot: false isolationActive: false isolationOffReason: null PublishedBot: summary: Made public by somebody who is not an administrator. value: bot: id: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 name: Expense Review title: Finance Operations roleDescription: Review receipts, categorize expenses, and prepare reimbursement reports. avatarSeed: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 visibility: public hidden: false pinned: false systemOwned: false endpoint: null hasAuth: false hasCallbackToken: false isolated: false framework: OpenBot canManage: true mine: true assignedToMe: false builtIn: false runsOnOpenBotModel: true keyFromOpenBot: false isolationActive: false isolationOffReason: null sharedApps: approved: [] needsApproval: - serverId: composio-gmail title: Gmail PersonPageLast: summary: An administrator's list, on one page. value: people: - id: 8kq2m4x7p1rvz3a9c5d0 email: dana.whitfield@acme.com name: Dana Whitfield image: null role: admin needsName: false onboarding: step: 3 completedAt: '2026-11-02T16:20:11.000Z' providers: - microsoft lastSignedInAt: '2026-11-14T08:55:02.000Z' revoked: false configuredAdmin: true - id: 2fn8w1c6y4tq7h0mbe3s email: sam.ortiz@acme.com name: Sam Ortiz image: null role: member needsName: false onboarding: step: 3 completedAt: '2026-11-05T10:02:47.000Z' providers: - microsoft lastSignedInAt: '2026-11-13T17:41:30.000Z' revoked: false configuredAdmin: false nextCursor: null MePerson: summary: The caller, asked for as me. value: person: id: 2fn8w1c6y4tq7h0mbe3s email: sam.ortiz@acme.com name: Sam Ortiz image: null role: member needsName: false onboarding: step: 3 completedAt: '2026-11-05T10:02:47.000Z' providers: - microsoft lastSignedInAt: '2026-11-13T17:41:30.000Z' revoked: false configuredAdmin: false openbotVersion: v1.0.3 ChangedPerson: summary: The person as it now stands. value: person: id: 2fn8w1c6y4tq7h0mbe3s email: sam.ortiz@acme.com name: Sam Ortiz image: null role: member needsName: false onboarding: step: 3 completedAt: '2026-11-05T10:02:47.000Z' providers: - microsoft lastSignedInAt: '2026-11-13T17:41:30.000Z' revoked: false configuredAdmin: false RemovedPerson: summary: Removed, with their record kept. value: person: id: 2fn8w1c6y4tq7h0mbe3s email: sam.ortiz@acme.com name: Sam Ortiz image: null role: member needsName: false onboarding: step: 3 completedAt: '2026-11-05T10:02:47.000Z' providers: - microsoft lastSignedInAt: '2026-11-13T17:41:30.000Z' revoked: true configuredAdmin: false StandingInstructionsExample: summary: Instructions in the person's own words. value: instructions: Keep answers short. I'm in London, so use British spelling and 24-hour times. PreferencesExample: summary: Everything as it starts. value: messageListEmphasis: thread selfHostBannerDismissed: false dismissedNotices: [] noticesDue: [] narration: null skin: openbot proactive: 'on' ApiKeyPageLast: summary: Every key the person made, on one page. value: apiKeys: - id: 4b2c9e71d0a84f6b name: Nightly report start: obk_Xy createdAt: '2026-11-14T09:00:00.000Z' expiresAt: '2027-02-12T09:00:00.000Z' lastUsedAt: '2026-11-14T09:05:12.000Z' organizationId: Jq3xT9mLw2Vb8RnC5sYd0fKe nextCursor: null CreatedApiKeyExample: summary: A key, made. value: apiKey: id: 4b2c9e71d0a84f6b name: Nightly report start: obk_Xy createdAt: '2026-11-14T09:00:00.000Z' expiresAt: '2027-02-12T09:00:00.000Z' lastUsedAt: null organizationId: Jq3xT9mLw2Vb8RnC5sYd0fKe key: obk_XyR2f8Lq0mVt5WcN1pZa7KdJ3hUe9sBg SessionPageLast: summary: Signed in on a laptop and a phone. value: sessions: - id: s3c9f2a1b7d4e6081 createdAt: '2026-11-14T08:55:02.000Z' lastActiveAt: '2026-11-14T08:55:02.000Z' expiresAt: '2026-11-21T08:55:02.000Z' ipAddress: 203.0.113.24 userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) current: true - id: s7e1d4b9c2a6f3058 createdAt: '2026-11-10T19:12:40.000Z' lastActiveAt: '2026-11-12T07:31:18.000Z' expiresAt: '2026-11-19T07:31:18.000Z' ipAddress: 198.51.100.7 userAgent: OpenBot/1.0.3 (iPhone; iOS 19.1) current: false nextCursor: null LinkedAccountPageLast: summary: A person's Slack and GitHub accounts. value: linkedAccounts: - id: 9d3f1c2e-6b7a-4e8d-a1c4-2f5e7b9d0a13 provider: github title: GitHub handle: sortiz status: active createdAt: '2026-11-06T11:20:00.000Z' - id: 0c8e2a4f-1d3b-4f6a-9e7c-5b2d8f0a6c41 provider: slack title: Slack handle: null status: active createdAt: '2026-11-07T14:02:31.000Z' nextCursor: null LinkedAccountProviderPageLast: summary: Both services, on one page. value: linkedAccountProviders: - id: slack title: Slack - id: github title: GitHub nextCursor: null SlackLinkCodeExample: summary: A code to send in Slack. value: provider: slack code: K7Q2-M9XD expiresAt: '2026-11-14T09:15:00.000Z' instruction: 'Send this message to the OpenBot app in a direct message in Slack: link K7Q2-M9XD' GitHubLinkExample: summary: GitHub's consent page. value: provider: github authorizationUrl: https://github.com/login/oauth/authorize?client_id=Iv23liExample&redirect_uri=https%3A%2F%2Fopenbot.acme.com%2Fapi%2Fidentity%2Fgithub%2Fcallback&state=sealed IdentityProviderPageLast: summary: The organization's own provider, and one registered for the whole OpenBot. value: identityProviders: - id: acme-okta issuer: http://www.okta.com/exk1a2b3c4d5e6f7g8h9 domain: acme.com protocol: saml registeredBy: 8kq2m4x7p1rvz3a9c5d0 deployment: false - id: example-entra issuer: https://login.microsoftonline.com/0d1c2b3a-4f5e-6d7c-8b9a-0f1e2d3c4b5a/v2.0 domain: example.com protocol: oidc registeredBy: null deployment: true nextCursor: null IdentityProviderExample: summary: A SAML provider, registered. value: identityProvider: id: acme-okta issuer: http://www.okta.com/exk1a2b3c4d5e6f7g8h9 domain: acme.com protocol: saml registeredBy: 8kq2m4x7p1rvz3a9c5d0 DeploymentExample: summary: A team's OpenBot with single sign-on set up. value: edition: team localEvaluation: false generativeUi: true selfHostBanner: false transcription: true voice: false durableHistory: true authProviders: - google - microsoft ssoConfigured: true ssoRequired: false builtInBots: true isolatedBots: false botComputers: true attachmentLimits: imageBytes: 104857600 documentBytes: 104857600 fileBytes: 104857600 api: - v2 minimumClients: desktop: 1.2.0 launcherApi: 1 extensionApi: 1 OrganizationSettingsExample: summary: The settings, with what an administrator needs beside them. value: ssoRequired: false actionRecording: true inactiveComputerDays: 14 modelAllowlist: enabled: true models: - openai/gpt-5.6-terra - anthropic/claude-sonnet-5 mcpAllowlist: enabled: false servers: [] skillSharing: false proactiveDailyRuns: 24 modelSelection: true context: builtInModel: openai/gpt-5.6-terra directoryGroups: - Finance - Sales apps: - id: composio-gmail title: Gmail url: https://mcp.composio.dev/gmail defaultDestinations: - github.com - registry.npmjs.org scim: configured: true connectionId: directory baseUrl: https://openbot.acme.com/api/auth/scim/v2 rotating: false otel: configured: false actionRecordRetentionDays: 30 CapabilityPageExample: summary: One switch, set for members and one group. value: capabilities: - id: passwordManager title: Password manager description: People may save logins, and sign a Bot in with a login they saved. default: true organization: null roles: member: false groups: Finance: true nextCursor: null CapabilityChangesExample: summary: Members lose the password manager, Finance keeps it. value: changes: - scopeKind: role scopeId: member capability: passwordManager allowed: false - scopeKind: group scopeId: Finance capability: passwordManager allowed: true NetworkPolicyPageExample: summary: The organization's policy. value: networkPolicies: - id: organization scopeKind: organization scopeId: '' mode: defaults_plus_allowlist rules: - type: domain value: salesforce.com - type: cidr value: 10.20.0.0/16 ports: '443' locked: false updatedBy: dana.whitfield@acme.com updatedAt: '2026-11-14T09:00:00.000Z' nextCursor: null CapabilityExample: summary: Members can't use the password manager. value: id: passwordManager title: Password manager description: People may save logins, and sign a Bot in with a login they saved. default: true organization: null roles: member: false groups: {} SavedCapabilityChangesExample: summary: Both changes, saved. value: saved: - scopeKind: role scopeId: member capability: passwordManager allowed: false - scopeKind: group scopeId: Finance capability: passwordManager allowed: true CapabilityTranslationExample: summary: One change, which passes the rule. value: changes: - scopeKind: group scopeId: Contractors capability: passwordManager allowed: false summary: Contractors can't use the password manager. explanation: Everybody else keeps it. check: ok: true warning: null CapabilityPreviewExample: summary: One person loses the password manager. value: check: ok: true people: - id: 2fn8w1c6y4tq7h0mbe3s email: sam.ortiz@acme.com name: Sam Ortiz role: member groups: [] capabilities: - capability: passwordManager title: Password manager before: allowed: true decidedBy: default scopeId: '' after: allowed: false decidedBy: role scopeId: member counts: people: 1 losing: 1 gaining: 0 keeping: 0 unchanged: 0 activity: days: 30 unmapped: [] warning: null PersonCapabilitiesExample: summary: A member's switches. value: capabilities: useBots: true cloudBrowser: true cloudNetwork: true cloudComputer: true localComputer: true customRules: true passwordManager: false slackTeams: true teamBots: true ownerApps: true isolatedComputers: false proactive: true enforced: true PersonComputersStoppedExample: summary: Their own computer stopped, and one Bot's that would not. value: stopped: - person:user_2b8kq4 failed: - computer: bot:research-assistant reason: The computer did not answer in time. NetworkPolicyExample: summary: The organization's list. value: id: organization scopeKind: organization scopeId: '' mode: allowlist_only rules: - type: domain value: salesforce.com locked: false updatedBy: dana.whitfield@acme.com updatedAt: '2026-11-14T09:00:00.000Z' NetworkTranslationExample: summary: A list for one service. value: mode: allowlist_only rules: - type: domain value: salesforce.com summary: Only Salesforce. reachable: - 'Salesforce: salesforce.com' explanation: Bots can reach Salesforce and nothing else. check: ok: true warning: null NetworkReplayReportExample: summary: One site would be blocked. value: scanned: 120 covered: 120 wouldBlock: 3 wouldAllow: 0 undecided: 0 unchanged: 117 hosts: - host: news.example change: block visits: 3 bots: - research-assistant lastVisit: '2026-11-13T17:20:00.000Z' sites: 1 ModelUsageExample: summary: One model over 30 days. value: days: 30 summary: - model: openai/gpt-5.6-terra source: configured runs: 42 refused: 0 people: 3 lastUsedAt: '2026-11-14T08:59:00.000Z' recent: - id: 7c1e9d2a-3b4f-4e6a-9c8d-1f2e3a4b5c6d email: sam.ortiz@acme.com agentId: general-assistant model: openai/gpt-5.6-terra source: configured allowed: true createdAt: '2026-11-14T08:59:00.000Z' ComputerActionPageExample: summary: One recorded action. value: computerActions: - id: 4a5b6c7d-8e9f-4a1b-9c2d-3e4f5a6b7c8d surface: cloud botId: research-assistant toolName: computer_navigate command: https://acme.my.salesforce.com outcome: allowed createdAt: '2026-11-14T08:58:00.000Z' nextCursor: null SetupChecklistExample: summary: Set up but for the apps. value: audience: admin rows: - id: model scope: deployment title: Model required: true status: ready ready: true detail: Bots answer with openai/gpt-5.6-terra. fix: null - id: apps scope: deployment title: Apps required: false status: needs_setup ready: false detail: Bots can't use Gmail, Calendar or Drive yet. fix: kind: page label: Apps path: /admin/plugins ConversationJoinTokenExample: summary: A conversation whose Bot is working value: joinToken: jt_example expiresAt: '2026-11-14T12:00:30.000Z' threadId: 6f3d6b1f-6f10-8a53-9d51-5f0d6c0e2f1a runId: 0b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 realtime: clientUrl: wss://realtime.example.com/client topic: thread:6f3d6b1f-6f10-8a53-9d51-5f0d6c0e2f1a CredentialExample: summary: The Bots' model key. value: id: 3b9a5f8e-6c1d-4e2a-9f47-1d2c3b4a5e6f kind: model provider: openai keyId: openai-api-key metadata: {} createdAt: '2026-11-14T09:00:00.000Z' revokedAt: null RevokedCredentialExample: summary: A revoked app key. value: id: 8d2e4c6a-1b3f-4a5e-9c7d-2f1e3d4c5b6a kind: connector provider: slack keyId: slack-bot-token metadata: {} createdAt: '2026-11-01T09:00:00.000Z' revokedAt: '2026-11-14T09:30:00.000Z' CredentialPageExample: summary: The Bots' model key and a revoked app key. value: credentials: - id: 8d2e4c6a-1b3f-4a5e-9c7d-2f1e3d4c5b6a kind: connector provider: slack keyId: slack-bot-token metadata: {} createdAt: '2026-11-01T09:00:00.000Z' revokedAt: '2026-11-14T09:30:00.000Z' - id: 3b9a5f8e-6c1d-4e2a-9f47-1d2c3b4a5e6f kind: model provider: openai keyId: openai-api-key metadata: {} createdAt: '2026-11-14T09:00:00.000Z' revokedAt: null nextCursor: null ModelKeyExample: summary: An OpenAI key, kept. value: provider: openai keyId: openai-api-key set: true ModelCatalogueExample: summary: Three models an administrator allowed. value: provider: openai source: openai exposure: allowed default: gpt-6.1-terra models: - id: gpt-6.1-terra label: GPT-6.1 Terra vendor: openai efforts: - low - medium - high defaultEffort: medium - id: gpt-6.1-pro label: GPT-6.1 Pro vendor: openai efforts: - medium - high - xhigh defaultEffort: high - id: gpt-6.1-mini label: GPT-6.1 Mini vendor: openai choosable: true listed: true imageModels: - id: gpt-image-2 label: GPT Image 2 vendor: openai edits: true - id: gemini-3.1-flash-image label: Nano Banana 2 vendor: google edits: true imageModel: gpt-image-2 ModelChoiceExample: summary: A model and effort chosen. value: model: gpt-6.1-pro effort: xhigh ServiceTermsToAgreeExample: summary: OpenBot Cloud, for somebody who hasn't agreed yet. value: current: version: '2026-11-21' termsOfServiceUrl: https://open.bot/legal/terms acceptableUseUrl: https://open.bot/legal/acceptable-use accepted: null acceptanceNeeded: true ServiceTermsAgreedExample: summary: OpenBot Cloud, for somebody who agreed to the current version. value: current: version: '2026-11-21' termsOfServiceUrl: https://open.bot/legal/terms acceptableUseUrl: https://open.bot/legal/acceptable-use accepted: version: '2026-11-21' acceptedAt: '2026-11-21T18:04:00.000Z' acceptanceNeeded: false ServiceTermsChangedExample: summary: OpenBot Cloud, after the terms changed. The person agreed to an older version. value: current: version: '2027-03-01' termsOfServiceUrl: https://open.bot/legal/terms acceptableUseUrl: https://open.bot/legal/acceptable-use accepted: version: '2026-11-21' acceptedAt: '2026-11-21T18:04:00.000Z' acceptanceNeeded: true ServiceTermsNoneExample: summary: A self-hosted OpenBot, or OpenBot Desktop on its own. There are no terms. value: current: null accepted: null acceptanceNeeded: false CompanySignInExample: summary: An organization that requires its company sign-in, which the caller hasn't used yet. value: required: true met: false providers: - id: acme-okta domain: acme.com - id: example-entra domain: example.com CompanySignInTicketExample: summary: An address the phone opens in the system browser. value: url: https://openbot.acme.com/api/auth/company-sign-in/link?ticket=cst_EXAMPLEEXAMPLEEXAMPLEEXAMPLE expiresAt: '2026-11-20T06:02:00.000Z' ConversationPageExample: summary: One page of conversations, and the last. value: conversations: - id: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 name: General Assistant botIds: - general-assistant threadId: 6f3d6b1f-6f10-8a53-9d51-5f0d6c0e2f1a active: true lastMessageAt: '2026-11-14T12:00:00.000Z' summary: Quarterly forecast opening: Can you draft the quarterly forecast? lastMessage: Here is the first draft. lastMessageBotId: general-assistant createdAt: '2026-11-13T09:00:00.000Z' pinned: false lastReadAt: '2026-11-14T12:00:05.000Z' canRename: true task: false work: [] nextCursor: null ConversationResponseExample: summary: A conversation with one Bot. value: conversation: id: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 name: General Assistant botIds: - general-assistant threadId: 6f3d6b1f-6f10-8a53-9d51-5f0d6c0e2f1a active: true lastMessageAt: '2026-11-14T12:00:00.000Z' work: [] RoutedMessageExample: summary: A message the default Bot takes. value: botId: general-assistant name: General Assistant reason: fallback fallback: true viaMention: false undecided: null UpdatedConversationExample: summary: A conversation renamed and pinned. value: summary: Quarterly forecast pinned: true ConversationMemberPageExample: summary: A group of two Bots and one person. value: members: - kind: bot id: general-assistant name: General Assistant - kind: bot id: research-helper name: Research Helper - kind: person id: usr_9b1c6f0e name: Ada Lovelace email: ada@example.com creator: true nextCursor: null AddedConversationMemberExample: summary: The person who was added. value: personId: usr_2f4a8c1b ConversationMessagePageExample: summary: A person's message and a Bot's reply, newest first. value: messages: - id: m2 role: bot personId: usr_9b1c6f0e botId: general-assistant text: Ship the importer first. status: completed createdAt: '2026-11-14T12:00:20.000Z' - id: m1 role: person personId: usr_9b1c6f0e botId: null text: What should we ship? status: completed createdAt: '2026-11-14T12:00:00.000Z' nextCursor: null SentConversationMessageExample: summary: A message waiting for its answer. value: id: m1 queued: true RefusedTurnPageLast: summary: A message refused on a model the person's team doesn't allow. value: refusedTurns: - id: 6f1c2b7e-3a4d-4e9b-8c21-5d0a9e7f4b13 botId: research-assistant threadId: thread_9k2m afterMessageId: msg_7d1e message: id: msg_8a2f text: Summarize the Q3 pipeline. initiator: person code: MODEL_NOT_ALLOWED detail: This Bot uses GPT-4.1, which your team's models don't include. Ask an admin to change your team's models. model: openai/gpt-4.1 createdAt: '2026-11-23T16:20:05.000Z' nextCursor: null AttachmentExample: summary: A spreadsheet held for the next message. value: id: 0b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 name: budget.csv mimeType: text/csv sizeBytes: 2048 VoiceConnectionExample: summary: A call over WebRTC. value: transport: webrtc sdp: "v=0\r\no=- 0 0 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n" VoiceSessionPageExample: summary: One saved call. value: sessions: - id: call-1 conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 anchorMessageId: null startedAt: '2026-11-14T12:00:00.000Z' endedAt: '2026-11-14T12:00:30.000Z' transcript: - id: '1' role: user text: When do we launch? - id: '2' role: assistant text: On Friday. durationSeconds: 30 summary: They agreed to launch on Friday. summaryStatus: ready nextCursor: null VoiceSessionResponseExample: summary: A saved call with its summary. value: session: id: call-1 conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 anchorMessageId: null startedAt: '2026-11-14T12:00:00.000Z' endedAt: '2026-11-14T12:00:30.000Z' transcript: - id: '1' role: user text: When do we launch? - id: '2' role: assistant text: On Friday. durationSeconds: 30 summary: They agreed to launch on Friday. summaryStatus: ready VoiceConfigurationExample: summary: Calls over WebRTC. value: transport: webrtc ConversationThreadExample: summary: A new thread id. value: threadId: 6f3d6b1f-6f10-8a53-9d51-5f0d6c0e2f1a liveThreadId: 2b503bf7-514a-8c4e-b132-3ca9b729ffeb ConversationThreadStatusExample: summary: A thread that is still there. value: threadId: 6f3d6b1f-6f10-8a53-9d51-5f0d6c0e2f1a known: true liveThreadId: 2b503bf7-514a-8c4e-b132-3ca9b729ffeb TaskPageExample: summary: One task, ready to read. value: tasks: - id: 7c2d6b1f-6f10-4a53-9d51-5f0d6c0e2f1a botId: general-assistant conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 threadId: 6f3d6b1f-6f10-8a53-9d51-5f0d6c0e2f1a title: Reply to Sam about the spec why: Sam asked for the spec by Friday. origin: check_in suggestionId: 0b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 sourceApp: Gmail sourceLink: null originConversationId: null status: ready_for_review failure: null failedAt: null stoppedAt: null next: Read the draft and send it. workingSince: null lastActivityAt: '2026-11-14T09:05:00.000Z' resolvedAt: null createdAt: '2026-11-14T09:00:00.000Z' updatedAt: '2026-11-14T09:05:00.000Z' nextCursor: null TaskResponseExample: summary: A task ready to read. value: task: id: 7c2d6b1f-6f10-4a53-9d51-5f0d6c0e2f1a botId: general-assistant conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 threadId: 6f3d6b1f-6f10-8a53-9d51-5f0d6c0e2f1a title: Reply to Sam about the spec why: Sam asked for the spec by Friday. origin: check_in suggestionId: 0b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 sourceApp: Gmail sourceLink: null originConversationId: null status: ready_for_review failure: null failedAt: null stoppedAt: null next: Read the draft and send it. workingSince: null lastActivityAt: '2026-11-14T09:05:00.000Z' resolvedAt: null createdAt: '2026-11-14T09:00:00.000Z' updatedAt: '2026-11-14T09:05:00.000Z' TaskTurnPageExample: summary: 'One turn: the Bot''s brief, worked on for 52 seconds.' value: turns: - askId: 3a1c9e2b-5d40-4f7a-8b61-0e9d2c4f7a13 startedAt: '2026-11-14T09:00:02.000Z' endedAt: '2026-11-14T09:00:54.000Z' workedSeconds: 52 runs: 1 model: gpt-5.1 nextCursor: null TranscriptionExample: summary: What was said. value: text: Remind me to send the forecast on Friday. ModelCatalogueConnectionsExample: summary: A ChatGPT plan as the default and a Claude plan beside it. value: provider: openai source: chatgpt exposure: all default: gpt-6.2-sol models: - id: gpt-6.2-sol label: GPT-6.2 Sol vendor: openai choosable: true listed: true connections: - id: openai owner: personal provider: openai login: plan source: chatgpt isDefault: true ready: true problem: null default: gpt-6.2-sol models: - id: gpt-6.2-sol label: GPT-6.2 Sol vendor: openai listed: true - id: anthropic owner: personal provider: anthropic login: plan source: claude isDefault: false ready: true problem: null default: claude-opus-5-5 models: - id: claude-opus-5-5 label: Claude Opus 5.5 vendor: anthropic efforts: - low - medium - high - id: claude-sonnet-5-5 label: Claude Sonnet 5.5 vendor: anthropic listed: true imageModels: [] imageModel: null ModelChoiceOnConnectionExample: summary: A model chosen on a connection that isn't the default, which can't run now. value: model: claude-opus-5-5 effort: high connection: anthropic stopped: connection: anthropic problem: code: sign-in-ended detail: Your Claude plan sign-in ended. Sign in again to use it. ModelChoiceNoDefaultExample: summary: No choice, and several connections with none the default. value: model: null effort: null connection: null stopped: connection: null problem: code: no-default detail: Choose a default AI in Settings so Bots can start work. AiConnectionExample: summary: An Anthropic key, kept, with an OpenAI key still kept from before. value: provider: anthropic login: api-key model: null endpointHost: null keySet: true ready: true source: stored editable: true saved: - provider: openai login: api-key endpointHost: null changedAt: '2026-11-17T09:00:00.000Z' AiConnectionEndpointExample: summary: Google Gemini at its OpenAI-compatible address. value: provider: google login: endpoint model: gemini-3-pro endpointHost: generativelanguage.googleapis.com keySet: true ready: true source: stored editable: true saved: - provider: google login: endpoint endpointHost: generativelanguage.googleapis.com changedAt: '2026-11-17T09:00:00.000Z' AiConnectionFixedExample: summary: A team's OpenBot, where whoever runs it sets the provider. value: provider: openai login: api-key model: null endpointHost: null keySet: true ready: true source: environment editable: false saved: [] changedAt: null AiConnectionNoneExample: summary: Nothing chosen yet. value: provider: null login: null model: null endpointHost: null keySet: false ready: false source: none editable: true saved: [] changedAt: null AiConnectionSharedPlanExample: summary: On OpenBot Cloud, an administrator's own Claude plan, shared as the organization's AI. value: provider: anthropic login: plan model: null endpointHost: null keySet: false ready: true source: stored editable: true saved: [] changedAt: '2026-11-22T09:00:00.000Z' sharedSignIn: personId: 01a20142-2410-79b4-8c4d-f64c84c10a87 name: Dana Reyes ready: true AiConnectionDisconnectedExample: summary: Disconnected, with an OpenAI key still kept from before. value: provider: null login: null model: null endpointHost: null keySet: false ready: false source: none editable: true saved: - provider: openai login: api-key endpointHost: null changedAt: '2026-11-21T09:30:00.000Z' PersonalAiConnectionExample: summary: The person's own Anthropic key, ahead of the organization's OpenAI. value: connection: provider: anthropic login: api-key model: null endpointHost: null keySet: true ready: true source: stored editable: true saved: [] changedAt: '2026-11-21T09:00:00.000Z' organization: ready: true provider: openai uses: personal required: true available: true signIns: - openai - anthropic - xai PersonalAiConnectionOrganizationExample: summary: Nothing of their own, so their runs use the organization's. value: connection: provider: null login: null model: null endpointHost: null keySet: false ready: false source: none editable: true saved: [] changedAt: null organization: ready: true provider: openai uses: organization required: true available: true signIns: - openai - anthropic - xai PersonalAiConnectionNoneExample: summary: Neither theirs nor the organization's, so they connect one first. value: connection: provider: null login: null model: null endpointHost: null keySet: false ready: false source: none editable: true saved: [] changedAt: null organization: ready: false provider: null uses: none required: true available: true signIns: - openai - anthropic - xai AiSignInExample: summary: An xAI sign-in, waiting for approval. value: id: c2lnbi1pbi1leGFtcGxl provider: xai url: https://accounts.x.ai/oauth2/device?user_code=BCDF-GHJK userCode: BCDF-GHJK expiresAt: '2026-11-21T09:10:00.000Z' interval: 5 finish: poll AiSignInChatGptBrowserExample: summary: A ChatGPT plan sign-in in the browser, finished with the address ChatGPT sends it to. value: id: Y2hhdGdwdC1icm93c2Vy provider: openai url: https://auth.openai.com/oauth/authorize?client_id=example&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A1455%2Fauth%2Fcallback&scope=openid+profile+email+offline_access&code_challenge=example&code_challenge_method=S256&state=example userCode: null expiresAt: '2026-11-21T09:15:00.000Z' interval: 5 finish: code AiSignInChatGptExample: summary: A ChatGPT plan sign-in with a code (method device), waiting for the person to enter it at ChatGPT. value: id: Y2hhdGdwdC1zaWduLWlu provider: openai url: https://auth.openai.com/codex/device userCode: VU3W-87566 expiresAt: '2026-11-21T09:15:00.000Z' interval: 5 finish: poll AiSignInClaudeExample: summary: A Claude plan sign-in, finished with the code Claude's page shows. value: id: Y2xhdWRlLXNpZ24taW4 provider: anthropic url: https://claude.com/cai/oauth/authorize?code=true&client_id=example&response_type=code&scope=user%3Ainference&code_challenge=example&code_challenge_method=S256&state=example userCode: null expiresAt: '2026-11-21T09:15:00.000Z' interval: 5 finish: code AiSignInPendingExample: summary: Not approved yet. value: id: c2lnbi1pbi1leGFtcGxl provider: xai status: pending detail: null interval: 5 AiSignInApprovedExample: summary: Approved, with the sign-in kept for the person. value: id: c2lnbi1pbi1leGFtcGxl provider: xai status: approved detail: null interval: 5 AiSignInClaudeApprovedExample: summary: The Claude plan sign-in, approved and kept for the person. value: id: Y2xhdWRlLXNpZ24taW4 provider: anthropic status: approved detail: null interval: 5 AiConnectionPageExample: summary: A Claude plan as the default, an xAI sign-in that ended, and a Google sign-in OpenBot no longer offers. value: connections: - id: anthropic provider: anthropic login: plan model: null endpointHost: null isDefault: true ready: true problem: null connectedAt: '2026-11-20T09:00:00.000Z' - id: xai provider: xai login: oauth model: grok-4.7 endpointHost: null isDefault: false ready: false problem: code: sign-in-ended detail: Your xAI sign-in ended. Sign in again to use it. connectedAt: '2026-11-21T09:00:00.000Z' - id: google provider: google login: oauth model: gemini-3.8-flash endpointHost: null isDefault: false ready: false problem: code: sign-in-retired detail: Google sign-in for Gemini has ended. Add a Gemini API key in Settings under AI providers to keep using Gemini. connectedAt: '2026-11-22T09:00:00.000Z' nextCursor: null signIns: - openai - anthropic - xai AiConnectionPageNoDefaultExample: summary: Two connections left after an older app disconnected the default, neither the default. value: connections: - id: openai provider: openai login: api-key model: null endpointHost: null isDefault: false ready: true problem: null connectedAt: '2026-11-20T09:00:00.000Z' - id: google provider: google login: endpoint model: gemini-3.8-flash endpointHost: generativelanguage.googleapis.com isDefault: false ready: true problem: null connectedAt: '2026-11-21T09:00:00.000Z' nextCursor: null signIns: [] AiConnectionEntryExample: summary: An OpenAI key, connected beside the default. value: id: openai provider: openai login: api-key model: null endpointHost: null isDefault: false ready: true problem: null connectedAt: '2026-11-23T09:00:00.000Z' AppPageExample: summary: Every app, on one page. value: apps: - id: acme-wiki title: Acme Wiki source: address directoryEntryId: null address: https://mcp.acme.com/mcp logo: null vendor: mcp.acme.com summary: '' docsUrl: '' connectsWith: null hasCredential: true dynamicClient: false signIn: true entraScope: null accountMode: null sharedAccountConnected: false sharedOnly: false ownerGrants: admin ownerGrantsChosen: null everyBot: false addedBy: sam.okafor@acme.com toolsRefreshedAt: '2026-11-14T09:05:00.000Z' lastError: null skippedTools: [] tools: [] withdrawn: [] - id: exa-authenticated title: Exa Search (API key) source: catalogue directoryEntryId: catalogue:exa-authenticated address: https://mcp.exa.ai/mcp logo: null vendor: Exa summary: Public-web search and page reading using this deployment's Exa API key. docsUrl: https://exa.ai/docs/reference/exa-mcp connectsWith: null hasCredential: true dynamicClient: false signIn: false entraScope: null accountMode: null sharedAccountConnected: false sharedOnly: false ownerGrants: admin ownerGrantsChosen: admin everyBot: false addedBy: dana.whitfield@acme.com toolsRefreshedAt: '2026-11-14T09:00:00.000Z' lastError: null skippedTools: [] tools: - name: web_search_exa ref: exa-authenticated/web_search_exa description: Search the web and return the most relevant pages. effect: read destructive: false grantedTo: [] withdrawn: [] nextCursor: null AddressAppExample: summary: A server added by its address, which signs each person in. value: id: acme-wiki title: Acme Wiki source: address directoryEntryId: null address: https://mcp.acme.com/mcp logo: null vendor: mcp.acme.com summary: '' docsUrl: '' connectsWith: null hasCredential: true dynamicClient: false signIn: true entraScope: null accountMode: null sharedAccountConnected: false sharedOnly: false ownerGrants: admin ownerGrantsChosen: null everyBot: false addedBy: sam.okafor@acme.com toolsRefreshedAt: '2026-11-14T09:05:00.000Z' lastError: null skippedTools: [] tools: - name: search_pages ref: acme-wiki/search_pages description: Find wiki pages by their title or text. effect: write destructive: false grantedTo: [] withdrawn: [] AppRecordsConflictExample: summary: OpenBot's own records of an app disagree. value: type: https://open.bot/errors/conflict title: The request conflicts with the current state. status: 409 detail: 'acme-wiki: the actions this app listed were not stored, so what it already had is unchanged.' code: CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example AppIdempotencyConflictExample: summary: An Idempotency-Key used for a different request. value: type: https://open.bot/errors/idempotency-key-conflict title: That Idempotency-Key was used for a different request. status: 409 detail: That Idempotency-Key was used for a different request. Use a new key for a new write. code: IDEMPOTENCY_KEY_CONFLICT category: conflict retryable: false requestId: req_example traceId: trace_example CatalogueAppExample: summary: A catalogue app reached with the organization's key. value: id: exa-authenticated title: Exa Search (API key) source: catalogue directoryEntryId: catalogue:exa-authenticated address: https://mcp.exa.ai/mcp logo: null vendor: Exa summary: Public-web search and page reading using this deployment's Exa API key. docsUrl: https://exa.ai/docs/reference/exa-mcp connectsWith: null hasCredential: true dynamicClient: false signIn: false entraScope: null accountMode: null sharedAccountConnected: false sharedOnly: false ownerGrants: admin ownerGrantsChosen: admin everyBot: true addedBy: dana.whitfield@acme.com toolsRefreshedAt: '2026-11-14T09:00:00.000Z' lastError: null skippedTools: [] tools: - name: web_search_exa ref: exa-authenticated/web_search_exa description: Search the web and return the most relevant pages. effect: read destructive: false grantedTo: - agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 withdrawn: [] AppAccountModePreviewExample: summary: What switching to shared would do. value: mode: shared applied: false accountsEnded: holder: person count: 3 bots: - botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 approval: audience: owner outsideInput: false members: [] AppAccountModeAppliedExample: summary: The switch, made. value: mode: shared applied: true accountsEnded: holder: person count: 3 bots: - botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 approval: audience: team outsideInput: false members: [] AppDirectoryPageExample: summary: A catalogue entry already added, and an app from the directory. value: entries: - id: catalogue:exa source: catalogue title: Exa Search summary: Public-web search and page reading. Free rate-limited access without a key. appId: exa vendor: Exa docsUrl: https://exa.ai/docs/reference/exa-mcp auth: none perInstance: false oneStep: true - id: directory:linear source: directory title: Linear summary: Plan, track and ship issues and projects. appId: null logo: https://logos.example.com/linear.svg categories: - productivity actionCount: 26 classifiedCount: 26 permissionCount: 2 scopedActionCount: 26 connectsWith: sign-in nextCursor: null total: 2 AppSetupExample: summary: An OpenBot with the app directory set up. value: directoryAvailable: true directoryProvider: composio redirectUri: https://openbot.acme.com/api/plugins/oauth/callback authorizesPerAction: false botsMayCallBack: true ShortenedToolNamesExample: summary: One action name that was too long for a model. value: names: mcp__acme-wiki__search_pages_by_title_and_last_editor_i_a2c87460: mcp__acme-wiki__search_pages_by_title_and_last_editor_in_a_shared_space ConnectionPageLast: summary: A Google Drive sign-in OpenBot keeps, and a Linear key, on one page. value: connections: - appId: google-drive connectedAt: '2026-11-02T09:14:00.000Z' revoked: false scope: https://www.googleapis.com/auth/drive.readonly check: null canAddAccount: false - appId: linear connectedAt: '2026-11-09T16:40:12.000Z' revoked: false scope: null check: verified: true verifiedAt: '2026-11-13T08:02:51.000Z' checkedAction: LINEAR_LIST_LINEAR_TEAMS checkable: true canAddAccount: true nextCursor: null ConnectionExample: summary: A Linear key, checked yesterday. value: appId: linear connectedAt: '2026-11-09T16:40:12.000Z' revoked: false scope: null check: verified: true verifiedAt: '2026-11-13T08:02:51.000Z' checkedAction: LINEAR_LIST_LINEAR_TEAMS checkable: true canAddAccount: true ConnectionStartConsent: summary: The app's sign-in page, to open. value: next: consent authorizationUrl: https://accounts.google.com/o/oauth2/v2/auth?client_id=example.apps.googleusercontent.com&response_type=code&state=sealed ConnectionStartForm: summary: The one box Linear asks for. value: next: form fields: - name: api_key label: API key help: Your Linear API key, from Settings, then Security & access. required: true secret: true default: null guide: steps: In Linear, open Settings, then Security & access, and create a personal API key. url: https://linear.app/settings/account/security ConnectionStartConnected: summary: Connected, with the key checked. value: next: connected verified: true checkedAction: LINEAR_LIST_LINEAR_TEAMS ConnectionConfirmed: summary: The app says the account is connected. value: connected: true ConnectionCheckExample: summary: The key worked. value: verified: true verifiedAt: '2026-11-14T10:05:33.000Z' checkedAction: LINEAR_LIST_LINEAR_TEAMS DisconnectionExample: summary: The app was asked to end the access. value: revocationRequested: true DisconnectPreviewExample: summary: Google Calendar shares Gmail's sign-in. value: alsoEnds: - Google Calendar uncheckedCount: 0 ActionAuthorizationsExample: summary: One action authorized, one waiting for consent. value: readable: true reason: null actions: - action: Github.ListIssues state: authorized scopes: - repo authorization: held - action: Github.CreateIssue state: needs-consent scopes: - repo ActionAuthorizationsUnreadable: summary: The app couldn't be asked. value: readable: false reason: Couldn't read what this account allows right now. Try again in a moment. actions: [] AuthorizationStartExample: summary: The app's consent page, to open. value: authorizationUrl: https://cloud.example.com/oauth/authorize?flow=example ConnectedAccountPageLast: summary: A work and a personal mailbox. value: accounts: - id: 5f0c2b7e-3a1d-4e8f-9b6c-2d4a7e1f0c93 identity: sam@acme.com label: sam@acme.com isDefault: true connectedAt: '2026-11-03T12:00:00.000Z' - id: 8a4d6e1f-0b2c-4d3e-a5f6-7b8c9d0e1f24 identity: sam.ortiz@example.com label: sam.ortiz@example.com isDefault: false connectedAt: '2026-11-10T18:21:45.000Z' nextCursor: null AccountDisconnectionExample: summary: One of two accounts ended. value: remaining: 1 connectionEnded: false revocationRequested: true SharedConnectionExample: summary: Slack's shared account, connected by an administrator. value: appId: slack connected: true connectedAt: '2026-11-05T15:30:00.000Z' connectedBy: admin@acme.com accountName: Acme Workspace check: verified: true verifiedAt: '2026-11-05T15:30:00.000Z' checkedAction: null checkable: false BotGrantPageExample: summary: Two Notion actions, another Bot to hand work to, and a skill. value: grants: - id: action:notion:notion-fetch kind: action ref: notion/notion-fetch action: appId: notion name: notion-fetch description: Read a Notion page or database. destructive: false read: true skill: null - id: action:notion:notion-search kind: action ref: notion/notion-search action: appId: notion name: notion-search description: Search the Notion workspace. destructive: false read: true skill: null - id: bot:writer kind: bot ref: writer action: null skill: null - id: skill:weekly-report kind: skill ref: weekly-report action: null skill: slug: weekly-report title: Weekly report summary: Sums up the week's work. nextCursor: null BotGrantChangesSavedExample: summary: Two reads turned on and a change turned off. value: added: - notion/notion-search - notion/notion-fetch removed: - notion/notion-update-page BotGrantTranslationExample: summary: Notion's reads, chosen from a sentence. value: actions: - notion-search - notion-fetch grants: - notion/notion-search - notion/notion-fetch otherApps: [] summary: Reads Notion, but can't change it. explanation: The Bot can search Notion and read its pages and databases. It can't create, change or move anything. check: ok: true warning: null BotGrantReplayExample: summary: Taking away a change the Bot used twice. value: check: ok: true warning: null changes: added: [] removed: - ref: notion/notion-update-page name: notion-update-page effect: write destructive: false report: calls: 14 runs: 9 since: '2026-11-01T09:00:00.000Z' removedUsed: - ref: notion/notion-update-page name: notion-update-page effect: write destructive: false calls: 2 lastCalled: '2026-11-12T15:30:00.000Z' callsLost: 2 refusedGiven: [] callsGained: 0 addedUnusedWrites: [] addedUnusedReads: 0 BotGrantExample: summary: One Notion action, given. value: id: action:notion:notion-search kind: action ref: notion/notion-search action: appId: notion name: notion-search description: Search the Notion workspace. destructive: false read: true skill: null BotAppPageExample: summary: Notion on the person's own account, and Routines. value: apps: - id: notion title: Notion logo: null source: catalogue account: personal connect: oauth state: ready unavailable: null accountHolder: you asksFirst: false granted: true ownerGrants: any givenByOwner: true needsConnect: false connectedAt: '2026-11-10T08:15:00.000Z' requestKind: null pendingRequest: null restrictedBy: null - id: routines title: Routines logo: null source: catalogue account: deployment connect: null state: ready unavailable: null accountHolder: null asksFirst: false granted: true ownerGrants: any givenByOwner: false needsConnect: false connectedAt: null requestKind: null pendingRequest: null restrictedBy: null nextCursor: null BotAppExample: summary: Notion, given to the Bot and not yet connected by this person. value: id: notion title: Notion logo: null source: catalogue account: personal connect: oauth state: not_connected unavailable: null accountHolder: you asksFirst: false granted: true ownerGrants: any givenByOwner: false needsConnect: false connectedAt: null requestKind: null pendingRequest: null restrictedBy: null BotAppGivenExample: summary: Notion's reads, given. value: given: - notion/notion-fetch - notion/notion-search BotAppTakenBackExample: summary: Notion's reads, taken back. value: takenBack: - notion/notion-fetch - notion/notion-search AppAccessApprovalExample: summary: Notion's reads, given to the Bot. value: appAccessRequest: id: 6f1c2a9e-4b7d-4e3a-8c5f-0d9e8b7a6c5d appId: notion appTitle: Notion kind: grant status: approved botId: research-assistant botName: Research Assistant requestedBy: user_2b7c requesterEmail: dana@example.com requesterName: Dana Reyes createdAt: '2026-11-14T09:00:00.000Z' resolvedAt: '2026-11-14T10:00:00.000Z' resolvedBy: user_9a1d actions: [] note: null urgent: false enabled: false granted: - notion/notion-fetch - notion/notion-search AppTeamGrantsExample: summary: Granted to one team. value: teams: - Tm4Qx8LpV2nWc7RbY1sKd0Ze GiveableAppPageExample: summary: Two apps the person could give their Bots. value: apps: - id: notion title: Notion logo: null account: personal - id: routines title: Routines logo: null account: deployment nextCursor: null AppAccessRequestPageExample: summary: One request waiting. value: appAccessRequests: - id: 6f1c2a9e-4b7d-4e3a-8c5f-0d9e8b7a6c5d appId: notion appTitle: Notion kind: grant status: pending botId: research-assistant botName: Research Assistant requestedBy: user_2b7c requesterEmail: dana@example.com requesterName: Dana Reyes createdAt: '2026-11-14T09:00:00.000Z' resolvedAt: null resolvedBy: null actions: [] note: For the weekly launch notes in the team wiki. urgent: true nextCursor: null AppAccessRequestExample: summary: A request to give Notion to a Bot. value: id: 6f1c2a9e-4b7d-4e3a-8c5f-0d9e8b7a6c5d appId: notion appTitle: Notion kind: grant status: pending botId: research-assistant botName: Research Assistant requestedBy: user_2b7c requesterEmail: dana@example.com requesterName: Dana Reyes createdAt: '2026-11-14T09:00:00.000Z' resolvedAt: null resolvedBy: null actions: [] note: For the weekly launch notes in the team wiki. urgent: true DismissedAppAccessRequestExample: summary: The same request, dismissed. value: id: 6f1c2a9e-4b7d-4e3a-8c5f-0d9e8b7a6c5d appId: notion appTitle: Notion kind: grant status: dismissed botId: research-assistant botName: Research Assistant requestedBy: user_2b7c requesterEmail: dana@example.com requesterName: Dana Reyes createdAt: '2026-11-14T09:00:00.000Z' resolvedAt: '2026-11-14T10:00:00.000Z' resolvedBy: user_9a1d actions: [] note: For the weekly launch notes in the team wiki. urgent: true ComponentPageExample: summary: A chart and a Playground component, as an admin sees them. value: components: - name: showBarChart title: Bar chart kind: chart published: true publishedAt: '2026-11-02T10:15:00.000Z' description: Compare values across categories with a bar chart. source: null draft: title: Bar chart description: Compare values across categories with a bar chart. source: null hasUnpublishedChanges: false withheldFrom: - agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 functions: [] updatedBy: the build updatedAt: '2026-11-02T10:15:00.000Z' - name: custom_weather title: Weather card kind: playground published: true publishedAt: '2026-11-13T16:40:12.000Z' description: Show today's weather for one city. source: html:

css: '.card { padding: 12px; }' jsFunctions: document.getElementById("city").textContent = window.__args.city; argumentSchema: type: object properties: city: type: string revision: 3 draft: title: Weather card description: Show today's weather for one city. source: html:

css: '.card { padding: 12px; }' jsFunctions: document.getElementById("city").textContent = window.__args.city; argumentSchema: type: object properties: city: type: string sampleArguments: city: Lisbon hasUnpublishedChanges: false withheldFrom: [] functions: [] updatedBy: admin@example.com updatedAt: '2026-11-13T16:40:12.000Z' nextCursor: null AnnouncedComponentsExample: summary: One component OpenBot had not seen before. value: added: - showActivityReport ComponentExample: summary: A card that reads data, as an admin sees it. value: name: showActivityReport title: Activity report kind: card published: true publishedAt: '2026-11-02T10:15:00.000Z' description: Show how many actions each Bot took recently. source: null draft: title: Activity report description: Show how many actions each Bot took recently, counted from the audit trail. source: null hasUnpublishedChanges: true withheldFrom: [] functions: - botActivity updatedBy: admin@example.com updatedAt: '2026-11-14T08:05:31.000Z' PublishedComponentExample: summary: The same card, as anybody who isn't an admin sees it. value: name: showActivityReport title: Activity report kind: card published: true publishedAt: '2026-11-02T10:15:00.000Z' description: Show how many actions each Bot took recently. source: null draft: null hasUnpublishedChanges: null withheldFrom: null functions: null updatedBy: null updatedAt: '2026-11-14T08:05:31.000Z' NewPlaygroundComponentExample: summary: A Playground component just saved, not yet published. value: name: custom_weather title: Weather card kind: playground published: false publishedAt: null description: null source: null draft: title: Weather card description: Show today's weather for one city. source: html:

css: '.card { padding: 12px; }' jsFunctions: document.getElementById("city").textContent = window.__args.city; argumentSchema: type: object properties: city: type: string sampleArguments: city: Lisbon hasUnpublishedChanges: true withheldFrom: [] functions: [] updatedBy: admin@example.com updatedAt: '2026-11-14T09:00:00.000Z' UnpublishedComponentExample: summary: A chart no Bot may draw for now. value: name: showPieChart title: Pie chart kind: chart published: false publishedAt: '2026-11-02T10:15:00.000Z' description: Show how a whole splits into parts with a pie chart. source: null draft: title: Pie chart description: Show how a whole splits into parts with a pie chart. source: null hasUnpublishedChanges: false withheldFrom: [] functions: [] updatedBy: admin@example.com updatedAt: '2026-11-14T08:20:00.000Z' DataFunctionPageExample: summary: The data functions this OpenBot ships, for the Activity report. value: functions: - name: botActivity description: How many actions each Bot has taken, counted from the audit trail. reads: the audit trail granted: true - name: recentRefusals description: The most recent things OpenBot refused, and why each was refused. reads: the audit trail granted: false nextCursor: null DataFunctionExample: summary: A data function the component may now read. value: name: botActivity description: How many actions each Bot has taken, counted from the audit trail. reads: the audit trail granted: true BotComponentPageExample: summary: Two components one Bot may draw. value: components: - name: showActivityReport description: Show how many actions each Bot took recently. - name: showBarChart description: Compare values across categories with a bar chart. nextCursor: null ComponentCheckAllowed: summary: The Bot may draw it. value: allowed: true reason: null ComponentCheckRefused: summary: The Bot is held back from it. value: allowed: false reason: Bar chart has been withheld from this Bot in this deployment, though other Bots may use it. Answer in prose instead. ComponentCallRead: summary: A week of actions, by Bot. value: allowed: true data: days: 7 rows: - bot: research-assistant actions: 41 - bot: general-assistant actions: 12 reason: null ComponentCallRefused: summary: The component may not read that data. value: allowed: false data: null reason: showActivityReport can't use the function recentRefusals. An admin has to give it to this component. SkillPageExample: summary: Every skill the caller can see, on one page. value: skills: - slug: standup title: Standup summary: Write today's standup from my calendar and my pull requests. instructions: Read my calendar for today and my open pull requests, then write three short lines. tools: - google-calendar/list_events ownerId: user_3f1c9a botIds: - general-assistant usableOnYourBots: true - slug: weekly-report title: Weekly report summary: Sum up the week's work for the team. instructions: Read this week's closed issues and merged pull requests and write a short report. tools: [] ownerId: null botIds: - general-assistant - research-assistant usableOnYourBots: false nextCursor: null SkillExample: summary: A person's own skill, offered by one Bot. value: slug: standup title: Standup summary: Write today's standup from my calendar and my pull requests. instructions: Read my calendar for today and my open pull requests, then write three short lines. tools: - google-calendar/list_events ownerId: user_3f1c9a botIds: - general-assistant usableOnYourBots: true SkillTeamGrantsExample: summary: Granted to one team. value: teams: - Tm4Qx8LpV2nWc7RbY1sKd0Ze DevicePageLast: summary: A person's iPhone, on one page. value: devices: - id: 2b7c4d1e-9f3a-4e6b-8c5d-1a2b3c4d5e6f platform: ios createdAt: '2026-11-08T09:12:44.000Z' nextCursor: null DeviceResponseExample: summary: An iPhone, registered. value: device: id: 2b7c4d1e-9f3a-4e6b-8c5d-1a2b3c4d5e6f platform: ios createdAt: '2026-11-08T09:12:44.000Z' DestinationPageLast: summary: A Slack chat and a phone, on one page. value: destinations: - id: 3e1f6a2b-8c4d-4b7e-9a1c-5d2e8f0b7a64 transport: slack conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 address: D07QK3M2LTB optedOutAt: null createdAt: '2026-11-09T16:40:02.000Z' - id: 8a4c2e6f-0b1d-4f3a-9e7c-2d5b8f1a6c30 transport: sms conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 address: '+14155550123' optedOutAt: null createdAt: '2026-11-10T08:03:19.000Z' nextCursor: null ChatLinkCodeExample: summary: A code to send in Slack. value: platform: slack code: 6f2b9d4e-1a3c-4e5f-8b7a-0c9d2e1f3a4b command: link 6f2b9d4e-1a3c-4e5f-8b7a-0c9d2e1f3a4b expiresAt: '2026-11-14T09:15:00.000Z' PhoneVerificationExample: summary: A code on its way. value: verificationId: 7c1d2e3f-4a5b-4c6d-8e9f-0a1b2c3d4e5f expiresAt: '2026-11-14T09:15:00.000Z' DestinationResponseExample: summary: A phone, connected. value: destination: id: 8a4c2e6f-0b1d-4f3a-9e7c-2d5b8f1a6c30 transport: sms conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 address: '+14155550123' optedOutAt: null createdAt: '2026-11-10T08:03:19.000Z' DeliveryPageLast: summary: A push notification and a text message. value: deliveries: - id: 0f3a7c2e-5b1d-4e8a-9c6f-2d4b7e1a3c58 transport: push kind: approval state: delivered error: null conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 createdAt: '2026-11-14T08:41:07.000Z' - id: 9b2d4f6a-8c0e-4a1b-b3d5-7e9f1a2c4e60 transport: sms kind: reply state: failed error: '30006' conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 createdAt: '2026-11-13T17:22:51.000Z' nextCursor: null NotificationSettingsExample: summary: Questions by push and Slack, app requests by email, everything else every way. value: routing: progress: all decision: all question: - push - slack attention: all appAccessRequest: - email appAccessRequestChannels: - id: push title: Push - id: email title: Email - id: slack title: Slack BotNotificationSettingsExample: summary: Only what needs the person. value: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 notify: needs_input NotificationTransportPageLast: summary: Push, Slack and Microsoft Teams, set up. value: notificationTransports: - id: push title: Push - id: slack title: Slack - id: teams title: Microsoft Teams nextCursor: null RoutinePageExample: summary: A person's routines, on one page. value: routines: - id: 4a0d6f6e-1c1b-4f3e-8a52-0d9b7c6e5f41 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 schedule: Weekdays at 09:00 cron: 0 9 * * 1-5 timezone: America/New_York instruction: Summarize my unread mail and today's calendar. title: Morning brief conversation: id: 5f0c2a52-3f1e-4a55-9d0a-7f6d2b1c8e90 name: General Assistant title: Morning brief gone: false enabled: true nextRunAt: '2026-11-16T14:00:00.000Z' lastRun: status: succeeded at: '2026-11-13T14:00:41.000Z' goalId: null createdAt: '2026-11-02T16:21:09.000Z' nextCursor: null RoutineResponseExample: summary: A routine. value: routine: id: 4a0d6f6e-1c1b-4f3e-8a52-0d9b7c6e5f41 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 schedule: Weekdays at 09:00 cron: 0 9 * * 1-5 timezone: America/New_York instruction: Summarize my unread mail and today's calendar. title: Morning brief conversation: id: 5f0c2a52-3f1e-4a55-9d0a-7f6d2b1c8e90 name: General Assistant title: Morning brief gone: false enabled: true nextRunAt: '2026-11-16T14:00:00.000Z' lastRun: status: succeeded at: '2026-11-13T14:00:41.000Z' goalId: null createdAt: '2026-11-02T16:21:09.000Z' RoutineSwitchExample: summary: A routine, paused. value: enabled: false RoutineRunAcceptedExample: summary: A run, accepted. value: accepted: true runId: 0f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f RoutineRunPageExample: summary: A routine's runs, on one page. value: runs: - id: 0f1e2d3c-4b5a-4968-8776-5a4b3c2d1e0f status: succeeded startedAt: '2026-11-13T14:00:00.000Z' finishedAt: '2026-11-13T14:00:41.000Z' error: null source: schedule nextCursor: null CheckInPageExample: summary: A person's check-ins, on one page. value: checkIns: - id: c1f0a4de-52b7-4c0b-9a57-3a1e8d2f6b90 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 conversationId: 5f0c2a52-3f1e-4a55-9d0a-7f6d2b1c8e90 focus: Tell me when the vendor replies about the renewal. subject: Vendor contract renewal sourceLink: null enabled: true intervalMinutes: 1440 nextRunAt: '2026-11-15T09:00:00.000Z' lastRunAt: '2026-11-14T09:00:00.000Z' lastStatus: succeeded lastError: null lastRun: outcome: quiet trigger: schedule skipReason: null why: null itemsRaised: 0 startedAt: '2026-11-14T09:00:00.000Z' finishedAt: '2026-11-14T09:00:38.000Z' createdAt: '2026-11-10T12:00:00.000Z' updatedAt: '2026-11-14T09:00:38.000Z' allowed: true nextCursor: null CheckInResponseExample: summary: A check-in. value: checkIn: id: c1f0a4de-52b7-4c0b-9a57-3a1e8d2f6b90 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 conversationId: 5f0c2a52-3f1e-4a55-9d0a-7f6d2b1c8e90 focus: Tell me when the vendor replies about the renewal. subject: Vendor contract renewal sourceLink: null enabled: true intervalMinutes: 1440 nextRunAt: '2026-11-15T09:00:00.000Z' lastRunAt: '2026-11-14T09:00:00.000Z' lastStatus: succeeded lastError: null lastRun: outcome: quiet trigger: schedule skipReason: null why: null itemsRaised: 0 startedAt: '2026-11-14T09:00:00.000Z' finishedAt: '2026-11-14T09:00:38.000Z' createdAt: '2026-11-10T12:00:00.000Z' updatedAt: '2026-11-14T09:00:38.000Z' CheckInRunAnswerExample: summary: A check-in, queued. value: queued: true CheckInItemPageExample: summary: What a person's Bots found, on one page. value: checkInItems: - id: 9e8d7c6b-5a4f-4e3d-2c1b-0a9f8e7d6c5b botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 checkInId: c1f0a4de-52b7-4c0b-9a57-3a1e8d2f6b90 title: Reply to the vendor about the renewal detail: The vendor answered yesterday and asked for a decision by Friday. sourceApp: Gmail sourceRef: null sourceLink: https://mail.google.com/mail/u/0/#inbox/18c2f0a1b2c3d4e5 status: open pingId: null deliveredAt: null resolvedAt: null createdAt: '2026-11-14T09:00:36.000Z' nextCursor: null StartedCheckInItemExample: summary: An item, started as a task. value: checkInItem: id: 9e8d7c6b-5a4f-4e3d-2c1b-0a9f8e7d6c5b botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 checkInId: c1f0a4de-52b7-4c0b-9a57-3a1e8d2f6b90 title: Reply to the vendor about the renewal detail: The vendor answered yesterday and asked for a decision by Friday. sourceApp: Gmail sourceRef: null sourceLink: https://mail.google.com/mail/u/0/#inbox/18c2f0a1b2c3d4e5 status: started pingId: null deliveredAt: null resolvedAt: '2026-11-14T10:12:00.000Z' createdAt: '2026-11-14T09:00:36.000Z' task: id: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d conversationId: 8d7c6b5a-4f3e-4d2c-9b1a-0f9e8d7c6b5a CheckInItemWorkInConversationExample: summary: An item, started in the caller's own conversation with its Bot. value: checkInItem: id: 9e8d7c6b-5a4f-4e3d-2c1b-0a9f8e7d6c5b botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 checkInId: c1f0a4de-52b7-4c0b-9a57-3a1e8d2f6b90 title: Reply to the vendor about the renewal detail: The vendor answered yesterday and asked for a decision by Friday. sourceApp: Gmail sourceRef: null sourceLink: https://mail.google.com/mail/u/0/#inbox/18c2f0a1b2c3d4e5 status: started pingId: null deliveredAt: null resolvedAt: '2026-11-14T10:12:00.000Z' createdAt: '2026-11-14T09:00:36.000Z' task: null conversation: id: 5f0c2a52-3f1e-4a55-9d0a-7f6d2b1c8e90 message: |- Reply to the vendor about the renewal The vendor answered yesterday and asked for a decision by Friday. Source: https://mail.google.com/mail/u/0/#inbox/18c2f0a1b2c3d4e5 CheckInItemWorkAsTaskExample: summary: An item, started as a task. value: checkInItem: id: 9e8d7c6b-5a4f-4e3d-2c1b-0a9f8e7d6c5b botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 checkInId: c1f0a4de-52b7-4c0b-9a57-3a1e8d2f6b90 title: Reply to the vendor about the renewal detail: The vendor answered yesterday and asked for a decision by Friday. sourceApp: Gmail sourceRef: null sourceLink: https://mail.google.com/mail/u/0/#inbox/18c2f0a1b2c3d4e5 status: started pingId: null deliveredAt: null resolvedAt: '2026-11-14T10:12:00.000Z' createdAt: '2026-11-14T09:00:36.000Z' task: id: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d conversationId: 8d7c6b5a-4f3e-4d2c-9b1a-0f9e8d7c6b5a conversation: null CheckInItemResponseExample: summary: An item, hidden. value: checkInItem: id: 9e8d7c6b-5a4f-4e3d-2c1b-0a9f8e7d6c5b botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 checkInId: c1f0a4de-52b7-4c0b-9a57-3a1e8d2f6b90 title: Reply to the vendor about the renewal detail: The vendor answered yesterday and asked for a decision by Friday. sourceApp: Gmail sourceRef: null sourceLink: https://mail.google.com/mail/u/0/#inbox/18c2f0a1b2c3d4e5 status: dismissed pingId: null deliveredAt: null resolvedAt: '2026-11-14T10:12:00.000Z' createdAt: '2026-11-14T09:00:36.000Z' CheckInUsageExample: summary: A week of check-ins. value: days: 7 dailyRuns: 24 bots: - botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 name: General Assistant avatarSeed: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 peopleOn: 3 runs: quiet: 14 raised: 4 failed: 1 skipped: off_admin: 0 off_person: 0 paused: 0 capped: 2 unreachable: 0 no_sources: 0 busy: 0 items: raised: 6 started: 3 hidden: 1 cleared: 1 open: 1 acceptance: 0.75 pinged: 5 pings: sent: 4 itemsPerPing: 1.25 GoalPageExample: summary: A person's goals, on one page. value: goals: - id: 7d2c9b1a-0e4f-4b6a-8c3d-5e6f7a8b9c0d botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 conversationId: 5f0c2a52-3f1e-4a55-9d0a-7f6d2b1c8e90 threadId: thread_5f0c2a52 title: Keep the release notes current instruction: After each merged pull request, add a line to the draft release notes. successCriteria: '' status: active progress: '' lastResult: null subscriptions: [] recurring: true endsWhenMet: false createdAt: '2026-11-12T10:15:00.000Z' updatedAt: '2026-11-12T10:15:00.000Z' completedAt: null nextCursor: null GoalResponseExample: summary: A goal. value: goal: id: 7d2c9b1a-0e4f-4b6a-8c3d-5e6f7a8b9c0d botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 conversationId: 5f0c2a52-3f1e-4a55-9d0a-7f6d2b1c8e90 threadId: thread_5f0c2a52 title: Keep the release notes current instruction: After each merged pull request, add a line to the draft release notes. successCriteria: '' status: active progress: '' lastResult: null subscriptions: [] recurring: true endsWhenMet: false createdAt: '2026-11-12T10:15:00.000Z' updatedAt: '2026-11-12T10:15:00.000Z' completedAt: null GoalRunAcceptedExample: summary: A run, accepted. value: eventId: 3c2d1e0f-9a8b-4c7d-8e6f-5a4b3c2d1e0f duplicate: false runIds: - 5e4d3c2b-1a0f-4e9d-8c7b-6a5f4e3d2c1b GoalRunPageExample: summary: A goal's runs, on one page. value: runs: - id: 5e4d3c2b-1a0f-4e9d-8c7b-6a5f4e3d2c1b status: succeeded replyText: Added two lines to the draft release notes. error: null waiting: null startedAt: '2026-11-13T16:02:00.000Z' finishedAt: '2026-11-13T16:02:48.000Z' createdAt: '2026-11-13T16:01:59.000Z' nextCursor: null GoalTriggerPageExample: summary: A goal's triggers, on one page. value: triggers: - id: 2b7e1c90-4d5f-4a6b-9c8d-7e6f5a4b3c2d goalId: 7d2c9b1a-0e4f-4b6a-8c3d-5e6f7a8b9c0d kind: webhook config: kind: webhook filter: eventTypes: [] hasSecret: true enabled: true path: /api/events/triggers/2b7e1c90-4d5f-4a6b-9c8d-7e6f5a4b3c2d address: null createdAt: '2026-11-12T10:20:00.000Z' updatedAt: '2026-11-12T10:20:00.000Z' nextCursor: null GoalTriggerWithSecretExample: summary: A trigger, with the secret OpenBot made for it. value: trigger: id: 2b7e1c90-4d5f-4a6b-9c8d-7e6f5a4b3c2d goalId: 7d2c9b1a-0e4f-4b6a-8c3d-5e6f7a8b9c0d kind: webhook config: kind: webhook filter: eventTypes: [] hasSecret: true enabled: true path: /api/events/triggers/2b7e1c90-4d5f-4a6b-9c8d-7e6f5a4b3c2d address: null createdAt: '2026-11-12T10:20:00.000Z' updatedAt: '2026-11-12T10:20:00.000Z' secret: whsec_ZXhhbXBsZS1zZWNyZXQtZm9yLXRoZS1kb2Nz GoalTriggerResponseExample: summary: A trigger. value: trigger: id: 2b7e1c90-4d5f-4a6b-9c8d-7e6f5a4b3c2d goalId: 7d2c9b1a-0e4f-4b6a-8c3d-5e6f7a8b9c0d kind: webhook config: kind: webhook filter: eventTypes: [] hasSecret: true enabled: true path: /api/events/triggers/2b7e1c90-4d5f-4a6b-9c8d-7e6f5a4b3c2d address: null createdAt: '2026-11-12T10:20:00.000Z' updatedAt: '2026-11-12T10:20:00.000Z' GoalTriggerSecretExample: summary: A trigger's secret. value: secret: whsec_ZXhhbXBsZS1zZWNyZXQtZm9yLXRoZS1kb2Nz GithubEventSourcePageExample: summary: A person's GitHub event sources, on one page. value: githubEventSources: - id: 6c5d4e3f-2a1b-4c9d-8e7f-0a1b2c3d4e5f source: github repository: acme/storefront createdAt: '2026-11-12T10:30:00.000Z' webhookPath: /api/events/github/6c5d4e3f-2a1b-4c9d-8e7f-0a1b2c3d4e5f nextCursor: null GithubEventSourceResponseExample: summary: A GitHub event source, as it was connected. value: githubEventSource: id: 6c5d4e3f-2a1b-4c9d-8e7f-0a1b2c3d4e5f source: github repository: acme/storefront createdAt: '2026-11-12T10:30:00.000Z' webhookPath: /api/events/github/6c5d4e3f-2a1b-4c9d-8e7f-0a1b2c3d4e5f FollowUpCancelledExample: summary: A follow-up, cancelled. value: cancelled: true OrganizationPageLast: summary: Somebody in their own organization and one they created, working in their own. value: organizations: - id: Wm4pZ7tKc1Xb9RnQ2sYd6hLe slug: dana name: Dana’s organization role: owner active: true personal: true - id: Jq3xT9mLw2Vb8RnC5sYd0fKe slug: acme-research name: Acme Research role: owner active: false personal: false canCreate: true nextCursor: null CreatedOrganization: summary: A new organization, owned by whoever created it. value: organization: id: Jq3xT9mLw2Vb8RnC5sYd0fKe slug: acme-research name: Acme Research role: owner active: false personal: false OrganizationMemberPageLast: summary: An organization's members, on one page. value: members: - id: 8kq2m4x7p1rvz3a9c5d0 email: dana.whitfield@acme.com name: Dana Whitfield image: null role: owner joinedAt: '2026-11-14T09:12:40.000Z' removable: false assignableRoles: [] - id: 2fn8w1c6y4tq7h0mbe3s email: sam.ortiz@acme.com name: Sam Ortiz image: null role: member joinedAt: '2026-11-14T09:20:05.000Z' removable: true assignableRoles: - owner - admin nextCursor: null RenamedOrganization: summary: An organization with its new name. value: organization: id: Jq3xT9mLw2Vb8RnC5sYd0fKe slug: acme-research name: Acme Research Lab role: owner active: true personal: false PromotedOrganizationMember: summary: A member an owner has made an owner too. value: member: id: 2fn8w1c6y4tq7h0mbe3s email: sam.ortiz@acme.com name: Sam Ortiz image: null role: owner joinedAt: '2026-11-14T09:20:05.000Z' removable: true assignableRoles: - admin - member OrganizationInvitationPageLast: summary: One invitation waiting and one that expired. value: invitations: - id: 5b0f6f0e-6f0b-4c0e-9d57-0d6f3a5f9a11 email: sam.ortiz@acme.com role: member status: pending invitedBy: name: Dana Whitfield email: dana.whitfield@acme.com createdAt: '2026-11-15T09:20:05.000Z' expiresAt: '2026-11-22T09:20:05.000Z' - id: 0c2d7a53-1f4e-4f0a-8a57-3d1b2c9e7f42 email: lee.park@acme.com role: admin status: expired invitedBy: name: Dana Whitfield email: dana.whitfield@acme.com createdAt: '2026-11-01T09:20:05.000Z' expiresAt: '2026-11-08T09:20:05.000Z' nextCursor: null CreatedOrganizationInvitation: summary: An invitation OpenBot could not email, so the inviter passes the link on. value: invitation: id: 5b0f6f0e-6f0b-4c0e-9d57-0d6f3a5f9a11 email: sam.ortiz@acme.com role: member status: pending invitedBy: name: Dana Whitfield email: dana.whitfield@acme.com createdAt: '2026-11-15T09:20:05.000Z' expiresAt: '2026-11-22T09:20:05.000Z' delivery: link OrganizationPlanFree: summary: On the free allowance, 42% of it used, read by an admin. value: required: true status: free freeRunsUsedPercent: 42 trialEndsAt: null renewsAt: null addCardUrl: null OrganizationPlanFreeRunsUsedUp: summary: Every free run used and no plan yet, read by an admin. value: required: true status: none freeRunsUsedPercent: 100 freeRunsAllowance: 500 trialEndsAt: null renewsAt: null addCardUrl: /api/auth/hosted/checkout?organizationId=Jq3xT9mLw2Vb8RnC5sYd0fKe OrganizationPlanCopilotKitEmployee: summary: An employee of the company that makes OpenBot, past the free allowance, whose runs still go ahead. value: required: true status: free freeRunsUsedPercent: 100 freeRunsAllowance: 500 copilotKitEmployee: true trialEndsAt: null renewsAt: null addCardUrl: null OrganizationPlanActive: summary: An organization on the plan. value: required: true status: active trialEndsAt: null renewsAt: '2026-12-23T09:30:00Z' addCardUrl: null OrganizationPlanNotRequired: summary: An OpenBot that needs no plan. value: required: false status: not_required trialEndsAt: null renewsAt: null addCardUrl: null OrganizationPlanTrialing: summary: A free trial that ends on a date. OpenBot Cloud's free allowance doesn't use it. value: required: true status: trialing trialEndsAt: '2026-12-20T09:30:00Z' renewsAt: null addCardUrl: null InvitationPageLast: summary: One invitation waiting for the caller. value: invitations: - id: 5b0f6f0e-6f0b-4c0e-9d57-0d6f3a5f9a11 organization: id: Jq3xT9mLw2Vb8RnC5sYd0fKe slug: acme-research name: Acme Research role: member status: pending invitedBy: name: Dana Whitfield email: dana.whitfield@acme.com createdAt: '2026-11-15T09:20:05.000Z' expiresAt: '2026-11-22T09:20:05.000Z' nextCursor: null WaitingInvitation: summary: An invitation the caller can still answer. value: invitation: id: 5b0f6f0e-6f0b-4c0e-9d57-0d6f3a5f9a11 organization: id: Jq3xT9mLw2Vb8RnC5sYd0fKe slug: acme-research name: Acme Research role: member status: pending invitedBy: name: Dana Whitfield email: dana.whitfield@acme.com createdAt: '2026-11-15T09:20:05.000Z' expiresAt: '2026-11-22T09:20:05.000Z' JoinedOrganization: summary: The organization somebody joined by accepting an invitation. value: organization: id: Jq3xT9mLw2Vb8RnC5sYd0fKe slug: acme-research name: Acme Research role: member active: false personal: false AccountDeletionBlockedExample: summary: Two organizations to deal with first value: status: none blockers: - organizationId: org_acme organizationName: Acme reason: only_owner - organizationId: org_globex organizationName: Globex reason: owner_must_leave AccountDeletionClearExample: summary: Nothing stops it value: status: none blockers: [] AccountDeletionDeletingExample: summary: A deletion that stopped partway, still finishing value: status: deleting blockers: [] TeamPageLast: summary: An organization's teams, on one page. value: teams: - id: Tm4Qx8LpV2nWc7RbY1sKd0Ze name: Sales description: Everybody who sells. parentTeamId: null source: openbot memberCount: 2 role: maintainer canManage: true canMove: true canDelete: true createdAt: '2026-11-15T09:12:40.000Z' - id: Fn2Wc6Yt4Qh7M0be3sKq8xLp name: Finance description: null parentTeamId: null source: directory memberCount: 1 role: null canManage: false canMove: true canDelete: false createdAt: '2026-11-15T09:20:05.000Z' canCreate: true nextCursor: null CreatedTeam: summary: A team made in OpenBot. value: team: id: Tm4Qx8LpV2nWc7RbY1sKd0Ze name: Sales description: Everybody who sells. parentTeamId: null source: openbot memberCount: 0 role: null canManage: true canMove: true canDelete: true createdAt: '2026-11-15T09:12:40.000Z' TeamMemberPageLast: summary: A team's people, on one page. value: members: - id: 8kq2m4x7p1rvz3a9c5d0 email: dana.whitfield@acme.com name: Dana Whitfield image: null role: maintainer isCaller: true joinedAt: '2026-11-15T09:13:02.000Z' - id: 2fn8w1c6y4tq7h0mbe3s email: sam.ortiz@acme.com name: Sam Ortiz image: null role: member isCaller: false joinedAt: '2026-11-15T09:20:05.000Z' nextCursor: null AddedTeamMember: summary: Somebody put in a team. value: member: id: 2fn8w1c6y4tq7h0mbe3s email: sam.ortiz@acme.com name: Sam Ortiz image: null role: member isCaller: false joinedAt: '2026-11-15T09:20:05.000Z' LimitedTeamModels: summary: A team whose people run two models. value: models: - openai/gpt-5.6-terra - anthropic/claude-sonnet-5 updatedBy: 8kq2m4x7p1rvz3a9c5d0 updatedAt: '2026-11-23T10:04:12.000Z' NoTeamModels: summary: A team that sets no models. value: models: null updatedBy: null updatedAt: null ApprovalPageExample: summary: One approval waiting, on the last page. value: approvals: - id: 6f1d2c3b-4a5e-4f60-8a7b-9c0d1e2f3a4b status: pending decision: null result: null createdAt: '2026-11-14T09:12:44.501Z' decidedAt: null consumedAt: null completedAt: null action: botId: research-assistant toolRef: mcp/gmail/send_email effect: write scope: gmail threadId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 toolCallId: call_8c1f args: to: sam.okafor@acme.com subject: Q4 numbers target: app: gmail policy: behaviour: ask source: safety reason: Sending a message asks first. kind: sending nextCursor: null ApprovalDecidedExample: summary: The same send, allowed once. value: id: 6f1d2c3b-4a5e-4f60-8a7b-9c0d1e2f3a4b status: approved decision: allow_once result: null createdAt: '2026-11-14T09:12:44.501Z' decidedAt: '2026-11-14T09:13:02.118Z' consumedAt: null completedAt: null action: botId: research-assistant toolRef: mcp/gmail/send_email effect: write scope: gmail threadId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 toolCallId: call_8c1f args: to: sam.okafor@acme.com subject: Q4 numbers target: app: gmail account: dana.whitfield@acme.com policy: behaviour: ask source: safety reason: Sending a message asks first. kind: sending QuestionPageExample: summary: One question waiting, on the last page. value: questions: - id: question_3b9a5f8e botId: research-assistant conversationBotId: research-assistant threadId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 channelId: 0d7f1a52-6c2e-4b1a-8f37-2a9c4d5e6f70 question: Which quarter should the report cover? why: The spreadsheet holds both. parts: - header: Quarter question: Which quarter? options: - Q3 - Q4 createdAt: '2026-11-14T09:20:00.000Z' nextCursor: null QuestionAnswerExample: summary: The server carries the Bot's work on with the answer. value: id: question_3b9a5f8e continueHere: false ApprovalPreferencesExample: summary: Asks before changes, with commands held to ask by the organization. value: enabled: true autoReview: false hostCommands: allow effectiveHostCommands: ask PersonApprovalRulePageExample: summary: One rule of the person's own, on the last page. value: approvalRules: - id: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f botId: research-assistant toolRef: mcp/gmail/send_email effect: write scope: gmail behaviour: allow account: dana.whitfield@acme.com kind: sending createdAt: '2026-11-14T09:13:02.118Z' nextCursor: null PersonApprovalRuleExample: summary: Always allow one Bot to send from one mailbox. value: id: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f botId: research-assistant toolRef: mcp/gmail/send_email effect: write scope: gmail behaviour: allow account: dana.whitfield@acme.com kind: sending createdAt: '2026-11-14T09:13:02.118Z' ConversationGrantPageExample: summary: One action allowed for one conversation, on the last page. value: conversationGrants: - id: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e threadId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 botId: research-assistant toolRef: mcp/gmail/send_email effect: write scope: gmail account: dana.whitfield@acme.com kind: sending createdAt: '2026-11-14T09:13:02.118Z' nextCursor: null ApprovalModeExample: summary: An ordinary conversation. value: asksEveryStep: false ComputerStepDoneExample: summary: The step ran. value: outcome: done result: ok: true ComputerStepWaitingExample: summary: The step waits for the person. value: outcome: waiting approvalId: 6f1d2c3b-4a5e-4f60-8a7b-9c0d1e2f3a4b reason: This action is waiting for your approval. ComputerStepHeldExample: summary: The person has the computer. value: outcome: held error: 'Not done: the person has control of the computer right now. Tell them you''ll do this once they hand it back.' humanHasControl: true ComputerStepTakenExample: summary: The server already ran this step, and this is what it answered. value: outcome: taken threadId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 toolCallId: call_8c1f running: false result: ok: true ComputerStepTakenRunningExample: summary: The server is running this step, and it has not answered yet. value: outcome: taken threadId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 toolCallId: call_8c1f running: true ApprovalSettingsExample: summary: Payments are left to the person, and everything else is open. value: enforceAutoReview: false customRulesEnabled: true hostCommandsCap: allow actionKinds: payments: hand_off ApprovalRulePageExample: summary: One rule of the organization's, on the last page. value: approvalRules: - id: 7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d botId: '*' toolRef: mcp/gmail/* effect: '*' scope: '*' behaviour: ask createdBy: 3f6f0a52-1d0e-4f5c-9a43-1c2b6c3e9f10 createdAt: '2026-11-14T09:00:00.000Z' nextCursor: null ApprovalRuleExample: summary: Every Bot asks before any Gmail tool. value: id: 7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d botId: '*' toolRef: mcp/gmail/* effect: '*' scope: '*' behaviour: ask createdBy: 3f6f0a52-1d0e-4f5c-9a43-1c2b6c3e9f10 createdAt: '2026-11-14T09:00:00.000Z' ApprovalRuleDraftTranslationExample: summary: One rule that asks before changes in an app. value: rules: - botId: '*' toolRef: composio-salesforce/* effect: write scope: composio-salesforce behaviour: ask summary: Every Bot asks before changing anything in Salesforce. explanation: Every Bot asks before it changes anything in Salesforce. Reading Salesforce is not covered. check: ok: true warning: null ApprovalRuleDraftReplayExample: summary: One ask the rules would remove. value: check: ok: true warning: null report: scanned: 120 matched: 4 changed: 1 removedAsks: 1 removedDenied: 1 addedAsks: 0 fixed: 0 changes: - id: 0b9d3c1e-6a7f-4a52-9f57-2f1c7a1f0c11 createdAt: '2026-11-13T17:20:00.000Z' ownerUserId: user_ana initiator: kind: person id: null bot: sales-assistant toolRef: composio-salesforce/SALESFORCE_UPDATE_OPPORTUNITY effect: write scope: composio-salesforce subject: {} was: ask wasSource: default would: allow change: removes_ask person: deny rule: 1 reason: Rule 1 takes action without asking. ApprovalRuleDraftSavedRulesExample: summary: One rule saved. value: rules: - id: 5f0c2a52-7d0e-4f0b-b5a8-0d2f5d0f6f10 botId: '*' toolRef: composio-salesforce/* effect: write scope: composio-salesforce behaviour: ask createdBy: user_admin revokedAt: null createdAt: '2026-11-13T17:20:00.000Z' ReviewerGuidanceExample: summary: Guidance in force. value: guidance: Ask before any Bot changes a deal worth over $100,000. ReviewerGuidanceSavedExample: summary: Guidance saved, with how it was read. value: guidance: Ask before any Bot changes a deal worth over $100,000. summary: Asks before any Bot changes a deal worth over $100,000. explanation: The reviewer will ask before a Bot changes a deal worth over $100,000. It can only tell a deal's value when the action names it. check: ok: true ReviewerGuidanceReadingExample: summary: Words that read as guidance. value: summary: Asks before any Bot changes a deal worth over $100,000. explanation: The reviewer will ask before a Bot changes a deal worth over $100,000. It can only tell a deal's value when the action names it. check: ok: true ReviewerGuidanceReplayExample: summary: One request, and auto-review agrees with the person. value: sample: 1 reviewed: 1 agreed: 1 letThroughDenied: 0 askedAllowed: 0 unreviewed: 0 withoutRequest: 0 skippedSafety: 2 rows: - id: 0b9d3c1e-6a7f-4a52-9f57-2f1c7a1f0c11 createdAt: '2026-11-13T17:20:00.000Z' ownerUserId: user_ana initiator: kind: person id: null bot: sales-assistant toolRef: composio-salesforce/SALESFORCE_UPDATE_OPPORTUNITY effect: write scope: composio-salesforce subject: {} person: deny would: ask outcome: agree reason: The deal is worth more than $100,000. hadRequest: true BoundariesExample: summary: One deny rule, and everything else allowed. value: mode: enforce deny: - intent == "run_command" && initiator.kind != "person" allow: - 'true' labels: intent == "run_command" && initiator.kind != "person": name: No commands when nobody is watching description: Stops a Bot running a shell command in a run nobody started by hand. BoundaryTranslationExample: summary: A deny rule that compiles. value: rule: intent == "run_command" && initiator.kind != "person" effect: deny summary: Stops a Bot running shell commands when nobody is watching. explanation: Stops a Bot running a shell command in any run a person didn't start by chatting with it, such as a routine. Commands in a chat still run. compile: ok: true warning: null BoundaryReplayReportExample: summary: One recent action would be refused. value: scanned: 120 wouldRefuse: 1 wouldAllow: 0 unchanged: 119 changes: - id: 0b8f3a52-5d0e-4f5c-9a43-1c2b6c3e9f10 createdAt: '2026-11-14T09:12:44.501Z' kind: computer action: computer_run_command bot: research-assistant page: '' element: null command: rm -rf build file: null initiator: kind: routine id: routine_7f2c was: allowed would: refused rule: intent == "run_command" && initiator.kind != "person" reason: A deny rule matched. WhatIfVocabularyExample: summary: One Bot, one person, one group and one app. value: bots: - id: sales name: Sales owner: user_8d2f people: - id: user_8d2f name: Sam Lee email: sam@example.com groups: - Finance apps: - id: composio-gmail name: Gmail tools: - name: list_emails effect: read destructive: false - name: send_email effect: write destructive: false WhatIfReadingExample: summary: A question read as a routine sending email. value: understood: 'yes' action: bot: sales person: user_8d2f group: '' initiator: routine surface: app app: composio-gmail tool: send_email intent: '' host: '' label: '' command: '' file: '' labels: bot: Sales person: Sam Lee app: Gmail missing: null WhatIfCheckExample: summary: A boundary refuses it. value: action: bot: sales person: user_8d2f group: '' initiator: routine surface: app app: composio-gmail tool: send_email intent: '' host: '' label: '' command: '' file: '' labels: bot: Sales person: Sam Lee app: Gmail result: outcome: refused decidedBy: boundaries headline: Refused. Boundaries decide it. layers: - id: grant title: App access verdict: allows summary: The Sales Bot has been given "Send email" on Gmail. page: /admin/plugins decides: false unreached: false - id: boundaries title: Boundaries verdict: refuses summary: The rule "No email when nobody is watching" refuses it. basis: No email when nobody is watching rule: mcp.server == "composio-gmail" && initiator.kind != "person" page: /admin/boundaries decides: true unreached: false notApplicable: - Network notChecked: [] effect: write WhatIfExplanationExample: summary: An email a boundary refused, and still refuses. value: action: bot: sales person: user_8d2f group: '' initiator: routine surface: app app: composio-gmail tool: send_email intent: '' host: '' label: '' command: '' file: '' labels: bot: Sales person: Sam Lee app: Gmail result: outcome: refused decidedBy: boundaries headline: Refused. Boundaries decide it. layers: - id: boundaries title: Boundaries verdict: refuses summary: The rule "No email when nobody is watching" refuses it. basis: No email when nobody is watching rule: mcp.server == "composio-gmail" && initiator.kind != "person" page: /admin/boundaries decides: true unreached: false notApplicable: - Network notChecked: [] effect: write recorded: outcome: refused layer: boundaries summary: Refused by the boundary "No email when nobody is watching". SharedUseRequestPageExample: summary: One request waiting. value: sharedUseRequests: - id: 5f0c2f6e-3c1b-4d55-9a0e-7b1f6f4f2a10 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 botName: Triage ownerUserId: user_2b8kq4 serverId: composio-github title: GitHub proposed: audience: team outsideInput: false members: [] current: audience: owner outsideInput: false members: [] reason: publish requestedBy: user_2b8kq4 status: pending createdAt: '2026-11-14T09:00:00.000Z' nextCursor: null SharedUseRequestFiledExample: summary: A request this call filed. value: id: 5f0c2f6e-3c1b-4d55-9a0e-7b1f6f4f2a10 created: true SharedUseRequestApprovedExample: summary: A request an administrator approved. value: id: 5f0c2f6e-3c1b-4d55-9a0e-7b1f6f4f2a10 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 botName: Triage ownerUserId: user_2b8kq4 serverId: composio-github title: GitHub proposed: audience: team outsideInput: false members: [] current: audience: team outsideInput: false members: [] reason: publish requestedBy: user_2b8kq4 status: approved createdAt: '2026-11-14T09:00:00.000Z' SharedUseRequestDeclinedExample: summary: A request an administrator declined. value: id: 5f0c2f6e-3c1b-4d55-9a0e-7b1f6f4f2a10 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 botName: Triage ownerUserId: user_2b8kq4 serverId: composio-github title: GitHub proposed: audience: team outsideInput: false members: [] current: audience: owner outsideInput: false members: [] reason: publish requestedBy: user_2b8kq4 status: declined createdAt: '2026-11-14T09:00:00.000Z' BotSharedUseExample: summary: One shared app, approved for less than the Bot needs now. value: apps: - serverId: composio-github title: GitHub approval: audience: owner outsideInput: false members: [] needed: audience: people outsideInput: false members: - kind: group value: Support covered: false pending: [] HostAccessExample: summary: One folder given, and Desktop connected. value: connected: true desktop: true grants: - id: 0d6c9d0c-7c0e-4b53-8a57-0e1b7a2f9c11 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 actorId: user_2b8kq4 displayName: Quarterly reports revoked: false pending: [] HostAccessGrantExample: summary: A folder the person chose. value: id: 0d6c9d0c-7c0e-4b53-8a57-0e1b7a2f9c11 botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 actorId: user_2b8kq4 displayName: Quarterly reports revoked: false BotConnectionAnswered: summary: An agent answered. value: ok: true events: - RUN_STARTED - TEXT_MESSAGE_START - TEXT_MESSAGE_CONTENT - TEXT_MESSAGE_END - RUN_FINISHED reason: null BotConnectionRefused: summary: The address needs a key. value: ok: false events: [] reason: The agent refused this request. If it needs a key, add it as a header. BotCallbackTokenExample: summary: A new token. value: token: obcb_7f3a9c2e5d1b4f60a8e2c9d4b1f7e3a6 BotHandoffExample: summary: May hand work to one other Bot. value: enabled: true canGrant: false reachable: - agent_4d2e8a10-1b3c-4e5f-9a7b-6c8d0e2f4a61 grantable: true BotLifecycleRunning: summary: Not paused. value: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 paused: false pausedAt: null notify: all BotPaused: summary: Paused, with one turn stopped. value: lifecycle: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 paused: true pausedAt: '2026-11-14T09:30:00.000Z' notify: all stoppedTurns: 1 BotResetPreview: summary: What a reset would delete. value: validateOnly: true deleted: conversations: 4 sharedConversationsKept: 1 memorySources: 2 memories: 17 routines: 1 responsibilities: 0 followUps: 2 formedMemories: 3 backgroundResearch: 0 standingApprovals: 1 BotActivityExample: summary: One routine running, one follow-up due. value: inProgress: - id: run:run_51ac kind: routine title: Morning inbox summary detail: null status: running at: '2026-11-14T09:00:00.000Z' channelId: chn_2b7d needsYou: false stoppable: false cancellable: false scheduled: - id: wake:wk_8e01 kind: follow_up title: Check whether the invoice was paid detail: null status: due at: '2026-11-15T09:00:00.000Z' channelId: chn_2b7d needsYou: false stoppable: false cancellable: true onDemand: [] completed: [] BotAttentionPageLast: summary: One Bot waiting on the person. value: attention: - botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 name: Expense Review questions: 1 approvals: 0 handoffs: 0 unread: 2 paused: false notify: all items: 0 tasks: needsInput: 0 ready: 1 failed: 0 waitingIn: chn_2b7d lastPingId: ping_0c4f nextCursor: null TeamBotPageLast: summary: Every Team Bot, on one page. value: teamBots: - botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 name: Expense Review title: Finance Operations roleDescription: Review receipts, categorize expenses, and prepare reimbursement reports. mine: true audience: people publishedAt: '2026-11-12T16:20:00.000Z' assigned: false visibleToTeam: true people: - maya@example.com groups: - finance assignedGroups: [] nextCursor: null TeamBotExample: summary: Published to everyone in the organization, seen by one of them. value: teamBot: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 name: Expense Review title: Finance Operations roleDescription: Review receipts, categorize expenses, and prepare reimbursement reports. mine: false audience: team publishedAt: '2026-11-12T16:20:00.000Z' assigned: true visibleToTeam: true PublishedTeamBotExample: summary: Published by its owner, with a shared app to approve. value: teamBot: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 name: Expense Review title: Finance Operations roleDescription: Review receipts, categorize expenses, and prepare reimbursement reports. mine: true audience: team publishedAt: '2026-11-12T16:20:00.000Z' assigned: false visibleToTeam: true people: [] groups: [] assignedGroups: [] sharedApps: approved: [] needsApproval: - serverId: composio-gmail title: Gmail ComputerPageExample: summary: One person's computer and one isolated Bot's. value: computers: - id: bot:research-assistant computer: bot:research-assistant kind: bot botId: research-assistant running: false startedAt: null egress: null - id: person:user_2b8kq4 computer: person:user_2b8kq4 kind: person personId: user_2b8kq4 person: name: Ada Okafor email: ada@example.com running: true startedAt: '2026-11-14T08:59:10.000Z' egress: null updateAvailable: false isolation: per-person nextCursor: null ComputerStoppedExample: summary: A running computer, stopped. value: wasRunning: true ComputerResetExample: summary: A profile deleted. value: cleared: true ComputerUpdatedExample: summary: A running computer moved onto the current image. value: updated: true wasRunning: true ComputerStatusExample: summary: A computer that is up. value: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 state: ready WorkspaceSnapshotsExample: summary: A computer with two daily copies and one from before a restore. value: computer: person:user_2b8kq4 available: true canRestore: true snapshots: - id: snap_20261121t1504z_9xq1 takenAt: '2026-11-21T15:04:12Z' kind: before-restore - id: snap_20261121t0300z_4kq2 takenAt: '2026-11-21T03:00:41Z' kind: daily - id: snap_20261120t0300z_7mn3 takenAt: '2026-11-20T03:00:38Z' kind: daily restore: id: rst_5f2a9c snapshotId: snap_20261120t0300z_7mn3 snapshotTakenAt: '2026-11-20T03:00:38Z' beforeSnapshotId: snap_20261121t1504z_9xq1 state: done startedAt: '2026-11-21T15:04:10Z' finishedAt: '2026-11-21T15:07:55Z' error: null ComputerRestoreExample: summary: A restore that has just started. value: id: rst_5f2a9c snapshotId: snap_20261120t0300z_7mn3 snapshotTakenAt: '2026-11-20T03:00:38Z' beforeSnapshotId: null state: running startedAt: '2026-11-21T15:04:10Z' finishedAt: null error: null ComputerScreenshotExample: summary: A computer that is asleep, which the read did not wake. value: ready: false state: absent ComputerPageFrameExample: summary: No frame was kept for that tool call. value: frame: null ComputerPageTextExample: summary: A pricing page. value: url: https://example.com/pricing title: Pricing text: Starter is free. Team is 12 dollars a person each month. truncated: false ComputerStepRunningProblemExample: summary: The server is running this step now. value: type: https://open.bot/errors/computer-step-running title: This step is already being run. status: 409 detail: This step is already being run, and has not finished yet. Ask again in a moment for its result. code: COMPUTER_STEP_RUNNING category: conflict retryable: true requestId: req_example traceId: trace_example ComputerStepOutcomeUnknownProblemExample: summary: The step was cut off before it answered. value: type: https://open.bot/errors/computer-step-outcome-unknown title: This step's outcome is unknown. status: 409 detail: This step was started once and stopped before it finished, so it may or may not have been done. Check before doing it again. code: COMPUTER_STEP_OUTCOME_UNKNOWN category: conflict retryable: false requestId: req_example traceId: trace_example ComputerControlExample: summary: The Bot is driving, and nothing is asked. value: holder: bot since: '2026-11-14T09:12:44.000Z' requested: false transitioning: false resumeSnapshotRequired: false recoveryRequired: false ComputerSecretSuppliedExample: summary: A password typed into the page. value: supplied: true characters: 14 url: https://example.com/sign-in ComputerHumanInputResultExample: summary: A person's click. value: action: human_click url: https://example.com/sign-in ComputerSnapshotExample: summary: A page with one button and one field. value: snapshotId: 4 url: https://example.com/checkout title: Checkout elements: - ref: e7 role: textbox name: Email - ref: e12 role: button name: Continue truncated: false ComputerNavigationExample: summary: A pricing page, opened. value: url: https://example.com/pricing title: Pricing text: Starter is free. Team is 12 dollars a person each month. truncated: false elapsedMs: 1840 ComputerActionResultExample: summary: A click on a button. value: action: click ref: e12 element: role: button name: Continue url: https://example.com/checkout elapsedMs: 412 ComputerCommandResultExample: summary: A listing of the workspace. value: command: ls exitCode: 0 stdout: | reports stderr: '' truncated: false timedOut: false elapsedMs: 38 ComputerFilesExample: summary: One folder holding one file. value: path: reports entries: - path: reports/q3.md kind: file bytes: 4 truncated: false ComputerFileTextExample: summary: A short file. value: path: reports/q3.md text: '# Q3' truncated: false bytes: 4 ComputerFileWrittenExample: summary: A file replaced. value: path: reports/q3.md bytes: 4 appended: false BotBrowserExample: summary: A Bot's browser the caller holds control of, with their recording running. value: open: true tabs: - id: tab_1 url: https://www.salesforce.com/reports title: Reports active: true recorder: connected: true userId: user_2b8kq4 connectionId: conn_7d1f phase: recording recordingId: rec_4c2a title: File the weekly pipeline report startedAt: 1794650400000 actions: 12 narration: external recordingBy: user_2b8kq4 mine: true recordingIsMine: true BrowserNarrationTakenExample: summary: Taken. value: ok: true PersonBrowserExample: summary: A person's browser, open on one page, with nothing recording. value: open: true browser: chromium window: screen tabs: - id: tab_1 url: https://www.salesforce.com/reports title: Reports active: true recorder: connected: true userId: user_2b8kq4 connectionId: conn_7d1f phase: idle actions: 0 narration: external available: true shows: screen computerId: person-0f3a9c1b7d2e4f5a8b6c9d0e1f2a3b4c narration: external PersonBrowserOpenedExample: summary: The person's browser opened in the page. value: ok: true computerId: person-0f3a9c1b7d2e4f5a8b6c9d0e1f2a3b4c browser: chromium window: screen narration: external WindowsComputerExample: value: available: true control: holder: bot since: '2026-11-20T09:12:00.000Z' snapshotRequired: false recording: state: recording recordingId: 019a8c3e-2b4f-7c1d-9e2a-5f6b7c8d9e0f title: Save a meeting note apps: - notepad.exe startedAt: '2026-11-20T09:14:03.000Z' events: received: 12 sent: 12 pending: 0 rejected: 0 gaps: 0 buffered: 0 WindowsComputerControlTakenExample: value: holder: human since: '2026-11-20T09:13:41.000Z' reason: taken snapshotRequired: true WindowsComputerControlReleasedExample: value: holder: bot since: '2026-11-20T09:20:05.000Z' snapshotRequired: true WindowsComputerRecordingStartedExample: value: state: recording recordingId: 019a8c3e-2b4f-7c1d-9e2a-5f6b7c8d9e0f title: Save a meeting note apps: - notepad.exe startedAt: '2026-11-20T09:14:03.000Z' events: received: 0 sent: 0 pending: 3 rejected: 0 gaps: 0 WindowsComputerRecordingStoppedExample: value: state: stopped recordingId: 019a8c3e-2b4f-7c1d-9e2a-5f6b7c8d9e0f title: Save a meeting note apps: - notepad.exe startedAt: '2026-11-20T09:14:03.000Z' stoppedAt: '2026-11-20T09:16:40.000Z' outcome: succeeded events: received: 27 sent: 27 pending: 0 rejected: 0 gaps: 1 WindowsComputerEnrollmentCodeExample: value: code: obwe_3q2-7wEXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLE0 expiresAt: '2026-11-23T10:15:00.000Z' WindowsComputerConnectionGrantExample: value: credential: obwc_Zk1-EXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLEEX0 computerId: 6f1d2c3b-4a5e-4f60-8b7a-9c0d1e2f3a4b organizationId: default SignInRequestPageLast: summary: One open request. value: signInRequests: - id: 2c1e0a9b-8d7f-4e6a-b5c4-3d2e1f0a9b8c botId: research-bot origin: https://example.com reason: To read your invoices. status: pending method: null outcome: null threadId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 toolCallId: call_8f3a controlRequestId: null createdAt: '2026-11-12T09:30:00.000Z' expiresAt: '2026-11-12T09:45:00.000Z' resolvedAt: null fillingUntil: null savedLogins: - id: 7b1d6f0e-3c2a-4b5d-8e9f-0a1b2c3d4e5f username: sam@example.com passwordManager: true nextCursor: null SignInRequestExample: summary: A Bot waiting to be signed in. value: signInRequest: id: 2c1e0a9b-8d7f-4e6a-b5c4-3d2e1f0a9b8c botId: research-bot origin: https://example.com reason: To read your invoices. status: pending method: null outcome: null threadId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 toolCallId: call_8f3a controlRequestId: null createdAt: '2026-11-12T09:30:00.000Z' expiresAt: '2026-11-12T09:45:00.000Z' resolvedAt: null fillingUntil: null savedLogins: - id: 7b1d6f0e-3c2a-4b5d-8e9f-0a1b2c3d4e5f username: sam@example.com passwordManager: true SavedLoginPageLast: summary: One saved login. value: savedLogins: - id: 7b1d6f0e-3c2a-4b5d-8e9f-0a1b2c3d4e5f origin: https://example.com username: sam@example.com createdAt: '2026-10-02T16:40:00.000Z' updatedAt: '2026-10-02T16:40:00.000Z' lastUsedAt: '2026-11-11T10:05:00.000Z' passwordManager: true nextCursor: null SavedLoginsPurgedExample: summary: Logins of members with the switch off, and of removed people. value: deleted: switchedOff: 12 removed: 3 UnusableSavedLoginsExample: summary: Logins of members with the switch off, and none of removed people. value: switchedOff: 12 removed: 0 RecorderConnectCodeExample: summary: A code good for five minutes. value: code: obc_3q2-7wEXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLE0 expiresAt: '2026-11-12T09:35:00.000Z' RecorderConnectionPageLast: summary: One browser, recording now. value: recorderConnections: - id: 4a6f2d1c-9b8e-4c7a-a5d3-1e2f3a4b5c6d label: Chrome on Sam's Mac via: web extensionId: abcdefghijklmnopabcdefghijklmnop installId: 0123456789abcdef0123456789abcdef createdAt: '2026-11-10T08:15:00.000Z' lastUsedAt: '2026-11-12T09:29:30.000Z' recording: true extensionIds: - abcdefghijklmnopabcdefghijklmnop nextCursor: null RecordingPageLast: summary: Two recordings, one still sending. value: recordings: - id: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 title: File an expense recordedAt: '2026-11-12T09:20:00.000Z' ended: sending reason: null - id: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d title: null recordedAt: '2026-11-11T15:02:00.000Z' ended: succeeded reason: null nextCursor: null RecorderConnectionGrantExample: summary: A new connection. value: token: obr_EXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLEEXAMPLE0 connection: id: 4a6f2d1c-9b8e-4c7a-a5d3-1e2f3a4b5c6d label: Chrome on Sam's Mac via: web extensionId: abcdefghijklmnopabcdefghijklmnop installId: 0123456789abcdef0123456789abcdef createdAt: '2026-11-10T08:15:00.000Z' lastUsedAt: '2026-11-12T09:29:30.000Z' user: id: 9f8e7d6c-5b4a-4321-8fed-cba987654321 name: Sam Ortiz email: sam@example.com organizationId: Jq3xT9mLw2Vb8RnC5sYd0fKe organizationName: Acme Research RecorderIdentityExample: summary: Who this Recorder acts as. value: user: id: 9f8e7d6c-5b4a-4321-8fed-cba987654321 name: Sam Ortiz email: sam@example.com connectionId: 4a6f2d1c-9b8e-4c7a-a5d3-1e2f3a4b5c6d organization: id: Jq3xT9mLw2Vb8RnC5sYd0fKe name: Acme Research RecorderLearningExample: summary: A person whose recordings are learned from. value: learning: state: assigned containerId: 6d5c4b3a-2f1e-4d0c-9b8a-7f6e5d4c3b2a ProductEventViewed: summary: An answer the caller saw in the web app. value: kind: result_viewed threadId: 6f3d6b1f-6f10-4a53-9d51-5f0d6c0e2f1a messageId: msg_0b1c6f0e surface: web AppErrorBoundary: summary: An error the web app's error screen caught. value: source: error_boundary type: TypeError message: Cannot read properties of undefined (reading 'title') stack: |- TypeError: Cannot read properties of undefined (reading 'title') at BotCard (/assets/route-app-secondary.js:12:345) surface: web appVersion: 1.1.0-rc.2 NudgeClicked: summary: The caller opened OpenBot's repository from the star card, in OpenBot Desktop. value: nudge: star-on-github action: clicked place: card surface: desktop LearningConfigurationExample: summary: Learning on, every Bot learning into the space OpenBot assigned, people reviewing their own. value: settings: enabled: true defaultTarget: containerId: openbot bots: research-assistant: null personalReview: people automatic: state: assigned containerId: openbot LearningOverviewExample: summary: A space with two proposals waiting and no run going. value: configuration: configured container: id: openbot name: OpenBot pendingThreadCount: 4 pendingCandidateCount: 2 publishedSkillCount: 5 insightCount: 12 hasActiveRun: false latestRunStatus: succeeded links: learning: null candidates: null runs: null PublishedSkillPageExample: summary: The skills published to the space every Bot learns into. value: containerId: openbot skills: - name: Weekly report description: Sum up the week's work for the team. nextCursor: null LearnedSkillExample: summary: A learned skill with one file. value: name: Weekly report description: Sum up the week's work for the team. files: - path: SKILL.md text: |- # Weekly report Read this week's closed issues and write a short report. LearningPersonPageExample: summary: One person whose space has nothing waiting. value: people: - personId: user_3f1c9a name: Ada Lovelace containerId: person-3f1c9a proposals: [] nextCursor: null PersonLearningExample: summary: A person who keeps their skills with their own Bots. value: mode: closed sharingAllowed: true autoApprove: null skills: - name: Weekly report description: Sum up the week's work for the team. open: false approvedBy: person sharing: none PersonLearningReviewExample: summary: A person's own space, with nothing waiting and no run yet. value: canReview: true autoApprove: null approved: 0 spaces: - containerId: person-3f1c9a kind: recordings label: From your recordings proposals: - id: 936d0a2e-e252-48be-8803-e2f8ec15343c runId: 4c1f2a7b-9d3e-4b6a-8f0c-1e2d3c4b5a69 operation: add status: pending_review title: File an expense report description: Fill in and submit an expense report from a receipt. reason: You filed three expense reports the same way this week. createdAt: '2026-11-14T08:00:00.000Z' reviewedAt: null publishedSkillId: null latestRun: id: 4c1f2a7b-9d3e-4b6a-8f0c-1e2d3c4b5a69 status: succeeded triggerSource: automatic proposalCount: 1 insightCount: 3 failureCode: null failure: null createdAt: '2026-11-14T07:55:00.000Z' startedAt: '2026-11-14T07:55:02.000Z' completedAt: '2026-11-14T07:59:40.000Z' LearningProposalExample: summary: A proposal waiting for review. value: id: 936d0a2e-e252-48be-8803-e2f8ec15343c runId: 4c1f2a7b-9d3e-4b6a-8f0c-1e2d3c4b5a69 operation: add status: pending_review title: File an expense report description: Fill in and submit an expense report from a receipt. reason: You filed three expense reports the same way this week. createdAt: '2026-11-14T08:00:00.000Z' reviewedAt: null publishedSkillId: null files: - path: SKILL.md content: |- # File an expense report Open the expenses page, attach the receipt, then submit. insights: - id: 7a2b9c4d-1e3f-4a5b-8c6d-0e1f2a3b4c5d statement: Expense reports are filed from a receipt in three steps. impact: Saves retyping the same report each week. LearningReviewApprovedExample: summary: An approval that published the skill. value: proposalId: 936d0a2e-e252-48be-8803-e2f8ec15343c operation: add status: approved publishedSkillId: 2e5f8a1c-3b4d-4c6e-9f0a-1b2c3d4e5f60 LearningReviewRejectedExample: summary: A rejection. value: proposalId: 936d0a2e-e252-48be-8803-e2f8ec15343c operation: add status: rejected publishedSkillId: null LearningEvidenceExample: summary: A recording an insight was learned from. value: evidence: - kind: recording trajectoryId: 4b6f0a3e-2c1d-4e5f-8a9b-0c1d2e3f4a5b trajectoryPresent: true unavailable: null eventCount: 12 events: - seq: 3 name: click offsetMs: 4200 LearningRunPageExample: summary: One finished run. value: runs: - id: 4c1f2a7b-9d3e-4b6a-8f0c-1e2d3c4b5a69 status: succeeded triggerSource: manual proposalCount: 1 insightCount: 3 failureCode: null failure: null createdAt: '2026-11-14T07:55:00.000Z' startedAt: '2026-11-14T07:55:02.000Z' completedAt: '2026-11-14T07:59:40.000Z' nextCursor: null LearningRunQueuedExample: summary: A run Learn now queued. value: id: 4c1f2a7b-9d3e-4b6a-8f0c-1e2d3c4b5a69 status: queued triggerSource: manual proposalCount: null insightCount: null failureCode: null failure: null createdAt: '2026-11-14T09:10:00.000Z' startedAt: null completedAt: null MemoryPageExample: summary: A person's memories on one page, one waiting for their review. value: memories: - id: 6b8f2c1e-4d3a-4f6b-9a2e-1c5d7e9f0a3b content: I prefer meetings after 10am. provenance: You sourceId: null enabled: true reviewState: confirmed formedBy: person formedByBotId: null sourceApp: null sourceLink: null observedAt: null createdAt: '2026-11-14T09:00:00.000Z' updatedAt: '2026-11-14T09:00:00.000Z' - id: 2c7e9a1b-5f3d-4b8e-9c6a-0d1e2f3a4b5c content: The quarterly review is in the Finance folder. provenance: Google Drive (https://drive.google.com/drive/folders/finance), observed 2026-11-13T15:20:00.000Z sourceId: null enabled: true reviewState: unreviewed formedBy: bot formedByBotId: general-assistant sourceApp: Google Drive sourceLink: https://drive.google.com/drive/folders/finance observedAt: '2026-11-13T15:20:00.000Z' createdAt: '2026-11-13T15:20:00.000Z' updatedAt: '2026-11-13T15:20:00.000Z' nextCursor: null MemoryExample: summary: A fact the person wrote themselves. value: id: 6b8f2c1e-4d3a-4f6b-9a2e-1c5d7e9f0a3b content: I prefer meetings after 10am. provenance: You sourceId: null enabled: true reviewState: confirmed formedBy: person formedByBotId: null sourceApp: null sourceLink: null observedAt: null createdAt: '2026-11-14T09:00:00.000Z' updatedAt: '2026-11-14T09:00:00.000Z' MemorySourcePageExample: summary: A person's memory sources on one page. value: sources: - id: 0f3a9c2e-7b1d-4e8a-a6c5-2d9e4f1b8c70 botId: general-assistant toolRef: google-drive/search_files title: 'Google Drive: Search files' args: query: team handbook enabled: true syncStatus: succeeded syncError: null lastSyncAt: '2026-11-14T08:45:00.000Z' nextSyncAt: '2026-11-14T09:00:00.000Z' createdAt: '2026-11-10T12:00:00.000Z' updatedAt: '2026-11-14T08:45:00.000Z' nextCursor: null MemorySourceSyncExample: summary: A sync that read in three facts. value: imported: 3 source: id: 0f3a9c2e-7b1d-4e8a-a6c5-2d9e4f1b8c70 botId: general-assistant toolRef: google-drive/search_files title: 'Google Drive: Search files' args: query: team handbook enabled: true syncStatus: succeeded syncError: null lastSyncAt: '2026-11-14T08:45:00.000Z' nextSyncAt: '2026-11-14T09:00:00.000Z' createdAt: '2026-11-10T12:00:00.000Z' updatedAt: '2026-11-14T08:45:00.000Z' MemorySourceExample: summary: A source that read facts in at its last sync. value: id: 0f3a9c2e-7b1d-4e8a-a6c5-2d9e4f1b8c70 botId: general-assistant toolRef: google-drive/search_files title: 'Google Drive: Search files' args: query: team handbook enabled: true syncStatus: succeeded syncError: null lastSyncAt: '2026-11-14T08:45:00.000Z' nextSyncAt: '2026-11-14T09:00:00.000Z' createdAt: '2026-11-10T12:00:00.000Z' updatedAt: '2026-11-14T08:45:00.000Z' MemorySourceToolPageExample: summary: The read actions one Bot holds. value: tools: - ref: google-drive/search_files title: 'Google Drive: Search files' description: Search the files in Google Drive. inputSchema: type: object properties: query: type: string nextCursor: null BotAgentPageLast: summary: The last page. value: agents: - id: bag_0c51d9e3a7f24b18 name: OpenBot description: OpenBot's own agent, with every app and component the Bot may use. kind: openbot visibility: public endpoint: null framework: OpenBot model: null skills: [] hasAuth: false hasCallbackToken: false builtIn: true canManage: false mine: false botCount: 4 createdAt: '2026-11-16T09:00:00Z' updatedAt: '2026-11-16T09:00:00Z' nextCursor: null CreatedBotAgent: summary: An agent a person added at their own address. value: agent: id: bag_4f7c1e2a9d0b4c63 name: Pipeline analyst description: Reads the sales pipeline and forecasts the quarter. kind: address visibility: private endpoint: https://agents.example.com/ag-ui framework: LangChain model: null skills: - name: Forecast description: Forecasts the quarter from the open deals. examples: - What will we close this quarter? hasAuth: true hasCallbackToken: false builtIn: false canManage: true mine: true botCount: 0 createdAt: '2026-11-16T09:30:00Z' updatedAt: '2026-11-16T09:30:00Z' OpenBotAgent: summary: OpenBot's own agent. value: agent: id: bag_0c51d9e3a7f24b18 name: OpenBot description: OpenBot's own agent, with every app and component the Bot may use. kind: openbot visibility: public endpoint: null framework: OpenBot model: null skills: [] hasAuth: false hasCallbackToken: false builtIn: true canManage: false mine: false botCount: 4 createdAt: '2026-11-16T09:00:00Z' updatedAt: '2026-11-16T09:00:00Z' BotAgentCallbackTokenExample: summary: A new token. value: token: obot_agt_7f3a9c2e5d1b4f60a8e2c9d4b1f7e3a6c0d9 SelfBotDelegation: summary: A Bot that runs on its own agent, as every Bot did before agents were a list. value: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 mode: self model: null effort: null instructions: '' agents: - id: bag_0c51d9e3a7f24b18 name: OpenBot description: OpenBot's own agent, with every app and component the Bot may use. kind: openbot framework: OpenBot available: true canManage: true OrchestratingBotDelegation: summary: A Bot that hands work to two agents. value: botId: agent_9b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 mode: orchestrate model: null effort: null instructions: Hand research to Researcher and anything about the pipeline to Pipeline analyst. Answer greetings yourself. agents: - id: bag_4f7c1e2a9d0b4c63 name: Researcher description: Deep research on the web and in the person's apps, with sources. kind: openbot framework: OpenBot available: true - id: bag_9a2d7e1c3b5f4086 name: Pipeline analyst description: Reads the sales pipeline and forecasts the quarter. kind: address framework: LangChain available: true canManage: true ManagementNotConnectedExample: value: state: not-connected ManagementWaitingForApprovalExample: value: state: waiting-for-approval userCode: WDJB-MJHT verificationUri: https://enroll.bot.copilotkit.ai/connect verificationUriComplete: https://enroll.bot.copilotkit.ai/connect?code=WDJB-MJHT expiresAt: '2026-11-20T10:15:00Z' ManagementWaitingForAgentExample: value: state: waiting-for-agent installId: 6f1d2c3b-8a4e-4b5f-9c7d-0e1f2a3b4c5d helmCommand: helm install openbot-agent oci://ghcr.io/copilotkit/charts/openbot-agent --version 1.2.0 --namespace openbot-system --create-namespace --set enrollment.serverUrl=http://openbot-server-internal.openbot.svc:9464 ManagementConnectedExample: value: state: connected installId: 6f1d2c3b-8a4e-4b5f-9c7d-0e1f2a3b4c5d lastHeartbeatAt: '2026-11-20T10:31:12Z' agentVersion: 0.4.0 upgrades: not-set-up agentInstalledByChart: true ManagementConnectingExample: value: state: connecting installId: 6f1d2c3b-8a4e-4b5f-9c7d-0e1f2a3b4c5d agentInstalledByChart: true ManagementOptedOutExample: value: state: opted-out agentInstalledByChart: true ExportEstimateExample: value: counts: - kind: bots count: 4 - kind: skills count: 9 - kind: conversations count: 37 - kind: messages count: 2814 - kind: memories count: 52 - kind: routines count: 3 - kind: goals count: 1 - kind: check-ins count: 2 - kind: files count: 64 - kind: settings count: 1 estimatedBytes: 187432960 storedBytes: 1288490188 reconnect: - appId: gmail appName: Gmail accountLabel: sam@example.com botNames: - Inbox helper - appId: slack appName: Slack accountLabel: Example workspace botNames: - Inbox helper - Standup carried: - appId: fireflies appName: Fireflies botNames: - Standup modelKeysAvailable: true ExportInputExample: value: includeModelKeys: true recipientKey: kty: RSA alg: RSA-OAEP-256 kid: imp_0e1f2a3b4c5d6f1d e: AQAB 'n': 0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAtVT86zwu1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn64tZ_2W-5JsGY4Hc5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FDW2QvzqY368QQMicAtaSqzs8KJZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n91CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh6WeZu0fM4lFd2NcRwr3XPksINHaQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw ExportPreparingExample: value: id: exp_7d1f2c3b8a4e4b5f status: preparing createdAt: '2026-11-21T10:00:00Z' expiresAt: '2026-11-28T10:00:00Z' includesModelKeys: true progress: 0.4 ExportReadyExample: value: id: exp_7d1f2c3b8a4e4b5f status: ready formatVersion: 1 createdAt: '2026-11-21T10:00:00Z' expiresAt: '2026-11-28T10:00:00Z' totalBytes: 41943040 parts: - number: 1 bytes: 33554432 sha256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 - number: 2 bytes: 8388608 sha256: 60303ae22b998861bce3b28f33eec1be758a213c86c93c076dbe9f558c11c752 counts: - kind: bots count: 4 - kind: conversations count: 37 - kind: messages count: 2814 - kind: model-keys count: 1 reconnect: - appId: gmail appName: Gmail accountLabel: sam@example.com includesModelKeys: true ImportPageExample: value: items: - id: imp_0e1f2a3b4c5d6f1d status: waiting-for-bundle sourceName: Sam's MacBook createdAt: '2026-11-21T10:00:00Z' recipientKey: kty: RSA alg: RSA-OAEP-256 kid: imp_0e1f2a3b4c5d6f1d e: AQAB 'n': 0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAtVT86zwu1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn64tZ_2W-5JsGY4Hc5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FDW2QvzqY368QQMicAtaSqzs8KJZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n91CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh6WeZu0fM4lFd2NcRwr3XPksINHaQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw maxBundleBytes: 10737418240 maxPartBytes: 33554432 receivedParts: [] nextCursor: null ImportWaitingExample: value: id: imp_0e1f2a3b4c5d6f1d status: waiting-for-bundle sourceName: Sam's MacBook createdAt: '2026-11-21T10:00:00Z' recipientKey: kty: RSA alg: RSA-OAEP-256 kid: imp_0e1f2a3b4c5d6f1d e: AQAB 'n': 0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAtVT86zwu1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn64tZ_2W-5JsGY4Hc5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FDW2QvzqY368QQMicAtaSqzs8KJZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n91CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh6WeZu0fM4lFd2NcRwr3XPksINHaQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw maxBundleBytes: 10737418240 maxPartBytes: 33554432 receivedParts: [] ImportImportedExample: value: id: imp_0e1f2a3b4c5d6f1d status: imported createdAt: '2026-11-21T10:00:00Z' finishedAt: '2026-11-21T10:03:12Z' recipientKey: kty: RSA alg: RSA-OAEP-256 kid: imp_0e1f2a3b4c5d6f1d e: AQAB 'n': 0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAtVT86zwu1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn64tZ_2W-5JsGY4Hc5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FDW2QvzqY368QQMicAtaSqzs8KJZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n91CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh6WeZu0fM4lFd2NcRwr3XPksINHaQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw maxBundleBytes: 10737418240 maxPartBytes: 33554432 expectedParts: - number: 1 bytes: 33554432 sha256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 - number: 2 bytes: 8388608 sha256: 60303ae22b998861bce3b28f33eec1be758a213c86c93c076dbe9f558c11c752 receivedParts: - 1 - 2 expected: - kind: bots count: 4 - kind: conversations count: 37 - kind: messages count: 2814 imported: - kind: bots count: 4 - kind: conversations count: 37 - kind: messages count: 2814 notes: - code: isolated-bot-made-ordinary kind: bots count: 1 message: Research runs on an ordinary computer here, because OpenBot Cloud has no isolated computers. items: - Research reconnect: - appId: gmail appName: Gmail accountLabel: sam@example.com - appId: team-wiki appName: Team wiki reason: Your organization doesn't allow Team wiki yet. Ask an admin to approve it, then connect it here. carried: - appId: fireflies appName: Fireflies botNames: - Standup ImportReceivingExample: value: id: imp_0e1f2a3b4c5d6f1d status: receiving createdAt: '2026-11-21T10:00:00Z' recipientKey: kty: RSA alg: RSA-OAEP-256 kid: imp_0e1f2a3b4c5d6f1d e: AQAB 'n': 0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAtVT86zwu1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn64tZ_2W-5JsGY4Hc5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FDW2QvzqY368QQMicAtaSqzs8KJZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n91CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh6WeZu0fM4lFd2NcRwr3XPksINHaQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw maxBundleBytes: 10737418240 maxPartBytes: 33554432 expectedParts: - number: 1 bytes: 2048 sha256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 - number: 2 bytes: 8388608 sha256: 60303ae22b998861bce3b28f33eec1be758a213c86c93c076dbe9f558c11c752 receivedParts: - 1 expected: - kind: bots count: 4 - kind: conversations count: 37 - kind: messages count: 2814 reconnect: - appId: gmail appName: Gmail accountLabel: sam@example.com ImportImportingExample: value: id: imp_0e1f2a3b4c5d6f1d status: importing createdAt: '2026-11-21T10:00:00Z' recipientKey: kty: RSA alg: RSA-OAEP-256 kid: imp_0e1f2a3b4c5d6f1d e: AQAB 'n': 0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4cbbfAAtVT86zwu1RK7aPFFxuhDR1L6tSoc_BJECPebWKRXjBZCiFV4n3oknjhMstn64tZ_2W-5JsGY4Hc5n9yBXArwl93lqt7_RN5w6Cf0h4QyQ5v-65YGjQR0_FDW2QvzqY368QQMicAtaSqzs8KJZgnYb9c7d0zgdAZHzu6qMQvRL5hajrn1n91CbOpbISD08qNLyrdkt-bFTWhAI4vMQFh6WeZu0fM4lFd2NcRwr3XPksINHaQ-G_xBniIqbw0Ls1jF44-csFCur-kEgU8awapJzKnqDKgw maxBundleBytes: 10737418240 maxPartBytes: 33554432 receivedParts: - 1 - 2 expected: - kind: bots count: 4 - kind: conversations count: 37 imported: - kind: bots count: 4 - kind: conversations count: 12 ImportVerificationExample: value: importId: imp_0e1f2a3b4c5d6f1d matches: true kinds: - kind: bots expected: 4 found: 4 leftOut: 0 - kind: conversations expected: 37 found: 37 leftOut: 0 - kind: messages expected: 2814 found: 2814 leftOut: 0 - kind: files expected: 64 found: 64 leftOut: 0 expectedBytes: 152043520 foundBytes: 152043520 notes: [] reconnect: - appId: gmail appName: Gmail accountLabel: sam@example.com ConversationRunResponseExample: summary: A run that finished value: run: id: 0b1c6f0e-7f0e-4c1e-9d55-2f4a8c1b6e21 outcome: succeeded endedAt: '2026-11-14T12:04:10.000Z' ConversationApprovalPageExample: summary: One conversation's only approval, answered, on the last page. value: approvals: - id: 6f1d2c3b-4a5e-4f60-8a7b-9c0d1e2f3a4b status: completed decision: allow_once result: null createdAt: '2026-08-03T09:12:44.501Z' decidedAt: '2026-08-03T09:13:02.118Z' consumedAt: '2026-08-03T09:13:02.640Z' completedAt: '2026-08-03T09:13:09.902Z' action: botId: research-assistant toolRef: mcp/gmail/send_email effect: write scope: gmail threadId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 toolCallId: call_8c1f args: to: sam.okafor@acme.com subject: Q4 numbers target: app: gmail policy: behaviour: ask source: safety reason: Sending a message asks first. kind: sending nextCursor: null WebPushKeyExample: summary: This OpenBot's key. value: publicKey: BEl62iUYgUivxIkv69yViEuiBIa-Ib9-SkvMeAtA3LFgDzkrxZJjSgSnfckjBJuBkr3qBUYIHBQFLXYp5Nksh8U WebPushSubscriptionResponseExample: summary: A browser, saved. value: webPushSubscription: id: 6d0f2a4b-8c1e-4f3a-9b5d-7e2c4a6f8b10 createdAt: '2026-11-26T18:04:12.000Z' ArtifactPageLast: summary: Two artifacts, on one page. value: artifacts: - id: q7JvXh2cR0aW9mBkTn4sLe title: Q4 launch plan kind: document visibility: private owner: id: 8kq2m4x7p1rvz3a9c5d0 name: Dana Whitfield source: conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 turnId: run_7Hq2 pinned: true canEdit: true canDelete: true canShare: true createdAt: '2026-11-30T09:12:40.000Z' updatedAt: '2026-11-30T10:02:11.000Z' - id: Zb3kP0qWm8nVx5cT2rYhJd title: Pipeline by region kind: dashboard visibility: organization owner: id: 2fn8w1c6y4tq7h0mbe3s name: Sam Ortiz source: null pinned: false canEdit: false canDelete: false canShare: false createdAt: '2026-11-29T15:40:02.000Z' updatedAt: '2026-11-29T15:40:02.000Z' nextCursor: null CreatedArtifact: summary: A new artifact at v1. value: artifact: id: q7JvXh2cR0aW9mBkTn4sLe title: Q4 launch plan kind: document visibility: private owner: id: 8kq2m4x7p1rvz3a9c5d0 name: Dana Whitfield source: null pinned: false canEdit: true canDelete: true canShare: true createdAt: '2026-11-30T09:12:40.000Z' updatedAt: '2026-11-30T09:12:40.000Z' currentVersion: 1 version: number: 1 author: kind: person id: 8kq2m4x7p1rvz3a9c5d0 name: Dana Whitfield onBehalfOf: null note: First draft restoredFrom: null createdAt: '2026-11-30T09:12:40.000Z' bytes: 64 current: true ArtifactExample: summary: An artifact at its third version. value: artifact: id: q7JvXh2cR0aW9mBkTn4sLe title: Q4 launch plan kind: document visibility: private owner: id: 8kq2m4x7p1rvz3a9c5d0 name: Dana Whitfield source: conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 turnId: run_7Hq2 pinned: false canEdit: true canDelete: true canShare: true createdAt: '2026-11-30T09:12:40.000Z' updatedAt: '2026-11-30T10:02:11.000Z' currentVersion: 3 ArtifactVersionContentExample: summary: A document's third version. value: artifactId: q7JvXh2cR0aW9mBkTn4sLe kind: document version: number: 3 author: kind: person id: 8kq2m4x7p1rvz3a9c5d0 name: Dana Whitfield onBehalfOf: null note: null restoredFrom: null createdAt: '2026-11-30T10:02:11.000Z' bytes: 66 current: true content: markdown: |- # Q4 launch plan Three launches, one a month. SavedArtifact: summary: A save that made v4, by a Bot for a person. value: artifact: id: q7JvXh2cR0aW9mBkTn4sLe title: Q4 launch plan kind: document visibility: private owner: id: 8kq2m4x7p1rvz3a9c5d0 name: Dana Whitfield source: conversationId: 5f0d6c0e-2f1a-4a53-9d51-6f3d6b1f6f10 turnId: run_7Hq2 pinned: false canEdit: true canDelete: true canShare: true createdAt: '2026-11-30T09:12:40.000Z' updatedAt: '2026-11-30T10:20:00.000Z' currentVersion: 4 version: number: 4 author: kind: bot id: bot_planner name: Planner onBehalfOf: id: 8kq2m4x7p1rvz3a9c5d0 name: Dana Whitfield note: Added the December launch restoredFrom: null createdAt: '2026-11-30T10:20:00.000Z' bytes: 71 current: true ArtifactVersionPageLast: summary: An artifact's versions, newest first. value: versions: - number: 2 author: kind: connected-bot id: bot_research name: Research onBehalfOf: id: 8kq2m4x7p1rvz3a9c5d0 name: Dana Whitfield note: Added sources restoredFrom: null createdAt: '2026-11-30T09:40:00.000Z' bytes: 912 current: true - number: 1 author: kind: person id: 8kq2m4x7p1rvz3a9c5d0 name: Dana Whitfield onBehalfOf: null note: First draft restoredFrom: null createdAt: '2026-11-30T09:12:40.000Z' bytes: 64 current: false nextCursor: null RestoredArtifact: summary: Restoring v2 of an artifact at v5 made v6. value: artifact: id: q7JvXh2cR0aW9mBkTn4sLe title: Q4 launch plan kind: document visibility: private owner: id: 8kq2m4x7p1rvz3a9c5d0 name: Dana Whitfield source: null pinned: false canEdit: true canDelete: true canShare: true createdAt: '2026-11-30T09:12:40.000Z' updatedAt: '2026-11-30T11:00:00.000Z' currentVersion: 6 version: number: 6 author: kind: person id: 8kq2m4x7p1rvz3a9c5d0 name: Dana Whitfield onBehalfOf: null note: Restored version 2 restoredFrom: 2 createdAt: '2026-11-30T11:00:00.000Z' bytes: 64 current: true ArtifactTextDiff: summary: A document's Markdown, v1 to v2. value: from: 1 to: 2 format: text text: - path: null unified: | @@ -1,3 +1,3 @@ # Q4 launch plan -Three launches, one a month. +Four launches, one every three weeks. additions: 1 deletions: 1 ArtifactJsonDiff: summary: A dashboard, v3 to v4. value: from: 3 to: 4 format: json operations: - op: replace path: /widgets/0/title value: Pipeline by region ArtifactAssetExample: summary: An image for a slide. value: sha256: 3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b contentType: image/png bytes: 48213 url: /api/v2/organizations/default/artifacts/q7JvXh2cR0aW9mBkTn4sLe/assets/3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b ref: asset:3a7bd3e2360a3d29eea436fcfb7e44c735d117c42d1c1835420b6b9942dd4f1b ArtifactSharingExample: value: artifactId: 6Qm2vX9kLp4Rt8Wz1Nc7Hb organizationId: org_8sQ2 url: https://artifacts.open.bot/6Qm2vX9kLp4Rt8Wz1Nc7Hb visibility: organization effectiveVisibility: organization owner: id: 2fn8w1c6y4tq7h0mbe3s email: sam@example.com name: Sam Rivera image: null access: role: owner source: owner canEdit: true canShare: true canChangeVisibility: true canDelete: true people: - person: id: 9xk2m4p7q1r3s5t8u0vw email: alex@example.com name: Alex Chen image: null role: editor grantedBy: 2fn8w1c6y4tq7h0mbe3s grantedAt: '2026-11-30T10:00:00Z' teams: - team: id: Tm4Qx8LpV2nWc7RbY1sKd0Ze name: Sales memberCount: 12 role: viewer grantedBy: 2fn8w1c6y4tq7h0mbe3s grantedAt: '2026-11-30T10:05:00Z' invites: - id: inv_3hT9qW2mZ email: dana@example.com role: viewer status: pending invitedBy: 2fn8w1c6y4tq7h0mbe3s createdAt: '2026-11-30T10:10:00Z' expiresAt: '2026-12-07T10:10:00Z' acceptedAt: null accessRequests: [] policy: publicLinks: allowed outsideInvites: allowed CreatedArtifactInviteExample: value: invite: id: inv_3hT9qW2mZ email: dana@example.com role: viewer status: pending invitedBy: 2fn8w1c6y4tq7h0mbe3s createdAt: '2026-11-30T10:10:00Z' expiresAt: '2026-12-07T10:10:00Z' acceptedAt: null link: https://artifacts.open.bot/api/auth/artifacts-host/invite?artifact=6Qm2vX9kLp4Rt8Wz1Nc7Hb#code=K7QXM2RTPB9WNCD4HJLF code: K7QXM-2RTPB-9WNCD-4HJLF emailed: true sharing: artifactId: 6Qm2vX9kLp4Rt8Wz1Nc7Hb organizationId: org_8sQ2 url: https://artifacts.open.bot/6Qm2vX9kLp4Rt8Wz1Nc7Hb visibility: private effectiveVisibility: private owner: id: 2fn8w1c6y4tq7h0mbe3s email: sam@example.com name: Sam Rivera image: null access: role: owner source: owner canEdit: true canShare: true canChangeVisibility: true canDelete: true people: [] teams: [] invites: - id: inv_3hT9qW2mZ email: dana@example.com role: viewer status: pending invitedBy: 2fn8w1c6y4tq7h0mbe3s createdAt: '2026-11-30T10:10:00Z' expiresAt: '2026-12-07T10:10:00Z' acceptedAt: null accessRequests: [] policy: publicLinks: allowed outsideInvites: allowed ArtifactPolicyExample: value: publicLinks: true outsideInvites: true connectedApps: true retentionDays: null publicLinksAvailable: true CreateArtifactExportExample: summary: The current version of a deck, as PowerPoint value: format: pptx ArtifactExportPreparingExample: summary: Being made value: id: v3-pptx artifactId: q7JvXh2cR0aW9mBkTn4sLe version: 3 format: pptx status: preparing createdAt: '2026-11-30T14:02:11Z' ArtifactExportReadyExample: summary: Ready to download value: id: v3-pptx artifactId: q7JvXh2cR0aW9mBkTn4sLe version: 3 format: pptx status: ready createdAt: '2026-11-30T14:02:11Z' finishedAt: '2026-11-30T14:02:15Z' fileName: Q3 review.pptx mediaType: application/vnd.openxmlformats-officedocument.presentationml.presentation bytes: 184320 sha256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 ArtifactExportFailedExample: summary: Couldn't be made value: id: v3-pdf artifactId: q7JvXh2cR0aW9mBkTn4sLe version: 3 format: pdf status: failed createdAt: '2026-11-30T14:02:11Z' finishedAt: '2026-11-30T14:03:11Z' error: The PDF took too long to draw. Export it again. ArtifactCommentThreadPageExample: summary: One open thread. value: threads: - id: 3c1f9a2e-5b7d-4e8a-9f6c-2d4b8e1a7c90 artifactId: 7f3kQ9xVb2LmN8pR4sT6wA version: 3 anchor: null status: open createdBy: kind: person personId: user_ana name: Ana Ruiz image: null botId: null botName: null createdAt: '2026-11-30T10:00:00.000Z' updatedAt: '2026-11-30T10:00:00.000Z' resolvedAt: null resolvedBy: null botRequest: null comments: - id: 9e2b4d6f-1a3c-4e5b-8d7f-0c2a4e6b8d10 threadId: 3c1f9a2e-5b7d-4e8a-9f6c-2d4b8e1a7c90 body: Should the title say Q3? author: kind: person personId: user_ana name: Ana Ruiz image: null botId: null botName: null createdAt: '2026-11-30T10:00:00.000Z' canDelete: true canResolve: true nextCursor: null ArtifactCommentThreadExample: summary: A thread on a stretch of text, sent to the Bot that made the artifact. value: id: 3c1f9a2e-5b7d-4e8a-9f6c-2d4b8e1a7c90 artifactId: 7f3kQ9xVb2LmN8pR4sT6wA version: 3 anchor: kind: text exact: Revenue grew in every region except the north prefix: 'In the third quarter, ' suffix: ', where' status: open createdBy: kind: person personId: user_ana name: Ana Ruiz image: null botId: null botName: null createdAt: '2026-11-30T10:00:00.000Z' updatedAt: '2026-11-30T10:01:00.000Z' resolvedAt: null resolvedBy: null botRequest: botId: general-assistant botName: Atlas sentBy: user_ana sentByName: Ana Ruiz sentAt: '2026-11-30T10:00:05.000Z' state: answered conversationId: 5a7c9e1b-3d5f-4a6c-8e0b-2c4e6a8c0e12 comments: - id: 9e2b4d6f-1a3c-4e5b-8d7f-0c2a4e6b8d10 threadId: 3c1f9a2e-5b7d-4e8a-9f6c-2d4b8e1a7c90 body: Can we say this in one sentence? author: kind: person personId: user_ana name: Ana Ruiz image: null botId: null botName: null createdAt: '2026-11-30T10:00:00.000Z' canDelete: true - id: 1b3d5f7a-9c2e-4b6d-8f0a-3c5e7a9b1d20 threadId: 3c1f9a2e-5b7d-4e8a-9f6c-2d4b8e1a7c90 body: Done. It now reads "Revenue grew everywhere but the north." author: kind: bot personId: user_ana name: Ana Ruiz image: null botId: general-assistant botName: Atlas createdAt: '2026-11-30T10:01:00.000Z' canDelete: true canResolve: true ArtifactViewerPageExample: summary: Two people have the artifact open. value: viewers: - personId: user_ana name: Ana Ruiz image: null since: '2026-11-30T10:00:00.000Z' isMe: true - personId: user_ben name: Ben Okafor image: https://example.com/ben.png since: '2026-11-30T10:02:00.000Z' isMe: false nextCursor: null ArtifactPagePermissionsExample: summary: A viewer who has allowed storage and not been asked for the rest. value: storage: available: true decision: allow botId: null botName: null model: available: true decision: null botId: null botName: null apps: available: true decision: null botId: null botName: null user: available: true decision: null botId: null botName: null defaultBotId: general-assistant ArtifactPageDocumentPageExample: summary: Two votes. value: documents: - key: votes:user_ana scope: shared value: choice: Thursday version: 1 updatedAt: '2026-11-30T10:00:00.000Z' updatedBy: user_ana - key: votes:user_ben scope: shared value: choice: Friday version: 2 updatedAt: '2026-11-30T10:03:00.000Z' updatedBy: user_ben nextCursor: null ArtifactPageAppActionPageExample: summary: One read action. value: actions: - action: google-drive/search_files app: Google Drive title: Search files description: Search the files in your Google Drive by name or content. inputSchema: type: object properties: query: type: string required: - query effect: read nextCursor: null