Retry Event Delivery
POST https://api.baanx.com/v1/webhooks/events/{eventId}/retry
Manually triggers a retry of event delivery to one or all configured webhook endpoints.
Overview
Use this endpoint to resend a failed event or to re-deliver an event to a specific webhook. By default, the event is retried to all currently configured and active webhooks. To target a single webhook, include its ID in the request body.
Authentication
This endpoint requires authentication via Bearer token:
Authorization: Bearer YOUR_ACCESS_TOKEN
Request
Bearer token for authentication
Must be application/json if providing a request body
Path Parameters
Unique identifier of the event to retry
Body
The request body is optional. Omit it entirely to retry delivery to all configured webhooks.
Optional. If provided, retries delivery only to this specific webhook. If omitted, retries to all active configured webhooks.
Request Examples
cURL - Retry All
cURL - Retry Specific Webhook
JavaScript
Python
TypeScript
curl -X POST https://api.baanx.com/v1/webhooks/events/550e8400-e29b-41d4-a716-446655440000/retry \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
200 Success
Indicates the retry was successfully queued
ID of the event being retried
Number of webhooks the event will be delivered to
Human-readable confirmation message
{
"success" : true ,
"data" : {
"eventId" : "550e8400-e29b-41d4-a716-446655440000" ,
"webhookCount" : 2 ,
"message" : "Event queued for retry to 2 webhook(s)"
}
}
Error Responses
400 - Validation Error
401 - Unauthorized
403 - Forbidden
404 - Not Found
503 - Service Unavailable
{
"message" : "webhookId must be a valid UUID"
}
GET /v1/webhooks/events/{eventId}/status - Check event status before retrying
GET /v1/webhooks/events/{eventId}/logs - View delivery logs after retrying
GET /v1/webhooks/events - List all events and their statuses