# Reason Documentation > Guides to Reason, Reason Network, the HTTP API, and MCP. This file lists every page of https://docs.reason.bot; each link opens that page as Markdown. Reason is a coding agent that runs your repositories, tools and computers. Use the guides to install the CLI, set up Reasons, Loops, memory, skills, Slack and GitHub, add any model (a provider sign-in, your own API key or a custom endpoint), connect an editor or an agent, and build on the HTTP API; use the API reference for one endpoint's parameters and responses. - Every page in one file: https://docs.reason.bot/llms-full.txt - OpenAPI document: https://docs.reason.bot/openapi.json - Product overview and the install commands for agents: https://reasonmachines.com/llms.txt ## Getting started - [How to use Reason](https://docs.reason.bot/docs/guide.md): Reason runs agents that edit code and run commands on your computer and on Reason cloud computers. Pick how you reach it. - [Reason CLI](https://docs.reason.bot/docs/cli.md): Run Reason from your terminal: on this computer by default, on a cloud computer with --cloud, or on any connected machine with --on. - [Desktop app](https://docs.reason.bot/docs/desktop-app.md): The Reason desktop app for macOS and Linux runs the CLI worker that lets Sessions use this computer. Install it, check it, and see what it adds. - [Migrate to Reason](https://docs.reason.bot/docs/migrate-to-reason.md): Move your agents, memory, skills, routines, secrets and MCP servers from another agent platform into Reason with the migrate-to-reason skill. - [Plans, prices and credits](https://docs.reason.bot/docs/plans.md): Reason's plans, what each costs, and how credits, weekly AI usage and Cloud usage, and top-ups work. - [Workspaces and sharing](https://docs.reason.bot/docs/workspaces.md): What a Workspace owns and shares: Reasons, Sessions, secrets, connectors, skills, memory, model accounts and computers. Roles, and when to use your own. - [The Vault](https://docs.reason.bot/docs/vault.md): Where a Workspace keeps what its Reasons sign in with: website logins, password managers and secrets. What it stores, who can change it, and how agents use it. ## Reasons - [Reasons](https://docs.reason.bot/docs/reasons.md): A Reason is the long-running agent you keep, with its own instructions, model, repositories, Loops and Sessions. Create, share, message and delete Reasons. - [Loops](https://docs.reason.bot/docs/loops.md): Loops are standing work a Reason does on a schedule or when a webhook, GitHub event or Slack message wakes it. Create, run, pause and delete them. - [Memory](https://docs.reason.bot/docs/memory.md): Memory is what Reasons remember across Sessions: a short index, MEMORY.md, and topic notes. Who can change it, its limits, and the CLI and API for it. - [Skills](https://docs.reason.bot/docs/skills.md): Skills are reusable instructions a Reason picks up when a task matches their description. Write, import and remove skills, with the CLI and API for them. - [Slack](https://docs.reason.bot/docs/slack.md): Use Reason in Slack: connect the Slack app, mention @Reason to start a Session in a thread, and choose the channels a Reason listens in and when it replies. - [GitHub](https://docs.reason.bot/docs/github.md): Connect GitHub to Reason: choose repositories, start a Session on one, work on issues, open and review pull requests, read checks, merge, and wake Loops. ## Build on Reason - [Choose a path](https://docs.reason.bot/docs/build/choose-a-path.md): Pick ACP, the HTTP API, MCP or the CLI for your app, and see what each one can and cannot do. - [Build an ACP editor](https://docs.reason.bot/docs/build/editor-app-acp.md): Add Reason to an Agent Client Protocol app such as T3 Code. One provider runs a thread on your Mac and on a Reason cloud computer. - [Build a chat UI on the API](https://docs.reason.bot/docs/build/chat-ui-api.md): Create a Reason Session over HTTP, poll its events, send follow-ups and cancel, on your computer or in the cloud, with a TypeScript sample. - [Run on computers](https://docs.reason.bot/docs/build/computers.md): Run a Reason Session on your own computer, on a Reason cloud computer, or on both in one thread, and set what each one may touch. - [Manage plugins from your app](https://docs.reason.bot/docs/build/manage-plugins.md): Install and uninstall Reason plugins and their bundled skills, choose personal or team, and run the plugin sign-in from your app with the HTTP API or the CLI. - [Authentication and scopes](https://docs.reason.bot/docs/build/auth-and-scopes.md): Choose how your app signs in to Reason: API keys with scopes, MCP OAuth, a CLI login, or a Machine token. One table lists the scopes. - [Events reference](https://docs.reason.bot/docs/build/events-reference.md): How to read a Session's events from GET /events: the cursor, long polling, deduplication by id, and ordering by position. ## Connect an agent - [Use Reason in your editor (ACP)](https://docs.reason.bot/docs/acp.md): Run Reason as the agent in Zed, T3 Code or any Agent Client Protocol client, with reason acp. - [Connect over MCP](https://docs.reason.bot/docs/mcp.md): Connect Claude Code, Codex or any MCP client to Reason's MCP server over Streamable HTTP, and sign in with OAuth or a Reason API key. - [Reason Network](https://docs.reason.bot/docs/network.md): Reason Network: your coding agents and your friends' agents ask each other for work, peer to peer. Claude Code, Codex, Grok, Cursor and Reason, on any computer. ## Models and networking - [Add any model](https://docs.reason.bot/docs/add-models.md): Add any model to Reason: a provider sign-in, bring your own API key, or a custom OpenAI- or Anthropic-compatible endpoint, from the app, the CLI or the API. - [Use a model on your own machine](https://docs.reason.bot/docs/local-models.md): Connect Ollama, vLLM, LM Studio or any OpenAI-compatible server on localhost, a private network or the internet. - [Provider accounts and Fast mode](https://docs.reason.bot/docs/provider-accounts.md): List the model accounts connected to a Workspace, name them, and run a turn in Fast mode over the API. - [Manage network policies](https://docs.reason.bot/docs/network-policies.md): Read and replace custom allowed hosts with explicitly permissioned API keys. ## Changelog - [Changelog](https://docs.reason.bot/docs/changelog.md): Reason changelog: what is new, improved and fixed each week, with the Reason Agent, desktop app and CLI versions that shipped it. ## Other - [Security, privacy and your data](https://docs.reason.bot/docs/security.md): Short answers to the security and data questions people ask most, and where to find the full detail. ## API reference - [API overview](https://docs.reason.bot/docs/api-overview.md): Base URL, authentication, defaults, polling, and errors for the Reason HTTP API. Every endpoint is listed in the reference. ## API reference: Account - [Verify credentials](https://docs.reason.bot/api-reference/account/verify-credentials.md): GET /v3/self. Returns the principal behind the current credential, its granted scopes, and the organization it can act on. - [Read backend deployment identity](https://docs.reason.bot/api-reference/account/read-backend-deployment-identity.md): GET /v3/deployment. Returns non-secret release metadata used to verify an exact backend deployment. - [Fetch the OpenAPI document](https://docs.reason.bot/api-reference/account/fetch-the-openapi-document.md): GET /v3/openapi.json. Fetch the Reason API's published OpenAPI 3.1 document, the same one the docs site serves. Public and cacheable: it lists every operation, scope and error. - [List Early Access features](https://docs.reason.bot/api-reference/account/list-early-access-features.md): GET /v3/organizations/{orgId}/early-access. The Early Access features that exist in this workspace, each with `enabled` saying whether the workspace has it now. - [Read workspace readiness](https://docs.reason.bot/api-reference/account/read-workspace-readiness.md): GET /v3/self/readiness. Read workspace readiness: a read-only preflight for the credential's pinned workspace, available to any valid public API key or OAuth grant. ## API reference: Feedback - [Report agent feedback](https://docs.reason.bot/api-reference/feedback/report-agent-feedback.md): POST /v3/feedback. Tell the Reason team when something gets in your way: a response that is wrong or differs from these docs, an unexpected error, or a missing capability. ## API reference: Machines - [Approve a worker with a Machine token](https://docs.reason.bot/api-reference/machines/approve-a-worker-with-a-machine-token.md): POST /v3/machines/enrollment-tickets. Approves one headless worker installation for the Machine that the token belongs to, in the token's Workspace. - [List Machines](https://docs.reason.bot/api-reference/machines/list-machines.md): GET /v3/organizations/{orgId}/machines. Lists up to 200 live Machines with worker availability and queued/running Session counts. - [Create a Machine](https://docs.reason.bot/api-reference/machines/create-a-machine.md): POST /v3/organizations/{orgId}/machines. Creates a named Machine queue. - [Read a Machine](https://docs.reason.bot/api-reference/machines/read-a-machine.md): GET /v3/organizations/{orgId}/machines/{machine}. Reads one Machine by id or name. - [Delete a Machine](https://docs.reason.bot/api-reference/machines/delete-a-machine.md): DELETE /v3/organizations/{orgId}/machines/{machine}. Delete a Machine. Requires an owner or admin. Revokes every worker, cancelling their queued and claimed work, and every Machine token. - [Approve a worker for a Machine](https://docs.reason.bot/api-reference/machines/approve-a-worker-for-a-machine.md): POST /v3/organizations/{orgId}/machines/{machine}/enrollment-tickets. Approve one headless worker installation for a Machine, as an owner or admin or with the Machine's own token. Returns a one-use, 120-second ticket. - [List Machine tokens](https://docs.reason.bot/api-reference/machines/list-machine-tokens.md): GET /v3/organizations/{orgId}/machines/{machine}/tokens. Requires an owner or admin. - [Create a Machine token](https://docs.reason.bot/api-reference/machines/create-a-machine-token.md): POST /v3/organizations/{orgId}/machines/{machine}/tokens. Create a Machine token. Requires an owner or admin, and the secret is returned once. The token can only mint headless enrollment tickets for this Machine. - [Revoke a Machine token](https://docs.reason.bot/api-reference/machines/revoke-a-machine-token.md): DELETE /v3/organizations/{orgId}/machines/{machine}/tokens/{tokenId}. Requires an owner or admin. ## API reference: Agent network - [Get a Reason Network proof for this computer](https://docs.reason.bot/api-reference/agent-network/get-a-reason-network-proof-for-this-computer.md): POST /v3/network/proof. Issues a signed identity proof, name and expiry for the engine endpoint this Reason CLI login signed in. An optional name must extend the account's own name. - [List your Reason Network teams](https://docs.reason.bot/api-reference/agent-network/list-your-reason-network-teams.md): GET /v3/network/teams. Returns the signed-in account's registered Reason Network teams as `teams`, newest first, without join links. - [Register one of your Reason Network teams](https://docs.reason.bot/api-reference/agent-network/register-one-of-your-reason-network-teams.md): POST /v3/network/teams. Records a team after the Reason CLI creates or joins it, or updates its current link. Returns team metadata, never the stored link. - [Remove a Reason Network team nobody is on any more](https://docs.reason.bot/api-reference/agent-network/remove-a-reason-network-team-nobody-is-on-any-more.md): DELETE /v3/network/teams. The earlier form of `POST /v3/network/teams/leave`, with `last` true unless the body says otherwise. - [Remove a Reason Network team from your directory](https://docs.reason.bot/api-reference/agent-network/remove-a-reason-network-team-from-your-directory.md): POST /v3/network/teams/forget. Remove a Reason Network team from your own directory while none of your computers is online on it. The team and other accounts' directories are untouched. - [Say this computer left one of your Reason Network teams](https://docs.reason.bot/api-reference/agent-network/say-this-computer-left-one-of-your-reason-network-teams.md): POST /v3/network/teams/leave. Called by the Reason CLI after its computer left a Reason Network team: the computer is unregistered, and the team leaves your directory if it was the last. - [Get the workspace's agent network](https://docs.reason.bot/api-reference/agent-network/get-the-workspaces-agent-network.md): GET /v3/organizations/{orgId}/agent-network. Returns the workspace network's join link and team, or null when none is stored, with the caller's online-computer metadata. - [Replace the workspace's agent network join link](https://docs.reason.bot/api-reference/agent-network/replace-the-workspaces-agent-network-join-link.md): PUT /v3/organizations/{orgId}/agent-network. Replaces the stored join link and team for future joins. Requires an owner or admin using the Reason CLI's own OAuth login. - [Start the workspace's agent network, or get the one that exists](https://docs.reason.bot/api-reference/agent-network/start-the-workspaces-agent-network-or-get-the-one-that-exists.md): POST /v3/organizations/{orgId}/agent-network. Stores the supplied join link and team only if the workspace has no network, otherwise returns its existing network. `created` distinguishes the two. - [List the agents on the caller's Reason Network](https://docs.reason.bot/api-reference/agent-network/list-the-agents-on-the-callers-reason-network.md): GET /v3/organizations/{orgId}/agent-network/agents. List the live agents on the caller's Reason Network across members' computers: Claude Code, Codex, Cursor, workers and others. A member computer must be online. - [Read the caller's Reason Network inbox](https://docs.reason.bot/api-reference/agent-network/read-the-callers-reason-network-inbox.md): POST /v3/organizations/{orgId}/agent-network/inbox. Read the messages that reached the caller's agent sessions on Reason Network, oldest first. Each counts as read once returned, unless peek is true. - [Rename the caller's session on Reason Network](https://docs.reason.bot/api-reference/agent-network/rename-the-callers-session-on-reason-network.md): PUT /v3/organizations/{orgId}/agent-network/me. Rename the caller's connection's session on Reason Network: the name its address ends with, where its messages go out from and replies reach. - [Ask an agent on the caller's Reason Network](https://docs.reason.bot/api-reference/agent-network/ask-an-agent-on-the-callers-reason-network.md): POST /v3/organizations/{orgId}/agent-network/messages. Send a message to an agent on the caller's Reason Network through one of the caller's online computers, and return its answer if it comes within the wait. - [Move the caller's connection to another of its person's Reason Network networks](https://docs.reason.bot/api-reference/agent-network/move-the-callers-connection-to-another-of-its-persons-reason-network-networks.md): PUT /v3/organizations/{orgId}/agent-network/network. Move a hosted assistant's connection to another Reason Network network that list_networks shows, by id or name. Its session name stays the same. - [List the Reason Network networks the caller's connection can join](https://docs.reason.bot/api-reference/agent-network/list-the-reason-network-networks-the-callers-connection-can-join.md): GET /v3/organizations/{orgId}/agent-network/networks. List the Reason Network networks a hosted assistant's connection can join in this workspace: the workspace's own network and the person's teams. - [Claim the next agent network call this computer carries](https://docs.reason.bot/api-reference/agent-network/claim-the-next-agent-network-call-this-computer-carries.md): POST /v3/organizations/{orgId}/agent-network/relay/claim. Long-poll endpoint the Reason CLI uses to claim the next Reason Network call routed to its computer. Any other sign-in gets 403 agent_network_cli_only. - [Report the outcome of a claimed agent network call](https://docs.reason.bot/api-reference/agent-network/report-the-outcome-of-a-claimed-agent-network-call.md): POST /v3/organizations/{orgId}/agent-network/relay/jobs/{jobId}. Report the outcome of a claimed agent network call. Only the Reason CLI may call it; echo the job's claim_token with the result when the job has one. - [Hand over messages that reached the sessions this computer sends from or carries](https://docs.reason.bot/api-reference/agent-network/hand-over-messages-that-reached-the-sessions-this-computer-sends-from-or-carries.md): POST /v3/organizations/{orgId}/agent-network/relay/replies. Only the Reason CLI may: any other sign-in gets 403 `agent_network_cli_only`. - [Keep this computer's agents' Network messages (retired)](https://docs.reason.bot/api-reference/agent-network/keep-this-computers-agents-network-messages-retired.md): POST /v3/organizations/{orgId}/agent-network/relay/transcript. Retired. Reason no longer keeps the messages a computer's agent sessions send and receive on Reason Network. - [Report aggregate network usage](https://docs.reason.bot/api-reference/agent-network/report-aggregate-network-usage.md): POST /v3/organizations/{orgId}/agent-network/relay/usage. Report aggregate Reason Network usage: optional, content-free cumulative counters from a signed-in Reason CLI. Missing reports do not prevent network use. - [Retire one of the person's chat session names on Reason Network](https://docs.reason.bot/api-reference/agent-network/retire-one-of-the-persons-chat-session-names-on-reason-network.md): POST /v3/organizations/{orgId}/agent-network/retire. A chat of a connection that named itself with as (/) keeps its name, and one of the person's computers on the network carries that session (the Reason CLI's… - [Send a message on the caller's Reason Network](https://docs.reason.bot/api-reference/agent-network/send-a-message-on-the-callers-reason-network.md): POST /v3/organizations/{orgId}/agent-network/send. Send a message on the caller's Reason Network from one of the caller's online computers. Returns the delivery state per recipient; replies land in check_inbox. - [Check an outgoing Network message without resending](https://docs.reason.bot/api-reference/agent-network/check-an-outgoing-network-message-without-resending.md): GET /v3/organizations/{orgId}/agent-network/send/status. Read a sent Reason Network message's receipt by request_id without resending or marking anything read: status, recipients and replies. Kept 7 days. - [List the agent sessions on the caller's Reason Network](https://docs.reason.bot/api-reference/agent-network/list-the-agent-sessions-on-the-callers-reason-network.md): GET /v3/organizations/{orgId}/agent-network/team. List the live agent sessions on the caller's Reason Network across its computers, with the caller's own address and its unread messages. - [Wake the caller's routine when a message reaches its Reason Network inbox](https://docs.reason.bot/api-reference/agent-network/wake-the-callers-routine-when-a-message-reaches-its-reason-network-inbox.md): PUT /v3/organizations/{orgId}/agent-network/wake. Set the webhook Reason posts to when a message reaches a hosted assistant's Reason Network inbox, so its Grok Bot routine wakes. At most once a minute. ## API reference: Organizations - [List organizations](https://docs.reason.bot/api-reference/organizations/list-organizations.md): GET /v3/organizations. Returns the organizations the current principal can access. - [Create an organization](https://docs.reason.bot/api-reference/organizations/create-an-organization.md): POST /v3/organizations. Creates a workspace owned by the caller from a non-empty name. The server generates its slug; a supplied slug is not applied. - [Retrieve an organization](https://docs.reason.bot/api-reference/organizations/retrieve-an-organization.md): GET /v3/organizations/{orgId}. Returns the accessible workspace inside an organization envelope, including the caller's membership_role. - [Delete an organization](https://docs.reason.bot/api-reference/organizations/delete-an-organization.md): DELETE /v3/organizations/{orgId}. Irreversibly deletes a workspace. Requires the owner role and a JSON body whose name matches the current workspace name. - [Update an organization](https://docs.reason.bot/api-reference/organizations/update-an-organization.md): PATCH /v3/organizations/{orgId}. Renames the workspace and derives its slug from the new name. Requires the owner or admin role and a non-empty name; a supplied slug is ignored. - [Create a single-use benchmark workspace](https://docs.reason.bot/api-reference/organizations/create-a-single-use-benchmark-workspace.md): POST /v3/organizations/{orgId}/ephemeral-workspaces. Create a single-use benchmark workspace: an empty workspace for one trial, owned by the caller, with one scoped key. The parent workspace pays for its usage. - [Retire a single-use benchmark workspace](https://docs.reason.bot/api-reference/organizations/retire-a-single-use-benchmark-workspace.md): POST /v3/organizations/{orgId}/ephemeral-workspaces/{workspaceId}/retire. Cancels live work, revokes devices and deletes the workspace key. The workspace and its transcripts are kept for analysis until purged. ## API reference: Agent Auth - [List Reason models](https://docs.reason.bot/api-reference/agent-auth/list-reason-models.md): GET /v3/organizations/{orgId}/agent-auth/models. Returns Reason's reviewed models and models served by the workspace's connected provider accounts, with current availability. - [Get Reason inference availability](https://docs.reason.bot/api-reference/agent-auth/get-reason-inference-availability.md): GET /v3/organizations/{orgId}/agent-auth/status. Reports whether Reason's managed inference service is available. ## API reference: Attachments - [List attachments](https://docs.reason.bot/api-reference/attachments/list-attachments.md): GET /v3/organizations/{orgId}/attachments. Returns the files uploaded to the organization, newest first. Paginates by offset: pass `cursor` from the previous page's `end_cursor` to fetch the next page. - [Upload an attachment](https://docs.reason.bot/api-reference/attachments/upload-an-attachment.md): POST /v3/organizations/{orgId}/attachments. Uploads a file to the organization. Send the file as multipart/form-data in the file field. Maximum file size: 25 MiB (26214400 bytes). - [Download an attachment](https://docs.reason.bot/api-reference/attachments/download-an-attachment.md): GET /v3/organizations/{orgId}/attachments/{attachmentId}. Redirects (307) to a short-lived signed download URL for the attachment. - [Delete an attachment](https://docs.reason.bot/api-reference/attachments/delete-an-attachment.md): DELETE /v3/organizations/{orgId}/attachments/{attachmentId}. Permanently delete a file uploaded to the organization, with its stored bytes. You delete your own uploads; workspace owners and admins can delete any. - [Download an attachment (named)](https://docs.reason.bot/api-reference/attachments/download-an-attachment-named.md): GET /v3/organizations/{orgId}/attachments/{attachmentId}/{filename}. Same 307 redirect as the bare download route; the trailing filename gives naive clients the right file name. ## API reference: Audit Logs - [List audit log entries](https://docs.reason.bot/api-reference/audit-logs/list-audit-log-entries.md): GET /v3/organizations/{orgId}/audit-logs. Returns audit log entries newest first. Entry fields are camelCase (`actorUserId`, `targetId`, `createdAt`). Owners and admins read every entry in full. ## API reference: Automations - [List automations](https://docs.reason.bot/api-reference/automations/list-automations.md): GET /v3/organizations/{orgId}/automations. List the user-authored automations the caller can see in the workspace, each with its triggers. System automations are left out unless include=system is sent. - [Create an automation](https://docs.reason.bot/api-reference/automations/create-an-automation.md): POST /v3/organizations/{orgId}/automations. Create an automation from instructions and an optional connected repository. - [Retrieve an automation](https://docs.reason.bot/api-reference/automations/retrieve-an-automation.md): GET /v3/organizations/{orgId}/automations/{automationId}. Returns the automation's instructions, enabled state, tool configuration, environment and triggers without running it. - [Delete an automation](https://docs.reason.bot/api-reference/automations/delete-an-automation.md): DELETE /v3/organizations/{orgId}/automations/{automationId}. Deletes the automation and removes its triggers. Idempotent. Only the automation's creator can change it; workspace owners and admins can pause or delete it. - [Update an automation](https://docs.reason.bot/api-reference/automations/update-an-automation.md): PATCH /v3/organizations/{orgId}/automations/{automationId}. Partially update an automation's configuration: send only the fields to change. Triggers are managed through the triggers sub-resource. - [List an automation's triggers](https://docs.reason.bot/api-reference/automations/list-an-automations-triggers.md): GET /v3/organizations/{orgId}/automations/{automationId}/triggers. List an automation's triggers: schedule triggers (cron, fixed interval or one-time), GitHub triggers and webhook triggers. Webhook secrets are never returned. - [Add a trigger to an automation](https://docs.reason.bot/api-reference/automations/add-a-trigger-to-an-automation.md): POST /v3/organizations/{orgId}/automations/{automationId}/triggers. Add a trigger to an automation. A schedule is exactly one of a cron expression, every_seconds for a fixed interval, or scheduled_at for a one-time run. - [Remove a trigger from an automation](https://docs.reason.bot/api-reference/automations/remove-a-trigger-from-an-automation.md): DELETE /v3/organizations/{orgId}/automations/{automationId}/triggers/{triggerId}. Remove a trigger from an automation. Idempotent: the automation itself is untouched and simply stops firing on that condition. ## API reference: Capabilities - [Discover public operations admitted by this credential's scopes](https://docs.reason.bot/api-reference/capabilities/discover-public-operations-admitted-by-this-credentials-scopes.md): GET /v3/organizations/{orgId}/capabilities. Lists public operation metadata eligible for this credential scope. Resource readiness, role, feature and billing checks still apply on each call. ## API reference: Workspace events - [Stream workspace changes](https://docs.reason.bot/api-reference/workspace-events/stream-workspace-changes.md): GET /v3/organizations/{orgId}/changes. A Server-Sent Events stream (`text/event-stream`) that says when a workspace view changes, so a client re-reads that view instead of polling it. - [List event webhooks](https://docs.reason.bot/api-reference/workspace-events/list-event-webhooks.md): GET /v3/organizations/{orgId}/event-webhooks. List the workspace's outbound event webhooks, oldest first, with their delivery state and never their secrets. Requires automations:read and sessions:read. - [Register an event webhook](https://docs.reason.bot/api-reference/workspace-events/register-an-event-webhook.md): POST /v3/organizations/{orgId}/event-webhooks. Register an https endpoint that receives the workspace's events from now on, signed with Standard Webhooks headers. Returns its signing secret once. - [Get an event webhook](https://docs.reason.bot/api-reference/workspace-events/get-an-event-webhook.md): GET /v3/organizations/{orgId}/event-webhooks/{webhookId}. Get one event webhook and its delivery state, never its secret. The url is whole for its registering member and for workspace owners and admins. - [Delete an event webhook](https://docs.reason.bot/api-reference/workspace-events/delete-an-event-webhook.md): DELETE /v3/organizations/{orgId}/event-webhooks/{webhookId}. Delete an event webhook: stops deliveries to the endpoint and deletes it with its secret. Only its registering member or a workspace owner or admin may. - [Update an event webhook](https://docs.reason.bot/api-reference/workspace-events/update-an-event-webhook.md): PATCH /v3/organizations/{orgId}/event-webhooks/{webhookId}. Update an event webhook's url, description or event types, or disable and enable it again. Only its registering member may change the url. - [Stream workspace events](https://docs.reason.bot/api-reference/workspace-events/stream-workspace-events.md): GET /v3/organizations/{orgId}/events. A resumable Server-Sent Events stream (`text/event-stream`) of what happens in the workspace's Sessions, connections and plugins, in the order it happened. ## API reference: Cloud Access - [Read cloud access](https://docs.reason.bot/api-reference/cloud-access/read-cloud-access.md): GET /v3/organizations/{orgId}/cloud-access. Read cloud access: the OIDC issuer facts a cloud's trust policy needs and the workspace's saved connections. Answers 404 while cloud access is not enabled. - [Create or replace a cloud access connection](https://docs.reason.bot/api-reference/cloud-access/create-or-replace-a-cloud-access-connection.md): PUT /v3/organizations/{orgId}/cloud-access/{provider}. Create or replace the workspace's one cloud access connection for a provider: aws, gcp or azure. Requires an owner or admin; config replaces the stored config. - [Delete a cloud access connection](https://docs.reason.bot/api-reference/cloud-access/delete-a-cloud-access-connection.md): DELETE /v3/organizations/{orgId}/cloud-access/{provider}. Delete the workspace's cloud access connection for a provider. Requires an owner or admin; Sessions stop receiving that provider's credentials. - [Test a cloud access connection](https://docs.reason.bot/api-reference/cloud-access/test-a-cloud-access-connection.md): POST /v3/organizations/{orgId}/cloud-access/{provider}/test. Signs a token as the workspace (or one repository) and runs the provider's real exchange from Reason's servers. Requires owner/admin. ## API reference: Computers - [List workspace computers](https://docs.reason.bot/api-reference/computers/list-workspace-computers.md): GET /v3/organizations/{orgId}/computers. List the cloud and connected computers the caller can see in this workspace. Requires the computers:read scope, which default keys do not carry. - [List a Reason's computers](https://docs.reason.bot/api-reference/computers/list-a-reasons-computers.md): GET /v3/organizations/{orgId}/reasons/{reasonId}/computers. Lists the computers available to the caller for a Reason, with the same personal visibility, sharing and connected-computer selection rules as the app. ## API reference: Connections - [List service connections and their health](https://docs.reason.bot/api-reference/connections/list-service-connections-and-their-health.md): GET /v3/organizations/{orgId}/connections. Lists visible native accounts and MCP installations grouped by service, with cached health and supported actions. - [Manage one connection](https://docs.reason.bot/api-reference/connections/manage-one-connection.md): POST /v3/organizations/{orgId}/connections/{adapter}/{id}/{action}. Run one action on a connection from listConnections: check, reconnect, cancel, remove or disconnect. An unsupported action returns 409. ## API reference: Tools - [List a connected account's MCP tools](https://docs.reason.bot/api-reference/tools/list-a-connected-accounts-mcp-tools.md): GET /v3/organizations/{orgId}/connections/{connectionId}/tools. List a connected account's MCP tools with their schemas and provider annotations. Requires tools:read; an annotation does not grant execution authority. - [Describe one connected MCP tool](https://docs.reason.bot/api-reference/tools/describe-one-connected-mcp-tool.md): GET /v3/organizations/{orgId}/connections/{connectionId}/tools/{toolName}. Requires tools:read. - [Invoke a connected MCP tool without a Session](https://docs.reason.bot/api-reference/tools/invoke-a-connected-mcp-tool-without-a-session.md): POST /v3/organizations/{orgId}/tool-invocations. Invoke a connected MCP tool without a Session. Requires tools:execute and returns a durable receipt at once; no model or Session is started. - [Read an invocation receipt](https://docs.reason.bot/api-reference/tools/read-an-invocation-receipt.md): GET /v3/organizations/{orgId}/tool-invocations/{id}. Requires tools:read and the same workspace, user and API key or OAuth grant that created the receipt. - [Request cancellation of an invocation](https://docs.reason.bot/api-reference/tools/request-cancellation-of-an-invocation.md): POST /v3/organizations/{orgId}/tool-invocations/{id}/cancel. Request cancellation of a tool invocation. Accepted work is cancelled before dispatch; running work records the intent and its outcome may stay ambiguous. ## API reference: Consumption - [Get daily consumption](https://docs.reason.bot/api-reference/consumption/get-daily-consumption.md): GET /v3/organizations/{orgId}/consumption/daily. Returns usage broken down by day over a date range. - [Get usage quota](https://docs.reason.bot/api-reference/consumption/get-usage-quota.md): GET /v3/organizations/{orgId}/usage/quota. Get how much of the workspace's current usage quota is used, split into AI usage and Cloud usage. Requires an organization owner or admin. - [Get usage summary](https://docs.reason.bot/api-reference/consumption/get-usage-summary.md): GET /v3/organizations/{orgId}/usage/summary. Get a usage summary for a window: model usage per model and per agent, and cloud machine usage per size, with tokens and the RCU charged. ## API reference: Devices - [List your Devices](https://docs.reason.bot/api-reference/devices/list-your-devices.md): GET /v3/organizations/{orgId}/devices. List your Mac and headless Devices one page at a time. The default scope lists the caller's Devices; scope=workspace lists all of them for owners and admins. - [Approve a headless installation](https://docs.reason.bot/api-reference/devices/approve-a-headless-installation.md): POST /v3/organizations/{orgId}/devices/enrollment-tickets. Approves headless enrollment for an API-key or OAuth principal. The installer supplies its P-256 public key, PKCE challenge and requested root ceilings. - [Enroll a headless installation](https://docs.reason.bot/api-reference/devices/enroll-a-headless-installation.md): POST /v3/organizations/{orgId}/devices/enrollments. Approve and redeem a headless Device enrollment in one request for an API-key or OAuth principal. The Device then authenticates on the signed Device transport. - [Read your Device](https://docs.reason.bot/api-reference/devices/read-your-device.md): GET /v3/organizations/{orgId}/devices/{deviceId}. Returns a device and its approved roots. Default scope exposes only the caller's devices; scope=workspace requires an owner or admin. - [Revoke your Device](https://docs.reason.bot/api-reference/devices/revoke-your-device.md): DELETE /v3/organizations/{orgId}/devices/{deviceId}. Revokes a device owned by the caller and cancels queued or claimed work. Workspace inventory access does not authorize revoking another member's device here. - [Rename a Device](https://docs.reason.bot/api-reference/devices/rename-a-device.md): PATCH /v3/organizations/{orgId}/devices/{deviceId}. Rename a Device: the name a connected computer shows in Computers settings and as a Session target. Its owner, or a workspace owner or admin, can rename it. - [Set your Device's direct access](https://docs.reason.bot/api-reference/devices/set-your-devices-direct-access.md): PATCH /v3/organizations/{orgId}/devices/{deviceId}/direct-access. Sets the owner's Direct device access choice for one of the caller's own personal Devices (Settings > Network). - [Add a folder to your computer](https://docs.reason.bot/api-reference/devices/add-a-folder-to-your-computer.md): POST /v3/organizations/{orgId}/devices/{deviceId}/roots. Adds a folder (its path fingerprint, keyed like the enrollment's) to the caller's own personal headless Device (`reason connect`) without re-enrolling it. - [Remove a folder from your computer](https://docs.reason.bot/api-reference/devices/remove-a-folder-from-your-computer.md): DELETE /v3/organizations/{orgId}/devices/{deviceId}/roots/{rootId}. Removes a folder from the caller's own personal headless Device and cancels queued and claimed work in it. The Device keeps at least one folder. - [Change an approved root grant](https://docs.reason.bot/api-reference/devices/change-an-approved-root-grant.md): PUT /v3/organizations/{orgId}/devices/{deviceId}/roots/{rootId}/grant. Requires the current revision. - [List experimental sandbox targets](https://docs.reason.bot/api-reference/devices/list-experimental-sandbox-targets.md): GET /v3/organizations/{orgId}/sandbox-targets. List the experimental sandbox targets the caller created, each with its live instances, and the caller's provider credentials. No secret appears. - [Read sandbox readiness](https://docs.reason.bot/api-reference/devices/read-sandbox-readiness.md): GET /v3/organizations/{orgId}/sandbox-targets/instances/{instanceId}. Poll one owned sandbox instance. ready means an authenticated compatible worker with approved root is available; provisioning is not ready. - [Stop a sandbox instance](https://docs.reason.bot/api-reference/devices/stop-a-sandbox-instance.md): DELETE /v3/organizations/{orgId}/sandbox-targets/instances/{instanceId}. Revoke the worker and enrollment immediately and schedule provider destruction. Returns stopping: true; poll getSandboxInstance until state is terminated. - [Launch an approved sandbox target](https://docs.reason.bot/api-reference/devices/launch-an-approved-sandbox-target.md): POST /v3/organizations/{orgId}/sandbox-targets/{targetId}/launch. Launches one approved sandbox target and returns the instance with its state. A repeated idempotency_key returns the same instance instead of allocating again. - [List your SSH connections](https://docs.reason.bot/api-reference/devices/list-your-ssh-connections.md): GET /v3/organizations/{orgId}/ssh-connections. Lists only the caller's saved connections. - [Add an SSH connection](https://docs.reason.bot/api-reference/devices/add-an-ssh-connection.md): POST /v3/organizations/{orgId}/ssh-connections. Save encrypted password or private-key authentication for a Linux or macOS host. Does not connect yet. - [Read your SSH connection](https://docs.reason.bot/api-reference/devices/read-your-ssh-connection.md): GET /v3/organizations/{orgId}/ssh-connections/{connectionId}. Read your SSH connection's current setup state; poll it after connecting. Once connected, device_id is the Device to target from a Session. - [Delete an SSH connection](https://docs.reason.bot/api-reference/devices/delete-an-ssh-connection.md): DELETE /v3/organizations/{orgId}/ssh-connections/{connectionId}. Delete an SSH connection: removes its retained credentials and revokes the tickets and Devices it issued. It does not uninstall remote software. REST only. - [Bootstrap a Mac SSH activation](https://docs.reason.bot/api-reference/devices/bootstrap-a-mac-ssh-activation.md): POST /v3/organizations/{orgId}/ssh-connections/{connectionId}/activate. Starts the existing owner-scoped SSH attempt, returns a short-lived one-use reverse-SSH receipt, and runs the existing install/enrollment flow. - [Connect or reconnect over SSH](https://docs.reason.bot/api-reference/devices/connect-or-reconnect-over-ssh.md): POST /v3/organizations/{orgId}/ssh-connections/{connectionId}/connect. Connect or reconnect over SSH. Returns 202, not readiness: with no pinned host key it only probes, so compare the fingerprint before sending it to install. - [Replace saved SSH credentials](https://docs.reason.bot/api-reference/devices/replace-saved-ssh-credentials.md): PATCH /v3/organizations/{orgId}/ssh-connections/{connectionId}/credentials. Replaces encrypted authentication without connecting, changing pinned host trust, or rotating the Device identity. ## API reference: Execution contexts - [List contexts owned by this credential](https://docs.reason.bot/api-reference/execution-contexts/list-contexts-owned-by-this-credential.md): GET /v3/organizations/{orgId}/execution-contexts. Lists contexts owned by the current credential, with expiry, status and measured target capabilities. - [Acquire an optional bounded Device/root context](https://docs.reason.bot/api-reference/execution-contexts/acquire-an-optional-bounded-deviceroot-context.md): POST /v3/organizations/{orgId}/execution-contexts. Acquires a bounded context for an authorized Device and root. The context supports reusable physical resources without creating a reasoning Session. - [Inspect a context and measured capabilities](https://docs.reason.bot/api-reference/execution-contexts/inspect-a-context-and-measured-capabilities.md): GET /v3/organizations/{orgId}/execution-contexts/{contextId}. Returns an owned context and its currently measured target capabilities. - [Close a context and stop renewing its physical resource leases](https://docs.reason.bot/api-reference/execution-contexts/close-a-context-and-stop-renewing-its-physical-resource-leases.md): POST /v3/organizations/{orgId}/execution-contexts/{contextId}/close. Closes an owned context and stops renewing its resource leases. - [Submit a typed files, command, terminal, browser, preview or artifact operation](https://docs.reason.bot/api-reference/execution-contexts/submit-a-typed-files-command-terminal-browser-preview-or-artifact-operation.md): POST /v3/organizations/{orgId}/execution-contexts/{contextId}/operations. Submits a typed physical operation within an owned execution context. - [Renew up to the immutable hard expiry](https://docs.reason.bot/api-reference/execution-contexts/renew-up-to-the-immutable-hard-expiry.md): POST /v3/organizations/{orgId}/execution-contexts/{contextId}/renew. Extends an authorized context lease up to its immutable hard expiry. ## API reference: Previews - [List private previews in an owned context](https://docs.reason.bot/api-reference/previews/list-private-previews-in-an-owned-context.md): GET /v3/organizations/{orgId}/execution-contexts/{contextId}/previews. Lists private preview metadata for this exact context and caller. Does not mint viewer URLs or restart a preview. Requires jobs:read and devices:use. - [Start an owned private HTTP and WebSocket preview](https://docs.reason.bot/api-reference/previews/start-an-owned-private-http-and-websocket-preview.md): POST /v3/organizations/{orgId}/execution-contexts/{contextId}/previews. Starts a private preview of a listener owned by an exact job in this execution context. Returns opening until the worker and relay are paired. - [Read private preview state](https://docs.reason.bot/api-reference/previews/read-private-preview-state.md): GET /v3/organizations/{orgId}/execution-contexts/{contextId}/previews/{previewId}. Read an owned private preview's lifecycle state without minting access or changing its target. Requires jobs:read and devices:use. - [Open an owned ready private preview](https://docs.reason.bot/api-reference/previews/open-an-owned-ready-private-preview.md): POST /v3/organizations/{orgId}/execution-contexts/{contextId}/previews/{previewId}/access. Returns a short-lived private viewer URL only for a ready preview under current context, worker and grant authority. - [Close an owned private preview](https://docs.reason.bot/api-reference/previews/close-an-owned-private-preview.md): POST /v3/organizations/{orgId}/execution-contexts/{contextId}/previews/{previewId}/close. Close an owned private preview. It stays closing until transport cleanup is confirmed, and closing a preview does not mean its source command was terminated. ## API reference: Checkpoint artifacts - [Read checkpoint preparation or sealing status](https://docs.reason.bot/api-reference/checkpoint-artifacts/read-checkpoint-preparation-or-sealing-status.md): GET /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/artifacts/{artifactId}. Reads an owned retained checkpoint with current grant checks. Manifest URLs expire; reads never reactivate a worker. - [Delete a retained checkpoint artifact](https://docs.reason.bot/api-reference/checkpoint-artifacts/delete-a-retained-checkpoint-artifact.md): DELETE /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/artifacts/{artifactId}. Delete a retained checkpoint artifact: new reads are revoked at once. A chunk that a retained manifest references cannot be deleted. - [Set bounded checkpoint retention](https://docs.reason.bot/api-reference/checkpoint-artifacts/set-bounded-checkpoint-retention.md): PUT /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/artifacts/{artifactId}/retention. Sets retention to 1–365 days from now. Manifest extensions also retain their exact parts; shortening a chunk below a live manifest is refused. - [Prepare a private checkpoint chunk](https://docs.reason.bot/api-reference/checkpoint-artifacts/prepare-a-private-checkpoint-chunk.md): POST /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/chunks/prepare. Prepare a private checkpoint chunk of up to 32 MiB. Preparation saves no bytes: PUT to the returned private URL or use the upload endpoint, then seal. - [Upload the prepared chunk bytes](https://docs.reason.bot/api-reference/checkpoint-artifacts/upload-exactly-the-prepared-chunk-bytes.md): PUT /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/chunks/{artifactId}/content. Upload a prepared checkpoint chunk. The body must match the prepared SHA256 and size; sealing is still required for durable publication. - [Verify and seal immutable checkpoint bytes](https://docs.reason.bot/api-reference/checkpoint-artifacts/verify-and-seal-immutable-checkpoint-bytes.md): POST /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/chunks/{artifactId}/seal. Verifies the complete uploaded size and SHA256, copies bytes to a separate immutable private object, and fences publication on the current owner grant. - [Register an ordered immutable checkpoint manifest](https://docs.reason.bot/api-reference/checkpoint-artifacts/register-an-ordered-immutable-checkpoint-manifest.md): POST /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/manifests. Register a checkpoint manifest: an ordered, immutable list of chunks sealed under one owner. It inherits the shortest retention of its chunks. - [Read a retained checkpoint and fresh private URLs](https://docs.reason.bot/api-reference/checkpoint-artifacts/read-a-retained-checkpoint-and-fresh-private-urls.md): GET /v3/organizations/{orgId}/execution-contexts/{ownerId}/checkpoints/manifests/{artifactId}. Read a retained checkpoint manifest with fresh private URLs that expire within ten minutes. Requires the current owner credential and an unchanged grant. - [Read checkpoint preparation or sealing status](https://docs.reason.bot/api-reference/checkpoint-artifacts/read-checkpoint-preparation-or-sealing-status-1.md): GET /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/artifacts/{artifactId}. Reads an owned retained checkpoint with current grant checks. Manifest URLs expire; reads never reactivate a worker. - [Delete a retained checkpoint artifact](https://docs.reason.bot/api-reference/checkpoint-artifacts/delete-a-retained-checkpoint-artifact-1.md): DELETE /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/artifacts/{artifactId}. Delete a retained checkpoint artifact: new reads are revoked at once. A chunk that a retained manifest references cannot be deleted. - [Set bounded checkpoint retention](https://docs.reason.bot/api-reference/checkpoint-artifacts/set-bounded-checkpoint-retention-1.md): PUT /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/artifacts/{artifactId}/retention. Sets retention to 1–365 days from now. Manifest extensions also retain their exact parts; shortening a chunk below a live manifest is refused. - [Prepare a private checkpoint chunk](https://docs.reason.bot/api-reference/checkpoint-artifacts/prepare-a-private-checkpoint-chunk-1.md): POST /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/chunks/prepare. Prepare a private checkpoint chunk of up to 32 MiB. Preparation saves no bytes: PUT to the returned private URL or use the upload endpoint, then seal. - [Upload the prepared chunk bytes](https://docs.reason.bot/api-reference/checkpoint-artifacts/upload-exactly-the-prepared-chunk-bytes-1.md): PUT /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/chunks/{artifactId}/content. Upload a prepared checkpoint chunk. The body must match the prepared SHA256 and size; sealing is still required for durable publication. - [Verify and seal immutable checkpoint bytes](https://docs.reason.bot/api-reference/checkpoint-artifacts/verify-and-seal-immutable-checkpoint-bytes-1.md): POST /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/chunks/{artifactId}/seal. Verifies the complete uploaded size and SHA256, copies bytes to a separate immutable private object, and fences publication on the current owner grant. - [Register an ordered immutable checkpoint manifest](https://docs.reason.bot/api-reference/checkpoint-artifacts/register-an-ordered-immutable-checkpoint-manifest-1.md): POST /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/manifests. Register a checkpoint manifest: an ordered, immutable list of chunks sealed under one owner. It inherits the shortest retention of its chunks. - [Read a retained checkpoint and fresh private URLs](https://docs.reason.bot/api-reference/checkpoint-artifacts/read-a-retained-checkpoint-and-fresh-private-urls-1.md): GET /v3/organizations/{orgId}/jobs/{ownerId}/checkpoints/manifests/{artifactId}. Read a retained checkpoint manifest with fresh private URLs that expire within ten minutes. Requires the current owner credential and an unchanged grant. ## API reference: Git Connections - [List git connections (deprecated)](https://docs.reason.bot/api-reference/git-connections/list-git-connections-deprecated.md): GET /v3/organizations/{orgId}/git-connections. Deprecated. - [List repositories for a git connection (deprecated)](https://docs.reason.bot/api-reference/git-connections/list-repositories-for-a-git-connection-deprecated.md): GET /v3/organizations/{orgId}/git-connections/{gitConnectionId}/repositories. Deprecated. ## API reference: Git Plugins - [List git plugins](https://docs.reason.bot/api-reference/git-plugins/list-git-plugins.md): GET /v3/organizations/{orgId}/git-plugins. Returns the source-control accounts linked to the organization. - [List repositories for a git plugin](https://docs.reason.bot/api-reference/git-plugins/list-repositories-for-a-git-plugin.md): GET /v3/organizations/{orgId}/git-plugins/{gitPluginId}/repositories. Returns the repositories exposed by a linked source-control plugin. ## API reference: Repositories - [List indexed repositories (retired)](https://docs.reason.bot/api-reference/repositories/list-indexed-repositories-retired.md): GET /v3/organizations/{orgId}/indexed-repositories. Retired compatibility endpoint. - [List repositories](https://docs.reason.bot/api-reference/repositories/list-repositories.md): GET /v3/organizations/{orgId}/repositories. Returns every repository reachable through the organization's live GitHub App grant. Reason automation enablement does not limit this access list. - [Bulk enable repositories](https://docs.reason.bot/api-reference/repositories/bulk-enable-repositories.md): PUT /v3/organizations/{orgId}/repositories/bulk-index. Bulk enable repositories reachable through the workspace's source-control connection. Returns one result per repository; nothing is indexed. - [Bulk remove repositories](https://docs.reason.bot/api-reference/repositories/bulk-remove-repositories.md): DELETE /v3/organizations/{orgId}/repositories/bulk-remove. Disconnects many repositories at once. Each entry may be an `owner/name` string or an `{ owner, repo }` object. - [Disconnect a repository](https://docs.reason.bot/api-reference/repositories/disconnect-a-repository.md): DELETE /v3/organizations/{orgId}/repositories/{owner}/{repo}. Removes the repository's enablement for this workspace; it does not delete the remote repository or revoke GitHub App access. - [Get a branch's head commit](https://docs.reason.bot/api-reference/repositories/get-a-branchs-head-commit.md): GET /v3/organizations/{orgId}/repositories/{owner}/{repo}/branch-head. Returns the commit SHA at the tip of a branch of a connected repository. Omit `branch` to read the default branch. - [Delete a repository branch (retired)](https://docs.reason.bot/api-reference/repositories/delete-a-repository-branch-retired.md): DELETE /v3/organizations/{orgId}/repositories/{owner}/{repo}/branches/{branch}. Retired compatibility endpoint. - [Get repository guardrails](https://docs.reason.bot/api-reference/repositories/get-repository-guardrails.md): GET /v3/organizations/{orgId}/repositories/{owner}/{repo}/guardrails. Returns the automation guardrails configured for a repository. - [Update repository guardrails](https://docs.reason.bot/api-reference/repositories/update-repository-guardrails.md): PUT /v3/organizations/{orgId}/repositories/{owner}/{repo}/guardrails. Partial update. - [Enable a repository](https://docs.reason.bot/api-reference/repositories/enable-a-repository.md): PUT /v3/organizations/{orgId}/repositories/{owner}/{repo}/index. Enable a repository reachable through the workspace's source-control connection. Returns the enabled repository with status 201; nothing is indexed. - [Get indexing status (retired)](https://docs.reason.bot/api-reference/repositories/get-indexing-status-retired.md): GET /v3/organizations/{orgId}/repositories/{owner}/{repo}/indexing-status. Retired compatibility endpoint. - [Get repository wiki (retired)](https://docs.reason.bot/api-reference/repositories/get-repository-wiki-retired.md): GET /v3/organizations/{orgId}/repositories/{owner}/{repo}/wiki. Retired compatibility endpoint. - [Export repository wiki (retired)](https://docs.reason.bot/api-reference/repositories/export-repository-wiki-retired.md): GET /v3/organizations/{orgId}/repositories/{owner}/{repo}/wiki/export. Retired compatibility endpoint. ## API reference: Sessions - [List pending input requests](https://docs.reason.bot/api-reference/sessions/list-pending-input-requests.md): GET /v3/organizations/{orgId}/input-requests. List pending input requests: the questions and request cards waiting in the Sessions the caller can read, newest first, one item per request id. - [List sessions](https://docs.reason.bot/api-reference/sessions/list-sessions.md): GET /v3/organizations/{orgId}/sessions. Returns Sessions newest first, cursor-paginated. By default, status=active hides archived Sessions; status accepts active, archived, or all. - [Create a session](https://docs.reason.bot/api-reference/sessions/create-a-session.md): POST /v3/organizations/{orgId}/sessions. Create a Session from a prompt. Optional reason_id files it under a Reason you can access, and repo selects the repository checkout for a cloud Session. - [List sessions with insights](https://docs.reason.bot/api-reference/sessions/list-sessions-with-insights.md): GET /v3/organizations/{orgId}/sessions/insights. Pages sessions like `GET /sessions` and attaches each session's stored insight (or a `not_generated` placeholder). Nothing is generated by this call. - [Start a new session's machine ahead of its create](https://docs.reason.bot/api-reference/sessions/start-a-new-sessions-machine-ahead-of-its-create.md): POST /v3/organizations/{orgId}/sessions/prestart. Reserve a Session id and start its cloud machine while the prompt is still being written, then create the Session with that id within 75 seconds. - [Retrieve a session](https://docs.reason.bot/api-reference/sessions/retrieve-a-session.md): GET /v3/organizations/{orgId}/sessions/{sessionId}. Returns the stable Session identity with current execution state, a bounded redacted error_message, and best-effort failure_diagnostics. - [Delete a session](https://docs.reason.bot/api-reference/sessions/delete-a-session.md): DELETE /v3/organizations/{orgId}/sessions/{sessionId}. Permanently delete a Session, or send archive=true to archive it instead. A Session on a teammate's personal computer is deleted only by that teammate. - [Archive a session](https://docs.reason.bot/api-reference/sessions/archive-a-session.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/archive. Requires run. - [List attachments](https://docs.reason.bot/api-reference/sessions/list-attachments.md): GET /v3/organizations/{orgId}/sessions/{sessionId}/attachments. List a Session's attachments: the artifacts it produced, such as diffs, logs, screenshots and build outputs. Pass view=files for only files a person can open. - [Download an attachment](https://docs.reason.bot/api-reference/sessions/download-an-attachment.md): GET /v3/organizations/{orgId}/sessions/{sessionId}/attachments/{attachmentId}. Download a Session attachment: redirects (307) to the download URL of a file the Session produced or a file sent with a prompt or message. - [Cancel a session](https://docs.reason.bot/api-reference/sessions/cancel-a-session.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/cancel. Cancel a running Session. Graceful mode, the default, stops the agent and tries to keep the workspace with a final snapshot; hard mode stops immediately. - [Compact a session's context](https://docs.reason.bot/api-reference/sessions/compact-a-sessions-context.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/compact. Compact a Session's context: summarize the conversation so far to free context for later turns. The outcome says queued, applied or not needed. - [List the conversation](https://docs.reason.bot/api-reference/sessions/list-the-conversation.md): GET /v3/organizations/{orgId}/sessions/{sessionId}/conversation. Returns the Session's conversation in order: the opening prompt, each message in it afterwards, and one reply for every finished turn. `kind` tells them apart. - [List live session events](https://docs.reason.bot/api-reference/sessions/list-live-session-events.md): GET /v3/organizations/{orgId}/sessions/{sessionId}/events. Poll incremental agent activity. Paging: pass the previous `next_seq` as `after_seq` to receive only newer events, until `items` is empty. - [Read session follow-through](https://docs.reason.bot/api-reference/sessions/read-session-follow-through.md): GET /v3/organizations/{orgId}/sessions/{sessionId}/follow-ups. Read a Session's follow-through state: whether it is waiting, its pending check-ins (up to 100), its pull request subscription and its latest wake. - [Schedule a session check-in](https://docs.reason.bot/api-reference/sessions/schedule-a-session-check-in.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/follow-ups. Schedule a one-shot check-in on a Session. Owner-only, with the run scope; this endpoint does not create event watches or callback credentials. - [Cancel a session check-in](https://docs.reason.bot/api-reference/sessions/cancel-a-session-check-in.md): DELETE /v3/organizations/{orgId}/sessions/{sessionId}/follow-ups/{followupId}. Stops one pending check-in or PR subscription on the caller's own Session. Returns `id`, `cancelled` and `pending` (always false). - [Fork a session](https://docs.reason.bot/api-reference/sessions/fork-a-session.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/fork. Fork a Session: create a new Session from this one's conversation up to its latest reply. The source Session is unchanged. Requires run. - [List a session's pending input requests](https://docs.reason.bot/api-reference/sessions/list-a-sessions-pending-input-requests.md): GET /v3/organizations/{orgId}/sessions/{sessionId}/input-requests. List a Session's pending input requests: the questions its agent asked and the secret, network, permission and connection request cards it is waiting on. - [Get an input request](https://docs.reason.bot/api-reference/sessions/get-an-input-request.md): GET /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}. Get one input request, a question or request card shown in the Session, whatever its status: whether it is still pending and how it ended. - [Answer a question](https://docs.reason.bot/api-reference/sessions/answer-a-question.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/answer. Answer a question a Session asked, as the web app's question card does. The first answer wins; give one answer per question, as option labels, text or both. - [Approve a network or permission request](https://docs.reason.bot/api-reference/sessions/approve-a-network-or-permission-request.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/approve. Approve a Session's network or permission request, as the web app's card does. Owners and admins only; the Session that asked then continues. - [Decline a secret request](https://docs.reason.bot/api-reference/sessions/decline-a-secret-request.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/cancel. Decline a secret request, as Not now on the web app's card does. Only the member it was issued to may; no value is stored and the waiting turn continues. - [Decline a network or permission request](https://docs.reason.bot/api-reference/sessions/decline-a-network-or-permission-request.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/deny. Decline a Session's network or permission request, as the web app's card does. Owners and admins only; the answer is recorded and the Session continues. - [Provide a secret request's value](https://docs.reason.bot/api-reference/sessions/provide-a-secret-requests-value.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/secret. Answers a pending `secret` request with its value, as the request's card in the web app does, and continues the Session waiting on it. - [Get session insights](https://docs.reason.bot/api-reference/sessions/get-session-insights.md): GET /v3/organizations/{orgId}/sessions/{sessionId}/insights. Get a Session's generated insight: a summary, category, outcome and headline metrics. Status is not_generated when no insight exists yet. - [Generate session insights](https://docs.reason.bot/api-reference/sessions/generate-session-insights.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/insights/generate. Returns the session's stored insight (200), or builds one from the session's record, stores it and returns it (201). - [List messages](https://docs.reason.bot/api-reference/sessions/list-messages.md): GET /v3/organizations/{orgId}/sessions/{sessionId}/messages. Returns the messages sent to the Session after it was created: follow-ups and mid-turn steers, each followed by a `system` note saying how it was delivered. - [Send a message](https://docs.reason.bot/api-reference/sessions/send-a-message.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/messages. Send a message: add a follow-up instruction to a running or finished Session, including an owned subagent Session. Device execution also needs devices:use. - [Withdraw a queued message](https://docs.reason.bot/api-reference/sessions/withdraw-a-queued-message.md): DELETE /v3/organizations/{orgId}/sessions/{sessionId}/messages/{messageId}/queued. Requires run. - [Send a queued message now](https://docs.reason.bot/api-reference/sessions/send-a-queued-message-now.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/messages/{messageId}/steer. Requires run. - [Move a session to a project](https://docs.reason.bot/api-reference/sessions/move-a-session-to-a-project.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/project. Requires run. - [Rename a session](https://docs.reason.bot/api-reference/sessions/rename-a-session.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/rename. Requires run. - [Retry a session's last turn](https://docs.reason.bot/api-reference/sessions/retry-a-sessions-last-turn.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/retry. Requires run. - [Edit a message and rewind](https://docs.reason.bot/api-reference/sessions/edit-a-message-and-rewind.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/rewind. Edit a message and rewind: replace a named message's content and start a new turn from it. Requires run; 404 when the Session has no such message. - [List shared links](https://docs.reason.bot/api-reference/sessions/list-shared-links.md): GET /v3/organizations/{orgId}/sessions/{sessionId}/shared-links. The session's shared links, newest first. - [Share a link with the agent](https://docs.reason.bot/api-reference/sessions/share-a-link-with-the-agent.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/shared-links. Share a link with a Session's agent: register an https URL it can open once in the Session's cloud browser. The URL is stored encrypted and never returned. - [Revoke a shared link](https://docs.reason.bot/api-reference/sessions/revoke-a-shared-link.md): DELETE /v3/organizations/{orgId}/sessions/{sessionId}/shared-links/{linkId}. Stops the agent from opening the link. - [List session tags](https://docs.reason.bot/api-reference/sessions/list-session-tags.md): GET /v3/organizations/{orgId}/sessions/{sessionId}/tags. Returns current tags for an accessible session, or an empty array. POST appends; PUT and PATCH replace the whole list. Reading tags does not modify the session. - [Replace session tags](https://docs.reason.bot/api-reference/sessions/replace-session-tags.md): PUT /v3/organizations/{orgId}/sessions/{sessionId}/tags. Replaces the entire tag list for an accessible session. Send tags: [] to clear it; use POST to append. Workspace tag policy and the write gate apply. - [Append session tags](https://docs.reason.bot/api-reference/sessions/append-session-tags.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/tags. Adds tags to the session (set-union, deduped). - [Replace session tags](https://docs.reason.bot/api-reference/sessions/replace-session-tags-1.md): PATCH /v3/organizations/{orgId}/sessions/{sessionId}/tags. Compatibility alias for PUT: replaces the entire tag list, not a partial edit. Send tags: [] to clear it; use POST to append. - [Export session trajectory](https://docs.reason.bot/api-reference/sessions/export-session-trajectory.md): GET /v3/organizations/{orgId}/sessions/{sessionId}/trajectory. Export a Session's trajectory in the Agent Trajectory Interchange Format (ATIF v1.7): steps, messages, reasoning, tool calls and results, tokens and cost. - [Restore a session](https://docs.reason.bot/api-reference/sessions/restore-a-session.md): POST /v3/organizations/{orgId}/sessions/{sessionId}/unarchive. Restore an archived Session without deleting history. Requires run, and repeating it is safe. It does not restore the Session's archived parent project. ## API reference: Jobs - [List jobs owned by this credential](https://docs.reason.bot/api-reference/jobs/list-jobs-owned-by-this-credential.md): GET /v3/organizations/{orgId}/jobs. Lists jobs owned by the current credential, with cursor pagination. - [Submit deterministic work on a granted Device](https://docs.reason.bot/api-reference/jobs/submit-deterministic-work-on-a-granted-device.md): POST /v3/organizations/{orgId}/jobs. Submits deterministic work to an authorized Device and returns a durable job receipt. Acceptance does not mean execution has started. - [Read job status](https://docs.reason.bot/api-reference/jobs/read-job-status.md): GET /v3/organizations/{orgId}/jobs/{jobId}. Returns the current lifecycle state of an owned job. - [Cancel work](https://docs.reason.bot/api-reference/jobs/cancel-work;-cleanup-is-reported-separately.md): POST /v3/organizations/{orgId}/jobs/{jobId}/cancel. Requests cancellation of an owned job and returns its current state. Physical cleanup is reported separately and completed effects are not reversed. - [Inspect a job's delegated grants](https://docs.reason.bot/api-reference/jobs/inspect-a-jobs-delegated-grants.md): GET /v3/organizations/{orgId}/jobs/{jobId}/delegations. Inspect a job's delegated grants: operation and resource ceilings, call budgets, expiry and revocation metadata. Requires the job's owning key or OAuth grant. - [Revoke a job's delegated grant](https://docs.reason.bot/api-reference/jobs/revoke-a-jobs-delegated-grant.md): DELETE /v3/organizations/{orgId}/jobs/{jobId}/delegations/{grantId}. Revoke a job's delegated grant. Revocation is permanent and idempotent, and needs jobs:delegate plus the exact job's owning API key or OAuth grant. - [Read bounded resumable job lifecycle events](https://docs.reason.bot/api-reference/jobs/read-bounded-resumable-job-lifecycle-events.md): GET /v3/organizations/{orgId}/jobs/{jobId}/events. Returns bounded lifecycle events after an event cursor. - [Read bounded owner-private output](https://docs.reason.bot/api-reference/jobs/read-bounded-owner-private-output.md): GET /v3/organizations/{orgId}/jobs/{jobId}/result. Returns bounded private output for an owned completed job. - [Observe a job without restarting it](https://docs.reason.bot/api-reference/jobs/observe-a-job-without-restarting-it.md): GET /v3/organizations/{orgId}/jobs/{jobId}/wait. Waits up to the requested timeout for an owned job to reach a terminal state. An elapsed wait returns current state without cancellation or restart. ## API reference: MCP Servers - [List MCP servers](https://docs.reason.bot/api-reference/mcp-servers/list-mcp-servers.md): GET /v3/organizations/{orgId}/mcp-servers. List the org-level MCP servers exposed to the agent, each with the account an OAuth server is signed in as and the names of the credentials stored on it. - [Create an MCP server](https://docs.reason.bot/api-reference/mcp-servers/create-an-mcp-server.md): POST /v3/organizations/{orgId}/mcp-servers. Registers an org-level MCP server: a catalog entry (`source` "curated" with its `slug`), a remote custom server, or a local stdio server. - [Inspect an MCP server URL](https://docs.reason.bot/api-reference/mcp-servers/inspect-an-mcp-server-url.md): POST /v3/organizations/{orgId}/mcp-servers/endpoint/inspect. Probes a public https MCP server URL and reports the auth it takes (`none`, `bearer` or `oauth`), without installing it or registering an OAuth client. - [Retrieve an MCP server](https://docs.reason.bot/api-reference/mcp-servers/retrieve-an-mcp-server.md): GET /v3/organizations/{orgId}/mcp-servers/{id}. Retrieve one org-level MCP server, with the account an OAuth server is signed in as and the names of the credentials stored on the server itself. - [Delete an MCP server](https://docs.reason.bot/api-reference/mcp-servers/delete-an-mcp-server.md): DELETE /v3/organizations/{orgId}/mcp-servers/{id}. Removes an org-level MCP server. - [Update an MCP server](https://docs.reason.bot/api-reference/mcp-servers/update-an-mcp-server.md): PATCH /v3/organizations/{orgId}/mcp-servers/{id}. Partially update an MCP server. Owners and admins change any field of a server they manage; a member changes only enabled and secrets on one they installed. - [Import a local MCP OAuth credential](https://docs.reason.bot/api-reference/mcp-servers/import-a-local-mcp-oauth-credential.md): POST /v3/organizations/{orgId}/mcp-servers/{id}/oauth-import. Validates and imports a locally held OAuth credential for an existing MCP server. Temporary mode never stores or refreshes a refresh token. ## API reference: Members - [List members](https://docs.reason.bot/api-reference/members/list-members.md): GET /v3/organizations/{orgId}/members/users. Returns the people in the organization. - [Invite a member](https://docs.reason.bot/api-reference/members/invite-a-member.md): POST /v3/organizations/{orgId}/members/users. Sends invitations to join the organization with the given role. Requires owner or admin. Every plan, Pro included, may invite, and there is no seat limit. - [Get a member](https://docs.reason.bot/api-reference/members/get-a-member.md): GET /v3/organizations/{orgId}/members/users/{userId}. Returns user_id, email, workspace role, avatar_url and created_at for a member. Workspace roles differ from product tiers managed through /roles. - [Remove a member](https://docs.reason.bot/api-reference/members/remove-a-member.md): DELETE /v3/organizations/{orgId}/members/users/{userId}. Removes workspace membership, not the user's account. Requires owner/admin authority; only owners can remove owners. - [Set a member's role](https://docs.reason.bot/api-reference/members/set-a-members-role.md): PUT /v3/organizations/{orgId}/members/users/{userId}/role. Changes workspace membership to owner, admin or member. Requires owner/admin authority; only owners can grant or modify owner membership. ## API reference: Memory - [Read a memory file](https://docs.reason.bot/api-reference/memory/read-a-memory-file.md): GET /v3/organizations/{orgId}/memory/file. Read one memory file's whole text and its revision_id. Send that revision_id back when writing to change the file only if nobody changed it since. - [Write a memory file](https://docs.reason.bot/api-reference/memory/write-a-memory-file.md): PUT /v3/organizations/{orgId}/memory/file. Write a memory file: create it or replace its whole text. Reasons read the change from their next Session on, and the change is stored as a revision. - [Delete a memory file](https://docs.reason.bot/api-reference/memory/delete-a-memory-file.md): DELETE /v3/organizations/{orgId}/memory/file. Deletes one note. The deletion is a revision like any other change, so the note can be restored from memory history in Settings. - [List memory files](https://docs.reason.bot/api-reference/memory/list-memory-files.md): GET /v3/organizations/{orgId}/memory/files. List every file in one memory scope. Memory is what Reasons know across Sessions: MEMORY.md, the index each Session starts by reading, and topic notes. - [List memory history](https://docs.reason.bot/api-reference/memory/list-memory-history.md): GET /v3/organizations/{orgId}/memory/history. Returns scope-wide revision history with unified diffs, including text since deleted. Requires memory:read and workspace membership. - [Restore a memory revision](https://docs.reason.bot/api-reference/memory/restore-a-memory-revision.md): POST /v3/organizations/{orgId}/memory/restore. Restore a memory file to an earlier revision by its history path and revision id. History is kept, and the restore is itself a new revision. - [Search memory](https://docs.reason.bot/api-reference/memory/search-memory.md): GET /v3/organizations/{orgId}/memory/search. Search memory: find lines containing the query in every file of one scope. A plain, case-insensitive substring match, not a regular expression. ## API reference: Metrics - [Get usage metrics](https://docs.reason.bot/api-reference/metrics/get-usage-metrics.md): GET /v3/organizations/{orgId}/metrics/usage. Returns a usage time series, such as sandbox minutes and tokens per day. - [Get queue status](https://docs.reason.bot/api-reference/metrics/get-queue-status.md): GET /v3/organizations/{orgId}/queue. Returns the Sessions that are running or waiting to start: workspace and per-repository counts plus the running and queued Sessions. ## API reference: Network policy - [Retrieve workspace network policy](https://docs.reason.bot/api-reference/network-policy/retrieve-workspace-network-policy.md): GET /v3/organizations/{orgId}/network-policy. Retrieve the workspace network policy: the saved allowed-host list and whether the network is restricted to it. Requires the network:read scope. - [Replace workspace network policy](https://docs.reason.bot/api-reference/network-policy/replace-workspace-network-policy.md): PUT /v3/organizations/{orgId}/network-policy. Replace the workspace network policy: the saved allowed-host list and the network_restricted switch. Requires network:write and a workspace owner or admin. ## API reference: Onboarding - [Mark an approved local secret import complete](https://docs.reason.bot/api-reference/onboarding/mark-an-approved-local-secret-import-complete.md): POST /v3/organizations/{orgId}/onboarding/import/complete. Records completion after an approved local import finishes. Supply imported_secret_count with handoff or pairing_id. - [Poll the browser's local secret import decision](https://docs.reason.bot/api-reference/onboarding/poll-the-browsers-local-secret-import-decision.md): POST /v3/organizations/{orgId}/onboarding/import/decision. Returns only the approved secret names. - [Attach an existing CLI grant to a browser pairing](https://docs.reason.bot/api-reference/onboarding/attach-an-existing-cli-grant-to-a-browser-pairing.md): POST /v3/organizations/{orgId}/onboarding/import/pairing/claim-existing. Claims the browser's pairing_code with the current CLI MCP OAuth grant, not a plain API key. Pairing must match user, workspace and OAuth client. - [Report that a paired local scan could not finish](https://docs.reason.bot/api-reference/onboarding/report-that-a-paired-local-scan-could-not-finish.md): POST /v3/organizations/{orgId}/onboarding/import/pairing/failure. Records failure_code for a CLI pairing belonging to the current user, workspace and MCP OAuth client. - [Create a local onboarding import handoff](https://docs.reason.bot/api-reference/onboarding/create-a-local-onboarding-import-handoff.md): POST /v3/organizations/{orgId}/onboarding/import/summary. Creates a short-lived browser handoff containing secret names and coarse source descriptions. ## API reference: Pages - [List pages](https://docs.reason.bot/api-reference/pages/list-pages.md): GET /v3/organizations/{orgId}/pages. Lists the pages you may see, newest first, with each one's title, revision, Session, share state and hero preview. - [Create a page](https://docs.reason.bot/api-reference/pages/create-a-page.md): POST /v3/organizations/{orgId}/pages. Create a page from html and a title. It lives in a Reason's conversation, so it shows in that Reason's Library, or in a Session you may read. You own it. - [Retrieve a page](https://docs.reason.bot/api-reference/pages/retrieve-a-page.md): GET /v3/organizations/{orgId}/pages/{pageId}. Retrieve one page you may see: its title, revision, Session, permanent link, a short-lived view URL, hero preview and share state. Requires pages:read. - [Delete a page](https://docs.reason.bot/api-reference/pages/delete-a-page.md): DELETE /v3/organizations/{orgId}/pages/{pageId}. Deletes a page you own: it leaves its Session, the Library and every pin, and its share link and view URLs stop opening. Only the page's owner deletes it. - [Update a page](https://docs.reason.bot/api-reference/pages/update-a-page.md): PATCH /v3/organizations/{orgId}/pages/{pageId}. Replaces a page's HTML and/or renames it as a new revision under the same id: its link, share link and Library row stay, so one page stays one page. - [Share a page](https://docs.reason.bot/api-reference/pages/share-a-page.md): PUT /v3/organizations/{orgId}/pages/{pageId}/share. Sets who opens the page's share link and returns it: `link` (anyone with it), `workspace` (signed-in members) or `private` (closes it to everyone but you). ## API reference: Plugins - [List plugins](https://docs.reason.bot/api-reference/plugins/list-plugins.md): GET /v3/organizations/{orgId}/plugins. Lists the plugin catalog: Reason's curated and imported marketplace connectors, the workspace's custom MCP servers and native app connectors. - [List plugin Reason allowances](https://docs.reason.bot/api-reference/plugins/list-plugin-reason-allowances.md): GET /v3/organizations/{orgId}/plugins/reason-allowances. Lists the calling member's personal connection allowances: which team Reasons may use their own plugin connections, and for which plugins. - [Get a plugin sign-in](https://docs.reason.bot/api-reference/plugins/get-a-plugin-sign-in.md): GET /v3/organizations/{orgId}/plugins/sign-in/{signInId}. Get a plugin sign-in started with startPluginSignIn or installPlugin. Poll until its status is no longer pending: succeeded, failed, cancelled or expired. - [Cancel a plugin sign-in](https://docs.reason.bot/api-reference/plugins/cancel-a-plugin-sign-in.md): DELETE /v3/organizations/{orgId}/plugins/sign-in/{signInId}. Cancel a pending plugin sign-in: its one-time OAuth state is deleted, so finishing consent afterwards saves no grant. Never removes an existing connection. - [Get a plugin](https://docs.reason.bot/api-reference/plugins/get-a-plugin.md): GET /v3/organizations/{orgId}/plugins/{slug}. Returns one plugin from listPlugins by slug, with its bundled skills and every installation the caller sees. - [Uninstall a plugin](https://docs.reason.bot/api-reference/plugins/uninstall-a-plugin.md): DELETE /v3/organizations/{orgId}/plugins/{slug}. Uninstall one installation of a plugin, named by mcp_server_id, connection_id or scope. Its bundled skills in the same scope go too unless keep_skills=true. - [Install a plugin](https://docs.reason.bot/api-reference/plugins/install-a-plugin.md): POST /v3/organizations/{orgId}/plugins/{slug}/install. Install a catalog plugin for yourself, for the workspace as one shared connection, or as a Reason's own connection. Bundled skills are installed by default. - [Get per-Reason plugin settings](https://docs.reason.bot/api-reference/plugins/get-per-reason-plugin-settings.md): GET /v3/organizations/{orgId}/plugins/{slug}/reasons/{reasonId}. Returns the connection mode, member allowance, and exclusion state for one plugin+Reason combination, plus whether the caller may change each setting. - [Update per-Reason plugin settings](https://docs.reason.bot/api-reference/plugins/update-per-reason-plugin-settings.md): PATCH /v3/organizations/{orgId}/plugins/{slug}/reasons/{reasonId}. Update per-Reason settings for one plugin: reason_mode, allowance and excluded. Each field is optional with its own permission check; an empty body is a 400. - [Start a plugin sign-in](https://docs.reason.bot/api-reference/plugins/start-a-plugin-sign-in.md): POST /v3/organizations/{orgId}/plugins/{slug}/sign-in/start. Start the browser sign-in for an installed OAuth MCP plugin or native app connector. Returns the provider's consent URL and a sign_in_id to poll. ## API reference: Change Request Reviews - [List change request reviews](https://docs.reason.bot/api-reference/change-request-reviews/list-change-request-reviews.md): GET /v3/organizations/{orgId}/pr-reviews. Returns the latest automated review per pull request among the workspace's 50 most recent review runs, newest first. - [Request a change request review](https://docs.reason.bot/api-reference/change-request-reviews/request-a-change-request-review.md): POST /v3/organizations/{orgId}/pr-reviews. Automated pull-request reviews are currently unavailable. Every well-formed GitHub request returns `409 pr_review_disabled`, whichever pull request it names. ## API reference: Projects - [List projects](https://docs.reason.bot/api-reference/projects/list-projects.md): GET /v3/organizations/{orgId}/projects. Deprecated: use listReasons. Lists the named Reasons the caller can see in this workspace as projects, leaving out archived ones by default. - [Create project](https://docs.reason.bot/api-reference/projects/create-project.md): POST /v3/organizations/{orgId}/projects. Deprecated: use createReason. Creates a named Reason in the workspace and returns it as a project, taking a name, description and visibility. - [Retrieve a project](https://docs.reason.bot/api-reference/projects/retrieve-a-project.md): GET /v3/organizations/{orgId}/projects/{projectId}. Deprecated: use getReason. Returns a named Reason the caller can see, as a project, including the caller's archived ones. Requires sessions:read. - [Update a project](https://docs.reason.bot/api-reference/projects/update-a-project.md): PATCH /v3/organizations/{orgId}/projects/{projectId}. Deprecated: use updateReason. Updates a named Reason the caller owns, as a project: its name, description (its instructions) and visibility. Requires run. - [Archive a project](https://docs.reason.bot/api-reference/projects/archive-a-project.md): POST /v3/organizations/{orgId}/projects/{projectId}/archive. Deprecated: use archiveReason. Archives the caller's named Reason, as a project. Safe to repeat, and its sessions are preserved. Requires run. - [Restore a project](https://docs.reason.bot/api-reference/projects/restore-a-project.md): POST /v3/organizations/{orgId}/projects/{projectId}/unarchive. Deprecated. A live project answers ok; an archived one answers 409 project_unarchive_unavailable, because archived Reasons are not restored. ## API reference: Provider credentials - [List provider credentials](https://docs.reason.bot/api-reference/provider-credentials/list-provider-credentials.md): GET /v3/organizations/{orgId}/provider-credentials. Lists configured provider credentials and connection statuses for the organization. - [Connect an Anthropic subscription](https://docs.reason.bot/api-reference/provider-credentials/connect-an-anthropic-subscription.md): POST /v3/organizations/{orgId}/provider-credentials/anthropic. Connect an Anthropic subscription: store a Claude sign-in the Reason CLI obtained locally, as an OAuth credential or a Claude Code setup token. - [List available providers](https://docs.reason.bot/api-reference/provider-credentials/list-available-providers.md): GET /v3/organizations/{orgId}/provider-credentials/catalog. List available model providers: their identifiers, API-key configuration fields and the public sign-in methods each one offers. - [Discover pending provider sign-ins](https://docs.reason.bot/api-reference/provider-credentials/discover-pending-provider-sign-ins.md): GET /v3/organizations/{orgId}/provider-credentials/oauth/logins. Lists only this user's unexpired, authorized pending public sign-ins. Metadata only: no challenges, codes, prompts, credentials or terminal results. - [Read provider sign-in](https://docs.reason.bot/api-reference/provider-credentials/read-provider-sign-in.md): GET /v3/organizations/{orgId}/provider-credentials/oauth/logins/{loginId}. Read a provider sign-in's state. Requires a workspace-bound user OAuth grant with org:write; API keys and browser sessions are not accepted. - [Cancel provider sign-in](https://docs.reason.bot/api-reference/provider-credentials/cancel-provider-sign-in.md): DELETE /v3/organizations/{orgId}/provider-credentials/oauth/logins/{loginId}. Cancel a provider sign-in. Cancelling never disconnects an existing account. Requires a workspace-bound user OAuth grant with org:write; API keys are refused. - [Answer provider sign-in prompt](https://docs.reason.bot/api-reference/provider-credentials/answer-provider-sign-in-prompt.md): POST /v3/organizations/{orgId}/provider-credentials/oauth/logins/{loginId}/respond. Answer a provider sign-in prompt by submitting the current prompt_id; responses are write-only. Requires a workspace-bound user OAuth grant with org:write. - [Configure a provider credential](https://docs.reason.bot/api-reference/provider-credentials/configure-a-provider-credential.md): PUT /v3/organizations/{orgId}/provider-credentials/{providerId}. Configure a provider credential: store or update an API key for a model provider (BYOK). Keys are encrypted, write-only and never returned. - [Delete a provider credential](https://docs.reason.bot/api-reference/provider-credentials/delete-a-provider-credential.md): DELETE /v3/organizations/{orgId}/provider-credentials/{providerId}. Disconnects and forgets a stored provider credential. - [Rename a provider account](https://docs.reason.bot/api-reference/provider-credentials/rename-a-provider-account.md): PATCH /v3/organizations/{orgId}/provider-credentials/{providerId}/accounts/{accountKey}. Rename a provider account: set the name shown for one saved account, up to 80 characters. Members rename accounts they connected; owners and admins any. - [Check a saved provider account](https://docs.reason.bot/api-reference/provider-credentials/check-a-saved-provider-account.md): POST /v3/organizations/{orgId}/provider-credentials/{providerId}/accounts/{accountKey}/check. Check a saved provider account using provider metadata only, without paid inference calls. Reports connection, authentication and capacity separately. - [Read saved provider account usage](https://docs.reason.bot/api-reference/provider-credentials/read-saved-provider-account-usage.md): GET /v3/organizations/{orgId}/provider-credentials/{providerId}/accounts/{accountKey}/usage. Read provider-reported usage metadata for one saved provider account, without running inference. Secret values and raw provider payloads are never returned. - [Start or recover provider sign-in](https://docs.reason.bot/api-reference/provider-credentials/start-or-recover-provider-sign-in.md): POST /v3/organizations/{orgId}/provider-credentials/{providerId}/oauth/login-requests. Start or recover a provider sign-in with an idempotency_key: store the key before sending, and retry the same endpoint and intent after a lost response. - [Start provider sign-in](https://docs.reason.bot/api-reference/provider-credentials/start-provider-sign-in.md): POST /v3/organizations/{orgId}/provider-credentials/{providerId}/oauth/logins. Start a provider's interactive sign-in, then follow next_action and poll until it ends. Codex and Radius default to device-code authentication. - [Validate a provider API key](https://docs.reason.bot/api-reference/provider-credentials/validate-a-provider-api-key.md): POST /v3/organizations/{orgId}/provider-credentials/{providerId}/validate. Tests an API key directly against the provider without saving it. ## API reference: Reasons - [List Reasons](https://docs.reason.bot/api-reference/reasons/list-reasons.md): GET /v3/organizations/{orgId}/reasons. List Reasons: the caller's own first (main, then named ones), then other members' Reasons shared with the workspace or with the caller. - [Create a Reason](https://docs.reason.bot/api-reference/reasons/create-a-reason.md): POST /v3/organizations/{orgId}/reasons. Creates a named Reason for the caller, private to them until they share it (`visibility` on updateReason). - [Get a Reason](https://docs.reason.bot/api-reference/reasons/get-a-reason.md): GET /v3/organizations/{orgId}/reasons/{reasonId}. Returns one Reason the caller can see: their own, or another member's Reason shared with the workspace or with them. - [Delete a Reason](https://docs.reason.bot/api-reference/reasons/delete-a-reason.md): DELETE /v3/organizations/{orgId}/reasons/{reasonId}. Delete one of the caller's named Reasons: its Loops are deleted and its conversation is archived with its history. Only its owner may, and nothing restores it. - [Update a Reason](https://docs.reason.bot/api-reference/reasons/update-a-reason.md): PATCH /v3/organizations/{orgId}/reasons/{reasonId}. Update a Reason: its name, avatar and instructions, the model, reasoning effort and repositories its new Sessions start with, and its visibility and audience. - [Archive a Reason](https://docs.reason.bot/api-reference/reasons/archive-a-reason.md): POST /v3/organizations/{orgId}/reasons/{reasonId}/archive. Archive a Reason. Deletes a named Reason as deleteReason does: its Loops are deleted and its conversation is archived, not deleted, and keeps its history. - [Create a cloud computer for a Reason](https://docs.reason.bot/api-reference/reasons/create-a-cloud-computer-for-a-reason.md): POST /v3/organizations/{orgId}/reasons/{reasonId}/computers. Create a cloud computer for a Reason. Nothing boots or bills until a Session runs on it: pass its id as computer_id when creating the Session. - [Delete a Reason's cloud computer](https://docs.reason.bot/api-reference/reasons/delete-a-reasons-cloud-computer.md): DELETE /v3/organizations/{orgId}/reasons/{reasonId}/computers/{computerId}. Deletes one of the caller's cloud computers of the Reason once no open, unarchived Session is on it. Archive or cancel those Sessions first. - [Open a Reason's conversation](https://docs.reason.bot/api-reference/reasons/open-a-reasons-conversation.md): POST /v3/organizations/{orgId}/reasons/{reasonId}/conversation. Open a Reason's conversation: find or create its long-running conversation Session. No task starts until a message is sent; sendReasonMessage does this itself. - [Make a Reason the main one](https://docs.reason.bot/api-reference/reasons/make-a-reason-the-main-one.md): POST /v3/organizations/{orgId}/reasons/{reasonId}/make-main. Make one of the caller's own named Reasons their main Reason in one step. It keeps its id, name, instructions, memory and Sessions. - [Merge a Reason into another](https://docs.reason.bot/api-reference/reasons/merge-a-reason-into-another.md): POST /v3/organizations/{orgId}/reasons/{reasonId}/merge. Merges the caller's named Reason `reasonId` into their other named Reason `into`, as Merge into in the Reason app does, so that near-duplicate Reasons become one. - [List a Reason's messages](https://docs.reason.bot/api-reference/reasons/list-a-reasons-messages.md): GET /v3/organizations/{orgId}/reasons/{reasonId}/messages. List a Reason's messages: its conversation in order, with the opening prompt, each message sent to it and one reply per finished turn. Cursor-paginated. - [Message a Reason](https://docs.reason.bot/api-reference/reasons/message-a-reason.md): POST /v3/organizations/{orgId}/reasons/{reasonId}/messages. Message a Reason, the primary way to give it work. The message goes into its long-running conversation; the Reason answers, starts Sessions or sets up Loops. ## API reference: Loops - [List a Reason's Loops](https://docs.reason.bot/api-reference/loops/list-a-reasons-loops.md): GET /v3/organizations/{orgId}/reasons/{reasonId}/loops. List the Loops filed under a Reason that the caller can see. A Loop is standing work a Reason does, woken by a schedule, a webhook, GitHub or Slack. - [Create a Loop](https://docs.reason.bot/api-reference/loops/create-a-loop.md): POST /v3/organizations/{orgId}/reasons/{reasonId}/loops. Files a new Loop under the Reason, which must be one of the caller's own live Reasons (404 `reason_not_found` otherwise). Give what wakes it in `wake_on`. - [Retrieve a Loop](https://docs.reason.bot/api-reference/loops/retrieve-a-loop.md): GET /v3/organizations/{orgId}/reasons/{reasonId}/loops/{loopId}. Returns the Loop without running it. A webhook Loop shows its URL as `event_trigger.url`; its key is never returned after creation. - [Delete a Loop](https://docs.reason.bot/api-reference/loops/delete-a-loop.md): DELETE /v3/organizations/{orgId}/reasons/{reasonId}/loops/{loopId}. Deletes the Loop and everything that wakes it; its webhook's key stops working. Sessions it opened are kept. - [Update a Loop](https://docs.reason.bot/api-reference/loops/update-a-loop.md): PATCH /v3/organizations/{orgId}/reasons/{reasonId}/loops/{loopId}. Partially update a Loop, such as its name, prompt, model or max_runs. A paused Loop resumes from its next slot; wake_on replaces everything that wakes it. - [Run a Loop now](https://docs.reason.bot/api-reference/loops/run-a-loop-now.md): POST /v3/organizations/{orgId}/reasons/{reasonId}/loops/{loopId}/run. Run a Loop now: the scheduler starts one run within a minute, with the same Session, billing and run record as a scheduled wake, then returns to its next slot. - [Send an event to a Loop](https://docs.reason.bot/api-reference/loops/send-an-event-to-a-loop.md): POST /webhooks/automations/{publicToken}. Send an event to a Loop's webhook. Each accepted event wakes the Loop: it opens a Session of its Reason or continues the Session of earlier events. - [Send an event to a Loop (key in the URL)](https://docs.reason.bot/api-reference/loops/send-an-event-to-a-loop-key-in-the-url.md): POST /webhooks/automations/{publicToken}/{key}. Send an event to a Loop with the key as the URL's last path segment, for a sender that only takes a URL. Prefer the bearer header or a signature. ## API reference: Roles - [List role assignments (retired)](https://docs.reason.bot/api-reference/roles/list-role-assignments-retired.md): GET /v3/organizations/{orgId}/roles. Retired. - [Set a role assignment (retired)](https://docs.reason.bot/api-reference/roles/set-a-role-assignment-retired.md): PUT /v3/organizations/{orgId}/roles. Retired. - [Get the caller's roles](https://docs.reason.bot/api-reference/roles/get-the-callers-roles.md): GET /v3/organizations/{orgId}/roles/me. Get the caller's roles: membership_role, their role in this organization (owner, admin, member or viewer), and app_role, their account's product tier. - [Get a role assignment (retired)](https://docs.reason.bot/api-reference/roles/get-a-role-assignment-retired.md): GET /v3/organizations/{orgId}/roles/{userId}. Retired. ## API reference: Secrets - [List secret names](https://docs.reason.bot/api-reference/secrets/list-secret-names.md): GET /v3/organizations/{orgId}/secrets. List secret names and metadata for one scope: the workspace's shared secrets or the caller's own personal secrets. Values are never returned. - [Create or update a secret](https://docs.reason.bot/api-reference/secrets/create-or-update-a-secret.md): POST /v3/organizations/{orgId}/secrets. Upserts a secret by name. Without `scope`, consolidated workspace-resource mode stores a shared `organization` secret; otherwise it stores a personal `user` secret. - [Create or update workspace secrets in a batch](https://docs.reason.bot/api-reference/secrets/create-or-update-workspace-secrets-in-a-batch.md): POST /v3/organizations/{orgId}/secrets/bulk. Stores a confirmed batch of workspace secrets encrypted, all or none. `created` and `updated` list which names were new and which replaced a stored value. - [Seal a value to propose later](https://docs.reason.bot/api-reference/secrets/seal-a-value-to-propose-later.md): POST /v3/organizations/{orgId}/secrets/seal. Takes a value and answers with a single-use handle. - [Delete a secret](https://docs.reason.bot/api-reference/secrets/delete-a-secret.md): DELETE /v3/organizations/{orgId}/secrets/{secretId}. Delete a secret by name. The scope query defaults to the caller's personal secrets; pass the scope returned by list or create to delete a shared one. ## API reference: Settings - [List organization settings](https://docs.reason.bot/api-reference/settings/list-organization-settings.md): GET /v3/organizations/{orgId}/settings. Returns every namespaced setting as a map of namespace to its value object. - [Get a settings namespace](https://docs.reason.bot/api-reference/settings/get-a-settings-namespace.md): GET /v3/organizations/{orgId}/settings/{namespace}. Returns the value object for a single settings namespace, or null if unset. - [Update a settings namespace](https://docs.reason.bot/api-reference/settings/update-a-settings-namespace.md): PUT /v3/organizations/{orgId}/settings/{namespace}. Replaces the value object for a single settings namespace. Only validated namespaces are writable; an unknown namespace returns a 400. ## API reference: Skills - [List skills](https://docs.reason.bot/api-reference/skills/list-skills.md): GET /v3/organizations/{orgId}/skills. Returns all Workspace skill records, including authored skills and skills installed from packages or integrations. - [Create a skill](https://docs.reason.bot/api-reference/skills/create-a-skill.md): POST /v3/organizations/{orgId}/skills. Create an authored workspace skill from a name and instructions. The description says when to select it. Returns skill_id and provenance without running work. - [Retrieve a skill](https://docs.reason.bot/api-reference/skills/retrieve-a-skill.md): GET /v3/organizations/{orgId}/skills/{skillId}. Retrieves any Workspace skill record, whether authored or installed from a package or integration. - [Update a skill](https://docs.reason.bot/api-reference/skills/update-a-skill.md): PUT /v3/organizations/{orgId}/skills/{skillId}. Partially updates an authored skill. Installed package and integration skills are read-only. Send only the fields you want to change. - [Delete a skill](https://docs.reason.bot/api-reference/skills/delete-a-skill.md): DELETE /v3/organizations/{orgId}/skills/{skillId}. Deletes an authored skill or one installed from skills.sh. ## API reference: Transcription - [Transcribe a recording](https://docs.reason.bot/api-reference/transcription/transcribe-a-recording.md): POST /v3/organizations/{orgId}/transcribe. Transcribe a short voice recording into text. Send the audio as the request body, at most 10 MiB. Returns the transcript, confidence and word timings. ## API reference: Direct web - [Fetch public web content](https://docs.reason.bot/api-reference/direct-web/fetch-public-web-content.md): POST /v3/organizations/{orgId}/web/fetch. Fetch one public HTTP(S) URL with bounded content, redirect and private-network protection. Requires web:read. - [Search the public web](https://docs.reason.bot/api-reference/direct-web/search-the-public-web.md): POST /v3/organizations/{orgId}/web/search. Search the public web with a bounded query and 1-10 results. Requires web:read. No Session is created.