Skip to content
Context docs
Context Agent API

Context Agent API

Run Context agents from your own code: start a session, follow it live, approve its tool calls and read the result.

Your deployment is the Context instance your organization signs in to. The base URL is its host plus /v1, for example https://api.context.ai/v1. Request and response bodies are JSON, except for file upload (multipart/form-data), file download (raw bytes) and the event stream (server-sent events).

Tags
Agents
An agent is the configured worker that a session runs. You can create and edit agents in the Context app or with this API, which follows Anthropic's Managed Agents API with the differences listed at the end of this page. An agent you create with the API appears in the Context app, and the owner of the API key owns it.
Note: To create or update an agent, you must use a personal key with the agents:write capability.

The agent object

FieldTypeDescription
idstringThe agent's ID. Pass it as agent when you create a session.
typestringAlways agent.
namestringThe agent's name, as shown in the app.
descriptionstring | nullThe agent's purpose. null when the agent has no description.
modelobjectThe model the agent is set to, as an object with one field, id. The ID is default when the agent leaves the choice to your deployment, so this field does not name a model in that case. GET /v1/models lists the IDs you can set.
effective_modelobject | nullThe model a session of this agent would start on now, as an object with one field, id. Read-only. This is what to show a person who asks which model an agent runs on. null when a session would be refused a model.
systemstring | nullThe agent's instructions. They are returned only to a personal key with agents:write whose owner created the agent and still owns it. Any other key gets null. If the agent has no instructions, that key gets "".
toolsarrayThe agent's built-in tools, as one agent_toolset_20260401 entry that lists all eight tools with their enabled and permission_policy. The list is empty when every built-in tool is off.
skillsarrayThe agent's skills, each {type, skill_id, version}. A built-in skill has type anthropic and its slug as skill_id. A custom skill has type custom and its skill ID. version is always latest.
created_atstringWhen the agent was created, as an RFC 3339 timestamp.
updated_atstringWhen the agent was last changed, as an RFC 3339 timestamp.
Each built-in tool maps to its approval setting in the app. always_allow is Allow, always_ask is Ask (each call waits for a person to approve it), and enabled: false is Deny. edit and write share one setting in the app, so they always read the same. web_search is always off, because agents search the web with your deployment's own search tool. A tool that is off reads always_ask. model and effective_model answer two different questions, and both are needed. model is the stored choice, which a write round-trips; effective_model is the resolution, which no write accepts. They differ whenever model does not name the model that will run: an agent set to default, and an agent whose stored model your deployment no longer serves. effective_model is resolved the way a session resolves it, by taking the first of these your deployment can serve:
  1. the agent's own model, when it is still in the catalog;
  2. a model you connected through your own subscription, if you have one;
  3. your deployment's default model.
Two consequences worth knowing. Because of rung 2, effective_model.id is usually one of the IDs GET /v1/models lists but need not be — that list is your deployment's and leaves out models reached through a person's own connected account. And it is the answer for a session created through this API, which runs in your deployment's cloud; a session on a paired computer chooses from that computer's own models. null means a session would be refused a model rather than "no model configured": either the catalog serves nothing, or the deployment's configured default is not in it.
Note: effective_model cannot be sent on a create or update. Posting a whole agent object back is refused with 400 naming it, along with the other read-only fields — so a client that round-trips an agent can never turn one that was following your deployment's default into a pinned one by accident.
Some fields always hold the same value: version is 1, mcp_servers is empty, metadata is {} (the workspace_id sent on create is not stored), multiagent and archived_at are null, and execution_identity is {type: "service_account"}. Example
JSONCode
{ "id": "6f1c2a9e-0d4b-4c57-9a3e-2b7d8e1f4c60", "archived_at": null, "created_at": "2026-10-21T01:35:05.337Z", "description": "Answers questions about the sales pipeline", "execution_identity": { "type": "service_account" }, "mcp_servers": [], "metadata": {}, "model": { "id": "default" }, "multiagent": null, "name": "Research Assistant", "skills": [ { "type": "anthropic", "skill_id": "xlsx", "version": "latest" } ], "system": null, "tools": [ { "type": "agent_toolset_20260401", "default_config": { "enabled": true, "permission_policy": { "type": "always_ask" } }, "configs": [ { "type": "bash", "name": "bash", "enabled": true, "permission_policy": { "type": "always_ask" } }, { "type": "edit", "name": "edit", "enabled": true, "permission_policy": { "type": "always_ask" } }, { "type": "read", "name": "read", "enabled": true, "permission_policy": { "type": "always_allow" } }, { "type": "write", "name": "write", "enabled": true, "permission_policy": { "type": "always_ask" } }, { "type": "glob", "name": "glob", "enabled": true, "permission_policy": { "type": "always_allow" } }, { "type": "grep", "name": "grep", "enabled": true, "permission_policy": { "type": "always_allow" } }, { "type": "web_fetch", "name": "web_fetch", "enabled": true, "permission_policy": { "type": "always_ask" }, "url_sources": null }, { "type": "web_search", "name": "web_search", "enabled": false, "permission_policy": { "type": "always_ask" } } ] } ], "type": "agent", "updated_at": "2026-10-21T01:35:05.337Z", "version": 1 }

