Fetch webhook events
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:
curl:
curl --location 'https://sdk-mobile-api-rc.truvideo.com/api/webhook/search?from=2024-11-19T00%3A00%3A00Z&to=2024-11-21T23%3A59%3A59Z&page=0&size=1000&status=FAILED&status=SUCCESS&mediaId=22efa582-1f6f-457c-a555-3cb3bf7f2a56&subAccountId=54535d5a-551a-4716-aad1-e719c742d288' \
--header 'Accept: text/csv' \
--header 'Authorization: Bearer {{YOUR-ACCESS-TOKEN}}'
The authorization header must contain the Bearer token obtained from authentication.
The required parameters are from, to, and status.
To retrieve only successful webhooks, include the query parameter:
status=SUCCESS
To retrieve all webhooks, include both query parameters:
status=FAILED & status=SUCCESS If the events of a specific subAccount are required, the subAccountId must be provided.
Response example
The endpoint responds with the details of the webhooks sent during the specified period.
For more information regarding the response body content, check the Callback webhook documentation.
Last updated