Resolve idempotency key
cooper_resolve_idempotency_keyUse this when an unknown Idempotency-Key matches a message you found in the sent folder. Requires auth and message_send. Inputs: key (required), message_id (required). Marks the key done and links that message so a later retry replays it and does not send again. The message must belong to the key's inbox. Returns the key with state done. A done key is HTTP 409 idempotency_key_done. A fresh in_progress key is HTTP 409 idempotency_request_in_progress. An unknown message is HTTP 404 message_not_found. A missing key is HTTP 404 idempotency_key_not_found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Idempotency-Key value to resolve. | |
| message_id | Yes | Stored message id (msg_…), draft id, phone number id, or chat reply id on this key's inbox. |
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. |