Report activity, for idle sleep
Counts as activity for idle sleep.
POST/v1/sandboxes/{sandbox_id}/activity
Counts as activity for idle sleep. A busy report counts for at most 10 minutes.
A key with the sandboxes:write scope.
Request
curl -X POST "https://api.pod.mapier.ai/v1/sandboxes/sbx_3ahrz6dmv29gqy5ckt18fpx4b/activity" \
-H "Authorization: Bearer $POD_API_KEY" \
-H "Content-Type: application/json" \
-d '{"busy":true,"at":"2026-11-23T12:00:00.000Z"}'Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
sandbox_id | path | string | Yes | |
Pod-End-User | header | string | No | Narrows a project key to one of its end users: the call sees only that end user's sandboxes and usage, any other answering not_found, and a create is labelled with it. An end user of another project, or one that is not there, is not_found; a suspended one refuses creates and wakes (account_restricted). |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
busy | boolean | Yes | A busy report keeps the sandbox awake for at most 10 minutes. |
at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
Answer
204. Recorded.
Errors
The refusals this call is known for: invalid, 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 | sandbox.reportActivity() |
| Python | sandbox.report_activity() |
| mpod | mpod sandboxes activity <sandbox> |