# Docs - [Overview](/) - Sessions - [Sessions](/sessions): How an Inspect session runs: its sandbox, lifecycle, branches, sharing, and what the agent can reach. - [Writing requests](/sessions/writing-requests): What context Inspect starts with, how to attach files and pick a repository, and how to steer a running session. - [Reviewing changes](/sessions/reviewing-changes): Review a session diff, comment on lines, track viewed files, see deploys, and open, revise, or merge the pull request. - [Subagents and child sessions](/sessions/subagents): How Inspect splits work across subagents that share a sandbox and child sessions that get their own. - [Browser](/sessions/browser): The Chromium browser in each session sandbox: what the agent does with it, how to take control, and how recordings work. - [Models](/sessions/models): Which models sessions can use, how the default is chosen, organization model settings, and reasoning effort. - [Custom instructions](/sessions/custom-instructions): Personal instructions every new session starts with, and how they combine with repository instructions and custom agents. - [Memories](/sessions/memories): Personal directives and facts Inspect loads into new sessions, how they are created, and their limits. - Repositories - [Repositories](/sessions/repositories): Connect a GitHub repository, configure its base branch, and give Inspect repository-specific instructions. - [Repository builds](/sessions/repositories/build): Prepare reusable repository images with setup scripts and dependencies. - [Environment variables](/sessions/repositories/environment-variables): Set repository and organization variables for image builds and session runtime. - [Egress secrets](/sessions/repositories/egress-secrets): Authenticate HTTPS requests without exposing credential values to the session sandbox. - Code review - [Code review](/code-review): How Inspect reviews, verifies, approves, and maintains pull requests. - [Review agent](/code-review/review-agent): Automated pull request reviews with specialist reviewers, repository rules, and per-role models. - [Verification agent](/code-review/verification-agent): Run the app from a pull request commit, exercise the changed behavior, and publish evidence. - [Approval agent](/code-review/approval-agent): Approve low-risk pull requests automatically under policies stored in each repository. - [Review providers](/code-review/review-providers): Show findings from your own automated code reviewer in Inspect, auto-fix them by severity, and accept review requests. - Automations - [Automations](/automations): Saved prompts that start unattended Inspect sessions on a schedule or when an event happens. - [Automation templates](/automations/templates): Publish an automation so others can run or fork it, and keep forks in sync with the original prompt. - [Scheduled](/automations/scheduled): Run an automation on a cron schedule in a chosen timezone. - [GitHub](/automations/github): Start automations from pushes, pull request events, status check results, and pull request comments. - [Slack](/automations/slack): Start automations from new messages or reactions in Slack channels. - [Linear](/automations/linear): Start automations from Linear issues, issue comments, releases, and projects. - [Datadog](/automations/datadog): Start an automation when a Datadog monitor alerts or warns. - [Sentry](/automations/sentry): Start an automation from a Sentry issue alert or metric alert. - [LaunchDarkly](/automations/launchdarkly): Start an automation when a LaunchDarkly flag changes. - [Inspect events](/automations/inspect-events): Start an automation when something changes in your Inspect organization. - [Webhooks](/automations/webhooks): Start automations, or wake listening sessions, when another service sends a verified webhook. - Canvas - [Canvas](/canvas): Live React apps an agent builds in a session: prototypes, flows, dashboards, and internal tools you can edit, comment on, version, and share. - [Walkthroughs](/canvas/walkthroughs): Record yourself presenting a canvas, then share a replay that reviewers can pause, explore, and comment on at specific moments. - [Design systems](/canvas/design-systems): Let canvas agents build apps with your own component library: set it up from a repository, publish versions, choose the default, and edit the guide agents read. - [Data sources](/canvas/data-sources): Typed SQLite tables that canvas apps read and write: snapshots, scheduled connector syncs, and buttons that call connector or Inspect tools as the viewer. - Projects - [Projects](/projects): Group related sessions, deliverables, automations, and shared memory under one goal, with a coordinator session per participant that plans and delegates the work. - [Artifacts and the Library](/projects/artifacts): Files and resource links that sessions produce, how publishing makes them findable across sessions, and how upload links behave. - Agents & skills - [Custom agents](/agents-and-skills/custom-agents): Package instructions, skills, repository limits, and a model into an agent your team can start from the web app, Slack, automations, and other sessions. - [Skills](/agents-and-skills/skills): Reusable SKILL.md instructions that Inspect loads by slash command or when a task matches, from your organization catalog or from the repository. - Integrations - [Integrations](/integrations): Services Inspect connects to, what each one enables, and who sets it up. - [GitHub](/integrations/github): Install the Inspect GitHub App, link each person’s GitHub account, and know what Inspect does on GitHub and as whom. - [Slack](/integrations/slack): Start Inspect sessions from Slack messages and continue work in the same thread. - [Linear](/integrations/linear): Delegate Linear issues to Inspect and continue the work in the issue conversation. - [Email](/integrations/email): Start and continue Inspect sessions by sending an email. - Connectors - [Connectors](/connectors): Connect MCP services with personal or shared accounts, access restrictions, and session privacy controls. - [Inspect OIDC connectors](/connectors/inspect-oidc): Let your MCP server verify which Inspect user and session each request comes from. - Security - [Security](/security): How Inspect isolates sessions, handles credentials, and controls who can see and change what. - [Sign-in](/security/sign-in): Choose who can join your organization and which sign-in methods they can use, including SSO through OpenID Connect and SCIM directory sync. - [Users and roles](/security/users-and-roles): Invite people, grant roles, deactivate accounts, and see exactly what each role allows. - [Spend limits](/security/spend-limits): Cap what a single session or a pull request’s automated reviews can spend, and see where usage goes. - [Audit logs](/security/audit-logs): Review and export security-relevant changes in your organization, with the exact actions Inspect records. - [Connector security](/security/connectors): How Inspect handles connector credentials, what the external MCP server controls, and the risks to weigh before connecting one. - [Private networking](/security/private-networking): Let session sandboxes reach private HTTP and HTTPS services through a VPN tunnel you install. - [Workload identity](/security/workload-identity): Give Inspect sandboxes and repository image builds short-lived OIDC identities. - [Demos](/demos): Short walkthroughs for working with sessions, agents, automations, connectors, and settings. - API - [API](/api): Authenticate to the Inspect REST API, and understand its base URL, rate limits, and errors. - [API keys](/api/api-keys): Create, rotate, and revoke personal and system API keys, and restrict where keys can be used from. - [Inspect MCP](/api/mcp): Connect Claude, ChatGPT and Codex, Cursor, GitHub Copilot, Glass, and other MCP clients to Inspect. - Agents: Manage custom agents - [List agents](/api/agents/listAgents): List available agents. Returns all non-deleted agents with their basic metadata (no `prompt` or `skills` here; use `GET /api/v2/agents/{agent_id}` for full configuration). Use the returned `id` in the `agent_id` field when creating a session. - [Get agent](/api/agents/getAgent): Retrieve a single agent by ID, including system `prompt`, `skills`, capabilities, and repository configuration. The list endpoint (`GET /api/v2/agents`) returns summary metadata only; use this route for full configuration. Same API key authentication as other public v1 endpoints. - [Create agent](/api/agents/createAgent): Create a custom agent owned by the user associated with the API key. Slack app, avatar, and contributor settings are not managed by this endpoint. - [Update agent](/api/agents/updateAgent): Partially update a custom agent. The API key user must be the creator, a contributor, or an Inspect admin. Only provided fields are changed. - [Archive agent](/api/agents/archiveAgent): Archive (soft-delete) a custom agent. Archived agents are omitted from list and get responses and cannot start new sessions. The agent's Slack user group is disabled and its avatar is deleted. The API key user must be the creator, a contributor, or an Inspect admin. Archived agents cannot be restored through the API. - [List agent versions](/api/agents/listAgentVersions): List every saved prompt version for an agent, newest first. Only the prompt is versioned; the rest of the agent's configuration is always current. The API key user must be the creator, a contributor, or an Inspect admin. - Artifacts: Manage artifacts - [List artifacts](/api/artifacts/listArtifacts): List or search published artifacts, newest first. Supports cursor pagination. - [Get artifact](/api/artifacts/getArtifact): Retrieve a published artifact. - [Create artifact](/api/artifacts/createArtifact): Publish a link artifact. If an artifact with the same canonical URL already exists, returns it unchanged with status 200 and `meta.created: false`. Returns 400 when the URL has credentials or a local/private host. - [Update artifact](/api/artifacts/updateArtifact): Partially update a published artifact. Returns 400 when `url` or `type` is set on a `file` or `session_replay` artifact or the URL has credentials or a local/private host, and 409 when another artifact already uses the URL. - [Delete artifact](/api/artifacts/deleteArtifact): Remove a published artifact. Artifacts produced in a session stay with that session, unpublished; others are deleted. - Automations: Manage automations - [List automations](/api/automations/listAutomations): List automations owned by or shared with the authenticated user. Pass `scope=all` to also include published automations and their soft forks. Supports cursor pagination. - [Get automation](/api/automations/getAutomation): Retrieve a single automation by ID. - [Create automation](/api/automations/createAutomation): Create a new automation with zero or more independently configured triggers. - [Update automation](/api/automations/updateAutomation): Partially update an automation. Only provided fields are changed. - [Archive automation](/api/automations/archiveAutomation): Soft-archive an automation. The automation is disabled and hidden from default list queries but can still be retrieved with include_archived=true. - [Trigger automation](/api/automations/triggerAutomation): Manually trigger an automation run. - Deployments: Report repository deployments - [Report deployment](/api/deployments/reportDeployment): Report deployment status for one or more pull requests. Accepts normal personal or system API keys with write access and access to the repository. Only deployed and failed statuses are accepted. Each new event is notified independently, without a cross-environment completion gate. Send requests to your own Inspect origin. Idempotency keys are scoped per repository/PR, independent of the API key: retries with the same key do not record or notify again. Reuse a key only for the same event. - [List pull request deployments](/api/deployments/listPullRequestDeployments): List the latest status of every environment the pull request has been deployed to. - Memories: Read and write personal memories - [List memories](/api/memories/listMemories): List active memories in a personal scope. Memory reads are available to every Inspect API key holder. - [Get memory](/api/memories/getMemory): Read one memory by id, including its canonical body, lifecycle state, and every scope it is placed in. Archived memories are returned. - [Create memory](/api/memories/createMemory): Create one durable memory. `personal` always targets the API key user's own scope. - [Update memory](/api/memories/updateMemory): Replace the title, canonical body, discovery summary, and type of an active memory. - [Get memory context](/api/memories/getMemoryContext): Read the active memory context for a user. Personal memories default to the API key user; pass `user_id` to read another user's context. - [Archive memory](/api/memories/archiveMemory): Archive a stale, superseded, or no-longer-relevant memory. - Models: List available models - [List models](/api/models/listModels): List available models. - Previews: Report pull request preview deployments - [List pull request previews](/api/previews/listPullRequestPreviews): List the latest state of every preview reported for a pull request, as stored on the Inspect sessions currently linked to it. - [Report pull request preview](/api/previews/upsertPullRequestPreview): Record the deploy status of a named preview for a pull request, typically from CI. The status is applied to every Inspect session currently linked to the pull request; sessions linked later receive the next reported status. Retries are safe: an update whose `occurred_at` is older than the stored status for the same preview is ignored. A `deploying` or `failed` status keeps the last successful URL. - [Delete pull request preview](/api/previews/deletePullRequestPreview): Remove a named preview from every Inspect session linked to the pull request, for example after the preview environment is torn down. - Repositories: List and manage repositories - [List repositories](/api/repositories/listRepositories): List available repositories. System API keys see every repository available to them; user keys see their visible, non-hidden repositories. - [Get repository](/api/repositories/getRepository): Retrieve a repository and its settings. - [Create repository](/api/repositories/createRepository): Create a repository in Inspect from a GitHub repository URL. Requires repository add permission; API keys restricted to specific repositories cannot create repositories. Returns 404 when the Inspect GitHub App cannot access the repository. - [Update repository](/api/repositories/updateRepository): Update a GitHub repository's settings. Requires repository management permission. - [Delete repository](/api/repositories/deleteRepository): Delete a GitHub repository from Inspect and cancel its active environment build. Requires repository management permission. - Sessions: Create and manage Inspect sessions - [List sessions](/api/sessions/listSessions): List sessions. By default returns only sessions owned by the authenticated user. Use `all=true` to return all sessions. Private sessions are excluded from this discoverable listing unless the API key user owns or participates in them; fetch other sessions by direct session ID instead. - [Get session](/api/sessions/getSession): Retrieve details for a specific session. - [Create session](/api/sessions/createSession): Create a new Inspect session with an initial prompt. Accepts either `application/json` or `multipart/form-data`. Use multipart when you need to upload file attachments alongside the prompt; put the JSON request in the `data` field. Supports an `Idempotency-Key` request header. When the same key is sent twice from the same API key, the second call returns the originally-created session (HTTP 200) instead of creating a new one. Keys are scoped per API key user and remain valid until the originally-created session is archived; a same-key request after archive starts a fresh session. - [Update session](/api/sessions/updateSession): Update session metadata. Only the session owner can update a session. - [Archive session](/api/sessions/archiveSession): Archive a session by setting its deletedAt timestamp. Archived sessions are hidden from default list queries but can still be retrieved individually or by using include_archived=true. The session can be archived by the session owner or by the API key user who originally created the session (e.g. when using on_behalf_of). - [Get session cost](/api/sessions/getSessionCost): Best-effort refresh the session durable-object export and return the latest persisted token totals and cost for a specific session. This can be used while a session is still running, without waiting for the scheduled export job. Laminar-runtime sessions return Laminar usage totals, including the usage of the session's subagents such as Verification agent runs, and messageCount is always 0 for them. Use GET /sessions/{session_id}/subagents/{subagent_id}/cost for a single subagent's usage. A Laminar-runtime session that was never bound to a Laminar session returns zero totals. - [Get session diff](/api/sessions/getSessionDiff): Retrieve the raw unified diff for an authorized Inspect session. The endpoint is session-scoped and does not accept arbitrary diff file IDs. Pending or running sessions return the local working-tree diff when one is available; otherwise the stored authoritative session diff is returned. - [List session messages](/api/sessions/getSessionMessages): Retrieve all messages for a specific session, including user prompts and assistant responses. Laminar-runtime sessions return the same message shape, projected from the Laminar transcript. If the Laminar transcript exceeds the read limits, the response contains the latest history only and has the header `X-Inspect-Transcript-Truncated: true`. - [Send prompt](/api/sessions/sendPrompt): Send a follow-up prompt to an existing session. Accepts either `application/json` or `multipart/form-data` (JSON request in the `data` field, files in `attachments`). By default prompts are delivered immediately. Set `delivery` to `queued` to enqueue the prompt behind active or outstanding work. If the session has no outstanding prompts, the prompt is delivered immediately and `queued_prompt` is omitted, restarting a dormant sandbox when necessary. Prompts that remain queued may not appear in `/messages` until they are released and processed. - [Stop session](/api/sessions/stopSession): Interrupt the session's active turn without archiving it. Cancels any queued prompts and sets the session status to `finished`, but leaves `deletedAt` untouched — so a session that was previously archived and resumed can still be stopped. No-ops (returns the current session) when the session is not running. The session can be stopped by the session owner or by the API key user who originally created the session (e.g. when using on_behalf_of). - [List session subagents](/api/sessions/listSessionSubagents): List the subagents of a session, newest first, including Verification agent runs Inspect started for it. Subagents are not sessions: read them through the subagent endpoints of their parent session. Sessions without a Laminar runtime return an empty list. - [Get session subagent cost](/api/sessions/getSessionSubagentCost): Return the token totals and cost of a subagent of the session, including its own subagents. `sessionId` is the subagent ID and messageCount is always 0. Returns 404 when the subagent does not belong to the session. - [List session subagent messages](/api/sessions/getSessionSubagentMessages): Retrieve the messages of a subagent of the session, in the same shape as GET /sessions/{session_id}/messages. Returns 404 when the subagent does not belong to the session. If the transcript exceeds the read limits, the response contains the latest history only and has the header `X-Inspect-Transcript-Truncated: true`. - [Replace session tags](/api/sessions/updateSessionTags): Replace the set of tags that the API key's user has applied to a session. Tags are scoped per user: this endpoint only affects tags added by the calling API key's user and never modifies tags added by the session owner or anyone else. Passing an empty array removes all of the caller's tags from the session. The operation is idempotent, making it suitable for pipelines that periodically reconcile labels onto sessions. Find sessions by these tags with `GET /sessions?tag=...&tagged_by=`. - [Update session base branch](/api/sessions/updateSessionBaseBranch): Update the base branch for a session's first repository. The branch must exist in the session repository. If the session already has an open pull request, its base branch is updated on GitHub as well. Only the session owner can update the base branch. Returns 400 when the branch or repository is invalid (including a branch that does not exist), 409 when the session's pull request is merged or closed, 502 when updating the pull request on GitHub fails, and 500 when the new base branch could not be saved. - [Start session verification](/api/sessions/startSessionVerification): Start or rerun the Verification agent on the current head of the session's pull request. A new run supersedes any older run for that pull request. Runs even when the session owner has turned off automatic Verification agent runs, as long as the repository configures verification at `.inspect/verification/config.yml`. The session owner or the API key user who originally created the session can start a run; read-only API keys cannot start runs in writable sessions. Returns 202 when a run started or was already running, 400 when the session has pull requests in multiple repositories and no repository was given, and 409 with a `verification_*` code when no run started. - Skills: Manage reusable skills - [List skills](/api/skills/listSkills): List active skills in the catalog, including built-in skills. Filter by a case-insensitive `query` that matches the skill ID or description. Use `GET /api/v2/skills/{skill_id}` for skill files. - [Get skill](/api/skills/getSkill): Retrieve an active skill, including every file, its owner, and its collaborators. - [Create skill](/api/skills/createSkill): Create a skill owned by the API key user. Provide either `content` (the `SKILL.md` body) or `files` (the complete file set, which must include `SKILL.md`). Creating a skill with the ID of an archived skill restores it; only its original owner or an admin can do this. - [Update skill](/api/skills/updateSkill): Update or rename a skill. Omitted fields are unchanged. `files` replaces the complete file set and must include `SKILL.md`; `content` replaces only `SKILL.md`. Renaming updates references from user settings and custom agents. Only the owner, a collaborator, or an admin can update a skill; built-in skills are read-only. - [Archive skill](/api/skills/archiveSkill): Archive a skill so it no longer appears in the catalog or loads for agents. Only the owner, a collaborator, or an admin can archive a skill; built-in skills cannot be archived. - User: Read the API key user's preferences - [Get user preferences](/api/user/getUserPreferences): Retrieve the authenticated user's preferences, including their default model and agent.