Pull the cut-off switch

Refuses all network traffic of one sandbox, every sandbox of one policy, or the whole project, at once.

POST/v1/cut-offs

Refuses all network traffic of one sandbox, every sandbox of one policy, or the whole project, at once. Only narrows, as stopping a sandbox does, so a project key with permissions:write may. A cut-off a server does not confirm in 5 seconds is passed to Pod's scheduler, which pauses the sandbox. Pulling the same target again while it is in force answers the cut-off in force. A sandbox cut off alone runs a table of its own from then on.

A key with the permissions:write scope.

Request

curl -X POST "https://api.pod.mapier.ai/v1/cut-offs?project=example" \
  -H "Authorization: Bearer $POD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target":"sandbox","target_id":"example"}'

Parameters

NameInTypeRequiredWhat it is
projectquerystringYesThe project the call is about. Every route is scoped to one.
Pod-OrganisationheaderstringNoThe organization, for a person who belongs to several. An API key's organization is its own, and a different one here is forbidden.
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Body

FieldTypeRequiredWhat it is
projectstringNoOptional; when sent it must be the project of the query.
target"sandbox" | "policy" | "project"Yes
target_idstringYes

Answer

201. The cut-off, in force.

201
{
  "id": "example",
  "target": "sandbox",
  "target_id": "example",
  "pulled_at": "2026-11-23T12:00:00.000Z",
  "pulled_by": "example",
  "state": "waiting",
  "confirmed_at": null,
  "escalated_at": null,
  "paused": ["example"],
  "not_paused": [
    {
      "sandbox": "example",
      "reason": "example"
    }
  ]
}
FieldTypeAlwaysWhat it is
idstringYes
target"sandbox" | "policy" | "project"Yes
target_idstringYesThe sandbox, the policy or the project.
pulled_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
pulled_bystringYesWho made a change. An identity account id for a person, or a key id (key_…) for an API key.
state"waiting" | "confirmed" | "escalated"Yeswaiting: servers have not all applied a table carrying the cut-off yet. confirmed: every sandbox's server has. escalated: some had not within 5 seconds, and those sandboxes were passed to Pod's scheduler to pause.
confirmed_atstring | nullYes
escalated_atstring | nullYes
pausedstring[]YesSandboxes Pod's scheduler paused because their server did not confirm in time.
not_pausedobject[]YesSandboxes passed to the scheduler that it did not pause, and why. They are asked again.

Errors

The refusals this call is known for: invalid, unauthorized, forbidden, not_found. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.