List a sandbox's keys
The keys made for this sandbox, revoked and expired ones included, newest first.
GET/v1/sandboxes/{sandbox_id}/keys
The keys made for this sandbox, revoked and expired ones included, newest first. Never a secret.
A key with the keys:write scope.
Request
curl "https://api.pod.mapier.ai/v1/sandboxes/sbx_3ahrz6dmv29gqy5ckt18fpx4b/keys" \
-H "Authorization: Bearer $POD_API_KEY"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
sandbox_id | path | string | Yes | |
limit | query | integer | No | |
cursor | query | string | No | The next_cursor of the page before. Valid for 24 hours. |
Answer
200. A page of the sandbox's keys, newest first.
{
"data": [
{
"id": "key_3ahrz6dmv29gqy5ckt18fp",
"name": "example",
"project": "prj_3ahrz6dmv29gqy5ckt18fp",
"mode": "test",
"class": "person",
"scopes": ["sandboxes:read"],
"last_four": "example",
"created_by": "example",
"created_at": "2026-11-23T12:00:00.000Z",
"expires_at": null,
"revoked_at": null,
"service": null,
"billing_mark": null,
"parent_sandbox": null,
"parent_scopes": null,
"last_used_at": null,
"rotated_at": null,
"previous_secret_until": null
}
],
"next_cursor": null
}| Field | Type | Always | What it is |
|---|---|---|---|
data | ApiKey[] | Yes | |
next_cursor | string | null | Yes |
Errors
The refusals this call is known for: invalid, 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.
In the SDKs
| Client | Call |
|---|---|
| TypeScript | pod.sandboxKeys.list(sandboxId) |
| Python | pod.sandbox_keys.list(sandbox_id) |