Replay a captured event against an alternate target
const url = 'https://api.catchbin.io/v1/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/events/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/replay';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"mode":"example","target_url":"example","target_secret":"example"}'};
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.catchbin.io/v1/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/events/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/replay \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "mode": "example", "target_url": "example", "target_secret": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "mode": "example", "target_url": "example", "target_secret": "example"}Responses
Section titled “Responses”OK
object
Per-account daily replay limit reached. The response carries a Retry-After header (seconds to the next UTC midnight) and RateLimit-Limit / RateLimit-Remaining / RateLimit-Reset headers.
The error reply carried by every error response on every non-receiver surface. Consumers branch on error; message is a fixed constant for every refusal code, so it never varies with the cause of a refusal.
object
Stable machine-readable code identifying the class of error.
Human-readable text. May describe what the caller did wrong; never describes anything the caller cannot access, and never carries a stack trace, exception type name or exception message.
Always present, always an object, empty by default. A validation failure puts the offending field here.
object
The request’s reference id. Equals the X-Request-Id response header on the same reply and the requestId on that request’s log lines — quote it to support and the exact request resolves in one search.
Catchbin had no spare outbound capacity for the destination and never contacted it (error code egress_capacity_exhausted). The response carries Retry-After: 1 and deliberately no RateLimit-* headers: capacity is momentary and shared, not a per-caller budget. Nothing was sent, nothing was recorded, and the daily replay allowance is untouched.
The error reply carried by every error response on every non-receiver surface. Consumers branch on error; message is a fixed constant for every refusal code, so it never varies with the cause of a refusal.
object
Stable machine-readable code identifying the class of error.
Human-readable text. May describe what the caller did wrong; never describes anything the caller cannot access, and never carries a stack trace, exception type name or exception message.
Always present, always an object, empty by default. A validation failure puts the offending field here.
object
The request’s reference id. Equals the X-Request-Id response header on the same reply and the requestId on that request’s log lines — quote it to support and the exact request resolves in one search.