Replay a message
const url = 'https://api.hookbridge.io/v1/messages/01935abc-def0-7123-4567-890abcdef012/replay';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.hookbridge.io/v1/messages/01935abc-def0-7123-4567-890abcdef012/replay \ --header 'Authorization: Bearer <token>'Re-enqueue a message for delivery. This creates a new delivery attempt using the original payload. Useful for recovering from transient failures, testing endpoints, or re-processing a successfully delivered message.
Both failed and succeeded messages can be replayed, as long as the
payload is still within its retention window. Retention is anchored to the
message’s creation time (created_at; received_at for inbound messages)
regardless of status, so replaying does not extend the retention window.
Limits: Maximum 10 replays per message.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Unique message identifier (UUIDv7)
Example
01935abc-def0-7123-4567-890abcdef012Responses
Section titled “Responses”Message successfully re-enqueued
object
object
object
Unique identifier for this request (useful for support)
Example
{ "message": "Message queued for replay", "data": { "message_id": "01935abc-def0-7123-4567-890abcdef012", "status": "queued" }, "meta": { "request_id": "req_xyz123" }}Unauthorized - Invalid or missing API key
object
object
Machine-readable error code
Human-readable error message
object
Unique identifier for this request (useful for support)
Example
{ "error": { "code": "UNAUTHORIZED", "message": "Invalid or missing API key" }, "meta": { "request_id": "req_xyz123" }}Resource not found
object
object
Machine-readable error code
Human-readable error message
object
Unique identifier for this request (useful for support)
Example
{ "error": { "code": "NOT_FOUND", "message": "Message not found" }, "meta": { "request_id": "req_xyz123" }}Message cannot be replayed due to its current state. Possible error codes: DELIVERY_IN_PROGRESS (message is currently being delivered), RETRY_IN_PROGRESS (message is in active fast retry after a 429 response).
object
object
Machine-readable error code
Human-readable error message
object
Unique identifier for this request (useful for support)
Examples
Fast retry in progress
{ "error": { "code": "RETRY_IN_PROGRESS", "message": "Message is in active fast retry; wait for retries to complete or fail before replaying" }, "meta": { "request_id": "req_xyz123" }}Delivery in progress
{ "error": { "code": "DELIVERY_IN_PROGRESS", "message": "Message is currently being delivered; wait for delivery to complete before replaying" }, "meta": { "request_id": "req_xyz123" }}Message payload is no longer available for replay. Possible error codes: RETENTION_EXPIRED (the message’s retention window has elapsed), PAYLOAD_UNAVAILABLE (the payload was cleaned up by the sweeper before retention expired), MESSAGE_DELETED (the message was explicitly deleted).
object
object
Machine-readable error code
Human-readable error message
object
Unique identifier for this request (useful for support)
Examples
Retention window elapsed
{ "error": { "code": "RETENTION_EXPIRED", "message": "Message retention period has expired and payload is no longer available for replay" }, "meta": { "request_id": "req_xyz123" }}Payload already cleaned up
{ "error": { "code": "PAYLOAD_UNAVAILABLE", "message": "Message payload has already been cleaned up and cannot be replayed" }, "meta": { "request_id": "req_xyz123" }}Message explicitly deleted
{ "error": { "code": "MESSAGE_DELETED", "message": "Message has been deleted and cannot be replayed" }, "meta": { "request_id": "req_xyz123" }}Replay limit exceeded
object
object
Machine-readable error code
Human-readable error message
object
Unique identifier for this request (useful for support)
Example
{ "error": { "code": "REPLAY_LIMIT_EXCEEDED", "message": "Message has already been replayed 10 times (limit: 10)" }, "meta": { "request_id": "req_xyz123" }}Enter your credentials to populate code examples throughout the docs.