{"openapi":"3.1.0","info":{"title":"Sandcovery API","version":"1","description":"One API and one key for ephemeral sandboxes across providers, on your own provider accounts. Money is integer micro-dollars at each provider's rate card price, and timestamps are UTC. Every error answers a JSON body `{\"error\": \"<code>\", \"message\": \"<sentence>\"}`, plus the fields its code lists, a path that does not decode answers 404 `not_found`, and a JSON request body over 1 MiB answers 413 `body_too_large` without being read whole."},"paths":{"/api/health":{"get":{"tags":["health"],"operationId":"health.health","parameters":[],"security":[],"responses":{"200":{"description":"Health","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"503":{"description":"A store the API cannot serve without failed its health check. `checks` marks that store false, and `message` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnhealthyError"}}}}},"description":"Checks every store the API cannot serve without, each within 5 seconds. Answers `ok: true` with every check true, or 503 `unhealthy` with `ok: false` and the failed check false. No cache keeps the answer.","summary":"Check health"}},"/api/v1/pricing":{"get":{"tags":["pricing"],"operationId":"pricing.getPricing","parameters":[],"security":[],"responses":{"200":{"description":"The public prices: the Pro and Enterprise prices for one organization and the terms of a credit purchase.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Pricing"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads the Pro and Enterprise prices from Stripe and the terms of a credit purchase. Each price is null while its plan is not on sale or billing is not set up.","summary":"Get pricing"}},"/api/v1/pricing/monthly":{"get":{"tags":["pricing"],"operationId":"pricing.estimateMonthlyCost","parameters":[{"name":"hours_per_day","in":"query","schema":{"type":"string","description":"Hours a day the sandbox runs, above 0 and at most 24, such as 8 or 0.5."},"required":true},{"name":"os","in":"query","schema":{"type":"string","enum":["linux","windows","macos"],"description":"Prices only providers whose sandboxes run this operating system, `linux` by default, as a create with that `os` routes."},"required":false},{"name":"size","in":"query","schema":{"type":"string","minLength":1,"description":"The size to price, `<vcpu>x<memory_gib>` as in a slug, such as `2x4` or `2x0.5`."},"required":true}],"security":[],"responses":{"200":{"description":"The monthly price of one size on every provider Sandcovery routes to that runs the operating system asked for and lists a price, and `slug`, such as `sandcovery/2x4:cheapest`, which routes a create of that size and operating system to the cheapest provider that bills by use and holds your credential, counting one that lists no price as free. A provider that charges by the month has no per-use price to compare, so it is never that cheapest provider.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MonthlyCostList"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Prices one size on every provider Sandcovery routes to that runs `os`, from the current rate cards, for a sandbox that runs `hours_per_day` hours on every day of an average month of 365/12 days. It counts list prices alone, before any discount or free allowance, and creates nothing.","summary":"Estimate monthly cost"}},"/api/v1/sandboxes":{"post":{"tags":["sandboxes"],"operationId":"sandboxes.createSandbox","parameters":[{"name":"idempotency-key","in":"header","schema":{"type":"string","minLength":1,"maxLength":255,"description":"A client-chosen key. A repeat with the same key and body, from the same API key or the same signed-in person in the organization, creates no second sandbox and answers that sandbox as it is now, such as destroyed after a destroy. A repeat with another body answers 409."},"required":false}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"201":{"description":"A sandbox, bound to the provider that created it, in one shape per `status`. `expires_at` is when Sandcovery destroys it, and pausing does not move it. `provider`, `provider_sandbox_id`, `slug` and `started_at` are set while it is `running`, `paused` or `destroying`, and null while it is `creating`. `ended_at` and `end_reason` are set once it is `destroyed` or `failed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sandbox"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"402":{"description":"The API key's spend limit leaves too little for the sandbox's full TTL at its rate card price. `resets_at` is when the window resets, or null for a `total` limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendLimitReachedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"429":{"description":"The API key already has `concurrency_cap` live sandboxes, its `max_concurrent_sandboxes`. Destroy one or wait for one to end.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcurrencyLimitReachedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}},"503":{"description":"Every candidate provider failed to create the sandbox, or none was left after filtering.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoProviderAvailableError"}}}}},"description":"Needs an API key or a signed-in session. A session creates under the API key it names in `api_key_id`, with that key's limits and as that key, or with no key when it is an organization admin's. A member's session without a key, or naming a key not made for them, receives 403, and a key that is not a live API key of the organization answers 404. Routes the spec to the best candidate provider that has your stored credential, and falls back in order when a create fails with `capacity`, `quota`, `server_error`, or `timeout` and `allow_fallbacks` is not false. Every attempt is listed in `attempts`. A provider that refuses the create answers 502 `provider_error` naming it. Sandcovery destroys the sandbox at `expires_at` even when the client is gone.","summary":"Create a sandbox","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSandboxRequest"}}},"required":true}},"get":{"tags":["sandboxes"],"operationId":"sandboxes.listSandboxes","parameters":[{"name":"cursor","in":"query","schema":{"type":"string","description":"`next_cursor` from the previous page."},"required":false},{"name":"limit","in":"query","schema":{"type":"string","description":"Page size from 1 to 100. Defaults to 20."},"required":false},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/SandboxStatus"},"required":false}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"SandboxList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxList"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists sandboxes, newest first. An API key sees the sandboxes it created, and a session sees the whole organization.","summary":"List sandboxes"}},"/api/v1/estimates":{"post":{"tags":["sandboxes"],"operationId":"sandboxes.estimateCost","parameters":[],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"EstimateList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateList"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"503":{"description":"Every candidate provider failed to create the sandbox, or none was left after filtering.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoProviderAvailableError"}}}}},"description":"Prices a spec at each provider a create with the same caller, key and body would try, in the order it would try them, from the current rate cards, without creating anything. It plans as a create does: with the providers the organization has stored a key for, the free or sponsored vCPUh when they cover the spec, and the providers the organization can pay for on credits. A session that names a key in `api_key_id` plans as that key, under its maximum TTL and allowed providers. A session with no key plans as the organization. That includes a member who isn't an admin, though that member's create must name a key. Whenever a create's planning would refuse the spec, the estimate answers the same status and message instead of an empty list: 422 `unsupported` naming the sizes that fit, or 503 `no_provider_available` with empty `attempts`, such as when no provider key is stored, the key's allowed providers or `provider` leave none, the provider it names is coming soon, fewer free or sponsored vCPUh are left than the sandbox needs over its full TTL, or its full-TTL cost on credits is more than the credit balance. It never charges a card, tops up credits, or holds anything, so a create can still refuse when it reserves, such as at the concurrency or spend limit.","summary":"Estimate cost","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateRequest"}}},"required":true}}},"/api/v1/usable-keys":{"get":{"tags":["sandboxes"],"operationId":"sandboxes.listUsableKeys","parameters":[],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"UsableKeyList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsableKeyList"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists the live API keys a signed-in session may create sandboxes under through `api_key_id`, newest first: every live API key of the organization to an admin, and the ones made for them to a member. It returns no secret. An API key receives 403, since it always creates under itself.","summary":"List usable keys"}},"/api/v1/sandboxes/{sandbox_id}":{"get":{"tags":["sandboxes"],"operationId":"sandboxes.getSandbox","parameters":[{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"A sandbox, bound to the provider that created it, in one shape per `status`. `expires_at` is when Sandcovery destroys it, and pausing does not move it. `provider`, `provider_sandbox_id`, `slug` and `started_at` are set while it is `running`, `paused` or `destroying`, and null while it is `creating`. `ended_at` and `end_reason` are set once it is `destroyed` or `failed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sandbox"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads one sandbox.","summary":"Get a sandbox"},"delete":{"tags":["sandboxes"],"operationId":"sandboxes.destroySandbox","parameters":[{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"A sandbox, bound to the provider that created it, in one shape per `status`. `expires_at` is when Sandcovery destroys it, and pausing does not move it. `provider`, `provider_sandbox_id`, `slug` and `started_at` are set while it is `running`, `paused` or `destroying`, and null while it is `creating`. `ended_at` and `end_reason` are set once it is `destroyed` or `failed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sandbox"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Destroys the sandbox at its provider and returns it. Destroying a destroyed sandbox returns it unchanged.","summary":"Destroy a sandbox","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/sandboxes/{sandbox_id}/pause":{"post":{"tags":["sandboxes"],"operationId":"sandboxes.pauseSandbox","parameters":[{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"A sandbox, bound to the provider that created it, in one shape per `status`. `expires_at` is when Sandcovery destroys it, and pausing does not move it. `provider`, `provider_sandbox_id`, `slug` and `started_at` are set while it is `running`, `paused` or `destroying`, and null while it is `creating`. `ended_at` and `end_reason` are set once it is `destroyed` or `failed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sandbox"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Pauses a running sandbox, keeping its memory and filesystem where the provider can. The TTL keeps counting. A provider that cannot pause answers 422 `unsupported`.","summary":"Pause a sandbox","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/sandboxes/{sandbox_id}/resume":{"post":{"tags":["sandboxes"],"operationId":"sandboxes.resumeSandbox","parameters":[{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"A sandbox, bound to the provider that created it, in one shape per `status`. `expires_at` is when Sandcovery destroys it, and pausing does not move it. `provider`, `provider_sandbox_id`, `slug` and `started_at` are set while it is `running`, `paused` or `destroying`, and null while it is `creating`. `ended_at` and `end_reason` are set once it is `destroyed` or `failed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sandbox"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Resumes a paused sandbox. A provider that cannot pause answers 422 `unsupported`.","summary":"Resume a sandbox","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/sandboxes/{sandbox_id}/snapshot":{"post":{"tags":["sandboxes"],"operationId":"sandboxes.snapshotSandbox","parameters":[{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"201":{"description":"A snapshot of a sandbox filesystem. A sandbox created from it runs on the same provider.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Snapshot"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Saves the sandbox filesystem as a snapshot that `snapshot_id` can start a new sandbox from. A provider that cannot snapshot answers 422 `unsupported`. A sandbox on free vCPUh or credits takes no snapshot.","summary":"Snapshot a sandbox","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/snapshots":{"get":{"tags":["sandboxes"],"operationId":"sandboxes.listSnapshots","parameters":[],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"SnapshotList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotList"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists the organization's snapshots, newest first, whichever key or person took them. Each can start a sandbox through `snapshot_id`.","summary":"List snapshots"}},"/api/v1/sandboxes/{sandbox_id}/exec":{"post":{"tags":["sandboxes"],"operationId":"sandboxes.execSandbox","parameters":[{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"The result of a command that ran to its end.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecResult"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Runs a command to its end and returns its exit code and buffered output. A non-zero exit code is a successful answer. An option the sandbox's provider cannot serve, such as a `timeout_seconds` past its longest command, answers 422 `unsupported` naming it, without running the command.","summary":"Run a command","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecRequest"}}},"required":true}}},"/api/v1/sandboxes/{sandbox_id}/exec/stream":{"post":{"tags":["sandboxes"],"operationId":"sandboxes.streamExecSandbox","parameters":[{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Success","content":{"text/event-stream":{"schema":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"event":{"type":"string"},"data":{"$ref":"#/components/schemas/ExecEventEncoded"}},"required":["event","data"],"additionalProperties":false},"x-effect-stream":{"encoding":"sse","causeSchema":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"_tag":{"type":"string","enum":["Fail"]},"error":{"not":{}}},"required":["_tag","error"],"additionalProperties":false},{"type":"object","properties":{"_tag":{"type":"string","enum":["Die"]},"defect":{}},"required":["_tag","defect"],"additionalProperties":false},{"type":"object","properties":{"_tag":{"type":"string","enum":["Interrupt"]},"fiberId":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["_tag","fiberId"],"additionalProperties":false}]}},"errorSchema":{"not":{}},"failureEvent":"effect/http-api/stream/failure"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Runs a command and streams its output as server-sent events, each `data` one JSON `ExecEvent`, ending with `exit` or `error`. A `timeout_seconds` past the longest command the sandbox's provider runs answers 422 `unsupported` naming it, before any event and without running the command.","summary":"Run a command and stream its output","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecRequest"}}},"required":true}}},"/api/v1/sandboxes/{sandbox_id}/exec/detached":{"post":{"tags":["sandboxes"],"operationId":"sandboxes.detachExecSandbox","parameters":[{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"202":{"description":"A command the provider started and left running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetachedExec"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Starts a command and answers once the provider reports it started, leaving it running in the background until it exits or the sandbox ends. Its output is not kept, so a command that must be checked writes to a file. A provider with no detached commands, or one that refuses this command, answers 422 `unsupported`.","summary":"Start a detached command","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetachedExecRequest"}}},"required":true}}},"/api/v1/sandboxes/{sandbox_id}/processes":{"post":{"tags":["sandboxes"],"operationId":"sandboxes.startProcess","parameters":[{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"201":{"description":"A command a sandbox runs on a terminal or pipes. A client attaches to its stdin, stdout, stderr, resizes, and signals over a WebSocket at `/api/v1/sandboxes/{sandbox_id}/processes/{process_id}/attach`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Process"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Starts a command as a process that runs until it exits, with no timeout, and answers once a client can attach. Each of stdin, stdout, and stderr sits on the terminal `terminal` describes or on a pipe. A client attaches with a WebSocket GET to `/api/v1/sandboxes/{sandbox_id}/processes/{process_id}/attach` under the same credential, sent in the `Authorization` header or, where a WebSocket client sets no headers, as the second of the subprotocols `sandcovery-attach-v1` and the credential. A new attach replaces the one before it, which the server closes with code 4000. Binary messages carry one stream byte (0 stdin, 1 stdout, 2 stderr), the byte offset of the data in its stream as 8 bytes big-endian, and the data. Text messages are JSON. Each message a client sends holds at most 4 MiB (4,194,304 bytes), counting the 9 header bytes of a binary message and the UTF-8 bytes of a text message, and the server closes a client that sends a larger one with code 1009, so a client sends stdin in smaller frames. The client sends `{\"type\":\"ack\",\"stream\":\"stdout\",\"offset\":n}` and the same for `stderr` once it holds a stream up to `n`, `{\"type\":\"eof\",\"stream\":\"stdin\",\"offset\":n}` at the end of stdin, `{\"type\":\"resize\",\"cols\":n,\"rows\":n}`, and `{\"type\":\"signal\",\"name\":\"SIGINT\"}` or another signal name, naming a realtime signal `SIGRTMIN`, `SIGRTMIN+n`, `SIGRTMAX-n`, or `SIGRTMAX` as glibc numbers them, where `SIGRTMIN` is 34 and `SIGRTMAX` is 64. The server sends `{\"type\":\"ready\"}` whenever the process can take stdin, after which the client sends stdin again from the last offset acknowledged and receives output again from its own last acknowledgment, `{\"type\":\"waiting\"}` when the sandbox stops reaching the server until the next `ready`, `{\"type\":\"ack\",\"stream\":\"stdin\",\"offset\":n}` for stdin written to the command, and `{\"type\":\"exit\",\"code\":n,\"signal\":null,\"stdout\":n,\"stderr\":n}` with the final length of each output stream. With no client attached for 5 minutes, the command gets SIGHUP, and SIGKILL 10 seconds later. The sandbox must reach `www.sandcovery.com`, and its provider must run commands, write files, and keep the background processes of a command running after that command ends; otherwise the call answers 422 `unsupported`.","summary":"Start a process","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessRequest"}}},"required":true}}},"/api/v1/sandboxes/{sandbox_id}/processes/{process_id}":{"get":{"tags":["sandboxes"],"operationId":"sandboxes.getProcess","parameters":[{"name":"process_id","in":"path","schema":{"type":"string","pattern":"^proc_[\\s\\S]*?$","description":"Process ID: `proc_` followed by a UUID v7."},"required":true},{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"A command a sandbox runs on a terminal or pipes. A client attaches to its stdin, stdout, stderr, resizes, and signals over a WebSocket at `/api/v1/sandboxes/{sandbox_id}/processes/{process_id}/attach`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Process"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Answers a process of the sandbox: its command, terminal, status, and exit.","summary":"Get a process"}},"/api/v1/sandboxes/{sandbox_id}/files":{"get":{"tags":["sandboxes"],"operationId":"sandboxes.listFiles","parameters":[{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true},{"name":"path","in":"query","schema":{"type":"string","minLength":1,"description":"A path inside the sandbox."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"FileList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileList"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Lists the entries of a directory. A provider with no file calls answers 422 `unsupported`.","summary":"List files"}},"/api/v1/sandboxes/{sandbox_id}/files/content":{"get":{"tags":["sandboxes"],"operationId":"sandboxes.downloadFile","parameters":[{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true},{"name":"path","in":"query","schema":{"type":"string","minLength":1,"description":"A path inside the sandbox."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"Success","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"},"x-effect-stream":{"encoding":"uint8array"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Answers the bytes of a file. A provider with no file calls answers 422 `unsupported`.","summary":"Download a file"},"put":{"tags":["sandboxes"],"operationId":"sandboxes.uploadFile","parameters":[{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true},{"name":"path","in":"query","schema":{"type":"string","minLength":1,"description":"A path inside the sandbox."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"FileEntry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileEntry"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Writes the request body to a file, creating parent directories and replacing an existing file. The body is at most 100 MiB, and a larger one answers 413 `body_too_large`. A provider with no file calls answers 422 `unsupported`, and so does a body past the largest file Sandcovery writes to the sandbox's provider, naming that limit before the provider is called.","summary":"Upload a file","requestBody":{"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"},"x-effect-stream":{"encoding":"uint8array"}}},"required":true}}},"/api/v1/sandboxes/{sandbox_id}/ports/{port}":{"get":{"tags":["sandboxes"],"operationId":"sandboxes.getPortPreview","parameters":[{"name":"port","in":"path","schema":{"type":"string","description":"A port from 1 to 65535."},"required":true},{"name":"sandbox_id","in":"path","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"A provider URL that reaches a port inside the sandbox.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortPreview"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Answers the provider's URL for a port inside the sandbox. The URL comes from the sandbox's provider, so its shape differs between providers. A provider with no port preview URLs answers 422 `unsupported`.","summary":"Get a port preview URL"}},"/api/v1/agent-presets":{"get":{"tags":["agents"],"operationId":"agents.listAgentPresets","parameters":[],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"AgentPresetList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPresetList"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists the open-source agents Sandcovery installs in an always-on sandbox, with each agent's own setup.","summary":"List agent presets"}},"/api/v1/agents":{"post":{"tags":["agents"],"operationId":"agents.createAgent","parameters":[],"security":[{"apiKey":[]},{"session":[]}],"responses":{"201":{"description":"An always-on agent: a preset running in a sandbox that Sandcovery renews before it expires, carrying the agent's state, its own setup included, to the replacement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"402":{"description":"The API key's spend limit leaves too little for the sandbox's full TTL at its rate card price. `resets_at` is when the window resets, or null for a `total` limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendLimitReachedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"429":{"description":"The API key already has `concurrency_cap` live sandboxes, its `max_concurrent_sandboxes`. Destroy one or wait for one to end.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcurrencyLimitReachedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}},"503":{"description":"Every candidate provider failed to create the sandbox, or none was left after filtering.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoProviderAvailableError"}}}}},"description":"Creates a sandbox on the routing given and installs the preset in it, and answers while the agent is `starting`. Once installed, the agent waits in `setup` until a person finishes the agent's own setup in its session, through `POST /agents/{agent_id}/session` or `POST /agents/{agent_id}/ssh`, and then runs. Sandcovery takes no model key or chat token. It renews the sandbox before it expires and carries the agent's state to the replacement. A sandbox create that fails answers its error, as `POST /sandboxes` does. Each sandbox must live at least 7200 seconds. Sandcovery refuses with 403 when the API key's `max_ttl_seconds` or `allowed_providers` allows less, and with 422 when the routing reaches only providers whose sandboxes live less, before it creates any sandbox. A renewal that can no longer get that life fails with `last_error` saying why, and Sandcovery tries again while the agent keeps its current sandbox. Once that sandbox expires, the agent is `failed`.","summary":"Create an agent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentRequest"}}},"required":true}},"get":{"tags":["agents"],"operationId":"agents.listAgents","parameters":[],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"AgentList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentList"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists agents, newest first. An API key sees the agents it created, and a session sees the whole organization's.","summary":"List agents"}},"/api/v1/agents/{agent_id}":{"get":{"tags":["agents"],"operationId":"agents.getAgent","parameters":[{"name":"agent_id","in":"path","schema":{"type":"string","pattern":"^agent_[\\s\\S]*?$","description":"Always-on agent ID: `agent_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"An always-on agent: a preset running in a sandbox that Sandcovery renews before it expires, carrying the agent's state, its own setup included, to the replacement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads one agent.","summary":"Get an agent"},"delete":{"tags":["agents"],"operationId":"agents.deleteAgent","parameters":[{"name":"agent_id","in":"path","schema":{"type":"string","pattern":"^agent_[\\s\\S]*?$","description":"Always-on agent ID: `agent_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Stops the agent, destroying its sandbox and the state it held, and deletes it.","summary":"Delete an agent","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/agents/{agent_id}/session":{"post":{"tags":["agents"],"operationId":"agents.openAgentSession","parameters":[{"name":"agent_id","in":"path","schema":{"type":"string","pattern":"^agent_[\\s\\S]*?$","description":"Always-on agent ID: `agent_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"201":{"description":"A command a sandbox runs on a terminal or pipes. A client attaches to its stdin, stdout, stderr, resizes, and signals over a WebSocket at `/api/v1/sandboxes/{sandbox_id}/processes/{process_id}/attach`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Process"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Starts a terminal process in the agent's sandbox that attaches to the agent's session, and answers the process to attach to as `POST /sandboxes/{sandbox_id}/processes` does. The session runs the agent's own setup until the agent is set up, then a shell. It stays when every client detaches, and every attach, from here or over SSH, joins the same session. An agent with no running sandbox answers 409.","summary":"Attach to an agent's session","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSessionRequest"}}},"required":true}}},"/api/v1/agents/{agent_id}/ssh":{"post":{"tags":["agents"],"operationId":"agents.openAgentSsh","parameters":[{"name":"agent_id","in":"path","schema":{"type":"string","pattern":"^agent_[\\s\\S]*?$","description":"Always-on agent ID: `agent_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"201":{"description":"A command a sandbox runs on a terminal or pipes. A client attaches to its stdin, stdout, stderr, resizes, and signals over a WebSocket at `/api/v1/sandboxes/{sandbox_id}/processes/{process_id}/attach`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Process"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Starts an SSH server on the stdin and stdout of a process in the agent's sandbox that lets only the public key given sign in, for an SSH client whose ProxyCommand attaches to that process. A shell joins the agent's session; a command runs on its own; port forwards reach the sandbox's own ports. `sandcovery agents ssh` does all of this. An agent with no running sandbox answers 409.","summary":"Open SSH to an agent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSshRequest"}}},"required":true}}},"/api/v1/agents/{agent_id}/web":{"post":{"tags":["agents"],"operationId":"agents.openAgentWeb","parameters":[{"name":"agent_id","in":"path","schema":{"type":"string","pattern":"^agent_[\\s\\S]*?$","description":"Always-on agent ID: `agent_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"AgentWebLink","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWebLink"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Answers the address that opens the agent's web app through an SSH forward of the same port, such as `sandcovery agents ssh <agent_id> -- -N -L 18789:127.0.0.1:18789`. When the agent signs its web app with a one-time token, the address carries a new one. An agent with no web app, or whose web app is not up, answers 409.","summary":"Open an agent's web app","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/agents/{agent_id}/web/sign-in":{"post":{"tags":["agents"],"operationId":"agents.signInAgentWeb","parameters":[{"name":"agent_id","in":"path","schema":{"type":"string","pattern":"^agent_[\\s\\S]*?$","description":"Always-on agent ID: `agent_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"AgentWebLink","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWebLink"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Signs a browser in to the agent's web app. The agent's web app sends the browser to the agent's page in Sandcovery with a sign-in state, and this call answers the address that completes that sign-in, through the provider's signed port preview when the web app has one. An agent whose web app has no Sandcovery sign-in, or whose web app is not up, answers 409.","summary":"Sign in to an agent's web app","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWebSignInRequest"}}},"required":true}}},"/api/v1/agents/{agent_id}/stop":{"post":{"tags":["agents"],"operationId":"agents.stopAgent","parameters":[{"name":"agent_id","in":"path","schema":{"type":"string","pattern":"^agent_[\\s\\S]*?$","description":"Always-on agent ID: `agent_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"An always-on agent: a preset running in a sandbox that Sandcovery renews before it expires, carrying the agent's state, its own setup included, to the replacement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Destroys the agent's sandbox and ends its renewals. A start boots it again in a new sandbox, without the state the destroyed sandbox held, so the agent waits in `setup` again.","summary":"Stop an agent","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/agents/{agent_id}/start":{"post":{"tags":["agents"],"operationId":"agents.startAgent","parameters":[{"name":"agent_id","in":"path","schema":{"type":"string","pattern":"^agent_[\\s\\S]*?$","description":"Always-on agent ID: `agent_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"An always-on agent: a preset running in a sandbox that Sandcovery renews before it expires, carrying the agent's state, its own setup included, to the replacement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"402":{"description":"The API key's spend limit leaves too little for the sandbox's full TTL at its rate card price. `resets_at` is when the window resets, or null for a `total` limit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendLimitReachedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"429":{"description":"The API key already has `concurrency_cap` live sandboxes, its `max_concurrent_sandboxes`. Destroy one or wait for one to end.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcurrencyLimitReachedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}},"503":{"description":"Every candidate provider failed to create the sandbox, or none was left after filtering.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoProviderAvailableError"}}}}},"description":"Boots a stopped or failed agent in a fresh sandbox, destroying the sandbox a failed start left, and checks an agent in `setup` again, running it once its own setup is done. Any other agent answers 409. Before it changes the agent, Sandcovery refuses with 403 or 422, as on a create, when the API key that created the agent, or the agent's routing, can no longer give its sandbox the life an agent needs, and with 403 when that key or the person who created the agent can no longer act for it.","summary":"Start an agent","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/agents/{agent_id}/restart":{"post":{"tags":["agents"],"operationId":"agents.restartAgent","parameters":[{"name":"agent_id","in":"path","schema":{"type":"string","pattern":"^agent_[\\s\\S]*?$","description":"Always-on agent ID: `agent_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"An always-on agent: a preset running in a sandbox that Sandcovery renews before it expires, carrying the agent's state, its own setup included, to the replacement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}}},"description":"Stops the agent and starts it again in the same sandbox, keeping its state. An agent with no sandbox, or one that is starting or renewing, answers 409. Sandcovery refuses with 403 or 422, as on a create, when the API key that created the agent, or the agent's routing, can no longer give its sandbox the life an agent needs, and with 403 when that key or the person who created the agent can no longer act for it.","summary":"Restart an agent","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/agents/{agent_id}/logs":{"get":{"tags":["agents"],"operationId":"agents.getAgentLogs","parameters":[{"name":"agent_id","in":"path","schema":{"type":"string","pattern":"^agent_[\\s\\S]*?$","description":"Always-on agent ID: `agent_` followed by a UUID v7."},"required":true},{"name":"lines","in":"query","schema":{"type":"string","description":"Lines from the end of the log, from 1 to 2000. Unset reads 200."},"required":false}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"AgentLogs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLogs"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsupportedError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Reads the end of the agent's log file in its current sandbox. An agent with no running sandbox answers 409.","summary":"Read an agent's logs"}},"/api/v1/activity":{"get":{"tags":["activity"],"operationId":"activity.listActivity","parameters":[{"name":"cursor","in":"query","schema":{"type":"string","description":"`next_cursor` from the previous page."},"required":false},{"name":"limit","in":"query","schema":{"type":"string","description":"Page size from 1 to 100. Defaults to 20."},"required":false},{"name":"sandbox_id","in":"query","schema":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Lists only the activity of this sandbox."},"required":false}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"ActivityList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityList"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists the activity log, newest first. An API key sees its own sandboxes, and a session sees the whole organization.","summary":"List activity"}},"/api/v1/usage":{"get":{"tags":["usage"],"operationId":"usage.getUsage","parameters":[{"name":"api_key_id","in":"query","schema":{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},"required":false},{"name":"from","in":"query","schema":{"type":"string","format":"date","description":"First UTC day, inclusive."},"required":true},{"name":"to","in":"query","schema":{"type":"string","format":"date","description":"Last UTC day, inclusive. At most 92 days after `from`."},"required":true}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"Usage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Usage"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Estimated list-price usage per API key, provider, and UTC day.","summary":"Get usage"}},"/api/v1/usage/live":{"get":{"tags":["usage"],"operationId":"usage.getLiveUsage","parameters":[{"name":"api_key_id","in":"query","schema":{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},"required":false}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"LiveUsage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveUsage"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"The sandboxes live at the moment of the call, per API key, provider, and status, with the resources they hold, their cost per hour, and the cost they have run up.","summary":"Get live usage"}},"/api/v1/usage/totals":{"get":{"tags":["usage"],"operationId":"usage.getUsageTotals","parameters":[{"name":"api_key_id","in":"query","schema":{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},"required":false}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"UsageTotals","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageTotals"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Estimated list-price cost and resource time of the current UTC day, ISO week, and UTC month, and of every sandbox run, from the start of each window to the moment of the call.","summary":"Get usage totals"}},"/api/v1/usage/shares":{"get":{"tags":["usage"],"operationId":"usage.listUsageShares","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"UsageShareList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageShareList"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists the live usage shares of the organization, newest first.","summary":"List usage shares"},"post":{"tags":["usage"],"operationId":"usage.createUsageShare","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"201":{"description":"A public link to one usage total of the organization. It lives until revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageShare"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads the usage total of one window now and shares the chosen figures of it at a new public link whose token is 32 random bytes. The link names the person who shares by their Sandcovery username: a signed-in admin shares as themselves, a management key shares as the admin who minted it while they are still an admin and answers 403 `forbidden` otherwise, and a person with no username answers 409 `conflict` until they pick one. The figures never change after, and nothing else of the organization becomes public.","summary":"Share usage","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUsageShareRequest"}}},"required":true}}},"/api/v1/usage/shares/{share_id}":{"delete":{"tags":["usage"],"operationId":"usage.revokeUsageShare","parameters":[{"name":"share_id","in":"path","schema":{"type":"string","pattern":"^ush_[\\s\\S]*?$","description":"Usage share ID: `ush_` followed by a UUID v7."},"required":true}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Revokes a usage share at once, so its page and `GET /api/v1/shared-usage/{token}` answer 404.","summary":"Revoke a usage share","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/shared-usage/{token}":{"get":{"tags":["sharedUsage"],"operationId":"sharedUsage.getSharedUsage","parameters":[{"name":"token","in":"path","schema":{"type":"string","minLength":22,"maxLength":43,"pattern":"^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$","description":"A share token: 32 random bytes as 43 unpadded base64url characters. Anyone holding it can read the figures it shares."},"required":true}],"security":[],"responses":{"200":{"description":"A usage total an organization shared by link: only the window and the figures it chose, read once when it shared them, and the username of the person who shared, with no organization, email, name, key, or billing detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedUsage"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads the figures a usage share shows, by its token. An unknown or revoked token answers 404.","summary":"Get shared usage"}},"/api/v1/stats":{"get":{"tags":["stats"],"operationId":"stats.getStats","parameters":[],"security":[{"apiKey":[]},{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"The organization's level, streak, records, and badges, each read from the sandboxes, create attempts, and snapshots it stores.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stats"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"The organization's level, streak, records, and badges, read from every sandbox it started.","summary":"Get stats"}},"/api/v1/stats/units/{position}":{"get":{"tags":["stats"],"operationId":"stats.getStatsUnit","parameters":[{"name":"position","in":"path","schema":{"type":"string","description":"Where the sandbox stands in `units.runs` of `GET /api/v1/stats`, from 0."},"required":true}],"security":[{"apiKey":[]},{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"One started sandbox, drawn as one unit of the stats server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsUnit"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"One started sandbox of the organization in full, by where it stands in the stats server. A position past the last started sandbox answers 404.","summary":"Get a stats unit"}},"/api/v1/stats/share":{"put":{"tags":["statsShare"],"operationId":"statsShare.shareStats","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"The organization's one public link to its stats. It lives until revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsShare"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Shares the organization's stats at a public link whose token is 32 random bytes, or answers the link it already has. The page reads the stats live with the organization's public identity, without sandbox IDs, members, keys, or billing details.","summary":"Share stats","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}},"get":{"tags":["statsShare"],"operationId":"statsShare.getStatsShare","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"The organization's one public link to its stats. It lives until revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsShare"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"The organization's public stats link, or 404 while its stats are not shared.","summary":"Get the stats link"},"delete":{"tags":["statsShare"],"operationId":"statsShare.unshareStats","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Revokes the public stats link at once, so its page and `GET /api/v1/shared-stats/{token}` answer 404.","summary":"Stop sharing stats","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/shared-stats/{token}":{"get":{"tags":["sharedStats"],"operationId":"sharedStats.getSharedStats","parameters":[{"name":"token","in":"path","schema":{"type":"string","minLength":22,"maxLength":43,"pattern":"^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$","description":"A share token: 32 random bytes as 43 unpadded base64url characters. Anyone holding it can read the figures it shares."},"required":true}],"security":[],"responses":{"200":{"description":"The stats an organization shared by link, read live at each request, with its public organization identity and no sandbox ID, member, key, or billing detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedStats"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads the stats of the organization that shared them, by the token of its link. An unknown or revoked token answers 404.","summary":"Get shared stats"}},"/api/v1/keys":{"get":{"tags":["keys"],"operationId":"keys.listKeys","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"KeyList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyList"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists the organization's keys, revoked ones included: its API keys and management keys to a signed-in member who manages keys, and its API keys alone to a management key.","summary":"List keys"},"post":{"tags":["keys"],"operationId":"keys.createKey","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"201":{"description":"CreatedKey","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedKey"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Mints a Clerk API key owned by the organization, an API key or, for a signed-in admin, a management key, and returns its secret once.","summary":"Create a key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyRequest"}}},"required":true}}},"/api/v1/keys/{key_id}":{"get":{"tags":["keys"],"operationId":"keys.getKey","parameters":[{"name":"key_id","in":"path","schema":{"type":"string","description":"Key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, for every kind of key."},"required":true}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"An API key, a management key, or a person key, told apart by `kind`. Its secret is never returned after creation. A management key and a person key take no limits, so their limits are null and their spend is 0.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Key"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads one key.","summary":"Get a key"},"patch":{"tags":["keys"],"operationId":"keys.updateKey","parameters":[{"name":"key_id","in":"path","schema":{"type":"string","description":"Key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, for every kind of key."},"required":true}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"An API key, a management key, or a person key, told apart by `kind`. Its secret is never returned after creation. A management key and a person key take no limits, so their limits are null and their spend is 0.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Key"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Changes a key's name, expiry, or limits.","summary":"Update a key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKeyRequest"}}},"required":true}},"delete":{"tags":["keys"],"operationId":"keys.revokeKey","parameters":[{"name":"key_id","in":"path","schema":{"type":"string","description":"Key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, for every kind of key."},"required":true}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"An API key, a management key, or a person key, told apart by `kind`. Its secret is never returned after creation. A management key and a person key take no limits, so their limits are null and their spend is 0.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Key"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Revokes a key at once and returns it with `revoked_at` set. Sandboxes it created keep running until destroyed or their TTL ends.","summary":"Revoke a key","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/cli/sign-ins":{"post":{"tags":["cliSignIns"],"operationId":"cliSignIns.startCliSignIn","parameters":[],"security":[],"responses":{"201":{"description":"CliSignInStart","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliSignInStart"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"429":{"description":"The caller sent this operation more requests than its limit allows, such as more than 3 problem reports a minute. Wait a minute and try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}}},"description":"Starts a sign-in for a computer, which waits 10 minutes for a signed-in person to approve it at `verification_url`. Takes 10 sign-ins a minute from one network address, and answers 429 past that.","summary":"Start a CLI sign-in","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartCliSignInRequest"}}},"required":true}}},"/api/v1/cli/sign-ins/token":{"post":{"tags":["cliSignIns"],"operationId":"cliSignIns.collectCliSignIn","parameters":[],"security":[],"responses":{"200":{"description":"CliSignInToken","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliSignInToken"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads a sign-in's status by its `device_code`. Once a person approves it, the first collect answers the key and ends the sign-in. A code Sandcovery does not hold answers `expired`.","summary":"Collect a CLI sign-in","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectCliSignInRequest"}}},"required":true}}},"/api/v1/cli/sign-out":{"post":{"tags":["cliSignIns"],"operationId":"cliSignIns.signOutCli","parameters":[],"security":[],"responses":{"204":{"description":"<No Content>"},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Revokes the CLI sign-in key that calls it, as `sandcovery logout` does, so the computer that holds it is signed out. Any other credential, and a key that no longer works, changes nothing and answers 204 too.","summary":"Sign out the CLI","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/cli/sign-ins/{user_code}":{"get":{"tags":["cliSignInApprovals"],"operationId":"cliSignInApprovals.getCliSignIn","parameters":[{"name":"user_code","in":"path","schema":{"type":"string"},"required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"A sign-in a computer started, as the dashboard shows it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliSignIn"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads a sign-in by the code the computer shows, while it waits or after you approved or denied it.","summary":"Get a CLI sign-in"}},"/api/v1/cli/sign-ins/{user_code}/approve":{"post":{"tags":["cliSignInApprovals"],"operationId":"cliSignInApprovals.approveCliSignIn","parameters":[{"name":"user_code","in":"path","schema":{"type":"string"},"required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"A sign-in a computer started, as the dashboard shows it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliSignIn"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Approves a waiting sign-in. It mints a key of kind `person` in your active organization, named for the computer, that acts as you with your role there, and keeps the key sealed until the CLI collects it. Revoking the key in the keys list signs the computer out. A sign-in that is not waiting answers 404.","summary":"Approve a CLI sign-in","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/cli/sign-ins/{user_code}/deny":{"post":{"tags":["cliSignInApprovals"],"operationId":"cliSignInApprovals.denyCliSignIn","parameters":[{"name":"user_code","in":"path","schema":{"type":"string"},"required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"A sign-in a computer started, as the dashboard shows it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliSignIn"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Denies a waiting sign-in, so the CLI that started it gets no key. A sign-in that is not waiting answers 404.","summary":"Deny a CLI sign-in","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/app-grants/{client_id}/sign-in":{"get":{"tags":["appGrants"],"operationId":"appGrants.readAppSignIn","parameters":[{"name":"client_id","in":"path","schema":{"type":"string","minLength":1},"required":true},{"name":"redirect_uri","in":"query","schema":{"type":"string","minLength":1},"required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"AppSignIn","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSignIn"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads the app a sign-in with Sandcovery names, before anything is shown to you. Answers 404 when no app has that client ID, and 400 when the app did not register `redirect_uri`.","summary":"Read an app sign-in"}},"/api/v1/app-grants/{client_id}":{"put":{"tags":["appGrants"],"operationId":"appGrants.saveAppGrant","parameters":[{"name":"client_id","in":"path","schema":{"type":"string","minLength":1},"required":true}],"security":[{"session":[]}],"responses":{"200":{"description":"AppGrant","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppGrant"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Saves what an app may do for you when you sign in to it with Sandcovery: the organization it acts in, its permissions there, and the sandboxes it reaches. Saving again for the same app replaces the grant and keeps its ID. Answers 403 when you are not a member of the organization, and 400 when a sandbox is not in it. Only an organization admin lets an app create sandboxes.","summary":"Save an app grant","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveAppGrantRequest"}}},"required":true}},"delete":{"tags":["appGrants"],"operationId":"appGrants.revokeAppGrant","parameters":[{"name":"client_id","in":"path","schema":{"type":"string","minLength":1},"required":true}],"security":[{"session":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Removes what an app may do for you. Its tokens stop reaching the organization and the sandboxes it created, and it can attach to no new process. An attach that is already open stays open until it ends. An app you never granted changes nothing and answers 204 too.","summary":"Revoke an app grant","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/credentials":{"get":{"tags":["credentials"],"operationId":"credentials.listProviderCredentials","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"ProviderCredentialList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCredentialList"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists the stored provider credentials, without their fields.","summary":"List provider credentials"}},"/api/v1/credentials/{provider}":{"put":{"tags":["credentials"],"operationId":"credentials.setProviderCredential","parameters":[{"name":"provider","in":"path","schema":{"$ref":"#/components/schemas/Provider"},"required":true}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"A stored provider credential. Sandcovery encrypts it at rest and never returns its fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCredential"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"Sandcovery turned the credential down and stored nothing: a field was empty, a field held a value outside its `choices`, or the provider answered 401, or Railway answered that the project token is not found, when Sandcovery asked which account the credential belongs to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialRejectedError"}}}}},"description":"Stores the organization's credential for one provider, or replaces it in place when the organization holds exactly one for that provider. When it holds more than one, the answer is 409 `conflict`: delete the old credential first, then store the new one. Sandcovery trims spaces around each value. A missing or unknown field answers 400 `invalid_request`. An empty value or a value outside a field's `choices` answers 422 `credential_rejected` with the field it names. For a provider that can tell Sandcovery which account a key belongs to, listed at www.sandcovery.com/docs/billing, Sandcovery asks it before storing the credential, and a 401 from the provider, or Railway's answer that the project token is not found, answers 422 `credential_rejected`. On any other error or no answer, and for every other provider, Sandcovery stores the credential without checking it, so a wrong key is first found when a sandbox create tries it. A Free organization routes one of its own keys per provider. More than one key per provider and Sandcovery CI need Pro or the Enterprise plan. A provider that is coming soon answers 404 with a message that says so, as does a provider Sandcovery does not serve.","summary":"Set a provider credential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialFields"}}},"required":true}},"post":{"tags":["credentials"],"operationId":"credentials.addProviderCredential","parameters":[{"name":"provider","in":"path","schema":{"$ref":"#/components/schemas/Provider"},"required":true}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"201":{"description":"A stored provider credential. Sandcovery encrypts it at rest and never returns its fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCredential"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"422":{"description":"Sandcovery turned the credential down and stored nothing: a field was empty, a field held a value outside its `choices`, or the provider answered 401, or Railway answered that the project token is not found, when Sandcovery asked which account the credential belongs to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialRejectedError"}}}}},"description":"Adds another credential for one provider, such as a second account at that provider. A create tries an organization's credentials for a provider in the order they were added, and falls back to the next one on capacity, quota, a 5xx, or a timeout. Sandcovery trims spaces around each value. A missing or unknown field answers 400 `invalid_request`. An empty value or a value outside a field's `choices` answers 422 `credential_rejected` with the field it names. For a provider that can tell Sandcovery which account a key belongs to, listed at www.sandcovery.com/docs/billing, Sandcovery asks it before storing the credential, and a 401 from the provider, or Railway's answer that the project token is not found, answers 422 `credential_rejected`. On any other error or no answer, and for every other provider, Sandcovery stores the credential without checking it, so a wrong key is first found when a sandbox create tries it. A Free organization routes one of its own keys per provider. More than one key per provider and Sandcovery CI need Pro or the Enterprise plan. So a Free organization that already holds a credential for the provider gets 403 `forbidden`. A provider that is coming soon answers 404 with a message that says so, as does a provider Sandcovery does not serve.","summary":"Add a provider credential","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialFields"}}},"required":true}},"delete":{"tags":["credentials"],"operationId":"credentials.deleteProviderCredential","parameters":[{"name":"provider","in":"path","schema":{"$ref":"#/components/schemas/Provider"},"required":true}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Deletes every credential for one provider. While live sandboxes still use the provider, the answer is 409 `conflict`.","summary":"Delete the credentials of a provider","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/credentials/{provider}/fields/{field}/choices":{"post":{"tags":["credentials"],"operationId":"credentials.listCredentialChoices","parameters":[{"name":"field","in":"path","schema":{"type":"string","minLength":1},"required":true},{"name":"provider","in":"path","schema":{"$ref":"#/components/schemas/Provider"},"required":true}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"CredentialChoices","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialChoices"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"502":{"description":"The sandbox's provider failed the call. `message` carries the provider's reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderError"}}}}},"description":"Lists the values one credential field can take, read from the provider's API with the credential fields filled in so far, for a field whose `listed` is true on the provider board. Sandcovery stores none of the fields it receives. A field that is not listed answers 400 `invalid_request`, as does a credential the provider refuses. 502 `provider_error` carries the provider's reason when it fails the call.","summary":"List the choices of a credential field","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialChoicesRequest"}}},"required":true}}},"/api/v1/credentials/{provider}/{id}":{"delete":{"tags":["credentials"],"operationId":"credentials.deleteOneProviderCredential","parameters":[{"name":"id","in":"path","schema":{"type":"string","pattern":"^cred_[\\s\\S]*?$","description":"Provider credential ID: `cred_` followed by a UUID v7."},"required":true},{"name":"provider","in":"path","schema":{"$ref":"#/components/schemas/Provider"},"required":true}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Deletes one credential of a provider by its ID. The credential stops taking new sandboxes and leaves the list at once. Sandboxes already running on it keep running, and Sandcovery erases it once they have ended and been cleaned up.","summary":"Delete one provider credential","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/offer":{"get":{"tags":["credentials"],"operationId":"credentials.getOffer","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"Free vCPU-seconds on `provider`, which an organization with no credential of its own for `provider` may route to. They belong to the account that owns the organization, the organization's earliest owner, and every organization that account owns draws on them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Offer"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"The offer of Sandcovery's own provider key to this organization's owning account: the stored credentials it counts and the vCPU-seconds used and left. 404 `not_found` while no offer runs.","summary":"Get the offer"}},"/api/v1/offer/x-post":{"post":{"tags":["credentials"],"operationId":"credentials.countXPost","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"Free vCPU-seconds on `provider`, which an organization with no credential of its own for `provider` may route to. They belong to the account that owns the organization, the organization's earliest owner, and every organization that account owns draws on them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Offer"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"429":{"description":"The caller reached a limit on how often this operation runs, and Sandcovery did nothing. Try again at `retry_at`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetryLaterError"}}}}},"description":"Finds the newest post on X that tags @Sandcovery among the last day's posts of the X account linked to the account that owns this organization, counts it as one key of the offer, and answers the offer with it counted. A post counts whatever it says. Sandcovery reads at most the 5 newest posts of that day and leaves reposts out, so check soon after you post. One post counts per account, and one X account counts for one Sandcovery account only, so a check after a post counted, or for an X account that already counted, answers 409 `conflict`, as does an account with no linked X account. 404 `not_found` while no offer runs, while Sandcovery reads no posts on X, or when no post of the last day tags @Sandcovery. Sandcovery counts at most 10 reads of X a UTC day for an organization's checks, 30 seconds apart, and a check past either answers 429 `retry_later` without reading X, with `retry_at` the time the next check may read it. A check whose read fails because X answers 429 or a 5xx status, times out, or drops the connection also answers 429 `retry_later`, with `retry_at` 30 seconds after the check or at X's rate limit reset when that is later, and that read does not count.","summary":"Count your post on X toward the offer","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/billing":{"get":{"tags":["billing"],"operationId":"billing.getBilling","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"Billing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Billing"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads the plan, the Pro and Enterprise prices, whether a GitHub Enterprise owns a connected GitHub account, the credit balance, whether credits are on sale, and auto top-up. Answers 404 while billing is not set up.","summary":"Get billing"}},"/api/v1/billing/credits":{"post":{"tags":["billing"],"operationId":"billing.buyCredits","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"201":{"description":"CreditCheckout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditCheckout"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Starts a Stripe Checkout payment for credits at face value. Answers 404 while credits are not on sale.","summary":"Buy credits","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPurchaseRequest"}}},"required":true}}},"/api/v1/billing/subscription":{"post":{"tags":["billing"],"operationId":"billing.startSubscription","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"201":{"description":"SubscriptionCheckout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCheckout"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Starts a Stripe Checkout subscription for Pro or the Enterprise plan. Answers 404 while billing or that plan is not on sale, 403 when an organization owned by a GitHub Enterprise asks for Pro, and 409 when it already holds a plan, whether Stripe or GitHub Marketplace bills it.","summary":"Start a plan subscription","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCheckoutRequest"}}},"required":true}}},"/api/v1/billing/portal":{"post":{"tags":["billing"],"operationId":"billing.openBillingPortal","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"BillingPortalSession","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPortalSession"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Opens a Stripe billing portal session for the organization to manage its subscription, payment method, and invoices. Answers 404 while billing is not set up or the organization has no Stripe customer.","summary":"Open billing portal","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/billing/auto-top-up":{"put":{"tags":["billing"],"operationId":"billing.setAutoTopUp","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"AutoTopUpChange","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoTopUpChange"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Sets the auto top-up threshold and amount. While auto top-up is on, they apply at once. While it is off, the answer carries a Stripe Checkout page that saves a card and then turns auto top-up on with them, starting a fresh run of charges. Answers 400 for a threshold at or above the credit one top-up adds, and 404 while credits are not on sale.","summary":"Set auto top-up","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoTopUpRequest"}}},"required":true}},"delete":{"tags":["billing"],"operationId":"billing.stopAutoTopUp","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"Auto top-up: while it is on, each time the credit balance falls below the threshold, the saved card is charged the amount once, off session, and the credit, the amount less the processing fee of 2.9% plus 30 cents, arrives once Stripe confirms the charge. It charges only while credits are on sale, and a failed charge turns it off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoTopUp"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Turns auto top-up off, so the saved card is charged no more. A charge Stripe is still processing adds its credit once it succeeds. Answers 404 while billing is not set up.","summary":"Stop auto top-up","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/ci/jobs":{"get":{"tags":["ciJobs"],"operationId":"ciJobs.listCiJobs","parameters":[{"name":"cursor","in":"query","schema":{"type":"string","description":"`next_cursor` from the previous page."},"required":false},{"name":"limit","in":"query","schema":{"type":"string","description":"Page size from 1 to 100. Defaults to 20."},"required":false}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"CiJobList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CiJobList"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists the organization's CI jobs, newest first: each GitHub Actions job that asked for a Sandcovery runner label in a repository of a linked GitHub installation.","summary":"List CI jobs"}},"/api/v1/ci/jobs/{job_id}":{"get":{"tags":["ciJobs"],"operationId":"ciJobs.getCiJob","parameters":[{"name":"job_id","in":"path","schema":{"type":"string","pattern":"^cij_[\\s\\S]*?$","description":"CI job ID: `cij_` followed by a UUID v7."},"required":true}],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"A GitHub Actions job that asked for a Sandcovery runner label in a repository of a linked GitHub installation, in one shape per `status`: `queued` until a runner takes it, `in_progress` while it runs, and `completed` once it ends. `started_at` and `wait_ms` are null while it is `queued`, and `completed_at`, `conclusion`, `duration_ms` and `github_hosted_cost_micro_usd` are null until it is `completed`. Money is at list price, and the provider bills your own account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CiJob"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads one CI job.","summary":"Get a CI job"}},"/api/v1/ci/providers":{"get":{"tags":["ciJobs"],"operationId":"ciJobs.listCiProviders","parameters":[],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"The providers CI jobs run on and the organization plan. CI refuses every job of a `free` organization, so `data` is empty on `free`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CiProviderList"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists every provider the organization can run CI jobs on right now, on its own provider account, on its free or sponsored vCPUh, or on Sandcovery capacity paid from credits, with how a job treats each one. It applies a job's routing gates: only providers the linked installations' API keys allow, and credit providers only while the credit balance is above zero. With several installations it lists every provider any of their keys allows. A Free plan organization, whose jobs CI refuses, gets an empty list. A job asks for a size, not a provider: it tries ready providers first and falls back to the others only when no ready provider takes it.","summary":"List CI providers"}},"/api/v1/ci/accounts":{"get":{"tags":["ciJobs"],"operationId":"ciJobs.listCiAccounts","parameters":[],"security":[{"apiKey":[]},{"session":[]}],"responses":{"200":{"description":"CiAccountList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CiAccountList"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists the names of the GitHub organizations and personal accounts linked to Sandcovery CI, oldest link first, so every member can see whether CI is set up. Admins read the full links under CI installations.","summary":"List linked CI accounts"}},"/api/v1/ci/installations":{"get":{"tags":["ciInstallations"],"operationId":"ciInstallations.listCiInstallations","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"CiInstallationList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CiInstallationList"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Lists the GitHub installations of the Sandcovery CI GitHub App linked to the organization.","summary":"List CI installations"}},"/api/v1/ci/installations/{installation_id}":{"delete":{"tags":["ciInstallations"],"operationId":"ciInstallations.unlinkCiInstallation","parameters":[{"name":"installation_id","in":"path","schema":{"type":"string","description":"GitHub's installation ID."},"required":true}],"security":[{"managementKey":[]},{"session":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Unlinks a GitHub installation, so its jobs start no more runners. A runner already started ends when its job completes or at its TTL. The GitHub App stays installed until you uninstall it on GitHub.","summary":"Unlink a CI installation","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/x-account":{"get":{"tags":["xAccount"],"operationId":"xAccount.getXAccount","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"200":{"description":"The X account linked to you.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XAccountStatus"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Reads the X account linked to you, with its ID and handle.","summary":"Get the X account"},"post":{"tags":["xAccount"],"operationId":"xAccount.linkXAccount","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"201":{"description":"Where to finish linking an X account, since X confirms it in the browser.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/XAccountLink"}}}},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"409":{"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Answers the dashboard account page where you connect X through Clerk, since X confirms the link in the browser. Linking asks X only to read your X profile and posts. Answers 409 while one is linked to you.","summary":"Link an X account","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}},"delete":{"tags":["xAccount"],"operationId":"xAccount.unlinkXAccount","parameters":[],"security":[{"managementKey":[]},{"session":[]}],"responses":{"204":{"description":"<No Content>"},"401":{"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedError"}}}},"403":{"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenError"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"Unlinks the X account linked to you, which removes it and its X token from your Clerk account. Answers 404 while none is linked.","summary":"Unlink the X account","requestBody":{"content":{"application/json":{"schema":{"type":"null"}}},"required":true}}},"/api/v1/providers":{"get":{"tags":["providers"],"operationId":"providers.listProviders","parameters":[{"name":"os","in":"query","schema":{"type":"string","enum":["linux","windows","macos"],"description":"Keeps only providers that run this operating system, for sandboxes or for CI runners."},"required":false}],"security":[],"responses":{"200":{"description":"ProviderBoard","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderBoard"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"The public provider board: status, uptime, create latency, prices, and features of each provider. With `os`, it lists only providers whose sandboxes run that operating system.","summary":"List providers"}},"/api/v1/providers/{provider}":{"get":{"tags":["providers"],"operationId":"providers.getProvider","parameters":[{"name":"provider","in":"path","schema":{"$ref":"#/components/schemas/Provider"},"required":true}],"security":[],"responses":{"200":{"description":"One provider on the public provider board.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderBoardEntry"}}}},"404":{"description":"The resource the path names does not exist or belongs to another organization or key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"One provider on the public provider board. A provider that is coming soon answers 404 with a message that says so, and its facts are in the catalog.","summary":"Get a provider"}},"/api/v1/catalog":{"get":{"tags":["providers"],"operationId":"providers.listCatalog","parameters":[{"name":"os","in":"query","schema":{"type":"string","enum":["linux","windows","macos"],"description":"Keeps only providers that run this operating system, for sandboxes or for CI runners."},"required":false}],"security":[],"responses":{"200":{"description":"ProviderCatalog","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderCatalog"}}}},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}}},"description":"The sandbox provider catalog: every provider Sandcovery routes to and every provider coming soon, each with what Sandcovery measured and with the prices, limits, capabilities, operating systems, regions, and policy its public pages state, every fact beside the page it was read from. With `os`, it lists only providers that run that operating system for sandboxes or for CI runners.","summary":"List the provider catalog"}},"/api/v1/problem-reports":{"post":{"tags":["problemReports"],"operationId":"problemReports.reportProblem","parameters":[],"security":[],"responses":{"204":{"description":"<No Content>"},"400":{"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"413":{"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BodyTooLargeError"}}}},"429":{"description":"The caller sent this operation more requests than its limit allows, such as more than 3 problem reports a minute. Wait a minute and try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitedError"}}}}},"description":"Sends a problem report to the Sandcovery team, who track it as an issue. Takes 3 reports a minute from one network address, or from one person's agents, and answers 429 past that.","summary":"Report a problem","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemReportRequest"}}},"required":true}}}},"components":{"schemas":{"BodyTooLargeError":{"type":"object","properties":{"error":{"type":"string","enum":["body_too_large"]},"message":{"type":"string"}},"required":["error","message"],"additionalProperties":false,"description":"The request body is larger than the operation accepts. The API answers before it reads the whole body."},"RateLimitedError":{"type":"object","properties":{"error":{"type":"string","enum":["rate_limited"]},"message":{"type":"string"}},"required":["error","message"],"additionalProperties":false,"description":"The caller sent this operation more requests than its limit allows, such as more than 3 problem reports a minute. Wait a minute and try again."},"InvalidRequestError":{"type":"object","properties":{"error":{"type":"string","enum":["invalid_request"]},"message":{"type":"string"}},"required":["error","message"],"additionalProperties":false,"description":"The path, query, headers, or body do not decode against the operation, or contradict each other, and `message` names the failure."},"ProblemReportRequest":{"type":"object","properties":{"message":{"type":"string","maxLength":2000,"description":"What went wrong, in at most 2000 characters with at least one visible one. The report keeps the trimmed text, and its first line, cut to 80 characters, is the report's title."},"path":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"The Sandcovery page the problem is on, as a path such as `/pricing`, in at most 200 characters, or null when it is on no page.","default":null}},"required":["message"],"additionalProperties":false},"ProviderCatalog":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCatalogEntry"}}},"required":["data"],"additionalProperties":false},"ProviderCatalogEntry":{"anyOf":[{"type":"object","properties":{"adapter_source_urls":{"type":"array","items":{"type":"string"},"description":"The provider's public pages that Sandcovery's adapter for it was written from, which every fact with a null `source_url` traces to. Empty for a provider with no adapter."},"benchmarks":{"anyOf":[{"$ref":"#/components/schemas/ProviderBenchmarkRun"},{"type":"null"}],"description":"The latest weekly CPU, memory, and disk benchmark of the provider, or null when Sandcovery publishes no benchmark of it, because its terms bar publishing one, because they set a condition the published method does not meet, or because no run has finished yet."},"billing":{"anyOf":[{"$ref":"#/components/schemas/CatalogText"},{"type":"null"}],"description":"The unit the provider bills a sandbox in, such as per second or per session-hour."},"brand":{"$ref":"#/components/schemas/ProviderCatalogEntryBrand"},"capabilities":{"$ref":"#/components/schemas/ProviderCatalogEntryCapabilities"},"create_latency_ms":{"$ref":"#/components/schemas/ProviderCatalogEntryCreateLatencyMs"},"credential_fields":{"type":"array","items":{"$ref":"#/components/schemas/CredentialField"},"description":"The fields a credential for this provider takes. Empty for a provider that is coming soon."},"disk_price":{"anyOf":[{"$ref":"#/components/schemas/ProviderCatalogEntryDiskPrice"},{"type":"null"}],"description":"The provider's disk price from its rate card, or null when the rate card records none."},"docs_only_adapter":{"type":"boolean","description":"True when Sandcovery routes to the provider through an adapter written from the provider's public docs alone. Sandcovery has not run that adapter against the provider's service and runs no probe there, so `measurement` is `not_measured`."},"egress_modes":{"anyOf":[{"$ref":"#/components/schemas/CatalogList"},{"type":"null"}],"description":"The egress policy modes the provider can enforce, such as `allow_all`, `allowlist`, or `deny_all`."},"gpus":{"anyOf":[{"$ref":"#/components/schemas/CatalogGpus"},{"type":"null"}]},"incidents":{"anyOf":[{"$ref":"#/components/schemas/VendorIncidentRead"},{"type":"null"}],"description":"Incidents the provider's own status page reports, read every 5 minutes, or null when Sandcovery reads no status feed of the provider. A provider whose `status_url` is null publishes no status page."},"limits":{"$ref":"#/components/schemas/ProviderCatalogEntryLimits"},"links":{"$ref":"#/components/schemas/ProviderCatalogEntryLinks"},"live_checks":{"type":"array","items":{"$ref":"#/components/schemas/LiveCheckResult"},"description":"The latest result of each live check against the provider's service from Sandcovery's own account, one per check that has run. Empty for a provider Sandcovery runs no live check on, such as one coming soon or one it routes to through an adapter written from the provider's docs alone."},"measured_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When the uptime and create latency were last rolled up, or null when Sandcovery has measured none."},"measurement":{"type":"string","enum":["measured"]},"name":{"type":"string"},"operating_systems":{"$ref":"#/components/schemas/ProviderCatalogEntryOperatingSystems"},"policy":{"$ref":"#/components/schemas/ProviderCatalogEntryPolicy"},"prices":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCatalogEntryPricesItem"},"description":"Price per hour of each standard size, then of each other size the provider runs, such as `2x0.5`, from the provider's vCPU and memory rates or a monthly plan spread over a 730-hour month. `hourly_micro_usd` is null when the provider does not run the size or its pages give no rate that prices it."},"provider":{"$ref":"#/components/schemas/Provider"},"rates":{"anyOf":[{"$ref":"#/components/schemas/ProviderCatalogEntryRates"},{"type":"null"}],"description":"Price of one vCPU and of one GiB of memory for an hour, or null when the provider prices no such unit. `basis` says whether the provider bills use at these rates or they spread a monthly plan over a 730-hour month."},"regions":{"anyOf":[{"$ref":"#/components/schemas/CatalogList"},{"type":"null"}],"description":"Where a sandbox can run: coarse `Region` names for a provider Sandcovery routes to, and the region names on the provider's page otherwise."},"routed":{"type":"boolean","description":"Whether Sandcovery routes sandboxes to the provider. `false` means the provider is coming soon: Sandcovery does not route to it yet. `true` includes a provider whose adapter is written from its public docs alone and not run against its service, which `docs_only_adapter` marks."},"sizes":{"anyOf":[{"$ref":"#/components/schemas/CatalogText"},{"type":"null"}],"description":"The sizes a sandbox comes in, each named `<vCPU>x<memory GiB>`, or a note that any size within the limits runs."},"status":{"$ref":"#/components/schemas/ProviderStatus"},"uptime":{"$ref":"#/components/schemas/ProviderCatalogEntryUptime"}},"required":["adapter_source_urls","benchmarks","billing","brand","capabilities","create_latency_ms","credential_fields","disk_price","docs_only_adapter","egress_modes","gpus","incidents","limits","links","live_checks","measured_at","measurement","name","operating_systems","policy","prices","provider","rates","regions","routed","sizes","status","uptime"],"additionalProperties":false},{"type":"object","properties":{"adapter_source_urls":{"type":"array","items":{"type":"string"},"description":"The provider's public pages that Sandcovery's adapter for it was written from, which every fact with a null `source_url` traces to. Empty for a provider with no adapter."},"benchmarks":{"anyOf":[{"$ref":"#/components/schemas/ProviderBenchmarkRun"},{"type":"null"}],"description":"The latest weekly CPU, memory, and disk benchmark of the provider, or null when Sandcovery publishes no benchmark of it, because its terms bar publishing one, because they set a condition the published method does not meet, or because no run has finished yet."},"billing":{"anyOf":[{"$ref":"#/components/schemas/CatalogText"},{"type":"null"}],"description":"The unit the provider bills a sandbox in, such as per second or per session-hour."},"brand":{"$ref":"#/components/schemas/ProviderCatalogEntryBrand"},"capabilities":{"$ref":"#/components/schemas/ProviderCatalogEntryCapabilities"},"create_latency_ms":{"type":"object","properties":{"p50":{"type":"null"},"p95":{"type":"null"}},"required":["p50","p95"],"additionalProperties":false,"description":"Null, since Sandcovery runs no probe on the provider."},"credential_fields":{"type":"array","items":{"$ref":"#/components/schemas/CredentialField"},"description":"The fields a credential for this provider takes. Empty for a provider that is coming soon."},"disk_price":{"anyOf":[{"$ref":"#/components/schemas/ProviderCatalogEntryDiskPrice"},{"type":"null"}],"description":"The provider's disk price from its rate card, or null when the rate card records none."},"docs_only_adapter":{"type":"boolean","description":"True when Sandcovery routes to the provider through an adapter written from the provider's public docs alone. Sandcovery has not run that adapter against the provider's service and runs no probe there, so `measurement` is `not_measured`."},"egress_modes":{"anyOf":[{"$ref":"#/components/schemas/CatalogList"},{"type":"null"}],"description":"The egress policy modes the provider can enforce, such as `allow_all`, `allowlist`, or `deny_all`."},"gpus":{"anyOf":[{"$ref":"#/components/schemas/CatalogGpus"},{"type":"null"}]},"incidents":{"anyOf":[{"$ref":"#/components/schemas/VendorIncidentRead"},{"type":"null"}],"description":"Incidents the provider's own status page reports, read every 5 minutes, or null when Sandcovery reads no status feed of the provider. A provider whose `status_url` is null publishes no status page."},"limits":{"$ref":"#/components/schemas/ProviderCatalogEntryLimits"},"links":{"$ref":"#/components/schemas/ProviderCatalogEntryLinks"},"live_checks":{"type":"array","items":{"$ref":"#/components/schemas/LiveCheckResult"},"description":"The latest result of each live check against the provider's service from Sandcovery's own account, one per check that has run. Empty for a provider Sandcovery runs no live check on, such as one coming soon or one it routes to through an adapter written from the provider's docs alone."},"measured_at":{"type":"null"},"measurement":{"type":"string","enum":["not_measured"]},"name":{"type":"string"},"operating_systems":{"$ref":"#/components/schemas/ProviderCatalogEntryOperatingSystems"},"policy":{"$ref":"#/components/schemas/ProviderCatalogEntryPolicy"},"prices":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCatalogEntryPricesItem"},"description":"Price per hour of each standard size, then of each other size the provider runs, such as `2x0.5`, from the provider's vCPU and memory rates or a monthly plan spread over a 730-hour month. `hourly_micro_usd` is null when the provider does not run the size or its pages give no rate that prices it."},"provider":{"$ref":"#/components/schemas/Provider"},"rates":{"anyOf":[{"$ref":"#/components/schemas/ProviderCatalogEntryRates"},{"type":"null"}],"description":"Price of one vCPU and of one GiB of memory for an hour, or null when the provider prices no such unit. `basis` says whether the provider bills use at these rates or they spread a monthly plan over a 730-hour month."},"regions":{"anyOf":[{"$ref":"#/components/schemas/CatalogList"},{"type":"null"}],"description":"Where a sandbox can run: coarse `Region` names for a provider Sandcovery routes to, and the region names on the provider's page otherwise."},"routed":{"type":"boolean","description":"Whether Sandcovery routes sandboxes to the provider. `false` means the provider is coming soon: Sandcovery does not route to it yet. `true` includes a provider whose adapter is written from its public docs alone and not run against its service, which `docs_only_adapter` marks."},"sizes":{"anyOf":[{"$ref":"#/components/schemas/CatalogText"},{"type":"null"}],"description":"The sizes a sandbox comes in, each named `<vCPU>x<memory GiB>`, or a note that any size within the limits runs."},"status":{"$ref":"#/components/schemas/ProviderStatus"},"uptime":{"$ref":"#/components/schemas/ProviderCatalogEntryUptime"}},"required":["adapter_source_urls","benchmarks","billing","brand","capabilities","create_latency_ms","credential_fields","disk_price","docs_only_adapter","egress_modes","gpus","incidents","limits","links","live_checks","measured_at","measurement","name","operating_systems","policy","prices","provider","rates","regions","routed","sizes","status","uptime"],"additionalProperties":false}],"description":"One sandbox provider in the catalog: what Sandcovery measured, and what the provider's public pages state, in one shape per `measurement`. It is `measured` when Sandcovery publishes probe results for the provider, and `measured_at` and `create_latency_ms` are null there until a probe has run. It is `not_measured` when Sandcovery runs no probe there, and both are null. A null fact means those pages do not state it."},"ProviderCatalogEntryUptime":{"type":"object","properties":{"last_15_minutes":{"anyOf":[{"type":"number","minimum":0,"maximum":1,"description":"A share from 0 to 1."},{"type":"null"}]},"last_24_hours":{"anyOf":[{"type":"number","minimum":0,"maximum":1,"description":"A share from 0 to 1."},{"type":"null"}]},"last_7_days":{"anyOf":[{"type":"number","minimum":0,"maximum":1,"description":"A share from 0 to 1."},{"type":"null"}]}},"required":["last_15_minutes","last_24_hours","last_7_days"],"additionalProperties":false,"description":"Share of probes that succeeded in each window, or null unless `measurement` is `measured` and a probe has run. Sandcovery probes each provider once an hour, so `last_15_minutes` holds the last probe and is null once `measured_at` is more than 15 minutes old."},"ProviderStatus":{"type":"string","enum":["degraded","down","operational","unknown"],"description":"How the provider is doing over the last hour. Sandcovery probes each provider it holds a key for once an hour with one call to its API that creates nothing, so a probe shows the provider answers Sandcovery's key, not that a sandbox starts. It counts each probe together with each sandbox create it sent the provider in that hour, whether the request named the provider or Sandcovery chose it. With at least one probe or 3 creates, it is `operational` when 95% or more of them succeeded, `degraded` when fewer did, and `down` when none did, and with fewer than 3 creates the status feed below lowers it when the feed reports worse. A probe or create that failed for a reason the provider did not cause, such as a quota, a refused key, or a rejected request, does not count. With no probe and fewer than 3 creates, it follows the provider's own status feed in `incidents`: `down` during an active `major` or `critical` incident, `degraded` during another active `minor` incident, and `operational` otherwise. It is `unknown` when Sandcovery reads no status feed of the provider or last read it more than 30 minutes ago."},"CatalogText":{"type":"object","properties":{"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A sentence that qualifies the value, or null."},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The provider's public page that states the value, or null when the value comes from Sandcovery's own adapter for the provider, whose pages are `adapter_source_urls`."},"value":{"type":"string"}},"required":["detail","source_url","value"],"additionalProperties":false,"description":"A short fact about a provider and where it was read."},"CatalogList":{"type":"object","properties":{"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A sentence that qualifies the value, or null."},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The provider's public page that states the value, or null when the value comes from Sandcovery's own adapter for the provider, whose pages are `adapter_source_urls`."},"value":{"type":"array","items":{"type":"string"}}},"required":["detail","source_url","value"],"additionalProperties":false,"description":"A list of names about a provider and where it was read."},"ProviderCatalogEntryRates":{"type":"object","properties":{"as_of":{"type":"string","format":"date-time","description":"When the rates took effect on a provider Sandcovery routes to, and when the pricing page was read otherwise."},"basis":{"$ref":"#/components/schemas/RateCardBasis"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}]},"memory_gib_hour_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},"source_url":{"type":"string"},"vcpu_hour_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."}},"required":["as_of","basis","detail","memory_gib_hour_micro_usd","source_url","vcpu_hour_micro_usd"],"additionalProperties":false},"RateCardBasis":{"type":"string","enum":["usage","monthly_plan"],"description":"How the provider charges for the prices on its rate card: `usage` when it bills use at those prices, and `monthly_plan` when it charges a flat monthly plan, which the rate card spreads over a 730-hour month."},"Provider":{"type":"string","minLength":1,"description":"A provider name of lowercase letters, digits, and hyphens. The API adds providers over time, so a client accepts any such name and the API refuses one it does not serve.","examples":["daytona","depot","e2b","upstash"]},"ProviderCatalogEntryPricesItem":{"type":"object","properties":{"hourly_micro_usd":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},{"type":"null"}]},"offered":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the provider runs the size, or null when its pages do not say which sizes a sandbox takes."},"size":{"$ref":"#/components/schemas/StandardSize"}},"required":["hourly_micro_usd","offered","size"],"additionalProperties":false},"StandardSize":{"type":"string","minLength":1,"description":"A standard size named `<vCPU>x<memory GiB>`, such as `1x2`, `2x4`, `4x8`, or `8x16`. The API adds sizes over time.","examples":["1x2","2x4","4x8","8x16"]},"ProviderCatalogEntryPolicy":{"type":"object","properties":{"benchmark_terms":{"$ref":"#/components/schemas/CatalogBenchmarkTerms"},"brand_terms":{"$ref":"#/components/schemas/CatalogBrandTerms"},"compliance":{"anyOf":[{"$ref":"#/components/schemas/SecurityList"},{"type":"null"}],"description":"The audits and certifications the provider states, or null when its pages state none."},"data_location":{"anyOf":[{"$ref":"#/components/schemas/SecurityText"},{"type":"null"}],"description":"Where the provider says customer data sits, or null when its pages do not say."},"free_allowance":{"anyOf":[{"$ref":"#/components/schemas/CatalogText"},{"type":"null"}],"description":"The free usage or credit the provider states."},"isolation":{"anyOf":[{"$ref":"#/components/schemas/SecurityText"},{"type":"null"}],"description":"How the provider isolates one sandbox from another, or null when its pages do not say."},"payment_required":{"anyOf":[{"$ref":"#/components/schemas/CatalogFlag"},{"type":"null"}],"description":"Whether an account needs a payment method before it starts a sandbox."},"plan_required":{"anyOf":[{"$ref":"#/components/schemas/CatalogFlag"},{"type":"null"}],"description":"Whether an account needs a paid plan before it starts a sandbox."},"read_at":{"type":"string","format":"date-time","description":"The UTC day the provider's pages were read. Each security fact carries its own `read_at`, which is later for a fact read again since."},"sla":{"anyOf":[{"$ref":"#/components/schemas/CatalogText"},{"type":"null"}],"description":"The uptime commitment the provider states."}},"required":["benchmark_terms","brand_terms","compliance","data_location","free_allowance","isolation","payment_required","plan_required","read_at","sla"],"additionalProperties":false,"description":"What the provider's terms and public pages state. A null fact means those pages do not state it."},"CatalogFlag":{"type":"object","properties":{"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A sentence that qualifies the value, or null."},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The provider's public page that states the value, or null when the value comes from Sandcovery's own adapter for the provider, whose pages are `adapter_source_urls`."},"value":{"type":"boolean"}},"required":["detail","source_url","value"],"additionalProperties":false,"description":"A yes or no fact about a provider and where it was read."},"SecurityText":{"type":"object","properties":{"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A sentence that qualifies the value, or null."},"read_at":{"type":"string","format":"date-time","description":"The UTC day Sandcovery read the provider's page."},"source_changed_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When Sandcovery's daily check first found the visible text of `source_url` changed since its first check after `read_at`, or null while it reads the same, so a non-null value means the fact may be out of date."},"source_url":{"type":"string","description":"The provider's public page that states the value."},"value":{"type":"string"}},"required":["detail","read_at","source_changed_at","source_url","value"],"additionalProperties":false,"description":"A security fact a provider states, with the page and the day it was read."},"SecurityList":{"type":"object","properties":{"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A sentence that qualifies the value, or null."},"read_at":{"type":"string","format":"date-time","description":"The UTC day Sandcovery read the provider's page."},"source_changed_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When Sandcovery's daily check first found the visible text of `source_url` changed since its first check after `read_at`, or null while it reads the same, so a non-null value means the fact may be out of date."},"source_url":{"type":"string","description":"The provider's public page that states the value."},"value":{"type":"array","items":{"type":"string"}}},"required":["detail","read_at","source_changed_at","source_url","value"],"additionalProperties":false,"description":"A list of names a provider states, with the page and the day it was read."},"CatalogBrandTerms":{"type":"object","properties":{"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A sentence that qualifies the value, or null."},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The provider's public page that states the value, or null when the value comes from Sandcovery's own adapter for the provider, whose pages are `adapter_source_urls`."},"value":{"type":"string","enum":["barred","conditional","no_bar_found"]}},"required":["detail","source_url","value"],"additionalProperties":false,"description":"What the provider's terms or brand page say about showing its logo and favicon: `barred` when they need the provider's permission first, `conditional` when they allow it under a condition that `detail` states, and `no_bar_found` when a reading of the terms found no such clause."},"CatalogBenchmarkTerms":{"type":"object","properties":{"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A sentence that qualifies the value, or null."},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The provider's public page that states the value, or null when the value comes from Sandcovery's own adapter for the provider, whose pages are `adapter_source_urls`."},"value":{"type":"string","enum":["barred","conditional","no_bar_found"]}},"required":["detail","source_url","value"],"additionalProperties":false,"description":"What the provider's terms say about publishing benchmarks of its service: `barred` when they forbid it, `conditional` when they allow it under a condition that `detail` states, and `no_bar_found` when a reading of the terms found no such clause."},"ProviderCatalogEntryOperatingSystems":{"type":"object","properties":{"ci_runner":{"anyOf":[{"$ref":"#/components/schemas/CatalogOperatingSystems"},{"type":"null"}],"description":"The operating systems of the CI runners a job can get. For a provider Sandcovery routes to, it is where Sandcovery CI starts a GitHub Actions runner, or empty when it cannot start one there, with the reason in `detail`. For a provider that is coming soon, it is the provider's own hosted runners."},"sandbox":{"anyOf":[{"$ref":"#/components/schemas/CatalogOperatingSystems"},{"type":"null"}],"description":"The operating systems of the sandboxes or virtual machines an API call can start."}},"required":["ci_runner","sandbox"],"additionalProperties":false,"description":"The operating systems the provider runs, for sandboxes and for CI runners. A null list means the provider does not state it."},"CatalogOperatingSystems":{"type":"object","properties":{"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A sentence that qualifies the value, or null."},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The provider's public page that states the value, or null when the value comes from Sandcovery's own adapter for the provider, whose pages are `adapter_source_urls`."},"value":{"type":"array","items":{"$ref":"#/components/schemas/OperatingSystem"}}},"required":["detail","source_url","value"],"additionalProperties":false,"description":"The operating systems a provider runs and where the list was read. For a provider Sandcovery routes to, it is what Sandcovery starts there."},"OperatingSystem":{"type":"string","minLength":1,"description":"An operating system a sandbox or CI runner runs: `linux`, `windows`, or `macos`. The API adds operating systems over time.","examples":["linux","windows","macos"]},"LiveCheckResult":{"type":"object","properties":{"check":{"type":"string","minLength":1,"description":"The check, such as `exec`, `snapshot_create`, or `region_eu`. The API adds checks over time.","examples":["exec","snapshot_create","region_eu"]},"checked_at":{"type":"string","format":"date-time","description":"When the check finished."},"result":{"$ref":"#/components/schemas/LiveCheckOutcome"},"account_limit":{"anyOf":[{"$ref":"#/components/schemas/AccountLimit"},{"type":"null"}],"description":"Why a `failed` check failed on Sandcovery's own account rather than for every account, when the provider gates the check behind a plan, tier, or access the account lacks. `null` otherwise."}},"required":["check","checked_at","result","account_limit"],"additionalProperties":false,"description":"The latest result of one live check against the provider's service from Sandcovery's own account."},"AccountLimit":{"type":"object","properties":{"detail":{"type":"string","minLength":1,"description":"What the provider withholds from Sandcovery's account, and what plan, tier, or access lifts it."},"source_url":{"type":"string","minLength":1,"description":"The provider's page that states the limit."}},"required":["detail","source_url"],"additionalProperties":false,"description":"A limit of Sandcovery's own account on the provider, such as its plan, tier, or preview access, that made a check fail."},"LiveCheckOutcome":{"type":"string","enum":["passed","failed","not_offered"],"description":"`passed` when the provider did what the check asks, `failed` when it did not, and `not_offered` when Sandcovery does not offer it on the provider, so its adapter refused it as `unsupported` before sending the provider any request."},"ProviderCatalogEntryLinks":{"type":"object","properties":{"docs_url":{"type":"string"},"home_url":{"type":"string"},"pricing_url":{"type":"string"},"security_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"status_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"terms_url":{"type":"string"}},"required":["docs_url","home_url","pricing_url","security_url","status_url","terms_url"],"additionalProperties":false,"description":"The provider's own public pages."},"ProviderCatalogEntryLimits":{"type":"object","properties":{"max_disk_mib":{"anyOf":[{"$ref":"#/components/schemas/CatalogLimit"},{"type":"null"}]},"max_memory_mib":{"anyOf":[{"$ref":"#/components/schemas/CatalogLimit"},{"type":"null"}]},"max_ttl_seconds":{"anyOf":[{"$ref":"#/components/schemas/CatalogLimit"},{"type":"null"}]},"max_vcpu":{"anyOf":[{"$ref":"#/components/schemas/CatalogLimit"},{"type":"null"}]}},"required":["max_disk_mib","max_memory_mib","max_ttl_seconds","max_vcpu"],"additionalProperties":false,"description":"The most one sandbox can get. For a provider Sandcovery routes to, each is the most Sandcovery starts there, and `max_disk_mib` is null when its adapter takes no disk size."},"CatalogLimit":{"type":"object","properties":{"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A sentence that qualifies the value, or null."},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The provider's public page that states the value, or null when the value comes from Sandcovery's own adapter for the provider, whose pages are `adapter_source_urls`."},"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["detail","source_url","value"],"additionalProperties":false,"description":"A ceiling and where it was read. A null `value` means the provider states that it sets no such ceiling."},"VendorIncidentRead":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/VendorIncident"},"description":"Active incidents first, then those resolved in the last 7 days, each group newest first."},"read_at":{"type":"string","format":"date-time","description":"When Sandcovery last read the feed."},"source_url":{"type":"string","minLength":1,"description":"The provider's public status feed Sandcovery reads."}},"required":["data","read_at","source_url"],"additionalProperties":false,"description":"The last read of a provider status feed."},"VendorIncident":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"The incident's ID on the provider's status page."},"impact":{"$ref":"#/components/schemas/IncidentImpact"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When the provider marked the incident resolved, or null while it is active."},"started_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"title":{"type":"string","minLength":1},"url":{"type":"string","minLength":1,"description":"The incident's page on the provider's status page."}},"required":["id","impact","resolved_at","started_at","title","url"],"additionalProperties":false,"description":"One incident from the provider's own status page."},"IncidentImpact":{"type":"string","enum":["none","minor","major","critical","maintenance"],"description":"The impact the provider states, on the Atlassian Statuspage scale: `none`, `minor`, `major`, or `critical`, or `maintenance` for planned work."},"CatalogGpus":{"type":"object","properties":{"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A sentence that qualifies the value, or null."},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The provider's public page that states the value, or null when the value comes from Sandcovery's own adapter for the provider, whose pages are `adapter_source_urls`."},"value":{"type":"array","items":{"type":"object","properties":{"hourly_micro_usd":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},{"type":"null"}],"description":"List price per hour of one GPU, or null when the provider publishes none."},"name":{"type":"string","description":"The GPU's name: a `GpuType` for a provider Sandcovery routes to, and the name on the provider's page otherwise."}},"required":["hourly_micro_usd","name"],"additionalProperties":false}}},"required":["detail","source_url","value"],"additionalProperties":false,"description":"The GPUs a sandbox can get and where the list was read. Empty when Sandcovery starts no GPU sandbox on a provider it routes to."},"ProviderCatalogEntryDiskPrice":{"type":"object","properties":{"detail":{"anyOf":[{"type":"string"},{"type":"null"}]},"gb_month_micro_usd":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},{"type":"null"}],"description":"Price of one GB of disk for a 730-hour month, converted from the unit the provider bills, or null unless `kind` is `priced`."},"kind":{"$ref":"#/components/schemas/DiskPriceKind"},"source_url":{"type":"string"}},"required":["detail","gb_month_micro_usd","kind","source_url"],"additionalProperties":false},"DiskPriceKind":{"type":"string","enum":["priced","included","unpublished"],"description":"`priced` when the provider publishes a disk price, `included` when disk comes with the instance or plan price, and `unpublished` when its pages give no disk price."},"CredentialField":{"type":"object","properties":{"choices":{"type":"array","items":{"$ref":"#/components/schemas/CredentialChoice"},"description":"The values the field takes, from the provider's own documented list, such as its regions. Empty when the field takes any text."},"help":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"One line on where to find the value, from the provider's setup page in the Sandcovery docs, or null when the page doesn't say."},"label":{"type":"string","minLength":1,"description":"The field name to show a person, such as \"API key\"."},"listed":{"type":"boolean","description":"Whether Sandcovery lists this field's values from the provider's API once the fields before it are filled in, through `POST /api/v1/credentials/{provider}/fields/{field}/choices`, so a person picks one instead of typing it."},"name":{"type":"string","minLength":1,"description":"The key of the field in `PUT /api/v1/credentials/{provider}`, such as `team_id`."},"preselected":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The choice to start with, the one most people pick, or null when the field starts empty."},"required":{"type":"boolean","description":"Whether a credential must carry the field. A field that is not required takes `preselected` when it is left out."},"secret":{"type":"boolean","description":"Whether to mask the value while it is typed."}},"required":["choices","help","label","listed","name","preselected","required","secret"],"additionalProperties":false,"description":"One field of a provider credential."},"CredentialChoice":{"type":"object","properties":{"label":{"type":"string","minLength":1,"description":"The choice to show a person, such as \"Oregon\"."},"value":{"type":"string","minLength":1,"description":"The value to send for the field, such as `us-west1`."}},"required":["label","value"],"additionalProperties":false,"description":"One value a credential field takes."},"ProviderCatalogEntryCapabilities":{"type":"object","properties":{"ci_runner":{"anyOf":[{"$ref":"#/components/schemas/CatalogFlag"},{"type":"null"}],"description":"Whether Sandcovery CI can start a GitHub Actions runner in a sandbox on the provider, with the reason in `detail` when it cannot, or null for a provider Sandcovery does not route to. A runner's just-in-time config reaches a sandbox only through the provider's file API or exec environment, never inside a command."},"custom_image":{"anyOf":[{"$ref":"#/components/schemas/CatalogFlag"},{"type":"null"}]},"environment":{"anyOf":[{"$ref":"#/components/schemas/CatalogFlag"},{"type":"null"}]},"files":{"anyOf":[{"$ref":"#/components/schemas/CatalogFlag"},{"type":"null"}]},"idle_timeout":{"anyOf":[{"$ref":"#/components/schemas/CatalogFlag"},{"type":"null"}]},"pause":{"anyOf":[{"$ref":"#/components/schemas/CatalogFlag"},{"type":"null"}]},"ports":{"anyOf":[{"$ref":"#/components/schemas/CatalogFlag"},{"type":"null"}]},"snapshot":{"anyOf":[{"$ref":"#/components/schemas/CatalogFlag"},{"type":"null"}]},"streamed_exec":{"anyOf":[{"$ref":"#/components/schemas/CatalogFlag"},{"type":"null"}]}},"required":["ci_runner","custom_image","environment","files","idle_timeout","pause","ports","snapshot","streamed_exec"],"additionalProperties":false,"description":"What a sandbox can do. For a provider Sandcovery routes to, each is what Sandcovery's adapter does there, and otherwise what the provider's pages state."},"ProviderCatalogEntryBrand":{"type":"object","properties":{"favicon":{"anyOf":[{"$ref":"#/components/schemas/BrandImage"},{"type":"null"}]},"logo":{"anyOf":[{"$ref":"#/components/schemas/BrandImage"},{"type":"null"}]}},"required":["favicon","logo"],"additionalProperties":false,"description":"The provider's favicon and logo, each null when Sandcovery shows no mark for the provider."},"BrandImage":{"type":"object","properties":{"backdrop":{"type":"boolean","description":"Whether the image carries the provider's own backdrop, kept only where its only official mark has one or its brand terms bar changes, which then fills the plate edge to edge."},"dark":{"$ref":"#/components/schemas/ThemeBrandImage"},"light":{"$ref":"#/components/schemas/ThemeBrandImage"},"source_url":{"type":"string","description":"The provider's own page or file the image was copied from, such as its brand page or the favicon its home page declares."},"url":{"type":"string","description":"Sandcovery's own copy of the image."}},"required":["backdrop","dark","light","source_url","url"],"additionalProperties":false,"description":"The provider's own image for a light background, which Sandcovery shows on a white plate in both themes."},"ThemeBrandImage":{"type":"object","properties":{"source_url":{"type":"string","description":"The provider's own page or file the image was copied from, such as its brand page or the favicon its home page declares."},"tile":{"type":"boolean","description":"Whether the image stands out on this theme's background only on a tile of the other theme's background: true for the dark theme, since every image is drawn for a light background."},"url":{"type":"string","description":"Sandcovery's own copy of the image."}},"required":["source_url","tile","url"],"additionalProperties":false,"description":"The same image for one theme, in the shape the sandcovery SDKs before npm 0.7.0 and PyPI 0.6.0 read."},"ProviderBenchmarkRun":{"type":"object","properties":{"arch":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What `uname -m` printed in the sandbox, or null when the sandbox never ran a command."},"cost_micro_usd":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},{"type":"null"}],"description":"The price of the benchmark sandbox for the time from the create request until its destroy returned, from the provider's rate card, or null when no sandbox was created or the rate card prices no sandbox of its size. It leaves out the sandboxes of the create to first command series."},"direct_io":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether fio opened its file with O_DIRECT, which the file system refuses on some sandboxes, or null when fio never ran."},"failure":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the sandbox ran no benchmark, or null when it ran them."},"file_system":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The type of the file system fio wrote to, as `stat -f` names it, or null when fio never ran."},"memory_mib":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"MemTotal from /proc/meminfo inside the sandbox, or null when the sandbox never reported it."},"ran_at":{"type":"string","format":"date-time","description":"When the benchmark sandbox was requested."},"results":{"type":"array","items":{"$ref":"#/components/schemas/BenchmarkResult"}},"size":{"type":"string","minLength":1,"description":"The size the run asked for, named `<vCPU>x<memory GiB>`."},"vcpu":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"What `nproc` printed inside the sandbox, or null when the sandbox never reported it."}},"required":["arch","cost_micro_usd","direct_io","failure","file_system","memory_mib","ran_at","results","size","vcpu"],"additionalProperties":false,"description":"The latest weekly benchmark of the provider: one sandbox at Sandcovery's default size, the provider's smallest when it runs none, or the one size Sandcovery's account with the provider starts, each benchmark run several times in it, and the sandbox destroyed in the same run. The results are empty when the run measured nothing, such as when the provider created no sandbox."},"BenchmarkResult":{"type":"object","properties":{"failure":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the benchmark stopped before its last run, or null when every run finished."},"median":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The median of `runs` in the unit of the metric, or null when no run finished."},"metric":{"type":"string","minLength":1,"description":"The metric, such as `cpu_single_thread` or `disk_random_read`. The API adds metrics over time.","examples":["cpu_single_thread","memory_triad","disk_random_read"]},"runs":{"type":"array","items":{"type":"number"},"description":"The figure of each finished run, in run order."}},"required":["failure","median","metric","runs"],"additionalProperties":false,"description":"One benchmark run several times. CPU, memory, disk, exec round trip and download run in the benchmark sandbox, and create call and create to first command run in 20 other sandboxes, one per run."},"ProviderCatalogEntryCreateLatencyMs":{"type":"object","properties":{"p50":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"p95":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["p50","p95"],"additionalProperties":false,"description":"Create latency of the probe sandboxes over the last 24 hours, or null unless `measurement` is `measured` and a probe has run."},"NotFoundError":{"type":"object","properties":{"error":{"type":"string","enum":["not_found"]},"message":{"type":"string"}},"required":["error","message"],"additionalProperties":false,"description":"The resource the path names does not exist or belongs to another organization or key."},"ProviderBoardEntry":{"type":"object","properties":{"benchmarks":{"anyOf":[{"$ref":"#/components/schemas/ProviderBenchmarkRun"},{"type":"null"}],"description":"The latest weekly CPU, memory, and disk benchmark of the provider, or null when Sandcovery publishes no benchmark of it, because its terms bar publishing one, because they set a condition the published method does not meet, or because no run has finished yet."},"create_latency_ms":{"type":"object","properties":{"p50":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"p95":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["p50","p95"],"additionalProperties":false,"description":"Create latency of the probe sandboxes over the last 24 hours, or null when no probe created a sandbox in that time or when `docs_only_adapter` is true. The hourly probes create no sandbox, so both values are null."},"console_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The page of the provider's own console where a person gets the credential, or null when the provider has no web console or Sandcovery's docs name none."},"credential_fields":{"type":"array","items":{"$ref":"#/components/schemas/CredentialField"},"description":"The fields a credential for this provider takes, in form order, so a client can ask for a provider it does not know."},"docs_only_adapter":{"type":"boolean","description":"True when Sandcovery routes to the provider through an adapter written from the provider's public docs alone. Sandcovery has not run that adapter against the provider's service and runs no probe there, so `status` stays `unknown` and the `uptime` and `create_latency_ms` values stay null."},"favicon":{"anyOf":[{"$ref":"#/components/schemas/BrandImage"},{"type":"null"}],"description":"The provider's favicon, or null when Sandcovery shows no mark for the provider."},"features":{"$ref":"#/components/schemas/ProviderFeatures"},"gpu_prices":{"type":"array","items":{"type":"object","properties":{"hourly_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},"type":{"$ref":"#/components/schemas/GpuType"}},"required":["hourly_micro_usd","type"],"additionalProperties":false},"description":"List price per hour of one GPU of each type the provider runs, which a GPU sandbox adds to the price of its size. Empty when the provider runs no GPU sandbox."},"home_directory":{"type":"string","description":"The home directory of a sandbox on this provider, such as `/root` or `/workspace`."},"home_url":{"type":"string","description":"The provider's own home page."},"incidents":{"anyOf":[{"$ref":"#/components/schemas/VendorIncidentRead"},{"type":"null"}],"description":"Incidents the provider's own status page reports, read every 5 minutes, or null when Sandcovery reads no status feed of the provider. A provider whose `status_url` is null publishes no status page."},"live_checks":{"type":"array","items":{"$ref":"#/components/schemas/LiveCheckResult"},"description":"The latest result of each live check against the provider's service from Sandcovery's own account, one per check that has run. Empty for a provider Sandcovery runs no live check on, such as one coming soon or one it routes to through an adapter written from the provider's docs alone."},"name":{"type":"string"},"prices":{"type":"array","items":{"type":"object","properties":{"hourly_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},"size":{"$ref":"#/components/schemas/StandardSize"}},"required":["hourly_micro_usd","size"],"additionalProperties":false},"description":"Price per hour of each size in `sizes` that has one, from the provider's rate card: its own rates when `rate_card_basis` is `usage`, and its monthly plan spread over a 730-hour month when it is `monthly_plan`. The list is empty when the provider's rate card bills neither vCPU nor memory, such as software that runs on your own servers, since none of its sizes has a price."},"provider":{"$ref":"#/components/schemas/Provider"},"rate_card_basis":{"$ref":"#/components/schemas/RateCardBasis"},"rate_card_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The rate card's note on what the provider bills for and what a sandbox gets for that price, or null when the rate card has none."},"rate_card_source_url":{"type":"string","description":"The provider's public pricing page the rate card copies."},"rate_card_version":{"type":"string"},"security":{"$ref":"#/components/schemas/ProviderSecurity"},"setup_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Sandcovery's setup page for the provider, which walks through making the credential, or null when the provider needs no setup beyond its key."},"sizes":{"type":"array","items":{"$ref":"#/components/schemas/StandardSize"},"description":"Each standard size the provider can run, whether or not it has a list price. A provider that runs no standard size lists each size it does run instead, named `<vCPU>x<memory GiB>`, such as `2x0.5`, which a create asks for with `vcpu` and `memory_mib`."},"status":{"$ref":"#/components/schemas/ProviderStatus"},"status_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The provider's own status page, or null when it publishes none."},"updated_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"uptime":{"type":"object","properties":{"last_15_minutes":{"anyOf":[{"type":"number","minimum":0,"maximum":1,"description":"A share from 0 to 1."},{"type":"null"}]},"last_24_hours":{"anyOf":[{"type":"number","minimum":0,"maximum":1,"description":"A share from 0 to 1."},{"type":"null"}]},"last_7_days":{"anyOf":[{"type":"number","minimum":0,"maximum":1,"description":"A share from 0 to 1."},{"type":"null"}]}},"required":["last_15_minutes","last_24_hours","last_7_days"],"additionalProperties":false,"description":"Share of probes that succeeded in each window, or null before the first probe or when `docs_only_adapter` is true. A probe succeeds when the provider's API answers a call that creates nothing. Sandcovery probes each provider once an hour, so `last_15_minutes` holds the last probe and is null once `updated_at` is more than 15 minutes old."}},"required":["benchmarks","create_latency_ms","console_url","credential_fields","docs_only_adapter","favicon","features","gpu_prices","home_directory","home_url","incidents","live_checks","name","prices","provider","rate_card_basis","rate_card_detail","rate_card_source_url","rate_card_version","security","setup_url","sizes","status","status_url","updated_at","uptime"],"additionalProperties":false,"description":"One provider on the public provider board."},"ProviderSecurity":{"type":"object","properties":{"compliance":{"anyOf":[{"$ref":"#/components/schemas/SecurityList"},{"type":"null"}],"description":"The audits and certifications the provider states, or null when its pages state none."},"data_location":{"anyOf":[{"$ref":"#/components/schemas/SecurityText"},{"type":"null"}],"description":"Where the provider says customer data sits, or null when its pages do not say."},"isolation":{"anyOf":[{"$ref":"#/components/schemas/SecurityText"},{"type":"null"}],"description":"How the provider isolates one sandbox from another, or null when its pages do not say."}},"required":["compliance","data_location","isolation"],"additionalProperties":false,"description":"What the provider's own pages state about its security."},"GpuType":{"type":"string","minLength":1,"description":"A GPU model. The API adds types over time.","examples":["b200","b300","h100","h200","mi355x","rtx-4090","rtx-5090","rtx-pro-6000"]},"ProviderFeatures":{"type":"object","properties":{"custom_image":{"type":"boolean"},"detached_exec":{"type":"boolean","description":"Whether Sandcovery can start a command on this provider and leave it running, with no timeout and no output kept."},"egress_modes":{"type":"array","items":{"$ref":"#/components/schemas/EgressMode"}},"files":{"type":"boolean","description":"Whether Sandcovery can list, read, and write files in a sandbox on this provider."},"gpu_types":{"type":"array","items":{"$ref":"#/components/schemas/GpuType"},"description":"The GPU types a sandbox on this provider can get, up to 8 GPUs of one type. Empty when the provider runs no GPU sandbox."},"idle_timeout":{"type":"boolean"},"max_disk_mib":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"The largest disk size in MiB the provider takes, or null when it takes no disk size."},"max_memory_mib":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The most memory in MiB the provider runs. For a provider that states no memory ceiling, such as Depot, it is the memory of the largest standard size the provider runs."},"max_ttl_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The longest TTL in seconds. For a provider that states no TTL limit, such as Sprites, it is Sandcovery's own maximum of 86,400, which Sandcovery enforces by destroying the sandbox."},"max_vcpu":{"type":"integer","minimum":0,"maximum":9007199254740991},"operating_system":{"$ref":"#/components/schemas/OperatingSystem"},"pause":{"type":"boolean"},"ports":{"type":"boolean"},"regions":{"type":"array","items":{"$ref":"#/components/schemas/Region"}},"snapshot":{"type":"boolean"},"streamed_exec":{"type":"boolean"}},"required":["custom_image","detached_exec","egress_modes","files","gpu_types","idle_timeout","max_disk_mib","max_memory_mib","max_ttl_seconds","max_vcpu","operating_system","pause","ports","regions","snapshot","streamed_exec"],"additionalProperties":false,"description":"What the provider can enforce. A spec asking for more answers `unsupported` on that provider."},"Region":{"type":"string","minLength":1,"description":"A coarse region. A sandbox runs in a data center of the routed provider inside that region. The API adds regions over time.","examples":["asia","eu","us"]},"EgressMode":{"type":"string","minLength":1,"description":"An egress policy mode the provider can enforce, such as `allow_all`, `allowlist`, or `deny_all`. The API adds modes over time.","examples":["allow_all","allowlist","deny_all"]},"ProviderBoard":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProviderBoardEntry"}}},"required":["data"],"additionalProperties":false},"ForbiddenError":{"type":"object","properties":{"error":{"type":"string","enum":["forbidden"]},"message":{"type":"string"}},"required":["error","message"],"additionalProperties":false,"description":"The credential is valid but may not make this call, such as a management key on a sandbox, an API key on keys, usage, or provider credentials, a member who is not an admin on keys, usage, or provider credentials, a signed-in member who is not an admin on sandbox create, a management key whose minting admin is no longer an admin on keys or an X account, a TTL over the API key's `max_ttl_seconds`, an always-on agent whose API key's `max_ttl_seconds` or `allowed_providers` cannot give its sandbox the life an agent needs, or a Free organization adding a second key of a provider. `message` names the rule."},"UnauthorizedError":{"type":"object","properties":{"error":{"type":"string","enum":["unauthorized"]},"message":{"type":"string"}},"required":["error","message"],"additionalProperties":false,"description":"The request carries no live key and no signed-in session, or a key that is unknown, revoked, or expired."},"ConflictError":{"type":"object","properties":{"error":{"type":"string","enum":["conflict"]},"message":{"type":"string"}},"required":["error","message"],"additionalProperties":false,"description":"The request clashes with the current state, such as an `Idempotency-Key` reused with a different body, a call on a sandbox that is not running, or deleting a provider credential that live sandboxes still use."},"XAccountLink":{"type":"object","properties":{"url":{"type":"string","description":"The dashboard account page where you connect X, signed in to www.sandcovery.com as yourself."}},"required":["url"],"additionalProperties":false,"description":"Where to finish linking an X account, since X confirms it in the browser."},"XAccountStatus":{"type":"object","properties":{"linked":{"anyOf":[{"$ref":"#/components/schemas/XAccount"},{"type":"null"}],"description":"The X account linked to you, or null while none is."}},"required":["linked"],"additionalProperties":false,"description":"The X account linked to you."},"XAccount":{"type":"object","properties":{"id":{"type":"string","description":"X's ID of the account."},"username":{"type":"string","description":"The X handle, without the leading @."}},"required":["id","username"],"additionalProperties":false,"description":"The X account linked to you through Clerk."},"CiInstallationList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CiInstallation"}}},"required":["data"],"additionalProperties":false},"CiInstallation":{"type":"object","properties":{"account":{"type":"string","minLength":1,"description":"The GitHub organization or personal account the installation belongs to."},"api_key_id":{"type":"string","description":"The API key that creates the installation's runner sandboxes, whose spend limit, provider allowlist, concurrency cap, and maximum TTL govern them. Linking creates it, named after the GitHub organization or personal account."},"installation_id":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"GitHub's ID of the Sandcovery CI GitHub App installation."},"linked_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."}},"required":["account","api_key_id","installation_id","linked_at"],"additionalProperties":false,"description":"A GitHub installation of the Sandcovery CI GitHub App, linked to this organization."},"CiAccountList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CiAccount"}}},"required":["data"],"additionalProperties":false},"CiAccount":{"type":"object","properties":{"account":{"type":"string","minLength":1,"description":"The GitHub organization or personal account linked to Sandcovery CI."}},"required":["account"],"additionalProperties":false,"description":"A GitHub organization or personal account linked to Sandcovery CI, by name only."},"CiProviderList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CiProvider"}},"plan":{"$ref":"#/components/schemas/Plan"}},"required":["data","plan"],"additionalProperties":false,"description":"The providers CI jobs run on and the organization plan. CI refuses every job of a `free` organization, so `data` is empty on `free`."},"Plan":{"type":"string","enum":["free","pro","enterprise"],"description":"The organization plan: the higher of the plan of its Stripe subscription while that subscription is active, trialing, or past due, and the plan of a GitHub Marketplace purchase by a GitHub account it connected to Sandcovery CI, otherwise `free`. `enterprise` is Pro for an organization that connects a GitHub account a GitHub Enterprise owns."},"CiProvider":{"type":"object","properties":{"capacity":{"type":"string","enum":["own","free","sandcovery"],"description":"Whose capacity runs the organization's jobs on the provider: `own`, the organization's own provider account through its connected credential; `free`, Sandcovery's account on the organization's free or sponsored vCPUh, which spends no credits; or `sandcovery`, Sandcovery's account paid from the organization's credits."},"lane":{"$ref":"#/components/schemas/CiLane"},"provider":{"$ref":"#/components/schemas/Provider"},"until":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When a limited or failing provider is ready again unless it fails again, or null when it is ready, down, or has low uptime."}},"required":["capacity","lane","provider","until"],"additionalProperties":false,"description":"A provider the organization can run CI jobs on right now, and how a job treats it."},"CiLane":{"type":"string","enum":["ready","limited","failing","down"],"description":"How a CI job treats the provider right now: `ready` takes jobs first; `limited` answered the organization's last create with a capacity or quota refusal; `failing` failed a create or a runner start for the organization, or has low uptime; `down` has a provider-reported outage or no uptime. A job tries ready providers first and falls back to the others only when no ready provider takes it."},"CiJob":{"anyOf":[{"type":"object","properties":{"completed_at":{"type":"null"},"conclusion":{"type":"null"},"cost_micro_usd":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},{"type":"null"}],"description":"The list-price cost of the runner sandbox that took the job, from the provider's rate card, so far while it runs and final once it ends. Null until a Sandcovery runner takes the job."},"duration_ms":{"type":"null"},"github_hosted_cost_micro_usd":{"type":"null"},"id":{"type":"string","pattern":"^cij_[\\s\\S]*?$","description":"CI job ID: `cij_` followed by a UUID v7."},"job_name":{"type":"string"},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"The provider of the runner sandbox that took the job, or null until a Sandcovery runner takes it."},"queued_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"repository":{"type":"string","minLength":1,"description":"The repository as `<owner>/<name>`."},"runner_error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why Sandcovery started no runner for the job, such as a create the API key refused, or null."},"runner_failures":{"type":"array","items":{"$ref":"#/components/schemas/CiRunnerFailure"},"description":"Each try that failed while Sandcovery looked for a runner for the job, in order: a sandbox create a provider failed, or a runner that did not start on its sandbox. Empty when no try failed."},"runner_label":{"type":"string","minLength":1,"description":"The Sandcovery runner label the job asked for, such as `sandcovery/4x16:cheapest`."},"sandbox_id":{"anyOf":[{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},{"type":"null"}],"description":"The runner sandbox that took the job, or null until a Sandcovery runner takes it. A runner takes any queued job with its label, so it can differ from the sandbox started when this job was queued."},"started_at":{"type":"null"},"status":{"type":"string","enum":["queued"]},"wait_ms":{"type":"null"},"workflow_job_id":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"GitHub's job ID."},"workflow_run_id":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"GitHub's workflow run ID."}},"required":["completed_at","conclusion","cost_micro_usd","duration_ms","github_hosted_cost_micro_usd","id","job_name","provider","queued_at","repository","runner_error","runner_failures","runner_label","sandbox_id","started_at","status","wait_ms","workflow_job_id","workflow_run_id"],"additionalProperties":false},{"type":"object","properties":{"completed_at":{"type":"null"},"conclusion":{"type":"null"},"cost_micro_usd":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},{"type":"null"}],"description":"The list-price cost of the runner sandbox that took the job, from the provider's rate card, so far while it runs and final once it ends. Null until a Sandcovery runner takes the job."},"duration_ms":{"type":"null"},"github_hosted_cost_micro_usd":{"type":"null"},"id":{"type":"string","pattern":"^cij_[\\s\\S]*?$","description":"CI job ID: `cij_` followed by a UUID v7."},"job_name":{"type":"string"},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"The provider of the runner sandbox that took the job, or null until a Sandcovery runner takes it."},"queued_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"repository":{"type":"string","minLength":1,"description":"The repository as `<owner>/<name>`."},"runner_error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why Sandcovery started no runner for the job, such as a create the API key refused, or null."},"runner_failures":{"type":"array","items":{"$ref":"#/components/schemas/CiRunnerFailure"},"description":"Each try that failed while Sandcovery looked for a runner for the job, in order: a sandbox create a provider failed, or a runner that did not start on its sandbox. Empty when no try failed."},"runner_label":{"type":"string","minLength":1,"description":"The Sandcovery runner label the job asked for, such as `sandcovery/4x16:cheapest`."},"sandbox_id":{"anyOf":[{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},{"type":"null"}],"description":"The runner sandbox that took the job, or null until a Sandcovery runner takes it. A runner takes any queued job with its label, so it can differ from the sandbox started when this job was queued."},"started_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When GitHub reported a runner started the job, or null when GitHub reported no start."},"status":{"type":"string","enum":["in_progress"]},"wait_ms":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Milliseconds from queued to started, or null when GitHub reported no start."},"workflow_job_id":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"GitHub's job ID."},"workflow_run_id":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"GitHub's workflow run ID."}},"required":["completed_at","conclusion","cost_micro_usd","duration_ms","github_hosted_cost_micro_usd","id","job_name","provider","queued_at","repository","runner_error","runner_failures","runner_label","sandbox_id","started_at","status","wait_ms","workflow_job_id","workflow_run_id"],"additionalProperties":false},{"type":"object","properties":{"completed_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When GitHub reported the job completed."},"conclusion":{"anyOf":[{"$ref":"#/components/schemas/CiJobConclusion"},{"type":"null"}]},"cost_micro_usd":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},{"type":"null"}],"description":"The list-price cost of the runner sandbox that took the job, from the provider's rate card, so far while it runs and final once it ends. Null until a Sandcovery runner takes the job."},"duration_ms":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Milliseconds from start to completion, or null when the job completed without a reported start."},"github_hosted_cost_micro_usd":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},{"type":"null"}],"description":"What the same job costs on a GitHub-hosted x64 Linux runner: its duration rounded up to the whole minute, at GitHub's per-minute price for the smallest runner with at least the runner sandbox's vCPU that lets a job run that long. Null when the job did not run on a Sandcovery runner, or when no GitHub-hosted runner with that many vCPU lets a job run that long."},"id":{"type":"string","pattern":"^cij_[\\s\\S]*?$","description":"CI job ID: `cij_` followed by a UUID v7."},"job_name":{"type":"string"},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"The provider of the runner sandbox that took the job, or null until a Sandcovery runner takes it."},"queued_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"repository":{"type":"string","minLength":1,"description":"The repository as `<owner>/<name>`."},"runner_error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why Sandcovery started no runner for the job, such as a create the API key refused, or null."},"runner_failures":{"type":"array","items":{"$ref":"#/components/schemas/CiRunnerFailure"},"description":"Each try that failed while Sandcovery looked for a runner for the job, in order: a sandbox create a provider failed, or a runner that did not start on its sandbox. Empty when no try failed."},"runner_label":{"type":"string","minLength":1,"description":"The Sandcovery runner label the job asked for, such as `sandcovery/4x16:cheapest`."},"sandbox_id":{"anyOf":[{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},{"type":"null"}],"description":"The runner sandbox that took the job, or null until a Sandcovery runner takes it. A runner takes any queued job with its label, so it can differ from the sandbox started when this job was queued."},"started_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When GitHub reported a runner started the job, or null when GitHub reported no start."},"status":{"type":"string","enum":["completed"]},"wait_ms":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}],"description":"Milliseconds from queued to started, or null when GitHub reported no start."},"workflow_job_id":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"GitHub's job ID."},"workflow_run_id":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"GitHub's workflow run ID."}},"required":["completed_at","conclusion","cost_micro_usd","duration_ms","github_hosted_cost_micro_usd","id","job_name","provider","queued_at","repository","runner_error","runner_failures","runner_label","sandbox_id","started_at","status","wait_ms","workflow_job_id","workflow_run_id"],"additionalProperties":false}],"description":"A GitHub Actions job that asked for a Sandcovery runner label in a repository of a linked GitHub installation, in one shape per `status`: `queued` until a runner takes it, `in_progress` while it runs, and `completed` once it ends. `started_at` and `wait_ms` are null while it is `queued`, and `completed_at`, `conclusion`, `duration_ms` and `github_hosted_cost_micro_usd` are null until it is `completed`. Money is at list price, and the provider bills your own account."},"CiRunnerFailure":{"type":"object","properties":{"provider":{"$ref":"#/components/schemas/Provider"},"reason":{"type":"string","description":"Why the provider created no runner sandbox, or why the runner on its sandbox did not start."},"step":{"type":"string","enum":["create","start"],"description":"Which step failed: `create`, the provider creating the runner sandbox, or `start`, the runner starting on that sandbox."}},"required":["provider","reason","step"],"additionalProperties":false,"description":"A try that failed while Sandcovery looked for a CI runner, and why it failed."},"CiJobConclusion":{"type":"string","minLength":1,"description":"How GitHub concluded the job, such as `success`, `failure`, `cancelled`, `skipped`, or `timed_out`. GitHub adds conclusions over time.","examples":["action_required","cancelled","failure","neutral","skipped","success","timed_out"]},"CiJobList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CiJob"}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","next_cursor"],"additionalProperties":false},"AutoTopUp":{"type":"object","properties":{"amount_micro_usd":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},{"type":"null"}],"description":"Whole US dollars each top-up charges to the saved card, or null before auto top-up was first turned on."},"enabled":{"type":"boolean","description":"Whether a saved card is charged once the credit balance falls below the threshold, or a create is refused for credits that one top-up covers."},"failed_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When a failed top-up turned auto top-up off, or null. Turning it on again clears it."},"failure":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why a failed top-up turned auto top-up off, such as a declined card, a card that asks its holder to authenticate, or a disputed payment, or null. Turning it on again clears it."},"threshold_micro_usd":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},{"type":"null"}],"description":"The credit balance below which a top-up is charged, or null before auto top-up was first turned on."}},"required":["amount_micro_usd","enabled","failed_at","failure","threshold_micro_usd"],"additionalProperties":false,"description":"Auto top-up: while it is on, each time the credit balance falls below the threshold, the saved card is charged the amount once, off session, and the credit, the amount less the processing fee of 2.9% plus 30 cents, arrives once Stripe confirms the charge. It charges only while credits are on sale, and a failed charge turns it off."},"AutoTopUpChange":{"type":"object","properties":{"auto_top_up":{"$ref":"#/components/schemas/AutoTopUp"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Stripe Checkout page that saves a card and then turns auto top-up on with these settings, or null when auto top-up was on and the settings apply at once."}},"required":["auto_top_up","url"],"additionalProperties":false},"AutoTopUpRequest":{"type":"object","properties":{"amount_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD.","multipleOf":1000000,"allOf":[{"minimum":25000000,"maximum":1000000000,"description":"Whole US dollars charged to the card, from 25 to 1,000 USD. The credits granted are this amount less the processing fee of 2.9% plus 30 cents, rounded to the cent."}]},"threshold_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD.","multipleOf":1000000,"allOf":[{"minimum":1000000,"maximum":970000000,"description":"Whole US dollars, from 1 to 970 USD, and below the credit one top-up adds, so that one top-up lifts the balance back above it: a 25 USD top-up adds 23.97 USD, so its threshold is at most 23 USD."}]}},"required":["amount_micro_usd","threshold_micro_usd"],"additionalProperties":false},"BillingPortalSession":{"type":"object","properties":{"url":{"type":"string","description":"The Stripe billing portal page where an admin manages the subscription, payment method, and invoices."}},"required":["url"],"additionalProperties":false},"SubscriptionCheckout":{"type":"object","properties":{"url":{"type":"string","description":"The Stripe Checkout page that starts the plan subscription."}},"required":["url"],"additionalProperties":false},"SubscriptionCheckoutRequest":{"type":"object","properties":{"plan":{"$ref":"#/components/schemas/PaidPlan"}},"required":["plan"],"additionalProperties":false},"PaidPlan":{"type":"string","enum":["pro","enterprise"],"description":"A paid organization plan billed by Stripe."},"CreditCheckout":{"type":"object","properties":{"url":{"type":"string","description":"The Stripe Checkout page that takes the payment. The credits arrive once Stripe confirms it."}},"required":["url"],"additionalProperties":false},"CreditPurchaseRequest":{"type":"object","properties":{"amount_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD.","multipleOf":1000000,"allOf":[{"minimum":25000000,"maximum":1000000000,"description":"Whole US dollars charged to the card, from 25 to 1,000 USD. The credits granted are this amount less the processing fee of 2.9% plus 30 cents, rounded to the cent."}]}},"required":["amount_micro_usd"],"additionalProperties":false},"Billing":{"type":"object","properties":{"auto_top_up":{"$ref":"#/components/schemas/AutoTopUp"},"credit_balance_micro_usd":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Credits bought, less refunds and held disputes up to each purchase's credit, the list-price cost of each ended sandbox paid with credits, and the full-TTL hold of each live one. A refund or dispute after use can take it below zero."},"credits_on_sale":{"type":"boolean","description":"Whether a credit purchase is open."},"enterprise_price":{"anyOf":[{"$ref":"#/components/schemas/ProPrice"},{"type":"null"}],"description":"The Enterprise price, or null while the Enterprise plan is not on sale."},"github_enterprise":{"type":"boolean","description":"Whether a GitHub Enterprise owns a GitHub account this organization connected to Sandcovery CI, so that its jobs run only on the Enterprise plan."},"plan":{"$ref":"#/components/schemas/Plan"},"plan_billers":{"type":"array","items":{"$ref":"#/components/schemas/PlanBiller"},"description":"Who bills each paid plan the organization holds, each biller once: `stripe` while its Stripe subscription grants `plan` or a lower paid plan, and `github_marketplace` while a GitHub Marketplace purchase does. Empty on `free`."},"pro_price":{"anyOf":[{"$ref":"#/components/schemas/ProPrice"},{"type":"null"}],"description":"The Pro price, or null while Pro is not on sale."}},"required":["auto_top_up","credit_balance_micro_usd","credits_on_sale","enterprise_price","github_enterprise","plan","plan_billers","pro_price"],"additionalProperties":false},"ProPrice":{"type":"object","properties":{"interval":{"$ref":"#/components/schemas/ProInterval"},"micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."}},"required":["interval","micro_usd"],"additionalProperties":false,"description":"The fixed fee of a plan for each billing interval."},"ProInterval":{"type":"string","enum":["day","month","week","year"],"description":"How often the plan fee is charged."},"PlanBiller":{"type":"string","enum":["github_marketplace","stripe"],"description":"Who bills a paid plan: `stripe` for a Stripe subscription, and `github_marketplace` for a GitHub Marketplace purchase, which an owner of the buying GitHub account changes or cancels in its settings under Billing and licensing."},"RetryLaterError":{"type":"object","properties":{"error":{"type":"string","enum":["retry_later"]},"message":{"type":"string"},"retry_at":{"type":"string","format":"date-time","description":"The first instant the operation may run again."}},"required":["error","message","retry_at"],"additionalProperties":false,"description":"The caller reached a limit on how often this operation runs, and Sandcovery did nothing. Try again at `retry_at`."},"Offer":{"type":"object","properties":{"cap_vcpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The free vCPU-seconds the account has earned in total, with no reset: `vcpu_seconds_per_key` for each counted key once `keys_counted` reaches `keys_needed`, and 0 before."},"keys_counted":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Providers the account has earned free vCPU-seconds for, counted once each for good, plus one for a counted post on X: each provider accepted a credential an organization the account owns stored, when it was stored for a provider that names the account a key belongs to and otherwise when a sandbox first ran on it. A key, or a provider account a provider names, that already earned for any account counts nothing, and removing a credential and storing it again counts nothing more."},"keys_needed":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Counted keys the account needs before its sandboxes may run on free vCPU-seconds."},"month_used_up":{"type":"boolean","description":"Whether the free vCPU-seconds on `provider` that all accounts share this month are used up, so no free sandbox fits until use more than 31 days old stops counting. The account's own `remaining_vcpu_seconds` stays as it is, and a create that would go past the month's share routes to a provider whose credential the organization stored, or fails with `no_provider_available`."},"provider":{"$ref":"#/components/schemas/Provider_1"},"remaining_vcpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"`cap_vcpu_seconds` less `used_vcpu_seconds`, never below zero."},"used_vcpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"vCPU-seconds of the account's ended free sandboxes as they ran, plus each live one's vCPUs over its full TTL."},"vcpu_seconds_per_key":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The free vCPU-seconds each counted key earns."},"x_account":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The handle, without the leading @, of the X account linked to the account that owns this organization, whose post that tags @Sandcovery counts as a key, or null while none is linked."},"x_post_counted":{"type":"boolean","description":"Whether a post on X that tags @Sandcovery counted as one of the account's keys. One post counts per account, for good."}},"required":["cap_vcpu_seconds","keys_counted","keys_needed","month_used_up","provider","remaining_vcpu_seconds","used_vcpu_seconds","vcpu_seconds_per_key","x_account","x_post_counted"],"additionalProperties":false,"description":"Free vCPU-seconds on `provider`, which an organization with no credential of its own for `provider` may route to. They belong to the account that owns the organization, the organization's earliest owner, and every organization that account owns draws on them."},"Provider_1":{"type":"string","minLength":1,"description":"The provider whose sandboxes run on free vCPU-seconds, on its account that Sandcovery pays for.","examples":["daytona","depot","e2b","upstash"]},"ProviderError":{"type":"object","properties":{"error":{"type":"string","enum":["provider_error"]},"message":{"type":"string"},"provider":{"$ref":"#/components/schemas/Provider"}},"required":["error","message","provider"],"additionalProperties":false,"description":"The sandbox's provider failed the call. `message` carries the provider's reason."},"CredentialChoices":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CredentialChoice"},"description":"Every value the provider lists for the field with these credentials, in the order the provider lists them."},"preselected":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The `value` to choose for a person: the only one, else the provider's default, else null."}},"required":["data","preselected"],"additionalProperties":false},"CredentialChoicesRequest":{"type":"object","additionalProperties":{"type":"string","minLength":1},"description":"The credential fields filled in so far, by name: every field that is not listed, and every listed field before the one to list. Sandcovery sends them to the provider to read the choices and keeps none of them. A missing field or a field the provider does not take answers 400 `invalid_request`."},"CredentialRejectedError":{"type":"object","properties":{"error":{"type":"string","enum":["credential_rejected"]},"field":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The `name` of the credential field that was turned down. When the provider turned the credential down, it names the credential's only secret field, or is null when the credential has more than one secret field."},"message":{"type":"string"}},"required":["error","field","message"],"additionalProperties":false,"description":"Sandcovery turned the credential down and stored nothing: a field was empty, a field held a value outside its `choices`, or the provider answered 401, or Railway answered that the project token is not found, when Sandcovery asked which account the credential belongs to."},"ProviderCredential":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"hint":{"type":"string","description":"The last four characters of the first secret field, for display."},"id":{"type":"string","pattern":"^cred_[\\s\\S]*?$","description":"Provider credential ID: `cred_` followed by a UUID v7."},"paused":{"type":"boolean","description":"Whether routing skips this credential. When an organization leaves Pro or the Enterprise plan, it keeps every key, routes the oldest key of each provider, and pauses the others until it is on Pro or the Enterprise plan again."},"provider":{"$ref":"#/components/schemas/Provider"},"updated_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."}},"required":["created_at","hint","id","paused","provider","updated_at"],"additionalProperties":false,"description":"A stored provider credential. Sandcovery encrypts it at rest and never returns its fields."},"CredentialFields":{"type":"object","additionalProperties":{"type":"string","minLength":1},"description":"The provider's credential fields by name, as its `credential_fields` on the provider board lists them, such as `api_key` for `e2b` or `api_key` and `workspace_id` for `render`. A field whose `required` is false may be left out, and then takes its `preselected` value. A missing required field or an unknown field answers 400 `invalid_request`."},"ProviderCredentialList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ProviderCredential"},"description":"Every stored credential, by provider and then in the order a create tries them: the order they were added. When an organization leaves Pro or the Enterprise plan, it keeps every key, routes the oldest key of each provider, and pauses the others until it is on Pro or the Enterprise plan again. `paused` marks each paused one."}},"required":["data"],"additionalProperties":false},"AppGrant":{"type":"object","properties":{"client_id":{"type":"string","description":"The OAuth app's client ID."},"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"id":{"type":"string","description":"The grant ID, which stays the same each time you save the grant again for the same organization. Saving it for another organization gives it a new ID."},"organization_id":{"type":"string","minLength":1,"description":"The Clerk organization the app acts in, such as `org_2abc`."},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/AppPermission"},"minItems":1,"maxItems":4,"description":"The rights the app holds in the organization, at least one."},"sandbox_ids":{"type":"array","items":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"maxItems":100,"description":"The existing sandboxes the app reaches. It also reaches every sandbox it creates itself."},"updated_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."}},"required":["client_id","created_at","id","organization_id","permissions","sandbox_ids","updated_at"],"additionalProperties":false},"AppPermission":{"type":"string","enum":["sandboxes:create","sandboxes:delete","sandboxes:read","sandboxes:run"],"description":"A right an app holds: `sandboxes:read` reads sandboxes and their files and processes, `sandboxes:run` runs commands and processes, uploads files, pauses, resumes and snapshots, `sandboxes:create` creates sandboxes, and `sandboxes:delete` destroys them."},"SaveAppGrantRequest":{"type":"object","properties":{"organization_id":{"type":"string","minLength":1,"description":"The Clerk organization the app acts in, such as `org_2abc`."},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/AppPermission"},"minItems":1,"maxItems":4,"description":"The rights the app holds in the organization, at least one."},"sandbox_ids":{"type":"array","items":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"maxItems":100,"description":"The existing sandboxes the app reaches. It also reaches every sandbox it creates itself."}},"required":["organization_id","permissions","sandbox_ids"],"additionalProperties":false},"AppSignIn":{"type":"object","properties":{"authorize_url":{"type":"string","description":"The app's authorize endpoint at Clerk, where the sign-in continues once the grant is saved."},"client_id":{"type":"string","description":"The OAuth app's client ID."},"name":{"type":"string","description":"The app's name."}},"required":["authorize_url","client_id","name"],"additionalProperties":false},"CliSignIn":{"type":"object","properties":{"expires_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"name":{"type":"string","description":"The computer's name."},"status":{"$ref":"#/components/schemas/CliSignInStatus"},"user_code":{"type":"string","description":"The code the computer shows, such as `BCDF-GHJK`, which the dashboard shows beside it so the person can match the two."},"via":{"type":"string","enum":["cli","ssh"],"description":"`ssh` when a terminal started the sign-in through `ssh new@ssh.sandcovery.com`, whose key expires soon after its sandbox does, and `cli` when the Sandcovery CLI started it."}},"required":["expires_at","name","status","user_code","via"],"additionalProperties":false,"description":"A sign-in a computer started, as the dashboard shows it."},"CliSignInStatus":{"type":"string","enum":["approved","denied","expired","pending"],"description":"A sign-in waits `pending` until a signed-in person approves or denies it in the dashboard, and is `expired` once its 10 minutes end, or once the CLI has collected its key."},"CliSignInToken":{"type":"object","properties":{"api_key":{"anyOf":[{"type":"string","description":"The key secret, returned once at creation: a Clerk API key secret, `ak_` followed by the rest of the secret, for every kind of key."},{"type":"null"}],"description":"The key the approval minted, answered once with `approved`, after which the sign-in is gone. Null for every other status."},"status":{"$ref":"#/components/schemas/CliSignInStatus"},"user_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The person who approved the sign-in, answered with `approved` beside the key. Null for every other status."}},"required":["api_key","status","user_id"],"additionalProperties":false},"CollectCliSignInRequest":{"type":"object","properties":{"device_code":{"type":"string","minLength":1,"maxLength":128}},"required":["device_code"],"additionalProperties":false},"CliSignInStart":{"type":"object","properties":{"device_code":{"type":"string","description":"The secret the CLI collects its key with. Sandcovery keeps only its hash."},"expires_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"interval_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How long the CLI waits between two collects."},"user_code":{"type":"string","description":"The code the computer shows, such as `BCDF-GHJK`, which the dashboard shows beside it so the person can match the two."},"verification_url":{"type":"string","description":"The dashboard page that shows the computer and its code, where a signed-in person approves or denies the sign-in. It carries the code, so nobody types it."}},"required":["device_code","expires_at","interval_seconds","user_code","verification_url"],"additionalProperties":false},"StartCliSignInRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"description":"The computer's name, which the dashboard shows the person who approves the sign-in and which names the key it mints."}},"required":["name"],"additionalProperties":false},"Key":{"anyOf":[{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"expires_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"id":{"type":"string","description":"Key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, for every kind of key."},"last_used_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"name":{"type":"string"},"revoked":{"type":"boolean","description":"Whether the key was revoked, which no change undoes."},"allowed_providers":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Provider"}},{"type":"null"}],"description":"The only providers the key may route to. Null allows all."},"max_concurrent_sandboxes":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"max_ttl_seconds":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"spend_limit":{"anyOf":[{"$ref":"#/components/schemas/SpendLimit"},{"type":"null"}]},"kind":{"type":"string","enum":["api"]},"spend":{"type":"object","properties":{"resets_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"spent_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."}},"required":["resets_at","spent_micro_usd"],"additionalProperties":false,"description":"List-price cost counted against `spend_limit` in its current window, or in total when the key has no limit."}},"required":["created_at","expires_at","id","last_used_at","name","revoked","allowed_providers","max_concurrent_sandboxes","max_ttl_seconds","spend_limit","kind","spend"],"additionalProperties":false},{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"expires_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"id":{"type":"string","description":"Key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, for every kind of key."},"last_used_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"name":{"type":"string"},"revoked":{"type":"boolean","description":"Whether the key was revoked, which no change undoes."},"allowed_providers":{"type":"null"},"max_concurrent_sandboxes":{"type":"null"},"max_ttl_seconds":{"type":"null"},"spend":{"type":"object","properties":{"resets_at":{"type":"null"},"spent_micro_usd":{"type":"number","enum":[0]}},"required":["resets_at","spent_micro_usd"],"additionalProperties":false},"spend_limit":{"type":"null"},"kind":{"type":"string","enum":["management"]}},"required":["created_at","expires_at","id","last_used_at","name","revoked","allowed_providers","max_concurrent_sandboxes","max_ttl_seconds","spend","spend_limit","kind"],"additionalProperties":false},{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"expires_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"id":{"type":"string","description":"Key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, for every kind of key."},"last_used_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"name":{"type":"string"},"revoked":{"type":"boolean","description":"Whether the key was revoked, which no change undoes."},"allowed_providers":{"type":"null"},"max_concurrent_sandboxes":{"type":"null"},"max_ttl_seconds":{"type":"null"},"spend":{"type":"object","properties":{"resets_at":{"type":"null"},"spent_micro_usd":{"type":"number","enum":[0]}},"required":["resets_at","spent_micro_usd"],"additionalProperties":false},"spend_limit":{"type":"null"},"kind":{"type":"string","enum":["person"]}},"required":["created_at","expires_at","id","last_used_at","name","revoked","allowed_providers","max_concurrent_sandboxes","max_ttl_seconds","spend","spend_limit","kind"],"additionalProperties":false}],"description":"An API key, a management key, or a person key, told apart by `kind`. Its secret is never returned after creation. A management key and a person key take no limits, so their limits are null and their spend is 0."},"SpendLimit":{"type":"object","properties":{"limit_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},"period":{"$ref":"#/components/schemas/SpendLimitPeriod"}},"required":["limit_micro_usd","period"],"additionalProperties":false,"description":"A cap on the list-price cost of sandboxes the key creates, counting usage billed to your own provider accounts."},"SpendLimitPeriod":{"type":"string","enum":["day","month","total","week"],"description":"The window the limit counts: a UTC `day`, an ISO `week` from Monday 00:00 UTC, a UTC calendar `month`, or the key `total`."},"UpdateKeyRequest":{"type":"object","properties":{"allowed_providers":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Provider"}},{"type":"null"}],"description":"The only providers the key may route to. Null allows all."},"expires_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"max_concurrent_sandboxes":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"max_ttl_seconds":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"spend_limit":{"anyOf":[{"$ref":"#/components/schemas/SpendLimit"},{"type":"null"}]}},"additionalProperties":false,"description":"Fields to change. An absent field keeps its value, and null clears a limit. A key keeps the name it was minted with. A limit on a management key or a person key answers 400 `invalid_request`."},"CreatedKey":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/Key"},"secret":{"type":"string","description":"The key secret, returned once at creation: a Clerk API key secret, `ak_` followed by the rest of the secret, for every kind of key."}},"required":["key","secret"],"additionalProperties":false},"CreateKeyRequest":{"type":"object","properties":{"allowed_providers":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Provider"}},{"type":"null"}],"description":"The only providers the key may route to. Null allows all.","default":null},"expires_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"default":null},"for_user_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The member an API key is for, by their user ID. That member may create sandboxes under the key from the dashboard, as any admin may. Null or unset makes it for the caller, or when a management key mints it, for the admin who minted that management key. An ID that names no member of the organization, or any value on a management key, answers 400 `invalid_request`.","default":null},"kind":{"type":"string","enum":["api","management"],"default":"api"},"max_concurrent_sandboxes":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}],"default":null},"max_ttl_seconds":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}],"default":null},"name":{"type":"string","minLength":1,"maxLength":64},"spend_limit":{"anyOf":[{"$ref":"#/components/schemas/SpendLimit"},{"type":"null"}],"default":null}},"required":["name"],"additionalProperties":false,"description":"The key to mint. A request without `kind` mints an `api` key, and a limit or expiry left out means none. Only a signed-in admin mints a `management` key, and a management key takes no limits."},"KeyList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Key"}}},"required":["data"],"additionalProperties":false},"SharedStats":{"type":"object","properties":{"badges":{"type":"array","items":{"$ref":"#/components/schemas/Badge"}},"busiest_day":{"anyOf":[{"$ref":"#/components/schemas/StatsDay"},{"type":"null"}],"description":"The UTC day the most sandboxes started, the earliest such day on a tie."},"days":{"type":"array","items":{"$ref":"#/components/schemas/StatsDay"},"description":"Each UTC day of the last 365, today included, on which at least one sandbox started, oldest first."},"largest_sandbox":{"anyOf":[{"type":"object","properties":{"memory_mib":{"type":"integer","minimum":0,"maximum":9007199254740991},"provider":{"$ref":"#/components/schemas/Provider"},"vcpus":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["memory_mib","provider","vcpus"],"additionalProperties":false},{"type":"null"}],"description":"The started sandbox with the most vCPUs, then the most memory, the earliest on a tie."},"level":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Level 1 starts at 1 vCPUh, and each level after it takes ten times the vCPUh of the one before."},"level_vcpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The vCPU-seconds at which the current level started."},"longest_run":{"anyOf":[{"type":"object","properties":{"provider":{"$ref":"#/components/schemas/Provider"},"seconds":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["provider","seconds"],"additionalProperties":false},{"type":"null"}],"description":"The sandbox that ran longest, up to its end or its TTL, counting a live one up to now."},"next_level_vcpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The vCPU-seconds the next level starts at."},"sandbox_count":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Sandboxes the organization started."},"streak":{"type":"object","properties":{"current_days":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Consecutive UTC days with a sandbox start, ending today or yesterday, or 0."},"current_minutes":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Consecutive minutes in which at least one of the organization's sandboxes was running, ending this minute or the one before, or 0."},"longest_days":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The longest run of consecutive UTC days with a sandbox start."}},"required":["current_days","current_minutes","longest_days"],"additionalProperties":false},"units":{"$ref":"#/components/schemas/SharedStatsUnits"},"vcpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"vCPU-seconds of every sandbox the organization started, each from its start to its end or TTL, counting live sandboxes up to now."},"organization":{"anyOf":[{"$ref":"#/components/schemas/SharedStatsOrganization"},{"type":"null"}],"description":"Public identity of the organization that shared its stats, or null when unavailable."}},"required":["badges","busiest_day","days","largest_sandbox","level","level_vcpu_seconds","longest_run","next_level_vcpu_seconds","sandbox_count","streak","units","vcpu_seconds","organization"],"additionalProperties":false,"description":"The stats an organization shared by link, read live at each request, with its public organization identity and no sandbox ID, member, key, or billing detail."},"SharedStatsOrganization":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","description":"When the organization was created on Sandcovery."},"image_url":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Custom organization logo URL when the organization uploaded one, or null."},"name":{"type":"string","minLength":1,"description":"Display name of the organization."},"slug":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"URL slug of the organization when set, or null."}},"required":["created_at","image_url","name","slug"],"additionalProperties":false,"description":"Public identity of the organization that shared its stats."},"SharedStatsUnits":{"type":"object","properties":{"kinds":{"type":"array","items":{"$ref":"#/components/schemas/SharedStatsUnitKind"},"description":"The kinds of sandbox in `runs`, the most common first."},"runs":{"type":"string","description":"Every started sandbox in drawing order, the earliest start first and the earliest ID on a tie, as runs of sandboxes of one kind. Each run is the index of its kind in `kinds` written in base 26, every digit but the last as a lowercase letter `a` to `z` and the last as an uppercase letter `A` to `Z`, followed by the length of the run in decimal when it is more than 1. For example, `B3AbA` reads as three sandboxes of kind 1, one of kind 0, and one of kind 26."}},"required":["kinds","runs"],"additionalProperties":false,"description":"Every sandbox the organization started, each drawn as one unit of the stats server, with its provider only."},"SharedStatsUnitKind":{"type":"object","properties":{"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"The provider that ran the sandbox, or null when no provider took it."}},"required":["provider"],"additionalProperties":false,"description":"A provider that started sandboxes share, with no ID, status, size, or usage."},"StatsDay":{"type":"object","properties":{"date":{"type":"string","format":"date"},"sandbox_count":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Sandboxes that started on this UTC day."}},"required":["date","sandbox_count"],"additionalProperties":false},"Badge":{"type":"object","properties":{"earned_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When the organization earned the badge, read from the sandbox, attempt, or snapshot that earned it, or null while it is still to earn."},"id":{"type":"string","minLength":1,"description":"Stable badge name, such as `sandboxes-100` or `streak-7`. The API may add badges, so treat it as an open string."},"name":{"type":"string","minLength":1,"description":"The badge as a person reads it, such as `100 Sandboxes`."},"progress":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"How far the organization has come toward `target`, at most `target`."},"target":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"What earns the badge, in `unit`."},"unit":{"type":"string","minLength":1,"description":"The unit of `progress` and `target`: `sandboxes`, `providers`, `days`, `seconds`, or `snapshots`. The API may add units, so treat it as an open string."}},"required":["earned_at","id","name","progress","target","unit"],"additionalProperties":false},"StatsShare":{"type":"object","properties":{"token":{"type":"string","minLength":22,"maxLength":43,"pattern":"^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$","description":"A share token: 32 random bytes as 43 unpadded base64url characters. Anyone holding it can read the figures it shares."},"url":{"type":"string","description":"The public page of the stats, which anyone can open without signing in."}},"required":["token","url"],"additionalProperties":false,"description":"The organization's one public link to its stats. It lives until revoked."},"StatsUnit":{"type":"object","properties":{"memory_mib":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Memory the sandbox was created with, in MiB."},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"The provider that ran the sandbox, or null when no provider took it."},"run_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Seconds the sandbox ran, from its start to its end or TTL, counting a live one up to now."},"sandbox_id":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"status":{"$ref":"#/components/schemas/SandboxStatus"},"vcpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"vCPU-seconds the sandbox ran, its vCPUs times its run."},"vcpus":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"vCPUs the sandbox was created with."}},"required":["memory_mib","provider","run_seconds","sandbox_id","status","vcpu_seconds","vcpus"],"additionalProperties":false,"description":"One started sandbox, drawn as one unit of the stats server."},"SandboxStatus":{"type":"string","enum":["creating","destroyed","destroying","failed","paused","running"]},"Stats":{"type":"object","properties":{"badges":{"type":"array","items":{"$ref":"#/components/schemas/Badge"}},"busiest_day":{"anyOf":[{"$ref":"#/components/schemas/StatsDay"},{"type":"null"}],"description":"The UTC day the most sandboxes started, the earliest such day on a tie."},"days":{"type":"array","items":{"$ref":"#/components/schemas/StatsDay"},"description":"Each UTC day of the last 365, today included, on which at least one sandbox started, oldest first."},"largest_sandbox":{"anyOf":[{"type":"object","properties":{"memory_mib":{"type":"integer","minimum":0,"maximum":9007199254740991},"provider":{"$ref":"#/components/schemas/Provider"},"vcpus":{"type":"integer","minimum":0,"maximum":9007199254740991},"sandbox_id":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."}},"required":["memory_mib","provider","vcpus","sandbox_id"],"additionalProperties":false},{"type":"null"}],"description":"The started sandbox with the most vCPUs, then the most memory, the earliest on a tie."},"level":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Level 1 starts at 1 vCPUh, and each level after it takes ten times the vCPUh of the one before."},"level_vcpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The vCPU-seconds at which the current level started."},"longest_run":{"anyOf":[{"type":"object","properties":{"provider":{"$ref":"#/components/schemas/Provider"},"seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"sandbox_id":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."}},"required":["provider","seconds","sandbox_id"],"additionalProperties":false},{"type":"null"}],"description":"The sandbox that ran longest, up to its end or its TTL, counting a live one up to now."},"next_level_vcpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The vCPU-seconds the next level starts at."},"sandbox_count":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Sandboxes the organization started."},"streak":{"type":"object","properties":{"current_days":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Consecutive UTC days with a sandbox start, ending today or yesterday, or 0."},"current_minutes":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Consecutive minutes in which at least one of the organization's sandboxes was running, ending this minute or the one before, or 0."},"longest_days":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The longest run of consecutive UTC days with a sandbox start."}},"required":["current_days","current_minutes","longest_days"],"additionalProperties":false},"units":{"$ref":"#/components/schemas/StatsUnits"},"vcpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"vCPU-seconds of every sandbox the organization started, each from its start to its end or TTL, counting live sandboxes up to now."}},"required":["badges","busiest_day","days","largest_sandbox","level","level_vcpu_seconds","longest_run","next_level_vcpu_seconds","sandbox_count","streak","units","vcpu_seconds"],"additionalProperties":false,"description":"The organization's level, streak, records, and badges, each read from the sandboxes, create attempts, and snapshots it stores."},"StatsUnits":{"type":"object","properties":{"kinds":{"type":"array","items":{"$ref":"#/components/schemas/StatsUnitKind"},"description":"The kinds of sandbox in `runs`, the most common first."},"runs":{"type":"string","description":"Every started sandbox in drawing order, the earliest start first and the earliest ID on a tie, as runs of sandboxes of one kind. Each run is the index of its kind in `kinds` written in base 26, every digit but the last as a lowercase letter `a` to `z` and the last as an uppercase letter `A` to `Z`, followed by the length of the run in decimal when it is more than 1. For example, `B3AbA` reads as three sandboxes of kind 1, one of kind 0, and one of kind 26."}},"required":["kinds","runs"],"additionalProperties":false,"description":"Every sandbox the organization started, each drawn as one unit of the stats server. Read one unit in full from `GET /api/v1/stats/units/{position}`."},"StatsUnitKind":{"type":"object","properties":{"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"The provider that ran the sandbox, or null when no provider took it."},"status":{"$ref":"#/components/schemas/SandboxStatus"}},"required":["provider","status"],"additionalProperties":false,"description":"A provider and status that started sandboxes share."},"SharedUsage":{"type":"object","properties":{"at":{"type":"string","format":"date-time","description":"When the API read the figures. They never change after."},"figures":{"type":"array","items":{"$ref":"#/components/schemas/SharedUsageFigure"},"description":"The shared figures, in the order `UsageShareFigure` lists them."},"period":{"$ref":"#/components/schemas/UsagePeriod"},"shared_by":{"type":"string","description":"The Sandcovery username of the person who shared, as it reads now, so a rename shows on every link they shared."},"since":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"The start of the window, or null for `total`."}},"required":["at","figures","period","shared_by","since"],"additionalProperties":false,"description":"A usage total an organization shared by link: only the window and the figures it chose, read once when it shared them, and the username of the person who shared, with no organization, email, name, key, or billing detail."},"UsagePeriod":{"type":"string","enum":["day","month","total","week"],"description":"The window: the current UTC `day`, the ISO `week` from Monday 00:00 UTC, the UTC calendar `month`, or the `total` of every sandbox run."},"SharedUsageFigure":{"type":"object","properties":{"figure":{"$ref":"#/components/schemas/UsageShareFigure"},"value":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The value, in the unit of its `UsageTotal` field."}},"required":["figure","value"],"additionalProperties":false},"UsageShareFigure":{"type":"string","enum":["sandbox_count","sandbox_seconds","vcpu_seconds","memory_gib_seconds","gpu_seconds","estimated_micro_usd"],"description":"A figure of a usage total, named as its `UsageTotal` field."},"UsageShare":{"type":"object","properties":{"id":{"type":"string","pattern":"^ush_[\\s\\S]*?$","description":"Usage share ID: `ush_` followed by a UUID v7."},"image_url":{"type":"string","description":"The PNG card of the share, which its page names as its social image and anyone can download without signing in."},"token":{"type":"string","minLength":22,"maxLength":43,"pattern":"^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$","description":"A share token: 32 random bytes as 43 unpadded base64url characters. Anyone holding it can read the figures it shares."},"url":{"type":"string","description":"The public page of the share, which anyone can open without signing in."},"usage":{"$ref":"#/components/schemas/SharedUsage"}},"required":["id","image_url","token","url","usage"],"additionalProperties":false,"description":"A public link to one usage total of the organization. It lives until revoked."},"CreateUsageShareRequest":{"type":"object","properties":{"figures":{"type":"array","items":{"$ref":"#/components/schemas/UsageShareFigure"},"minItems":1,"maxItems":6,"description":"The figures of the window to share, at least one. The share shows each once, in the order `UsageShareFigure` lists them."},"period":{"$ref":"#/components/schemas/UsagePeriod"}},"required":["figures","period"],"additionalProperties":false,"description":"The window whose usage total to share and the figures of it to show. Nothing else of the organization becomes public."},"UsageShareList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/UsageShare"},"description":"Every live usage share of the organization, newest first."}},"required":["data"],"additionalProperties":false},"UsageTotals":{"type":"object","properties":{"at":{"type":"string","format":"date-time","description":"When the API read these figures."},"data":{"type":"array","items":{"$ref":"#/components/schemas/UsageTotal"},"description":"One total for each window: `day`, `week`, `month`, `total`."}},"required":["at","data"],"additionalProperties":false},"UsageTotal":{"type":"object","properties":{"estimated_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},"gpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"memory_gib_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"period":{"$ref":"#/components/schemas/UsagePeriod"},"sandbox_count":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Sandboxes that ran at any time in the window."},"sandbox_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"since":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"The start of the window, or null for `total`."},"vcpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["estimated_micro_usd","gpu_seconds","memory_gib_seconds","period","sandbox_count","sandbox_seconds","since","vcpu_seconds"],"additionalProperties":false,"description":"Estimated list-price cost and resource time of the sandboxes run from the start of one window to now, counted as usage per day counts them."},"LiveUsage":{"type":"object","properties":{"at":{"type":"string","format":"date-time","description":"When the API read these figures."},"data":{"type":"array","items":{"$ref":"#/components/schemas/LiveSandboxes"}}},"required":["at","data"],"additionalProperties":false},"LiveSandboxes":{"type":"object","properties":{"accrued_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Estimated list-price cost these sandboxes have run up from their start to now or their TTL."},"api_key_id":{"anyOf":[{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},{"type":"null"}],"description":"The key that created the sandboxes, or null for sandboxes created on a signed-in session."},"gpus":{"type":"integer","minimum":0,"maximum":9007199254740991},"hourly_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"List-price cost per hour of these sandboxes while they run, at the rate card each started on. A sandbox still creating or past its TTL adds nothing."},"memory_mib":{"type":"integer","minimum":0,"maximum":9007199254740991},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"The provider running the sandboxes, or null for creates no provider has started yet."},"sandbox_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"$ref":"#/components/schemas/LiveSandboxStatus"},"vcpus":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["accrued_micro_usd","api_key_id","gpus","hourly_micro_usd","memory_mib","provider","sandbox_count","status","vcpus"],"additionalProperties":false,"description":"The live sandboxes of one key on one provider in one status, with the vCPUs, memory, and GPUs their specs hold."},"LiveSandboxStatus":{"type":"string","enum":["creating","destroying","paused","running"]},"Usage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/UsageDay"}},"sandbox_count":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Sandboxes that ran at any time from `from` through `to`, each counted once however many days it ran."}},"required":["data","sandbox_count"],"additionalProperties":false},"UsageDay":{"type":"object","properties":{"api_key_id":{"anyOf":[{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},{"type":"null"}],"description":"The key that created the sandboxes, or null for sandboxes created on a signed-in session."},"date":{"type":"string","format":"date"},"estimated_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},"gpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"GPU-seconds: each sandbox GPU count times its seconds run."},"memory_gib_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"GiB-seconds: each sandbox memory in GiB times its seconds run, rounded to a whole number."},"provider":{"$ref":"#/components/schemas/Provider"},"sandbox_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"sandbox_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"vcpu_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"vCPU-seconds: each sandbox vCPU count times its seconds run."}},"required":["api_key_id","date","estimated_micro_usd","gpu_seconds","memory_gib_seconds","provider","sandbox_count","sandbox_seconds","vcpu_seconds"],"additionalProperties":false,"description":"Estimated list-price usage and resource time of one key on one provider on one UTC day. Resource time counts the vCPUs, memory, and GPUs of each sandbox spec over the time it ran, the same time its estimated cost counts, and never measured utilization."},"ActivityList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ActivityEvent"}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","next_cursor"],"additionalProperties":false},"ActivityEvent":{"anyOf":[{"type":"object","properties":{"action":{"$ref":"#/components/schemas/ActivityAction"},"api_key_id":{"anyOf":[{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},{"type":"null"}]},"at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"error":{"type":"string","description":"Why the action failed."},"id":{"type":"string","minLength":1},"outcome":{"type":"string","enum":["failed"]},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}]},"sandbox_id":{"anyOf":[{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},{"type":"null"}]}},"required":["action","api_key_id","at","error","id","outcome","provider","sandbox_id"],"additionalProperties":false},{"type":"object","properties":{"action":{"$ref":"#/components/schemas/ActivityAction"},"api_key_id":{"anyOf":[{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},{"type":"null"}]},"at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"error":{"type":"null"},"id":{"type":"string","minLength":1},"outcome":{"type":"string","enum":["succeeded"]},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}]},"sandbox_id":{"anyOf":[{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},{"type":"null"}]}},"required":["action","api_key_id","at","error","id","outcome","provider","sandbox_id"],"additionalProperties":false}],"description":"One entry of the activity log, which records every sandbox lifecycle call and create attempt, in one shape per `outcome`. `error` says why a `failed` action failed, and is null when it `succeeded`."},"ActivityAction":{"type":"string","minLength":1,"description":"What happened, such as `sandbox.create`, `sandbox.create_attempt` for each provider tried, `sandbox.destroy`, or `sandbox.expire` at the TTL. The API adds actions over time.","examples":["sandbox.create","sandbox.create_attempt","sandbox.destroy","sandbox.expire","sandbox.pause","sandbox.resume","sandbox.snapshot"]},"UnsupportedError":{"type":"object","properties":{"error":{"type":"string","enum":["unsupported"]},"message":{"type":"string"},"options":{"type":"array","items":{"type":"string"},"description":"Slugs that would run for this request: each refused slug at the sizes its candidates run, then, for a slug that pins a provider, the `sandcovery/` slug at the size it asked for. Empty when nothing near the refused slugs would run, such as a spec field no candidate provider can enforce or an operation the bound provider lacks, and then `message` names that field or operation."},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"The sandbox's provider for an operation on an existing sandbox, the provider that refused a create it was routed, or null when routing refused the create."}},"required":["error","message","options","provider"],"additionalProperties":false,"description":"A slug, spec option, or operation that no candidate provider can serve. Sandcovery never ignores an option. For a slug, `options` lists slugs that would run; otherwise `options` is empty and `message` names the field or operation."},"AgentLogs":{"type":"object","properties":{"log":{"type":"string","description":"The end of the agent's log file."},"sandbox_id":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."}},"required":["log","sandbox_id"],"additionalProperties":false},"Agent":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"id":{"type":"string","pattern":"^agent_[\\s\\S]*?$","description":"Always-on agent ID: `agent_` followed by a UUID v7."},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last start, restart, or renewal failed, or null after one succeeds."},"preset":{"type":"string","minLength":1},"renewed_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When the agent last moved to a replacement sandbox, or null before its first renewal."},"routing":{"$ref":"#/components/schemas/AgentRouting"},"sandbox_expires_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"sandbox_id":{"anyOf":[{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},{"type":"null"}],"description":"The sandbox the agent runs in now, or null when stopped."},"status":{"$ref":"#/components/schemas/AgentStatus"},"updated_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."}},"required":["created_at","id","last_error","preset","renewed_at","routing","sandbox_expires_at","sandbox_id","status","updated_at"],"additionalProperties":false,"description":"An always-on agent: a preset running in a sandbox that Sandcovery renews before it expires, carrying the agent's state, its own setup included, to the replacement."},"AgentStatus":{"type":"string","enum":["failed","renewing","running","setup","starting","stopped"],"description":"`starting` while Sandcovery installs the agent, `setup` until a person finishes the agent's own setup in its session, `running` once the agent runs and its ready check passes, `renewing` while it moves the agent and its state to a replacement sandbox before the current one expires, `stopped` with no sandbox, and `failed` when a start failed; `last_error` says why."},"AgentRouting":{"type":"object","properties":{"disk_mib":{"anyOf":[{"type":"integer","minimum":1024,"maximum":9007199254740991},{"type":"null"}],"description":"Disk size in MiB. Null or unset takes the provider default.","default":null},"provider":{"anyOf":[{"$ref":"#/components/schemas/ProviderPreferences"},{"type":"null"}],"description":"Null or unset applies no routing preferences.","default":null},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}],"description":"Null or unset allows any region.","default":null},"slug":{"anyOf":[{"$ref":"#/components/schemas/Slug"},{"type":"null"}],"description":"The slug to try first. Null or unset tries only `slugs`.","default":null},"slugs":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Slug"},"minItems":1,"maxItems":8},{"type":"null"}],"description":"Slugs to try in order, from 1 to 8, as OpenRouter takes `models`. Within a `sandcovery/` slug, a failed create (capacity, quota, a provider 5xx, or a timeout) first falls back across that slug's candidates, then the create moves to the next slug. A provider is tried at most once a create, at the size of the first slug that reaches it. Null or unset tries only `slug`.","default":null}},"additionalProperties":false,"description":"Where the agent's Linux sandbox runs, routed as a sandbox create routes it. `slug` is the provider and size to run, as OpenRouter takes `model`, and `slugs` lists slugs to try in order, as OpenRouter takes `models`. With both, `slug` is tried first. With neither, the slug is `sandcovery/2x4`. Every renewal routes the replacement sandbox the same way."},"Slug":{"type":"string","minLength":1,"description":"A provider and size, written `<provider>/<vcpu>x<memory_gib>` and optionally followed by a routing suffix, in the shape of OpenRouter model slugs. A provider name such as `boat` or `e2b` pins that provider, and `sandcovery` routes across every candidate provider. `2x4` is 2 vCPU and 4 GiB, and memory may be any whole number of MiB written in GiB, such as `2x0.5` or `2x1.5`. Either number may be `n`, meaning any value: `nx16` is any vCPU count with 16 GiB, `2xn` is 2 vCPU with any memory, and `nxn` is any size, and each provider then runs its cheapest size that matches. `:cheapest` sorts candidates by hourly price, `:fastest` by measured create latency, and `:most-reliable` by recent uptime, meaning uptime over the last 15 minutes, which holds the hourly probe for 15 minutes after it runs. A slug with no suffix routes as `:cheapest`, which never picks a provider that charges by the month, since its hourly price spreads a plan. A malformed slug or an unknown suffix answers 400 `invalid_request`, and a slug that no candidate provider can run answers 422 `unsupported`, listing slugs that would run as `options`.","examples":["sandcovery/2x4","sandcovery/2x4:cheapest","sandcovery/nx16:cheapest","sandcovery/2xn:fastest","sandcovery/nxn:most-reliable","boat/2x4","e2b/2x0.5"]},"ProviderPreferences":{"type":"object","properties":{"allow_fallbacks":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether a failed create (capacity, quota, a provider 5xx, or a timeout) moves to the next candidate of the same slug. Null or unset means true. With false, each slug tries only its first candidate, and the create still moves on to the next slug.","default":null},"ignore":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Provider"}},{"type":"null"}],"description":"Providers never to route to. Null or unset ignores none.","default":null},"only":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Provider"}},{"type":"null"}],"description":"The only providers to route to. Null or unset allows every candidate.","default":null},"order":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Provider"}},{"type":"null"}],"description":"Providers a `sandcovery/` slug tries first, in this order, before its remaining candidates in sorted order. Null or unset puts none first.","default":null},"sort":{"anyOf":[{"$ref":"#/components/schemas/ProviderSort"},{"type":"null"}],"description":"Null or unset sorts each slug by its suffix, or by `price` when it has none.","default":null}},"additionalProperties":false,"description":"Routing preferences in the shape of OpenRouter provider preferences, applied to every slug: `only`, `ignore`, and the API key's provider allowlist filter each slug's candidates. A slug's suffix sets `sort` for that slug, and a slug whose suffix disagrees with `sort` answers 400 `invalid_request`."},"ProviderSort":{"type":"string","enum":["price","latency","uptime"],"description":"Candidate order: `price` by hourly price, `latency` by measured create latency, and `uptime` by recent uptime, meaning uptime over the last 15 minutes, which holds the hourly probe for 15 minutes after it runs. A provider that charges by the month has no per-use price to compare, so it is never a candidate on a `price` sort across providers."},"NoProviderAvailableError":{"type":"object","properties":{"attempts":{"type":"array","items":{"$ref":"#/components/schemas/CreateAttempt"},"description":"Every create attempt, in order. Empty when no provider was a candidate, such as when none has a stored credential."},"error":{"type":"string","enum":["no_provider_available"]},"message":{"type":"string"}},"required":["attempts","error","message"],"additionalProperties":false,"description":"Every candidate provider failed to create the sandbox, or none was left after filtering."},"CreateAttempt":{"type":"object","properties":{"duration_ms":{"type":"integer","minimum":0,"maximum":9007199254740991},"failure":{"anyOf":[{"type":"object","properties":{"message":{"type":"string"},"reason":{"$ref":"#/components/schemas/CreateFailureReason"}},"required":["message","reason"],"additionalProperties":false,"description":"Why the attempt failed: `capacity`, `quota`, `server_error` (a provider 5xx), and `timeout` fall back to the next candidate when `allow_fallbacks` is not false, while `rejected` (any other provider refusal, such as an invalid credential) on a Sandcovery account stops the create, which answers 502 `provider_error` naming that provider, or 422 `unsupported` when the provider cannot apply an option the body sets. On one of the organization's own keys, any failure moves on to the next candidate while one is left."},{"type":"null"}]},"provider":{"$ref":"#/components/schemas/Provider"},"started_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."}},"required":["duration_ms","failure","provider","started_at"],"additionalProperties":false,"description":"One provider create call made while routing a sandbox. `failure` is null on the attempt that created it."},"CreateFailureReason":{"type":"string","enum":["capacity","quota","rejected","server_error","timeout"]},"ConcurrencyLimitReachedError":{"type":"object","properties":{"concurrency_cap":{"type":"integer","minimum":0,"maximum":9007199254740991},"error":{"type":"string","enum":["concurrency_limit_reached"]},"message":{"type":"string"}},"required":["concurrency_cap","error","message"],"additionalProperties":false,"description":"The API key already has `concurrency_cap` live sandboxes, its `max_concurrent_sandboxes`. Destroy one or wait for one to end."},"SpendLimitReachedError":{"type":"object","properties":{"error":{"type":"string","enum":["spend_limit_reached"]},"limit_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},"message":{"type":"string"},"resets_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"spent_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."}},"required":["error","limit_micro_usd","message","resets_at","spent_micro_usd"],"additionalProperties":false,"description":"The API key's spend limit leaves too little for the sandbox's full TTL at its rate card price. `resets_at` is when the window resets, or null for a `total` limit."},"AgentWebLink":{"type":"object","properties":{"preview":{"anyOf":[{"$ref":"#/components/schemas/AgentWebPreview"},{"type":"null"}],"description":"The web app on the provider's signed port preview, or null when the agent's web app or its provider has none."},"url":{"type":"string","minLength":1,"description":"Where the agent's web app opens on the person's computer once its port is forwarded. Some agents sign it with a one-time token, so fetch a new one for each visit."}},"required":["preview","url"],"additionalProperties":false},"AgentWebPreview":{"type":"object","properties":{"expires_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When the signed preview link stops working, or null when the provider gives it no end."},"url":{"type":"string","minLength":1,"description":"The agent's web app on the provider's signed port preview, which opens in a browser with no port forward. It carries an access token, so treat it as a secret and fetch a new one for each visit."}},"required":["expires_at","url"],"additionalProperties":false},"AgentWebSignInRequest":{"type":"object","properties":{"state":{"type":"string","minLength":1,"maxLength":256,"description":"The sign-in state the agent's web app sent the browser to Sandcovery with, in the web_sign_in query parameter."}},"required":["state"],"additionalProperties":false},"Process":{"type":"object","properties":{"command":{"type":"string"},"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"exit_code":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"The exit code, 128 plus the signal number after a signal, or null until the command exits."},"exited_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"id":{"type":"string","pattern":"^proc_[\\s\\S]*?$","description":"Process ID: `proc_` followed by a UUID v7."},"sandbox_id":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"signal":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The signal that ended the command, such as `SIGKILL`, or `SIGRTMIN+2` for a realtime signal as the attach protocol names it."},"status":{"$ref":"#/components/schemas/ProcessStatus"},"terminal":{"anyOf":[{"$ref":"#/components/schemas/ProcessTerminal"},{"type":"null"}]}},"required":["command","created_at","exit_code","exited_at","id","sandbox_id","signal","status","terminal"],"additionalProperties":false,"description":"A command a sandbox runs on a terminal or pipes. A client attaches to its stdin, stdout, stderr, resizes, and signals over a WebSocket at `/api/v1/sandboxes/{sandbox_id}/processes/{process_id}/attach`."},"ProcessTerminal":{"type":"object","properties":{"cols":{"type":"integer","minimum":1,"maximum":65535,"description":"Columns of the terminal."},"rows":{"type":"integer","minimum":1,"maximum":65535,"description":"Rows of the terminal."},"stderr":{"type":"boolean","description":"Whether stderr is the terminal."},"stdin":{"type":"boolean","description":"Whether stdin is the terminal."},"stdout":{"type":"boolean","description":"Whether stdout is the terminal."}},"required":["cols","rows","stderr","stdin","stdout"],"additionalProperties":false,"description":"A pseudo-terminal of the given size, and which of stdin, stdout, and stderr sit on it. At least one does; the rest are pipes."},"ProcessStatus":{"type":"string","enum":["exited","lost","running"],"description":"`running` until the command exits, then `exited`, or `lost` when the sandbox ended before the process reported an exit."},"AgentSshRequest":{"type":"object","properties":{"public_key":{"type":"string","minLength":1,"maxLength":16384,"description":"The OpenSSH public key, one authorized_keys line, that may sign in over this connection."}},"required":["public_key"],"additionalProperties":false},"AgentSessionRequest":{"type":"object","properties":{"cols":{"type":"integer","minimum":1,"maximum":65535,"description":"Columns of the terminal."},"rows":{"type":"integer","minimum":1,"maximum":65535,"description":"Rows of the terminal."}},"required":["cols","rows"],"additionalProperties":false,"description":"The size of the terminal that attaches to the session."},"AgentList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Agent"}}},"required":["data"],"additionalProperties":false},"CreateAgentRequest":{"type":"object","properties":{"preset":{"type":"string","minLength":1,"description":"ID of the agent preset to install."},"routing":{"$ref":"#/components/schemas/AgentRouting"}},"required":["preset","routing"],"additionalProperties":false},"AgentPresetList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AgentPreset"}}},"required":["data"],"additionalProperties":false},"AgentPreset":{"type":"object","properties":{"icon":{"type":"string","minLength":1,"description":"Path of the agent's own icon on the Sandcovery site, taken from the agent's site or repository."},"id":{"type":"string","minLength":1},"license":{"type":"string","minLength":1,"description":"SPDX license of the agent."},"memory_mib":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Memory the agent needs, in MiB."},"name":{"type":"string","minLength":1},"repository":{"type":"string","minLength":1,"description":"URL of the agent's source repository."},"setup":{"$ref":"#/components/schemas/AgentNativeSetup"},"subtitle":{"type":"string","minLength":1,"description":"What the agent is, in one line."},"summary":{"type":"string","minLength":1,"description":"What the agent does, in a few sentences."},"version":{"type":"string","minLength":1,"description":"Release of the agent Sandcovery installs."},"web":{"anyOf":[{"$ref":"#/components/schemas/AgentWebApp"},{"type":"null"}]}},"required":["icon","id","license","memory_mib","name","repository","setup","subtitle","summary","version","web"],"additionalProperties":false,"description":"An open-source agent Sandcovery can install in an always-on sandbox."},"AgentWebApp":{"type":"object","properties":{"path":{"type":"string","description":"Path of the web app on that port, starting with a slash."},"port":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Port the agent serves its web app on inside the sandbox."},"preview":{"type":"boolean","description":"Whether the web app opens in a browser through the provider's own signed port preview, with no port forward. When true, Sandcovery runs the agent only on providers whose preview link carries its own access token."},"setup":{"type":"boolean","description":"Whether the web app can finish the agent setup. When true, Sandcovery runs the agent while it waits for setup, so the web app answers."}},"required":["path","port","preview","setup"],"additionalProperties":false,"description":"The agent's own web app, served inside its sandbox. It opens in a browser through an SSH port forward, or through the provider's signed port preview when preview is true."},"AgentNativeSetup":{"type":"object","properties":{"guide":{"type":"string","minLength":1,"description":"URL of the agent's own setup guide."},"terminal":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The agent's own terminal setup, which the agent's session runs until the agent is set up, or null when it has none."}},"required":["guide","terminal"],"additionalProperties":false,"description":"How a person sets the agent up in its own setup: its model, keys, and chat channels never pass through Sandcovery."},"PortPreview":{"type":"object","properties":{"expires_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Headers a request to `url` must carry, such as a provider preview token. Often empty."},"port":{"type":"integer","minimum":1,"maximum":65535},"url":{"type":"string"}},"required":["expires_at","headers","port","url"],"additionalProperties":false,"description":"A provider URL that reaches a port inside the sandbox."},"FileEntry":{"type":"object","properties":{"modified_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"name":{"type":"string"},"path":{"type":"string"},"size_bytes":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"type":{"$ref":"#/components/schemas/FileEntryType"}},"required":["modified_at","name","path","size_bytes","type"],"additionalProperties":false},"FileEntryType":{"type":"string","enum":["directory","file","other","symlink"],"description":"`other` is an entry that is neither a file, a directory, nor a symlink, such as a socket or a device."},"FileList":{"type":"object","properties":{"entries":{"type":"array","items":{"$ref":"#/components/schemas/FileEntry"}},"path":{"type":"string"}},"required":["entries","path"],"additionalProperties":false},"ProcessRequest":{"type":"object","properties":{"command":{"type":"string","minLength":1,"description":"A shell command line, run with `sh -c`.","maxLength":2097152},"cwd":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Working directory. Null or unset runs it in the provider's default directory.","default":null},"env":{"anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string"}},{"type":"null"}],"description":"Environment variables for this command only, each name holding only ASCII letters, digits, and underscores and not starting with a digit. Null or unset sets none.","default":null},"terminal":{"anyOf":[{"$ref":"#/components/schemas/ProcessTerminal"},{"type":"null"}],"description":"The terminal the process runs on. Null or unset runs it on pipes.","default":null}},"required":["command"],"additionalProperties":false,"description":"A command to run as a process, with no timeout, on a terminal or on pipes."},"DetachedExec":{"type":"object","properties":{"started_at":{"type":"string","format":"date-time","description":"When the provider reported the command started."}},"required":["started_at"],"additionalProperties":false,"description":"A command the provider started and left running."},"DetachedExecRequest":{"type":"object","properties":{"command":{"type":"string","minLength":1,"description":"A shell command line, run with `sh -c`."},"cwd":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Working directory. Null or unset runs it in the provider's default directory.","default":null},"env":{"anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string"}},{"type":"null"}],"description":"Environment variables for this command only, each name holding only ASCII letters, digits, and underscores and not starting with a digit. Null or unset sets none.","default":null}},"required":["command"],"additionalProperties":false,"description":"A command to start and leave running. It runs until it exits or the sandbox ends, with no timeout, and its output is not kept."},"ExecEventEncoded":{"type":"string","contentMediaType":"application/json","contentSchema":{"$ref":"#/components/schemas/ExecEvent"}},"ExecEvent":{"anyOf":[{"type":"object","properties":{"data":{"type":"string"},"type":{"type":"string","enum":["stdout"]}},"required":["data","type"],"additionalProperties":false},{"type":"object","properties":{"data":{"type":"string"},"type":{"type":"string","enum":["stderr"]}},"required":["data","type"],"additionalProperties":false},{"type":"object","properties":{"duration_ms":{"type":"integer","minimum":0,"maximum":9007199254740991},"exit_code":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string","enum":["exit"]}},"required":["duration_ms","exit_code","type"],"additionalProperties":false},{"type":"object","properties":{"message":{"type":"string"},"provider":{"$ref":"#/components/schemas/Provider"},"type":{"type":"string","enum":["error"]}},"required":["message","provider","type"],"additionalProperties":false}],"description":"One server-sent event of a streamed command: output chunks as they arrive, then one `exit`, or one `error` when the provider fails mid-stream."},"ExecRequest":{"type":"object","properties":{"command":{"type":"string","minLength":1,"description":"A shell command line, run with `sh -c`."},"cwd":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Working directory. Null or unset runs it in the provider's default directory.","default":null},"env":{"anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string"}},{"type":"null"}],"description":"Environment variables for this command only, each name holding only ASCII letters, digits, and underscores and not starting with a digit. Null or unset sets none.","default":null},"timeout_seconds":{"anyOf":[{"type":"integer","minimum":1,"maximum":3600},{"type":"null"}],"description":"Seconds after which the command is killed. Null or unset runs it for 300 seconds, or for the longest command the sandbox's provider runs when that is shorter.","default":null}},"required":["command"],"additionalProperties":false},"ExecResult":{"type":"object","properties":{"duration_ms":{"type":"integer","minimum":0,"maximum":9007199254740991},"exit_code":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stderr":{"type":"string"},"stdout":{"type":"string"}},"required":["duration_ms","exit_code","stderr","stdout"],"additionalProperties":false,"description":"The result of a command that ran to its end."},"SnapshotList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Snapshot"}}},"required":["data"],"additionalProperties":false},"Snapshot":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"id":{"type":"string","pattern":"^snap_[\\s\\S]*?$","description":"Snapshot ID: `snap_` followed by a UUID v7."},"provider":{"$ref":"#/components/schemas/Provider"},"sandbox_id":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."}},"required":["created_at","id","provider","sandbox_id"],"additionalProperties":false,"description":"A snapshot of a sandbox filesystem. A sandbox created from it runs on the same provider."},"Sandbox":{"anyOf":[{"type":"object","properties":{"api_key_id":{"anyOf":[{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},{"type":"null"}],"description":"The API key that created the sandbox, or null when an organization owner or admin created it while signed in, or their agent did on their session."},"attempts":{"type":"array","items":{"$ref":"#/components/schemas/CreateAttempt"}},"cost":{"$ref":"#/components/schemas/SandboxCost"},"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"disk_mib":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"egress":{"$ref":"#/components/schemas/EgressPolicy"},"end_reason":{"type":"null"},"ended_at":{"type":"null"},"expires_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"gpu":{"anyOf":[{"$ref":"#/components/schemas/Gpu"},{"type":"null"}]},"id":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"idle_timeout_seconds":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"memory_mib":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Memory of the bound size, or of the first candidate's size while the sandbox is creating or after every create attempt failed."},"ports":{"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"provider":{"type":"null"},"provider_sandbox_id":{"type":"null"},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}]},"slug":{"type":"null"},"started_at":{"type":"null"},"status":{"type":"string","enum":["creating"]},"ttl_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"vcpu":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"vCPU count of the bound size, or of the first candidate's size while the sandbox is creating or after every create attempt failed."}},"required":["api_key_id","attempts","cost","created_at","disk_mib","egress","end_reason","ended_at","expires_at","gpu","id","idle_timeout_seconds","image","memory_mib","ports","provider","provider_sandbox_id","region","slug","started_at","status","ttl_seconds","vcpu"],"additionalProperties":false},{"type":"object","properties":{"api_key_id":{"anyOf":[{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},{"type":"null"}],"description":"The API key that created the sandbox, or null when an organization owner or admin created it while signed in, or their agent did on their session."},"attempts":{"type":"array","items":{"$ref":"#/components/schemas/CreateAttempt"}},"cost":{"$ref":"#/components/schemas/SandboxCost"},"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"disk_mib":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"egress":{"$ref":"#/components/schemas/EgressPolicy"},"end_reason":{"type":"null"},"ended_at":{"type":"null"},"expires_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"gpu":{"anyOf":[{"$ref":"#/components/schemas/Gpu"},{"type":"null"}]},"id":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"idle_timeout_seconds":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"memory_mib":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Memory of the bound size, or of the first candidate's size while the sandbox is creating or after every create attempt failed."},"ports":{"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"provider":{"$ref":"#/components/schemas/Provider"},"provider_sandbox_id":{"type":"string"},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}]},"slug":{"$ref":"#/components/schemas/Slug"},"started_at":{"type":"string","format":"date-time","description":"When the provider reported the sandbox running."},"status":{"type":"string","enum":["running"]},"ttl_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"vcpu":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"vCPU count of the bound size, or of the first candidate's size while the sandbox is creating or after every create attempt failed."}},"required":["api_key_id","attempts","cost","created_at","disk_mib","egress","end_reason","ended_at","expires_at","gpu","id","idle_timeout_seconds","image","memory_mib","ports","provider","provider_sandbox_id","region","slug","started_at","status","ttl_seconds","vcpu"],"additionalProperties":false},{"type":"object","properties":{"api_key_id":{"anyOf":[{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},{"type":"null"}],"description":"The API key that created the sandbox, or null when an organization owner or admin created it while signed in, or their agent did on their session."},"attempts":{"type":"array","items":{"$ref":"#/components/schemas/CreateAttempt"}},"cost":{"$ref":"#/components/schemas/SandboxCost"},"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"disk_mib":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"egress":{"$ref":"#/components/schemas/EgressPolicy"},"end_reason":{"type":"null"},"ended_at":{"type":"null"},"expires_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"gpu":{"anyOf":[{"$ref":"#/components/schemas/Gpu"},{"type":"null"}]},"id":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"idle_timeout_seconds":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"memory_mib":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Memory of the bound size, or of the first candidate's size while the sandbox is creating or after every create attempt failed."},"ports":{"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"provider":{"$ref":"#/components/schemas/Provider"},"provider_sandbox_id":{"type":"string"},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}]},"slug":{"$ref":"#/components/schemas/Slug"},"started_at":{"type":"string","format":"date-time","description":"When the provider reported the sandbox running."},"status":{"type":"string","enum":["paused"]},"ttl_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"vcpu":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"vCPU count of the bound size, or of the first candidate's size while the sandbox is creating or after every create attempt failed."}},"required":["api_key_id","attempts","cost","created_at","disk_mib","egress","end_reason","ended_at","expires_at","gpu","id","idle_timeout_seconds","image","memory_mib","ports","provider","provider_sandbox_id","region","slug","started_at","status","ttl_seconds","vcpu"],"additionalProperties":false},{"type":"object","properties":{"api_key_id":{"anyOf":[{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},{"type":"null"}],"description":"The API key that created the sandbox, or null when an organization owner or admin created it while signed in, or their agent did on their session."},"attempts":{"type":"array","items":{"$ref":"#/components/schemas/CreateAttempt"}},"cost":{"$ref":"#/components/schemas/SandboxCost"},"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"disk_mib":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"egress":{"$ref":"#/components/schemas/EgressPolicy"},"end_reason":{"type":"null"},"ended_at":{"type":"null"},"expires_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"gpu":{"anyOf":[{"$ref":"#/components/schemas/Gpu"},{"type":"null"}]},"id":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"idle_timeout_seconds":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"memory_mib":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Memory of the bound size, or of the first candidate's size while the sandbox is creating or after every create attempt failed."},"ports":{"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"provider":{"$ref":"#/components/schemas/Provider"},"provider_sandbox_id":{"type":"string"},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}]},"slug":{"$ref":"#/components/schemas/Slug"},"started_at":{"type":"string","format":"date-time","description":"When the provider reported the sandbox running."},"status":{"type":"string","enum":["destroying"]},"ttl_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"vcpu":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"vCPU count of the bound size, or of the first candidate's size while the sandbox is creating or after every create attempt failed."}},"required":["api_key_id","attempts","cost","created_at","disk_mib","egress","end_reason","ended_at","expires_at","gpu","id","idle_timeout_seconds","image","memory_mib","ports","provider","provider_sandbox_id","region","slug","started_at","status","ttl_seconds","vcpu"],"additionalProperties":false},{"type":"object","properties":{"api_key_id":{"anyOf":[{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},{"type":"null"}],"description":"The API key that created the sandbox, or null when an organization owner or admin created it while signed in, or their agent did on their session."},"attempts":{"type":"array","items":{"$ref":"#/components/schemas/CreateAttempt"}},"cost":{"$ref":"#/components/schemas/SandboxCost"},"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"disk_mib":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"egress":{"$ref":"#/components/schemas/EgressPolicy"},"end_reason":{"type":"string","enum":["destroyed","expired","gone"],"description":"Why the sandbox ended: `destroyed` by a destroy call, `expired` at its TTL, or `gone` when the provider no longer had it."},"ended_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"expires_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"gpu":{"anyOf":[{"$ref":"#/components/schemas/Gpu"},{"type":"null"}]},"id":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"idle_timeout_seconds":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"memory_mib":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Memory of the bound size, or of the first candidate's size while the sandbox is creating or after every create attempt failed."},"ports":{"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"The provider the sandbox was bound to, or null when it ended before a provider created it."},"provider_sandbox_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}]},"slug":{"anyOf":[{"$ref":"#/components/schemas/Slug"},{"type":"null"}],"description":"The provider and size the sandbox ran on, such as `boat/2x4`, as OpenRouter answers the `model` it used, or null when it ended before a provider created it."},"started_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When the provider reported the sandbox running, or null when it ended before a provider created it."},"status":{"type":"string","enum":["destroyed"]},"ttl_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"vcpu":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"vCPU count of the bound size, or of the first candidate's size while the sandbox is creating or after every create attempt failed."}},"required":["api_key_id","attempts","cost","created_at","disk_mib","egress","end_reason","ended_at","expires_at","gpu","id","idle_timeout_seconds","image","memory_mib","ports","provider","provider_sandbox_id","region","slug","started_at","status","ttl_seconds","vcpu"],"additionalProperties":false},{"type":"object","properties":{"api_key_id":{"anyOf":[{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},{"type":"null"}],"description":"The API key that created the sandbox, or null when an organization owner or admin created it while signed in, or their agent did on their session."},"attempts":{"type":"array","items":{"$ref":"#/components/schemas/CreateAttempt"}},"cost":{"$ref":"#/components/schemas/SandboxCost"},"created_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"disk_mib":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"egress":{"$ref":"#/components/schemas/EgressPolicy"},"end_reason":{"type":"string","enum":["create_failed"],"description":"No create attempt succeeded."},"ended_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"expires_at":{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},"gpu":{"anyOf":[{"$ref":"#/components/schemas/Gpu"},{"type":"null"}]},"id":{"type":"string","pattern":"^sbx_[\\s\\S]*?$","description":"Sandbox ID: `sbx_` followed by a UUID v7."},"idle_timeout_seconds":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"memory_mib":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Memory of the bound size, or of the first candidate's size while the sandbox is creating or after every create attempt failed."},"ports":{"type":"array","items":{"type":"integer","minimum":1,"maximum":65535}},"provider":{"anyOf":[{"$ref":"#/components/schemas/Provider"},{"type":"null"}],"description":"The provider the sandbox was bound to, or null when it ended before a provider created it."},"provider_sandbox_id":{"anyOf":[{"type":"string"},{"type":"null"}]},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}]},"slug":{"anyOf":[{"$ref":"#/components/schemas/Slug"},{"type":"null"}],"description":"The provider and size the sandbox ran on, such as `boat/2x4`, as OpenRouter answers the `model` it used, or null when it ended before a provider created it."},"started_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}],"description":"When the provider reported the sandbox running, or null when it ended before a provider created it."},"status":{"type":"string","enum":["failed"]},"ttl_seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"vcpu":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"vCPU count of the bound size, or of the first candidate's size while the sandbox is creating or after every create attempt failed."}},"required":["api_key_id","attempts","cost","created_at","disk_mib","egress","end_reason","ended_at","expires_at","gpu","id","idle_timeout_seconds","image","memory_mib","ports","provider","provider_sandbox_id","region","slug","started_at","status","ttl_seconds","vcpu"],"additionalProperties":false}],"description":"A sandbox, bound to the provider that created it, in one shape per `status`. `expires_at` is when Sandcovery destroys it, and pausing does not move it. `provider`, `provider_sandbox_id`, `slug` and `started_at` are set while it is `running`, `paused` or `destroying`, and null while it is `creating`. `ended_at` and `end_reason` are set once it is `destroyed` or `failed`."},"Gpu":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":8,"description":"How many GPUs of `type` the sandbox gets, from 1 to 8."},"type":{"$ref":"#/components/schemas/GpuType"}},"required":["count","type"],"additionalProperties":false,"description":"GPUs for the sandbox. It runs only on a provider that runs `count` GPUs of `type`, which picks the sandbox's region itself, so a GPU sandbox takes no `region`. Its list price adds each GPU's hourly price to the price of its size."},"EgressPolicy":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["allow_all"]}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","enum":["deny_all"]}},"required":["mode"],"additionalProperties":false},{"type":"object","properties":{"destinations":{"type":"array","prefixItems":[{"type":"string","minLength":1}],"minItems":1,"items":{"type":"string","minLength":1},"description":"Host names or CIDR blocks the sandbox may reach."},"mode":{"type":"string","enum":["allowlist"]}},"required":["destinations","mode"],"additionalProperties":false}],"description":"Outbound network access: `allow_all`, `deny_all`, or `allowlist` with the destinations the sandbox may reach."},"SandboxCost":{"type":"object","properties":{"estimated_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Estimated list-price cost so far, from the rate card, until the sandbox is destroyed."},"hourly_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},"rate_card_version":{"type":"string"}},"required":["estimated_micro_usd","hourly_micro_usd","rate_card_version"],"additionalProperties":false,"description":"Estimated cost from the provider's versioned rate card, which spreads a monthly plan over a 730-hour month for a provider that charges by the month. The provider bills your own account."},"SandboxList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Sandbox"}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","next_cursor"],"additionalProperties":false},"UsableKeyList":{"type":"object","properties":{"create_without_key":{"type":"boolean","description":"Whether the caller may also create with no key, as a signed-in organization admin may."},"data":{"type":"array","items":{"$ref":"#/components/schemas/UsableKey"},"description":"Newest first."}},"required":["create_without_key","data"],"additionalProperties":false},"UsableKey":{"type":"object","properties":{"allowed_providers":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Provider"}},{"type":"null"}],"description":"The only providers the key may route to. Null allows all."},"max_concurrent_sandboxes":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"max_ttl_seconds":{"anyOf":[{"type":"integer","minimum":1,"maximum":9007199254740991},{"type":"null"}]},"spend_limit":{"anyOf":[{"$ref":"#/components/schemas/SpendLimit"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time","description":"A UTC instant with milliseconds and a `Z` suffix, such as `2026-11-08T11:20:00.000Z`."},{"type":"null"}]},"id":{"type":"string","description":"Key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, for every kind of key."},"name":{"type":"string"}},"required":["allowed_providers","max_concurrent_sandboxes","max_ttl_seconds","spend_limit","expires_at","id","name"],"additionalProperties":false,"description":"A live API key the caller may create sandboxes under, with its limits. Its secret is never returned."},"EstimateList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Estimate"},"description":"One estimate per candidate provider that can run the spec, in routing order, each at the size of the first slug that reaches it."}},"required":["data"],"additionalProperties":false},"Estimate":{"type":"object","properties":{"hourly_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},"provider":{"$ref":"#/components/schemas/Provider"},"rate_card_version":{"type":"string"},"slug":{"$ref":"#/components/schemas/Slug"},"ttl_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"List-price cost if the sandbox runs for its whole TTL."}},"required":["hourly_micro_usd","provider","rate_card_version","slug","ttl_micro_usd"],"additionalProperties":false,"description":"One candidate a create would try: its provider, the slug of the size it would run there, such as `boat/2x4`, and its price."},"EstimateRequest":{"type":"object","properties":{"disk_mib":{"anyOf":[{"type":"integer","minimum":1024,"maximum":9007199254740991},{"type":"null"}],"description":"Disk size in MiB. Null or unset takes the provider default.","default":null},"egress":{"anyOf":[{"$ref":"#/components/schemas/EgressPolicy"},{"type":"null"}],"description":"Null or unset allows all outbound access.","default":null},"env":{"anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string"}},{"type":"null"}],"description":"Environment variables by name. Sandcovery passes them to the provider and never returns them. Null or unset sets none.","default":null},"gpu":{"anyOf":[{"$ref":"#/components/schemas/Gpu"},{"type":"null"}],"description":"Null or unset adds no GPU.","default":null},"idle_timeout_seconds":{"anyOf":[{"type":"integer","minimum":60,"maximum":9007199254740991},{"type":"null"}],"description":"Seconds without a running command after which the provider pauses the sandbox. Null or unset means no idle timeout.","default":null},"image":{"anyOf":[{"type":"string","minLength":1,"pattern":"^(?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\\[(?:[a-fA-F0-9:]+)\\])(?::[0-9]+)?\\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*(?::[\\w][\\w.-]{0,127})?(?:@[A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][0-9A-Fa-f]{32,})?$"},{"type":"null"}],"description":"An OCI image reference. Null or unset means the provider's default image for `os`.","default":null},"os":{"anyOf":[{"$ref":"#/components/schemas/OperatingSystemPick"},{"type":"null"}],"description":"The operating system the sandbox runs: `linux`, `windows`, or `macos`. It runs only on a provider that runs that operating system. Null or unset means `linux`.","default":null},"ports":{"anyOf":[{"type":"array","items":{"type":"integer","minimum":1,"maximum":65535},"maxItems":8},{"type":"null"}],"description":"Ports to expose for preview URLs. Some providers expose only these ports, and others expose any port of the sandbox, declared or not. Null or unset declares none.","default":null},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}],"description":"Null or unset allows any region.","default":null},"ttl_seconds":{"anyOf":[{"type":"integer","minimum":60,"maximum":86400},{"type":"null"}],"description":"Seconds from creation after which Sandcovery destroys the sandbox, even when the client is gone. Null or unset means 3600, and the API key may cap it lower.","default":null},"slug":{"anyOf":[{"$ref":"#/components/schemas/Slug"},{"type":"null"}],"description":"The slug to try first. Null or unset tries only `slugs`.","default":null},"slugs":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Slug"},"minItems":1,"maxItems":8},{"type":"null"}],"description":"Slugs to try in order, from 1 to 8, as OpenRouter takes `models`. Within a `sandcovery/` slug, a failed create (capacity, quota, a provider 5xx, or a timeout) first falls back across that slug's candidates, then the create moves to the next slug. A provider is tried at most once a create, at the size of the first slug that reaches it. Null or unset tries only `slug`.","default":null},"api_key_id":{"anyOf":[{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},{"type":"null"}],"description":"The API key a signed-in dashboard session creates under. The sandbox then runs under that key's limits and belongs to that key, as if the key had sent the request. An admin may name any live API key of the organization, and a member only a key made for them. Null or unset creates with the session itself, which only an admin may do. A request authenticated by a key always creates under that key, so a non-null value from one answers 400 `invalid_request`.","default":null},"provider":{"anyOf":[{"$ref":"#/components/schemas/ProviderPreferences"},{"type":"null"}],"description":"Null or unset applies no routing preferences.","default":null}},"additionalProperties":false,"description":"A sandbox spec, the slug or slugs to run it on, and routing preferences, to price without creating anything. `slug` is the provider and size to run, as OpenRouter takes `model`, and `slugs` lists slugs to try in order, as OpenRouter takes `models`. With both, `slug` is tried first. With neither, the slug is `sandcovery/2x4`."},"OperatingSystemPick":{"type":"string","enum":["linux","windows","macos"],"description":"An operating system to pick: `linux`, `windows`, or `macos`."},"CreateSandboxRequest":{"type":"object","properties":{"disk_mib":{"anyOf":[{"type":"integer","minimum":1024,"maximum":9007199254740991},{"type":"null"}],"description":"Disk size in MiB. Null or unset takes the provider default.","default":null},"egress":{"anyOf":[{"$ref":"#/components/schemas/EgressPolicy"},{"type":"null"}],"description":"Null or unset allows all outbound access.","default":null},"env":{"anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"string"}},{"type":"null"}],"description":"Environment variables by name. Sandcovery passes them to the provider and never returns them. Null or unset sets none.","default":null},"gpu":{"anyOf":[{"$ref":"#/components/schemas/Gpu"},{"type":"null"}],"description":"Null or unset adds no GPU.","default":null},"idle_timeout_seconds":{"anyOf":[{"type":"integer","minimum":60,"maximum":9007199254740991},{"type":"null"}],"description":"Seconds without a running command after which the provider pauses the sandbox. Null or unset means no idle timeout.","default":null},"image":{"anyOf":[{"type":"string","minLength":1,"pattern":"^(?:(?:(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])(?:\\.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]))*|\\[(?:[a-fA-F0-9:]+)\\])(?::[0-9]+)?\\/)?[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*(?:\\/[a-z0-9]+(?:(?:[._]|__|[-]+)[a-z0-9]+)*)*(?::[\\w][\\w.-]{0,127})?(?:@[A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][0-9A-Fa-f]{32,})?$"},{"type":"null"}],"description":"An OCI image reference. Null or unset means the provider's default image for `os`.","default":null},"os":{"anyOf":[{"$ref":"#/components/schemas/OperatingSystemPick"},{"type":"null"}],"description":"The operating system the sandbox runs: `linux`, `windows`, or `macos`. It runs only on a provider that runs that operating system. Null or unset means `linux`.","default":null},"ports":{"anyOf":[{"type":"array","items":{"type":"integer","minimum":1,"maximum":65535},"maxItems":8},{"type":"null"}],"description":"Ports to expose for preview URLs. Some providers expose only these ports, and others expose any port of the sandbox, declared or not. Null or unset declares none.","default":null},"region":{"anyOf":[{"$ref":"#/components/schemas/Region"},{"type":"null"}],"description":"Null or unset allows any region.","default":null},"ttl_seconds":{"anyOf":[{"type":"integer","minimum":60,"maximum":86400},{"type":"null"}],"description":"Seconds from creation after which Sandcovery destroys the sandbox, even when the client is gone. Null or unset means 3600, and the API key may cap it lower.","default":null},"slug":{"anyOf":[{"$ref":"#/components/schemas/Slug"},{"type":"null"}],"description":"The slug to try first. Null or unset tries only `slugs`.","default":null},"slugs":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/Slug"},"minItems":1,"maxItems":8},{"type":"null"}],"description":"Slugs to try in order, from 1 to 8, as OpenRouter takes `models`. Within a `sandcovery/` slug, a failed create (capacity, quota, a provider 5xx, or a timeout) first falls back across that slug's candidates, then the create moves to the next slug. A provider is tried at most once a create, at the size of the first slug that reaches it. Null or unset tries only `slug`.","default":null},"api_key_id":{"anyOf":[{"type":"string","description":"API key ID: the Clerk API key ID, `ak_` followed by the rest of its ID, or for a key minted before the switch to Clerk, `key_` followed by a UUID v7."},{"type":"null"}],"description":"The API key a signed-in dashboard session creates under. The sandbox then runs under that key's limits and belongs to that key, as if the key had sent the request. An admin may name any live API key of the organization, and a member only a key made for them. Null or unset creates with the session itself, which only an admin may do. A request authenticated by a key always creates under that key, so a non-null value from one answers 400 `invalid_request`.","default":null},"provider":{"anyOf":[{"$ref":"#/components/schemas/ProviderPreferences"},{"type":"null"}],"description":"Null or unset applies no routing preferences.","default":null},"snapshot_id":{"anyOf":[{"type":"string","pattern":"^snap_[\\s\\S]*?$","description":"Snapshot ID: `snap_` followed by a UUID v7."},{"type":"null"}],"description":"A snapshot to start from. The sandbox runs on the snapshot's provider, and with egress null or unset keeps the egress policy of the sandbox the snapshot came from. Null or unset starts from the image.","default":null}},"additionalProperties":false,"description":"A sandbox spec, the slug or slugs to run it on, and routing preferences. `slug` is the provider and size to run, as OpenRouter takes `model`, and `slugs` lists slugs to try in order, as OpenRouter takes `models`. With both, `slug` is tried first. With neither, the slug is `sandcovery/2x4`. A spec option that no candidate provider can enforce answers 422 `unsupported` and is never ignored."},"MonthlyCostList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MonthlyCost"},"description":"Each provider Sandcovery routes to that runs the size on the operating system asked for and lists a price for it, cheapest first, and none when no such provider runs it. A provider whose rate card bills neither vCPU nor memory, such as software that runs on your own servers, lists no price and is left out."},"slug":{"$ref":"#/components/schemas/Slug"}},"required":["data","slug"],"additionalProperties":false,"description":"The monthly price of one size on every provider Sandcovery routes to that runs the operating system asked for and lists a price, and `slug`, such as `sandcovery/2x4:cheapest`, which routes a create of that size and operating system to the cheapest provider that bills by use and holds your credential, counting one that lists no price as free. A provider that charges by the month has no per-use price to compare, so it is never that cheapest provider."},"MonthlyCost":{"type":"object","properties":{"hourly_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"An amount in integer micro-dollars: 1,000,000 is 1 USD."},"monthly_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"List-price cost of the size for a month: the whole price of the flat monthly plan `plan_name` names, whatever the hours, or, when `plan_name` is null, the price an hour times `hours_per_day` hours on every day of an average month of 365/12 days."},"plan_name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The flat monthly plan the monthly price is, such as `Team`, sold whole for any hours, or null when the monthly price counts the hours."},"provider":{"$ref":"#/components/schemas/Provider"},"rate_card_basis":{"$ref":"#/components/schemas/RateCardBasis"},"rate_card_source_url":{"type":"string","description":"The provider's public pricing page the rate card copies."},"rate_card_version":{"type":"string"},"slug":{"$ref":"#/components/schemas/Slug"}},"required":["hourly_micro_usd","monthly_micro_usd","plan_name","provider","rate_card_basis","rate_card_source_url","rate_card_version","slug"],"additionalProperties":false,"description":"The price of one size on one provider from its rate card, by the hour and for a month, and the slug that pins it there, such as `e2b/2x4`. The price an hour of a monthly plan spreads it over a 730-hour month, and the monthly price of a plan named in `plan_name` is that whole plan. `rate_card_basis` says whether the provider bills use at that price or it spreads a monthly plan."},"Pricing":{"type":"object","properties":{"credits":{"$ref":"#/components/schemas/CreditTerms"},"enterprise_price":{"anyOf":[{"$ref":"#/components/schemas/ProPrice"},{"type":"null"}],"description":"The Enterprise price, or null while the Enterprise plan is not on sale."},"pro_price":{"anyOf":[{"$ref":"#/components/schemas/ProPrice"},{"type":"null"}],"description":"The Pro price, or null while Pro is not on sale."}},"required":["credits","enterprise_price","pro_price"],"additionalProperties":false,"description":"The public prices: the Pro and Enterprise prices for one organization and the terms of a credit purchase."},"CreditTerms":{"type":"object","properties":{"fee_fixed_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The fixed part of the processing fee that comes out of each credit purchase."},"fee_rate_basis_points":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The part of the processing fee that grows with the payment, in basis points of it, rounded to the cent: 290 is 2.9%."},"max_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The largest credit purchase, in whole US dollars."},"min_micro_usd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The smallest credit purchase, in whole US dollars."}},"required":["fee_fixed_micro_usd","fee_rate_basis_points","max_micro_usd","min_micro_usd"],"additionalProperties":false,"description":"How credits are bought: a payment in whole US dollars between the two bounds adds credit equal to the payment less the processing fee, spent at each provider list price."},"UnhealthyError":{"type":"object","properties":{"checks":{"$ref":"#/components/schemas/HealthChecks"},"error":{"type":"string","enum":["unhealthy"]},"message":{"type":"string"},"ok":{"type":"boolean","enum":[false]}},"required":["checks","error","message","ok"],"additionalProperties":false,"description":"A store the API cannot serve without failed its health check. `checks` marks that store false, and `message` names it."},"HealthChecks":{"type":"object","properties":{"postgres":{"type":"boolean","description":"Postgres answered a read through Hyperdrive. It holds every key, credential, sandbox, and provider board read, so the API serves nothing without it."}},"required":["postgres"],"additionalProperties":false,"description":"One boolean per store the API cannot serve without: true when it answered within 5 seconds."},"Health":{"type":"object","properties":{"checks":{"$ref":"#/components/schemas/HealthChecks"},"ok":{"type":"boolean","enum":[true]}},"required":["checks","ok"],"additionalProperties":false}},"securitySchemes":{"apiKey":{"description":"An API key, a Clerk API key secret starting with `ak_`, as `Authorization: Bearer <key>`.","type":"http","scheme":"Bearer"},"session":{"description":"The dashboard browser session: the Clerk session token Clerk keeps in the `__session` cookie.","type":"apiKey","name":"__session","in":"cookie"},"managementKey":{"description":"A management key, a Clerk API key secret starting with `ak_` that carries the `management` scope, as `Authorization: Bearer <key>`.","type":"http","scheme":"Bearer"}}},"security":[],"tags":[{"name":"health","description":"Health. Needs no credential."},{"name":"pricing","description":"The Pro and Enterprise prices, the credit terms, and the monthly price of a size on each provider. Needs no credential."},{"name":"sandboxes","description":"Sandboxes, cost estimates, and the calls that drive sandboxes. Needs an API key or a dashboard session; a management key receives 403. An API key reaches only the sandboxes it created."},{"name":"agents","description":"Always-on agents: open-source agents that Sandcovery installs, starts, and keeps running in a sandbox it renews before each expiry. Needs an API key or a dashboard session; a management key receives 403. An API key reaches only the agents it created. Creating, starting, restarting, stopping, and deleting an agent, and attaching to it, need an API key or the session of an organization admin."},{"name":"activity","description":"The activity log. Needs an API key or a dashboard session; a management key receives 403."},{"name":"usage","description":"Usage. Needs a management key or the session of an organization admin; an API key or any other session receives 403."},{"name":"sharedUsage","description":"Usage an organization shared by link. Needs no credential."},{"name":"stats","description":"Stats. Needs an API key, a management key, or the session of any member of the organization."},{"name":"statsShare","description":"The public stats link. Needs a management key or the session of an organization owner or admin; an API key or any other session receives 403."},{"name":"sharedStats","description":"Stats an organization shared by link. Needs no credential."},{"name":"keys","description":"API keys and management keys. Needs a management key or the session of an organization admin; anyone else receives 403."},{"name":"cliSignIns","description":"Signing in the CLI on a computer, as `sandcovery login` does: it starts a sign-in, a signed-in person approves it in the dashboard, and the CLI collects a key that acts as that person. Needs no credential."},{"name":"cliSignInApprovals","description":"Approving a computer's CLI sign-in. Needs a signed-in dashboard session; a key receives 403."},{"name":"appGrants","description":"Sign in with Sandcovery: what an OAuth app may do for you. Needs a signed-in dashboard session; a key or an app receives 403."},{"name":"credentials","description":"Credentials for your own provider accounts. Needs a management key or the session of an organization admin; an API key or any other session receives 403."},{"name":"billing","description":"Billing. Needs a management key or the session of an organization admin; an API key or any other session receives 403."},{"name":"ciJobs","description":"Sandcovery CI jobs, which run GitHub Actions jobs on runner sandboxes, the providers they run on, and the GitHub accounts linked to them. Needs an API key or a dashboard session; a management key receives 403. Every API key of the organization reads every CI job."},{"name":"ciInstallations","description":"GitHub installations linked to Sandcovery CI. An organization admin links one from the dashboard, since GitHub confirms the installation in the browser. Needs a management key or the session of an organization admin; an API key or any other session receives 403."},{"name":"xAccount","description":"The X account linked to you: the person signed in, or the admin who minted the management key. An X account belongs to a person, never to an organization. Needs a management key or a signed-in session; an API key receives 403."},{"name":"providers","description":"The public provider board and catalog. Needs no credential. Every 200 answer carries a public Cache-Control and an ETag, and a request that sends the ETag back in If-None-Match answers 304 with no body while the data is unchanged."},{"name":"problemReports","description":"Problem reports to the Sandcovery team. Needs no credential."}],"servers":[{"description":"Production","url":"https://www.sandcovery.com"}]}