List outgoing webhook events
Changed onReturns paginated records of outgoing webhooks sent to your webhook URL. Webhooks are persisted for a fixed retention period of 7days.
Request
- Base URLhttps://api.breet.io/v1
- AuthAPI key in header x-app-id and API key in header x-app-secret and API key in header X-Breet-Env
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Page number (1-indexed).
Number of items per page (max 200 on the server).
Optional sort expression (string).
Optional filter expression (string).
Optional export flag.
Optional search string.
If used with endDate, filters by date range (ISO 8601).
If used with startDate, filters by date range (ISO 8601).
Optional. The trade or withdrawal document ID (MongoDB ObjectId string) used as the webhook reference.
Stored delivery outcome for the webhook event document.
Optional. Filter by overall delivery status of the stored webhook event.
Webhook event name (matches event / eventType for trade and withdrawal notifications).
Optional. Filter by webhook event type (matches eventType in the stored document).
Response
Paginated list of webhook event documents
Example response
{
"success": true,
"data": [
{
"id": "67a1b2c3d4e5f67890123456"
}
]
}Changes
- warning
added the new
trade.deletedenum value to the//response property for the response status - info
added the new enum value
trade.deletedto thequeryrequest parametereventName
- warning