List Events
GET https://api.baanx.com/v1/webhooks/events
Retrieves a list of events for the authenticated partner.
Overview
Events are notifications generated by the system that have been or will be delivered to your configured webhooks. Use this endpoint to monitor event processing status, identify failed events, and review recent activity.
Authentication
This endpoint requires authentication via Bearer token:
Authorization: Bearer YOUR_ACCESS_TOKEN
Request
Bearer token for authentication
Query Parameters
Filter events by processing status. Accepted values: pending, processing, completed, failed, skipped
Maximum number of events to return. Range: 1–100.
Request Example
cURL
JavaScript
Python
TypeScript
curl -X GET "https://api.baanx.com/v1/webhooks/events?status=failed&limit=25" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
200 Success
Total number of events matching the query
Unique identifier for this event record
Business event identifier
Partner tenant identifier
Type of event (e.g., kyc.status.changed, card.activated, transaction.cleared)
Associated user ID, if applicable
Name of the service that generated this event
Current processing status: pending, processing, completed, failed, or skipped
Timestamp when the event was created
Timestamp when the event was processed (null if not yet processed)
Timestamp when the event was queued for delivery
{
"total" : 100 ,
"events" : [
{
"id" : "550e8400-e29b-41d4-a716-446655440000" ,
"eventId" : "660e8400-e29b-41d4-a716-446655440001" ,
"tenant" : "partner-name" ,
"eventType" : "kyc.status.changed" ,
"payload" : {
"userId" : "user-123" ,
"status" : "approved"
},
"userId" : "user-123" ,
"sourceService" : "kyc-service" ,
"status" : "completed" ,
"createdAt" : "2025-12-29T10:00:00.000Z" ,
"processedAt" : "2025-12-29T10:00:05.000Z" ,
"queuedAt" : "2025-12-29T10:00:01.000Z"
}
]
}
Error Responses
401 - Unauthorized
403 - Forbidden
503 - Service Unavailable
{
"message" : "Not authenticated"
}
GET /v1/webhooks/events/{eventId}/status - Get status of a specific event
GET /v1/webhooks/events/{eventId}/logs - View delivery logs for a specific event
POST /v1/webhooks/events/{eventId}/retry - Retry delivery of a failed event