Differences from Anthropic's API

This API follows Anthropic's Managed Agents API, with these differences:
  • The agent version and archive endpoints return 404. Every agent has one version, 1, and an update changes it in place, so a later update overwrites an earlier one without an error. In an update, version must be 1.
  • The model object has only an id field. effort, inference_geo and speed return 400.
  • system is null unless the key is a personal key with agents:write whose owner created the agent and still owns it.
  • tools takes the built-in toolset and custom tools; a custom tool is answered by your client or by a paired computer that advertises it, whichever is first. MCP servers, the auto permission policy and the domain and location options of the web tools return 400. web_search is always off. To give an agent MCP servers or connected accounts, set them up in the Context app.
  • Skills take latest as their only version.
  • multiagent and any execution_identity other than {type: "service_account"} return 400.
  • To create an agent in a workspace, send metadata.workspace_id or the anthropic-workspace-id header. If you send both, they must name the same workspace, or the request returns 400.
For every difference in one place, see Coming from Anthropic's API.
Environments
An environment is where a session runs. You choose one rather than create one. The one environment is env_default, which runs each session in the cloud, wherever the platform places it. Nothing about it can be configured over this API. Remote sandbox support is on the roadmap. Pass env_default as environment_id when you create a session.

Anthropic compatibility

Anthropic's SDKs also have environments.create, update, delete and archive. Code written for Anthropic's API often creates an environment before its first session. This API handles those calls as follows:
  • POST /v1/environments (environments.create) creates nothing, so it has no page of its own here; the API reference the server serves lists it as Create an environment. It exists so that Anthropic SDK code runs unchanged. The key must have tasks:create. With no config, or a cloud config with unrestricted networking and no packages, it returns 200 with env_default. It ignores name, description and metadata. Any other config returns 400 invalid_request_error, as does any field this API doesn't accept, such as scope.
  • Updating, deleting or archiving an environment returns 404 not_found_error, because this API does not serve those paths.
The only environment is env_default. Remote sandbox support is on the roadmap.

Network access

Every environment reports networking.type as unrestricted, which is the only value the API accepts. unrestricted means the session's sandbox can reach the public internet, unless your deployment restricts it (see the note below). Model calls are separate. Context handles them, and the sandbox's network access doesn't govern them. Nothing you set through the API changes network access.
Note: Self-hosted (KOTS) deployments can restrict sandbox outbound traffic to a list of allowed domains. It's a setting in the KOTS Admin Console, not in the API. Your administrator turns on Sandbox Egress Proxy (domain allowlist) and lists the domains in Sandbox Egress Proxy Allowlist, or turns off Sandbox Internet Access. With Sandbox Workload Identity on, the same choice is Sandbox Egress Posture, set to Open internet, Domain allowlist or Workspace only. The API's networking label doesn't reflect this setting, so environments report unrestricted even when the install is tighter. To set it up, ask your Context contact.
A create with limited networking, packages or any other custom config returns 400:
JSONCode
{ "type": "error", "error": { "type": "invalid_request_error", "message": "This deployment serves one environment (cloud, unrestricted networking, no extra packages); a custom environment config is not supported" }, "request_id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d" }
limited networking is on the Roadmap.

