Get an operation started by a `202`

Get an operation started by a `202`

GET/v1/operations/{operation_id}

A key with the sandboxes:read scope.

Request

curl "https://api.pod.mapier.ai/v1/operations/op_3ahrz6dmv29gqy5ckt18fpx4b" \
  -H "Authorization: Bearer $POD_API_KEY"

Parameters

NameInTypeRequiredWhat it is
operation_idpathstringYes

Answer

200. The operation.

200
{
  "id": "op_3ahrz6dmv29gqy5ckt18fpx4b",
  "kind": "sleep",
  "sandbox": "sbx_3ahrz6dmv29gqy5ckt18fpx4b",
  "state": "running",
  "created_at": "2026-11-23T12:00:00.000Z",
  "finished_at": null,
  "error": null,
  "snapshot": null,
  "sandboxes": null,
  "first_actions": null
}
FieldTypeAlwaysWhat it is
idstringYes
kind"sleep" | "wake" | "stop" | "start" | "resize" | "snapshot" | "fork" | "delete"Yes
sandboxstringYes
state"running" | "succeeded" | "failed"Yes
created_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
finished_atstring | nullYes
errorError | nullYesSet when failed.
snapshotstring | nullYesFor a snapshot, the snapshot made.
sandboxesstring[] | nullYesFor a fork, the copies made.
first_actionsFirstActionRun[] | nullYesFor a fork with first_action, each copy's command.

Errors

The refusals this call is known for: not_found, in_other_cell. 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.

In the SDKs

ClientCall
TypeScriptpod.operations.get(id)
Pythonpod.operations.get(id)
mpodmpod sandboxes operations get <operation>