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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
operation_id | path | string | Yes |
Answer
200. The operation.
{
"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
}| Field | Type | Always | What it is |
|---|---|---|---|
id | string | Yes | |
kind | "sleep" | "wake" | "stop" | "start" | "resize" | "snapshot" | "fork" | "delete" | Yes | |
sandbox | string | Yes | |
state | "running" | "succeeded" | "failed" | Yes | |
created_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
finished_at | string | null | Yes | |
error | Error | null | Yes | Set when failed. |
snapshot | string | null | Yes | For a snapshot, the snapshot made. |
sandboxes | string[] | null | Yes | For a fork, the copies made. |
first_actions | FirstActionRun[] | null | Yes | For 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
| Client | Call |
|---|---|
| TypeScript | pod.operations.get(id) |
| Python | pod.operations.get(id) |
| mpod | mpod sandboxes operations get <operation> |