The environment object

FieldTypeDescription
idstringAlways env_default.
typestringAlways environment.
namestringAlways default.
descriptionstringA one-line description.
configobjectAn object whose type is cloud. It also holds networking, always unrestricted, and packages, always empty.
created_atstringWhen the environment was created, as an RFC 3339 timestamp.
updated_atstringWhen the environment last changed, as an RFC 3339 timestamp.
Some fields always hold the same value: metadata is {} and archived_at is null. Treat the following values on env_default as placeholders, because they don't describe the real environment. Its description is a fixed string. Its config always reports networking: unrestricted and empty packages. If a self-hosted install restricts sandbox network access in the KOTS Admin Console, config doesn't show that yet. Example
JSONCode
{ "id": "env_default", "archived_at": null, "config": { "type": "cloud", "networking": { "type": "unrestricted" }, "packages": { "apt": [], "cargo": [], "gem": [], "go": [], "npm": [], "pip": [] } }, "created_at": "2026-10-14T00:00:00.000Z", "description": "The platform's own runtime. Every session runs here.", "metadata": {}, "name": "default", "type": "environment", "updated_at": "2026-10-14T00:00:00.000Z" }
Sessions
A session is a task you start over the API. A session is a task you start over the API, and it shows in the Context app like any other task. The owner of the key that created it owns the task. A service account key can name another member as the owner with the x-context-owner-user-id or x-context-owner-user-email header. The task has the same transcript and tool permissions as a task started in the app. A session ends when you archive it, and its history stays readable. Nothing deletes a session for you: your deployment keeps it until you delete it. To remove a session and its data permanently, delete it with a key that has sessions:delete, which keys don't have by default (see Choosing a key). To send messages to a session and stream the agent's replies, see Events. Not every task is a session. A task is a session only when it is a top-level task (not a subagent's), runs on Context's own agent engine and was started over an API: by this API, by the Task API (POST /api/v1/tasks) or by a schedule. A task someone started in the app is not a session, even though it is the same kind of task: GET /v1/sessions/{session_id} returns 404 for it, and List sessions leaves it out. So a session you create here can also be read with the Task API, under the same ID, but a task started in the app can't be picked up with this API.

Status

statusMeaning
idleThe session is waiting for a message or a tool approval, or hasn't started.
runningA turn is in progress.
terminatedThe session is archived. Nothing else terminates a session.
reschedulingThis status is never returned. List sessions accepts it as a statuses filter, which then matches nothing.

The session object

FieldTypeDescription
idstringThe session's ID, a UUID. It is also the task's ID in the app.
typestringAlways session.
statusstringThe session's status. One of idle, running or terminated. See Status.
titlestring | nullThe session's title. The maximum length is 280 characters.
agentobjectThe agent the session runs, as in Agents without its timestamps and metadata.
environment_idstringWhere the session runs: env_default. See Environments.
max_step_minutesinteger | nullA Context extension. The longest one step of this session may run, in minutes, set when the session was created. See Create a session. null means no step limit runs: a session on a paired computer, or one created before this field existed.
resourcesarray<object>The files attached when the session was created, each {id, type: "file", file_id, mount_path, created_at, updated_at}. If you sent a mount_path, this is the file's absolute path on the agent's disk. Otherwise it is inputs/<filename>, in the session's inputs/ folder. id equals file_id.
usageobjectThe totals for the whole session, subagents included: input_tokens, output_tokens, cache_read_input_tokens, cache_creation, active_seconds and list_cost.
usage.cache_creationobjectCache-write tokens, as {ephemeral_5m_input_tokens, ephemeral_1h_input_tokens}. ephemeral_1h_input_tokens is always 0, because every cache write counts as a 5-minute write.
usage.active_secondsnumberThe seconds the session spent working, to the millisecond. Time spent waiting for a tool approval isn't counted. While a turn runs, the value grows on every read.
usage.list_costobject | nullThe session's cost at list price, as {amount, currency: "USD"}. amount is a whole number of cents, as a string. It covers model calls plus web search, image search and media generation, priced for the session's owner. See the list below the table for when it is null.
created_atstringWhen the session was created, as an RFC 3339 timestamp.
updated_atstringWhen the session last changed, as an RFC 3339 timestamp.
archived_atstring | nullFor an archived session, the time it last changed, as an RFC 3339 timestamp. That is when it was archived, unless it was renamed after, which sets it to the time of the rename. null for a session that isn't archived.
usage.list_cost is null in these cases:
  • A turn is running. A cost shown earlier returns to null while a later turn runs.
  • Billing hasn't settled, which takes about 12 minutes after the session goes idle.
  • No model call was made.
  • Your organization counts usage in tokens.
Once it appears, usage.list_cost can still rise. A model call made outside a turn, such as one by a background job the agent started, is added when billing records it. Some fields always hold the same value: budget is null, metadata and stats are {}, and outcome_evaluations and vault_ids are empty. Example
JSONCode
{ "id": "dd13d728-93e3-440a-874c-4efeb58c97e0", "agent": { "id": "6f1c2a9e-0d4b-4c57-9a3e-2b7d8e1f4c60", "description": "Answers questions about the sales pipeline", "execution_identity": { "type": "service_account" }, "mcp_servers": [], "model": { "id": "default" }, "multiagent": null, "name": "Research Assistant", "skills": [], "system": null, "tools": [], "type": "agent", "version": 1 }, "archived_at": null, "budget": null, "created_at": "2026-10-21T01:42:16.079Z", "environment_id": "env_default", "max_step_minutes": 240, "metadata": {}, "outcome_evaluations": [], "resources": [ { "id": "329409ba-f288-4b44-9c73-14a18150edee", "created_at": "2026-10-21T01:41:11.028Z", "file_id": "329409ba-f288-4b44-9c73-14a18150edee", "mount_path": "inputs/cities.csv", "type": "file", "updated_at": "2026-10-21T01:41:11.028Z" } ], "stats": {}, "status": "idle", "title": "Quarterly city report", "type": "session", "updated_at": "2026-10-21T01:42:29.719Z", "usage": { "input_tokens": 12, "output_tokens": 318, "cache_read_input_tokens": 133496, "cache_creation": { "ephemeral_5m_input_tokens": 2210, "ephemeral_1h_input_tokens": 0 }, "active_seconds": 7.331, "list_cost": { "amount": "6", "currency": "USD" } }, "vault_ids": [] }

Differences from Anthropic's API

This API follows Anthropic's Managed Agents API, with these differences:
  • Deleting a session needs the sessions:delete capability, which keys don't have by default. Deleting a session while a turn runs returns 409: interrupt the turn, wait for idle, then delete it. The delete response lists what was removed and what was kept. See Delete a session.
  • POST /v1/sessions takes x-context-owner-user-id or x-context-owner-user-email, so a service account key can create a session for another member. Anthropic's API has no such headers.
  • POST /v1/sessions returns 400 if the request overrides an agent field (any field in the agent object besides type, id and version), or sends a non-empty metadata, a non-empty vault_ids or a non-null budget.
  • initial_events takes at most one event, a user.message. Anthropic's API takes up to 50 events of different types.
  • Only file resources are supported. Any other type returns 400.
  • A file sent without mount_path isn't placed on the agent's disk. Anthropic's API copies it to /mnt/session/uploads/<file_id>. Here it stays in the session's inputs/ folder in Drive, where the agent reads it, and its mount_path reads inputs/<filename>.
  • mount_path takes a path under /workspace/ or /mnt/session/uploads/. Any other absolute path is placed under /mnt/session/uploads: /data/a.csv becomes /mnt/session/uploads/data/a.csv, and mount_path reports the new path.
  • usage.server_tool_use isn't sent.
  • title takes up to 280 characters, and a session takes up to 50 files. Anthropic's API allows 500 of each.
  • A list response holds at most 100 sessions per page. Anthropic's API allows up to 1,000.
  • On list, order=asc and the agent_version, deployment_id and memory_store_id filters return 400.
For every difference in one place, see Coming from Anthropic's API.
Events
Everything that happens in a session is an event: your messages, the agent's replies and tool calls, and status changes. You send events to steer the session and read them from the history or a live stream. The events follow Anthropic's Managed Agents API, with the differences listed at the end of this page.

The event object

FieldTypeDescription
idstringThe event's ID, in the form sevt_<seq>_<index>.
typestringOne of the types below.
processed_atstring | nullWhen the event was processed, as an RFC 3339 timestamp. It is null only on send receipts.
Each type adds its own fields, listed in Event types. IDs sort in the order the events happened. Compare them by their numbers, not as strings: sevt_10_0 comes after sevt_9_0. To resume after an event, pass its ID as page on List events or as the Last-Event-ID header on the stream. When you send an event, the response holds a send receipt: an event object with an ID of the form sevt_receipt_<uuid> and a null processed_at. The receipt's ID is not the ID of the stored event. The stored event, with its real ID, then appears on the stream and in the history. Example
JSONCode
{ "type": "agent.message", "id": "sevt_40_0", "processed_at": "2026-10-21T01:42:24.003Z", "content": [ { "type": "text", "text": "The output is `first`." } ] }

Event types

Types are named <source>.<action>. The session uses the 13 types below. More types might be added, so skip any type you do not recognize.

Events you send

TypeFieldsDescription
user.messagecontent: text blocksStarts a turn. If a turn is already running, the message joins it, and one session.status_idle ends the combined turn. The first user.message also starts the session.
user.tool_confirmationtool_use_id, result (allow or deny), deny_messageAnswers a tool call that waits for approval. allow approves that one call, and deny refuses it. The stored event carries deny_message only for a deny.
user.custom_tool_resultcustom_tool_use_id, content: text blocks, is_errorAnswers an agent.custom_tool_use. The first answer counts, yours or that of the paired computer that serves the tool; a later answer is accepted and changes nothing. The session shows the answer that counted as a user.custom_tool_result, whoever sent it.
user.interruptnoneStops the current turn. The session emits session.status_idle with end_turn.

Events the session emits

TypeFieldsDescription
agent.thinkingnoneThe agent reasoned before replying. The event has no content and arrives with the reply, so it isn't a live indicator.
agent.messagecontent: text blocksThe agent replied.
agent.tool_usename, inputThe agent called a tool.
agent.custom_tool_usename, inputThe agent called one of its custom tools. A session.status_idle with requires_action naming it follows, until its user.custom_tool_result arrives: from you, or from your paired computer whose servers advertise a tool of exactly that name, whichever answers first. The call waits up to 12 minutes.
agent.tool_resulttool_use_id, content, is_errorA tool returned its result.
session.status_runningnoneA turn started.
session.status_idlestop_reason, stop_detailsA turn ended. stop_reason.type is end_turn, requires_action (with event_ids, the agent.tool_use IDs waiting for your approval) or retries_exhausted. stop_details is always null.
session.errorerror.type, error.message, error.retry_statusA step of the turn failed. error.type is one of the types in Session errors. With retry_status.type: "retrying", the session retries and stays running. With "exhausted", the turn failed, and a session.status_idle with retries_exhausted follows.
session.usageusage: input_tokens, output_tokens, cache_read_input_tokens, cache_creation, active_secondsReports the session's running totals, subagents included. The session sends it after each model call and before every session.status_idle. This event doesn't include cost. To read cost, retrieve the session and read its usage.list_cost.
Warning: When stop_reason.type is requires_action, answer every ID in event_ids. The session doesn't send a new session.status_idle for the IDs you haven't answered. It runs again only after you answer the last one.
Subagents that the agent starts do not emit events of their own. The one exception is a subagent tool call waiting for approval, which shows up as agent.tool_use and a session.status_idle with requires_action.

Session errors

error.typeCause
model_rate_limited_errorThe model provider's rate limit, or your own usage limit, was reached.
model_overloaded_errorThe model provider is unavailable or overloaded.
model_request_failed_errorThe model call failed for another reason, for example a timeout, a network failure, a refused request or a context window overflow.
billing_errorCredits, a spend limit or a budget ran out, or the agent has no billing seat in its workspace.
unknown_errorAny other failure, including a step the platform retries on its own without a known cause.
retry_status.type is retrying or exhausted. Any error.type can come with retrying: the platform retries on its own and the turn continues. With exhausted, the turn failed. Send a new user.message to start the next turn.

Differences from Anthropic's API

This API follows Anthropic's Managed Agents API, with these differences:
  • Event deltas and session threads are not supported.
  • Sending user.tool_result, user.define_outcome or system.message returns 400.
  • A custom tool can also be answered by a computer you paired with the Context app, and a call nobody answers ends after 12 minutes with an error result.
  • Send receipts have their own ID form. See The event object.
  • The stream accepts a Last-Event-ID header to resume after an event. Anthropic's API does not.
  • retry_status.type is never terminal, and MCP, credential and repository error types are not sent.
For every difference in one place, see Coming from Anthropic's API.
Files
A file is either a document you upload for an agent to read during a session, or an output an agent writes during a session. Upload a file, then attach it when you create a session. Each upload is stored in the Context app, in the Drive of the user who owns the API key. The agent writes the files it produces to /mnt/session/outputs/, as on Anthropic's API. To get them, list files with scope_id set to the session's ID, then download each one. They stay listed after you archive the session. Deleting a file is permanent: it can't be restored through this API or the app. You can delete only files you uploaded. Files a session produced can't be deleted or attached to another session. You can't delete a file attached to a session that isn't archived. The request returns 400. Archive the session first.

The file object

FieldTypeDescription
idstringThe file's ID. An uploaded file's ID is a UUID. A file a session produced has an ID that starts with sesnfile_. Treat both as opaque.
typestringAlways file.
filenamestringThe name sent with the upload. For a file a session produced, this is its path in the session's output folder, such as charts/q3.csv.
mime_typestringThe media type sent with the upload, or application/octet-stream if none was sent.
size_bytesintegerThe size in bytes, or 0 if the size wasn't recorded.
created_atstringWhen the file was uploaded or written, as an RFC 3339 timestamp.
downloadablebooleanAlways true.
scopeobjectThe session that produced the file, as {type: "session", id}, where id is the session's ID. Uploaded files have no scope field.
Example
JSONCode
{ "id": "329409ba-f288-4b44-9c73-14a18150edee", "created_at": "2026-10-21T01:41:11.028Z", "filename": "cities.csv", "mime_type": "text/csv", "size_bytes": 46, "type": "file", "downloadable": true }

Differences from Anthropic's API

This API follows Anthropic's Managed Agents API, with these differences:
  • Upload accepts expires_in_seconds from 3600 to 7776000, but doesn't apply it. Files don't expire, and the file object has no expires_at.
  • List files doesn't support ids. Sending it returns 400.
  • A list response holds at most 100 files per page. Anthropic's API allows up to 1,000.
  • An upload can be as large as your deployment's upload limit, which defaults to 5 GiB. Anthropic's limit is 500 MB.
  • The files a session produced can't be deleted or attached to another session through this API.
  • List files also accepts after_id and before_id, and returns has_more, first_id and last_id, which Anthropic's list response doesn't include.
  • Deleting a file that a session still uses returns 400. See Delete a file.
For every difference in one place, see Coming from Anthropic's API.
Skills
A skill is a folder of instructions and files that an agent loads when a task needs it. Its SKILL.md file names the skill and says when to use it. With this API you can upload a skill, list the skills your key can read and download any version. A skill you create belongs to the key's owner and is private to them until they share it in the Context app. Creating, versioning and deleting skills needs a personal key with skills:write, which the key's owner must grant. A built-in skill (source.type is anthropic) is read-only.

What an upload contains

Send the skill's files as multipart/form-data. Either send each file as a files[] part whose filename is its path in the skill, or send one zip archive of the files.
  • SKILL.md sits at the root of the upload, or at the root of its one top-level folder. That folder's name is dropped from every path.
  • SKILL.md is UTF-8 text with YAML front matter. name can be at most 64 characters of lowercase letters, digits and hyphens. If SKILL.md has no name, the skill takes the top-level folder's name, and an upload with neither returns 400. description is required and can be at most 1,024 characters, with no XML tags.
  • The files total at most 30 MiB (31,457,280 bytes) uncompressed. A single file has no limit of its own. The request itself can be up to 32 MiB.
  • Paths are relative. A path returns 400 if it starts with /, contains a backslash or has an empty, . or .. segment. Sending the same path twice also returns 400. A zip's __MACOSX/ and .DS_Store entries are skipped.
A key can have at most 2 uploads in progress at once. A skill's name is its SKILL.md name, and every version of a skill keeps that name. You can't own two skills with the same name. Creating a skill whose name you already use returns 409 with the existing skill's ID, so you can upload a new version of it instead. A skill keeps its latest 500 versions, not counting versions given a name in the Context app. Saving more deletes the oldest unnamed versions.

The skill object

FieldTypeDescription
idstringThe skill's ID. A built-in skill's ID is its slug, such as pptx.
typestringAlways skill.
display_namestringThe skill's name, the same as the name in its SKILL.md.
sourceobjectWho made the skill. source.type is custom for a skill a user uploaded, or anthropic for one of your deployment's built-in skills.
latest_version_idstringThe ID of the skill's newest version. An agent always runs a skill's newest version.
created_atstringWhen the skill was created, as an RFC 3339 timestamp.
updated_atstringWhen the skill last changed, as an RFC 3339 timestamp.
A skill version describes one saved state of the skill's files:
FieldTypeDescription
idstringThe version's ID.
typestringAlways skill_version.
skill_idstringThe ID of the skill the version belongs to.
namestringThe name in SKILL.md. It is the same for every version of a skill.
descriptionstringThe description in SKILL.md at this version.
created_atstringWhen the version was saved, as an RFC 3339 timestamp.
Example
JSONCode
{ "id": "8b3f6c1e-2a4d-4f7b-9c1e-5d6a7b8c9d0e", "type": "skill", "created_at": "2026-10-27T15:02:11.204Z", "display_name": "pr-summary", "latest_version_id": "b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e", "source": { "type": "custom" }, "updated_at": "2026-10-27T15:02:11.204Z" }

Differences from Anthropic's API

This API follows Anthropic's Managed Agents API, with these differences:
  • A skill is personal to the key's owner and belongs to no workspace. If a request sends the anthropic-workspace-id header, Context checks that the key's owner works in that workspace, then ignores it. If the owner doesn't work there, the request returns 404.
  • display_name must equal the name in SKILL.md, or be left out. A different value returns 400.
  • Deleting a skill version returns 400. Upload a new version, or delete the whole skill.
  • The built-in skills are this deployment's own, listed by slug (pptx, xlsx, docx and others). The list has no pdf skill.
  • A list response holds at most 200 skills or 100 versions per page. Anthropic's API allows up to 1,000.
  • Uploads are limited to 32 MiB per request and 2 in progress per key.
For every difference in one place, see Coming from Anthropic's API.
Security Schemes
ManagedAgentsKey
Authenticate with a task API key in the x-api-key header. Authorization: Bearer <key> also works. anthropic-version and anthropic-beta are accepted and ignored.
apiKey