Skip to content

Retry message

Request

Queues another send of the stored message. The recipient comes from the chat contact and the original message, and the account billed is the one the API key belongs to — the body carries neither, and sending accountId or phoneNumber is rejected with 400 rather than ignored.

Security
bearerAuth(Required scopes: inbox.messages:write) or oauth2(Required scopes: inbox.messages:write)
Headers
Idempotency-Keystring, <= 255 characters^[\x21-\x7e]{1,255}$

Optional. A unique value of your own, up to 255 printable characters without spaces — a UUID is ideal. The first request carrying it is processed; any later request with the same key returns that first response instead of repeating the work, for 24 hours. A replayed response carries Idempotency-Replayed: true. Reuse the key when you retry after a timeout, and change it when you mean to send again.

Bodyapplication/jsonrequired
messageIdstring, non-emptyrequired
Example:"wamid.example"
chatIdstring^[0-9a-fA-F]{24}$required
Example:"507f1f77bcf86cd799439011"
connectionIdstring^[0-9a-fA-F]{24}$required
Example:"507f191e810c19729de860ea"
curl -i -X POST \
  https://developer.iclosed.io/_mock/openapi/uinbox/v1/modules/messages/v1/messages/retry \
  -H 'Authorization: Bearer <YOUR_API key_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: string' \
  -d '{
    "messageId": "wamid.example",
    "chatId": "507f1f77bcf86cd799439011",
    "connectionId": "507f191e810c19729de860ea"
  }'

Responses

The retry was accepted and queued.

Bodyapplication/json
dataobjectrequired
Response
{ "data": { "messageId": "string", "status": "queued" } }