details usually reports the limit and the measured value, so your code can react without parsing the message.
Account and access
| Limit | Value | Details |
|---|---|---|
| API key name | 100 characters | API keys |
| API key lifetime | 365 days. Every key expires. | API keys |
| Live organizations per tenant | 100 | Organizations and roles |
| Organization name | 40 characters | Organizations and roles |
| Tenant name | 100 characters | Organizations and roles |
Requests
| Limit | Value | When exceeded |
|---|---|---|
| Request rate per allowance | 1,000 per rolling 60 seconds each for ordinary calls, session creates, and session lists and individual lookups combined. See API rate limits for scope and response headers. | 429 rate_limit_exceeded with Retry-After when an allowance is exhausted. |
| Open event streams | Bounded by service capacity. | 503 service_unavailable. |
Idempotency-Key | 1 to 256 visible ASCII characters, one header value | 400 invalid_request. |
| Idempotency key retention | About 24 hours for a completed request. An abandoned in-progress key can be reused after about 1 hour. | After that, the same key starts a new request. |
| Session list page token | Valid for 1 hour, with the same filters and limit | 400 invalid_request on page_token. |
API version
The API’s version is below 1.0.0; the Endpoints reference shows the current one. Branch on errorcode values and each operation’s published schema, not on message text.
Agents
| Limit | Value | Details |
|---|---|---|
| Agent name | 256 characters | Agent setup |
| Skills on one agent or session | 100, after groups are expanded and duplicates removed | Skills |
maxConcurrentSessions | 1 to 10,000, or unset for no cap. Extra root sessions wait as queued. | Usage and cost |
defaultMaxIterations | At least 1 grading pass, 5 when unset, for an outcome taken from the agent’s rubric | Outcome rubrics |
| Time for one grading pass | 15 hours from the grader’s first model request unless the deployment sets other defaults. The grader is told to submit at two thirds of it, and at the limit it can only submit, for 30 more minutes. A grader that has already submitted its verdicts isn’t limited. | Outcome rubrics |
| Spend for one grading pass | $300 unless the deployment sets other defaults. The grader is told to submit at two thirds of it, and at the limit it can only submit, for 30 more minutes, so its last model calls add to it. A grader that has already submitted its verdicts isn’t limited. | Outcome rubrics |
| Agent logo | PNG or JPEG, up to 1 MiB and 2048 pixels a side; a progressive JPEG has at most 32 scans. Stored scaled to at most 512 pixels a side. A larger body is refused with 413, any other refused image with 400 naming the reason. | Slack automations |
| Agent logo uploads at once | One per tenant at a time. When the service is busy, an upload gets 503 and can be retried. | Slack automations |
| Tags on one agent | 32 | Agent setup |
| Tags per organization | 200 | Agent setup |
| Tag label | 32 characters | Agent setup |
| Tag description | 280 characters | Agent setup |
| Tag ids in one list filter | 32 | Agent setup |
Sessions and events
| Limit | Value | Details |
|---|---|---|
| Custom metadata on a session | 32 pairs. Keys up to 64 characters of letters, digits, _, ., and -. Values 1 to 512 characters. Can’t be changed after start. | Sessions |
| Metadata filters in one list or gestalt request | 32 pairs and 32 keys: metadata and metadata_key on listSessions, metadataAll and metadataKeyAll on listSessionsV2 and the gestalt | Session operations |
| Metadata suggestions for one agent | Drawn from your visible sessions among the agent’s 5,000 most recently updated sessions. Subagent, grader and deleted sessions, and sessions you can’t see, count toward the 5,000 but never contribute keys or values. | Session operations |
| Metadata-filtered gestalt for one agent | Searches the agent’s 20,000 newest sessions in the window (subagent, grader and deleted sessions, and sessions you can’t see, included) unless one of the at most four filters it counts (pairs, then keys, each in key order) is carried by 5,000 or fewer sessions in your organization (any agent’s, deleted sessions and sessions you can’t see included); truncated says when older ones went unsearched | Events |
| Referenced sessions | 10 per request. A session keeps the 10 most recent. | Referenced sessions |
| Session list page | 100 by default, 1,000 at most | Session operations |
| Sessions stopped by one bulk cancel | 100 per call, by sessionIds or by selection. Repeat the call as the cancelSessionsV2 entry in the Endpoints reference describes. | Sessions |
| Event list page | 100 events by default. A page stops at about 8 MiB, so it can hold fewer. | Events |
| One stream record | The stream’s Content-Type states the largest record it sends. A larger event arrives as event_record_too_large; fetch it with getSessionEventContent. | Events |
| Stream keep-alive | A ping every 15 seconds | Events |
| Live snapshot (gestalt) | 5,000 sessions, over a 30-day window (400 days when filtered by agent_id) | Events |
| Resource-sample page | 120 buckets by default, 720 at most | Session operations |
| Working root sessions per tenant | A new top-level session is refused with 429 tenant_concurrency_limit while your tenant already has as many working root sessions as it may (provisioning, queued, or running a turn). details.limit gives the cap. Messages, resumes and subagents don’t count, and neither do resting sessions, except a session created without message or outcome: it counts from creation until its first message, then like any session, so create it only when you intend to use it. | Sessions |
| Sandbox provisioning | Fails with sandbox_provision_timeout if compute isn’t ready within 5 minutes | Sessions |
Deliverables
| Limit | Value | Details |
|---|---|---|
| Files saved per batch | 200 | Artifacts |
| Bytes saved per batch | 512 MiB | Artifacts |
| One deliverable file | 1 GiB on managed computes; 64 MiB on self-hosted workers | Artifacts |
| Files considered in the outputs folder | 10,000 per turn | Artifacts |
| Deliverable file name | 255 characters, no control characters | Artifacts |
Image shown with share_file | PNG, JPEG, or WebP; 5 MiB, 8,192 pixels on a side, and 40 megapixels | Artifacts |
| Images in one tool result or message | 500 images and 100 MiB | Artifacts |
Tools
| Limit | Value | Details |
|---|---|---|
| Images the model sees at once | Up to 40. Fewer on a model with a smaller context window, but never fewer than 10; at most 15 MiB together, and at most 20 while any is larger than 3,000 pixels on a side. | Tools |
| MCP server request | 60-second timeout; responses up to 8 MiB | MCP servers |
| MCP tool name | <server>__<tool> at most 119 bytes; a longer tool is left out with an mcp_tool_name_too_long warning | MCP servers |
Integrations
| Limit | Value | Details |
|---|---|---|
| Tools on one app’s allow-list | 1 to 200. Over the cap or empty, 400 invalid_request on resources. | Integrations |
| Built-in app tool name | 128 characters | Integrations |
| Connection tool selection | Each name up to 100 characters; the JSON-encoded selection up to 6 KiB | Integrations |
| Pending connections | 20 live pending connections per provider and organization. Finish setup or disconnect one to reserve another. | Integrations |
| Connection name | 1 to 80 characters; can be changed but not cleared | Integrations |
| Connection description | 200 characters | Integrations |
App connections in builtInIntegrations | 25 entries. Over the cap, 400 invalid_request. | Agents |
| Session access to an app | Expires within an hour, renewed while the session runs | Integrations |
| GitHub repositories in one grant | 500 | GitHub access |
Connections in nativeIntegrations | 25 entries, separate from the builtInIntegrations limit | Agents |
Install link (state) | Valid for 15 minutes, once | GitHub access |
| Repository and pull request pages | 100 per page | GitHub access |
| Slack channel list | 1,000 channels the Slack app is a member of | Automations |
| Custom Slack app | 1 to 64 bot scopes in its Sharable URL; one authorized connection per Client ID per organization (concurrent requests can create duplicate pending setups, so disconnect one before authorization); one organization and one workspace per app ID. | Use your own Slack app |
Files
| Limit | Value | Details |
|---|---|---|
| One console upload | 1 GiB | Files over 30 MiB are sent in parts. Managed-compute output capture uses the same 1 GiB per-file cap. Files |
One public REST uploadFileV2 file part | 30 MiB | The complete multipart request has a separate 128 KiB framing and form-field allowance. Files |
| Live files per organization | 10 GiB in total. Over it, 413 file_quota_exceeded. | Files |
| Upload expiry | 1 hour to 90 days, or none | Files |
| Files attached in one request | 500 | Files |
| File list page | 200 by default, 1,000 at most; 100 ids in a fileIdAny lookup | Files |
| Documents named in one message | 512 KiB each and 1 MiB per message | Files |
| Library files named in one message | 100 blocks and 32 MiB | Files |
Automations
| Limit | Value | Details |
|---|---|---|
| Automation name | 256 bytes of UTF-8 text | Automations |
| Triggers per automation | 20 | Automations |
| Enabled triggers per event source | 100 across all automations, counting triggers on paused automations. Over it, 409 conflict on triggers. | Automations |
| Opening prompt | 65,536 bytes of UTF-8 text | Automations |
| Run with input | JSON input up to 64 KiB | Automations |
| Run defaults | 50 vaults, 500 credentials, 500 files | Automations |
| Run metadata | 16 pairs. Keys up to 64 bytes, values up to 512 bytes. | Automations |
| Automation outcome | Objective up to 65,536 bytes, rubric up to 256 KiB, at least 1 grading pass, 5 by default | Automations |
| Result file path | 1,024 bytes | Automations |
| Waiting for a run’s result | 20 seconds per request | Automations |
| A run’s result | 100 listed files, 64 KiB of final message, 1 MiB of result file read | Automations |
| Schedule catch-up window | 10 seconds to one year, default 15 minutes | Automations |
| Schedule jitter | 0 to 540 seconds, default 10 | Automations |
| Coordinator rollover period | 0 (never), or 3,600 to 604,800 seconds; default one day | Automations |
| Coordinator compaction threshold | 0 (the model’s own point), or 50,000 to 10,000,000 tokens; default 400,000 | Automations |
| Trigger filters | 100 Slack channels, 100 Slack authors, 20 Slack user groups per sender condition, 25 Slack slash commands, 25 Slack shortcut callback IDs, 100 GitHub repositories, 20 webhook body conditions and 20 webhook event types of up to 256 bytes each | Automations |
| Custom webhook body | 1 MiB. Larger bodies get 413 payload_too_large. | Automations |
Skills
| Limit | Value | Details |
|---|---|---|
| Skill name | 64 characters | Skills |
| Skill description | 1,024 characters | Skills |
| Skill instructions body | 64,000 bytes of UTF-8 after escaping | Skills |
| Compressed bundle upload | 8 MiB | Skills |
| Unpacked bundle | 32 MiB | Skills |
| One file in a bundle | 4 MiB | Skills |
| Files in a bundle | 500 | Skills |
| Folder depth in a bundle | 3 levels below the skill root | Skills |
| Skill list page | 100 by default, 500 at most | Skills |
| Skill search term | 2 to 256 characters | Skills |
Environments
| Limit | Value | Details |
|---|---|---|
| Setup script | 512 KiB | Environments |
| Setup timeout | 10 to 3,600 seconds. 0 or unset uses 600. | Environment reference |
| CPU | 250 to 24,000 millicores. Available compute or network policy can impose a lower maximum. | Environment reference |
| Memory | 1,024 to 102,400 MiB. Available compute or network policy can impose a lower maximum. | Environment reference |
| GPU sandbox | One GPU, with 8,000 millicores and 32,768 MiB set for you | Environment reference |
| Sandbox lifetime | 10 to 86,400 seconds when set | Environment reference |
| Workspace disk | 1 to 500 GiB. Unset uses the default. | Environment reference |
| Idle stop | 120 to 7,200 seconds (2 hours) when set; 0 uses the default of 30 minutes. With computer use, 0 or at least 600. | Environment reference |
| Stopped sandbox retention | 3,600 to 2,592,000 seconds when set | Environment reference |
| Network policy rules | 200 | Environment reference |
| Setup runs in flight | 1 per environment, and 4 per organization by default. Over the organization cap, 429 setup_run_limit reports the cap in details.limit. | Environments |
| Setup-run list page | 50 | Environments |
| Setup-run log kept | 4 MiB per run, plus a 2 KiB stderr_tail | Environments |
| Setup-run log page | 500 lines by default, 2,000 at most | Environments |
| Setup-run wait | You can ask a read to wait with wait_seconds (0 to 60). The server replies as soon as the run ends, or after 20 seconds at most. A log read replies as soon as there are new lines or the run ends, or after 5 seconds at most. If the run has not ended, read again. | Environments |
| Setup-run stderr tail | 2 KiB | Environments |
Multi-agent
| Limit | Value | Details |
|---|---|---|
| Roster entries | 20, with at most 1 advisor | Multi-agent |
max_depth | 1 by default, 3 at most | Multi-agent |
max_concurrent_threads | 8 by default, 25 at most | Multi-agent |
max_threads | 25 by default, 100 at most | Multi-agent |
| Grading of a sub-agent | The service waits at most 48 hours for each grading pass, and a sub-agent silent 30 minutes past that reads as idle to its parent. The pass itself stops sooner, at its time or spend limit, unless its grader has already submitted its verdicts. | Multi-agent |
| Active tasks on a team board | 512 open, claimed, or blocked tasks. Finishing or dropping a task makes room. | Teams |
| Tasks posted to a team board | 2,000 over the board’s lifetime, including done and dropped tasks | Teams |
maxConcurrentSessions.
Fine-tuning
Fine-tuning is experimental and enabled per organization.| Limit | Value | When exceeded |
|---|---|---|
| Jobs holding a compute at once | 6 per organization (a deployment may set another bound, or none). Past it, further jobs wait queued, and a job between attempts takes a free slot first. | No error past the bound: the job starts when a slot frees. A job whose compute cannot start yet, for lack of capacity, waits in the provisioning phase until it starts or you cancel it. |
| Attempt | 7 days less a minute (the longest compute run), or no progress for the stall limit (see Troubleshooting; longer when sampleTimeoutMinutes is over 30). The attempt ends and the job continues from its latest checkpoint as the next attempt. | Three attempts in a row that end without a newer checkpoint fail the job. |
contextLength | 0 or 256 to 2147483647; see the contextLength setting for what 0 takes and when a value fails the job | 400 invalid_request; a failed job |
vcpus | Default 8, at most 56. A deployment may admit fewer. | 400 invalid_request; the error names the limit. |
maxInFlightRollouts | Default 256, 2 to 4096, at least one whole group | 400 invalid_request |
samplingStepsAhead | Default 0, 0 to 8. A job with steps 0 (a baseline or a supervised run) accepts only 0. | 400 invalid_request |
sampleTimeoutMinutes, rolloutTimeoutMinutes | Default 30 and 240 minutes | A sampling call that times out is issued again, three attempts in all; then the rollout fails and is left out of its group. |
checkpointEvery | Default 10 steps | A longer interval than an attempt restarts every attempt from the same checkpoint. |
| Early stop | Off unless earlyStopPatience is set | |
| Turns and steps | No cap on the turns of a rollout or the steps of a run | |
| Run name | 1 to 120 characters | 400 invalid_request |
| List page size | Jobs 20 (max 100), metrics 500 (2000), rollouts 200 (1000), rollout groups 20 (200), events 200 (1000), checkpoints 100 (1000) | 400 invalid_request |
| Dataset upload | A file of at most 64 MiB that changes or removes at most 50,000 rows of the base version, 10,000 regex checks and 1 MiB of regex patterns; a row is at most 8 MiB and has at most 5 regex checks; a file, which is the whole content of the new version, has at most 16 distinct regex patterns, each of at most 128 characters and at most 1,000 compiled instructions. One version is built at a time per dataset; a build silent for 30 minutes counts as crashed and the next upload or removal takes it over. | 400 invalid_request; a version already being built answers 409 conflict. |
| Dataset row removal | 1 to 5,000 distinct row ids per call | 400 invalid_request |
| Dataset name | 1 to 256 characters | 400 invalid_request |
| Dataset list page size | Datasets and versions 50 (max 200), rows 50 (100); a rows page holds at most 16 MiB of rows (at least one) and ends early when its rows are large | 400 invalid_request |
Next steps
Errors
Every error code, its cause, and whether to retry.
API conventions
Retries, idempotency, and paging.
Troubleshooting
Match a symptom to its cause and fix.
Event types and states
Look up every status, event type, and result value.
Pricing
See what a session hour costs and the purchase amounts credits come in.