Skip to main content

Bulk Resend Notifications

Use this endpoint to bulk-resend the webhook notifications that match a set of filters.

Available Environments​

https://api.gateway.com.br/dispatcher

Endpoint​

  • Method: POST
  • Endpoint: /request/resend
  • Authentication: Bearer token

Body Rules​

ℹ️ Conditional rules

You must send one of the options below:

  • startDate + endDate (when referenceId is not sent)
  • referenceId (when startDate and endDate are not sent)

To cover every field of the DTO, use the complete examples of both scenarios below.

ℹ️ Dates cannot be in the future

The startDate and endDate fields must be valid ISO 8601 dates and not in the future.

Example:

  • 2026-03-24T00:00:00Z
NameTypeRequiredDescriptionValidations
startDatestring (ISO 8601)ConditionalStart date of the filterRequired when referenceId is not sent. Cannot be in the future
endDatestring (ISO 8601)ConditionalEnd date of the filterRequired when referenceId is not sent. Cannot be in the future
referenceIdstringConditionalReference ID of a specific notificationRequired when startDate and endDate are not sent
statusstring[] (enum) - RECEIVED, SENT, FAILED, ERRORNoList of statuses for the filterMust be a non-empty array
tagsstring[]NoList of tags for the filterNon-empty array, at most 10 items
overrideURLstring (URL)NoURL that replaces the current destination URL of the notification on the resend (where the notification will be sent)Must be a valid URL

Request Example (startDate + endDate scenario)​

curl --request POST \
--url https://api.gateway.com.br/dispatcher/request/resend \
--header 'Authorization: Bearer your-jwt-token' \
--header 'Content-Type: application/json' \
--data '{
"startDate": "2026-03-23T00:00:00Z",
"endDate": "2026-03-24T23:59:59Z",
"status": ["RECEIVED", "SENT", "FAILED", "ERROR"],
"tags": ["webhook", "notification"],
"overrideURL": "https://api.example.com/webhooks/custom-callback"
}'

Request Example (referenceId scenario)​

curl --request POST \
--url https://api.gateway.com.br/dispatcher/request/resend \
--header 'Authorization: Bearer your-jwt-token' \
--header 'Content-Type: application/json' \
--data '{
"referenceId": "123e4567-e89b-12d3-a456-426614174001",
"status": ["RECEIVED", "SENT", "FAILED", "ERROR"],
"tags": ["webhook", "notification"],
"overrideURL": "https://api.example.com/webhooks/custom-callback"
}'

Success Response​

CodeDescription
201 CreatedRequest accepted for resend processing
ℹ️ Response body

This endpoint returns 201 and has no response payload.

Possible Errors​

CodeDescriptionSolution
400Invalid requestCheck the body format and the conditional rules
401Invalid credentialsCheck your token
403No permission/authorizationCheck the resend_dispatcher scope
422Unprocessable entityReview the fields and validations
500Internal errorContact support