API Reference

Idempotency Keys

Inspect stored idempotency keys and their replays.

3 endpoints· Auth: JWT or API Key
get/api/v1/console/platform/idempotency-keys JWT API Key

The 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

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/platform/idempotency-keys" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/platform/idempotency-keys/{id}/release JWT API Key

Free 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

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
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"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/platform/idempotency-keys/sweep JWT API Key

Run 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

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/platform/idempotency-keys/sweep" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Headers

Set credentials in the “Authorize” menu