API Reference
Idempotency Keys
Inspect stored idempotency keys and their replays.
/api/v1/console/platform/idempotency-keys JWT API KeyThe branch's anchor rows, newest first
`stuck_only` is the filter worth knowing: in-flight rows whose five-minute lease has run out. The lease reclaims one automatically on the next presentation, so a row that stays on this list is one no device is coming back for.
- Capability
manage_settings- API key scope
cap:manage_settings(the key's owner must also hold the capability)
Query parameters
| Scope string | `sync.sale`, `sync.count`, … Optional. |
| Status string | `in_flight|completed|failed`. Optional. |
| StuckOnly boolean | Only rows whose lease has run out — the stuck claims worth looking at. |
| Page integer (int32) | — |
| PerPage integer (int32) | — |
| Search string | Free-text filter. Its meaning is per-resource and documented on the endpoint. |
| Skip integer (int32) | Rows to skip, derived — never sent by the caller on this surface. |
| Sort string | A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order. |
| Dir string | `asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort. |
Responses
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/platform/idempotency-keys" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/platform/idempotency-keys/{id}/release JWT API KeyFree a stuck claim by hand
A `completed` row is refused with `CONFLICT`: releasing it would discard the recorded answer a device is entitled to replay, and the next presentation would post the command a second time.
- Capability
manage_settings- API key scope
cap:manage_settings(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
{
"reason": "string"
}| reason string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/platform/idempotency-keys/{id}/release" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/platform/idempotency-keys/sweep JWT API KeyRun the expiry sweep now
Marks in-flight rows whose retention window has closed so their keys become claimable again. Idempotent and safe to run repeatedly — a row it has already marked no longer matches its predicate. A `completed` row is deliberately left alone until its own window closes: sweeping on completion would make a device's late replay indistinguishable from a fresh command.
- Capability
manage_settings- API key scope
cap:manage_settings(the key's owner must also hold the capability)
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/platform/idempotency-keys/sweep" \
-H "X-Api-Key: <YOUR_API_KEY>"Headers