Release idempotency key
cooper_release_idempotency_keyUse this after you have confirmed an unknown Idempotency-Key did not send, or you accept the risk of sending again. Requires auth and message_send. Inputs: key (required). Deletes an unknown key, including a stale in_progress row older than the 10 minute lease, so the same key can be reused. Returns {key, released:true}. A done key is HTTP 409 idempotency_key_done and still replays. A fresh in_progress key is HTTP 409 idempotency_request_in_progress. A missing key is HTTP 404 idempotency_key_not_found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Idempotency-Key value to release. |
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. |