Get idempotency key
cooper_get_idempotency_keyUse this to see whether an Idempotency-Key is in progress, done, or unknown. Read-only; requires auth and message_read. Inputs: key (required; the Idempotency-Key value). Returns {key, state, endpoint, inbox_id, message_id, created_at, expires_at, unknown_since?, last_error?}. state is in_progress, done, or unknown. unknown means an earlier send may or may not have been delivered. A missing key is HTTP 404 idempotency_key_not_found. An inbox-scoped key only sees a row for its inbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Idempotency-Key value, 1 to 256 characters of letters, digits, and - . _ ~. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | The Idempotency-Key value. | |
| state | No | in_progress, done, or unknown. | |
| endpoint | No | Endpoint the key was used on. | |
| inbox_id | No | Inbox id (inb_…) this object belongs to. Null when it applies to every inbox. | |
| released | No | True when the key was released for reuse. | |
| created_at | No | ISO-8601 time the object was created. | |
| expires_at | No | ISO-8601 time the object expires, or null for no expiry. | |
| last_error | No | Last error seen for this key, when any. | |
| message_id | No | Message id (msg_…) this result refers to. | |
| unknown_since | No | ISO-8601 time the outcome became unknown, when it did. |