To retrieve webhooks sent within a specific period, the API provides a search endpoint. This allows filtering webhooks by date range and a subaccount identifier provided by the authentication token.
Request example
You can make an HTTP GET request to the following endpoint, specifying the desired parameters:
text/csv: The API will returns a response in format CSV.
application/json: The API will return a JSON response.
QUERY PARAMS:
from: The start of the date range for the search is format ISO 8601 (e.g., 2024-11-19T00:00:00Z). The date and time values should be URL-encoded to ensure proper parsing by the server.
to: The end of the date range for the search, also in ISO 8601 format (e.g., 2024-11-21T23:59:59Z). The date and time values should be URL-encoded to ensure proper parsing by the server.
page: The page number for the search results. It enables navigating through paginated responses.
size: The maximum number of records to return in the response. The maximum value allowed is 1000. The size parameter limits the number of records returned in a single response. If there are more records, pagination may be required.
status: The status of the webhook delivery. It can be FAILED, SUCCESS or both. (e.g., status=SUCCESS & status=FAILED).
mediaId: Return all webhook events associated to the given media ID value
subAccountId: if the subAccountId is not provided, the search will be performed across all subAccounts of the account.
Response example
The endpoint responds with the details of the webhooks sent during the specified period.
CSV response example - Accept: text/csv
In addition, the response includes the following headers with the pagination details: