List webhook subscription matched events
Changed onRetrieve webhook events that match the subscriptionId specified.
Returns matches in descending order by creation time (newest first), including delivery status, retry count, next attempt time, and response details.
Only matched events are returned. Matched events are events that both:
- Have the same eventType as defined in the subscription's list of eventTypes.
- Match all labels defined in the subscription's labels.
If an event didn't match the subscription's labels or eventTypes, it will not be returned by this endpoint.
Use Cases
- View all events for a subscription to inspect subscription health
- Confirm that a target URL received all matched events successfully
Use eventId to find all matches for a specific event, including replays.
Use status to return only matches in a given delivery state, such as retrying matches that need attention.
Use pageSize to control the number of matched events returned and pageToken to retrieve subsequent pages.
Request
- Base URLhttps://api.cdp.coinbase.com/platform
- AuthHTTP bearer
Path parameters
Unique identifier for the webhook subscription.
Query parameters
The number of matches to return per page.
The token for the next page of resources, if any.
Filter by a specific event ID.
Filter matched events created at or after this timestamp (RFC 3339 format).
Filter matched events created at or before this timestamp (RFC 3339 format).
Filter by event type names (comma-separated).
Current state of the matched event.
- retrying: The event is currently being retried. For when the next attempt will occur, see nextAttemptAt.
- abandoned: The event was abandoned. This means the subscription was disabled during the retry lifecycle.
- succeeded: The event was successfully delivered to the target URL.
- failed: The event delivery failed due to reaching the maximum number of retry attempts or other non-retryable failure such as a subscription misconfiguration.
Filter matched events by status.
Response
Webhook events retrieved successfully.
Response containing a list of webhook events that match the subscriptionId specified.
The list of webhook events that match the subscriptionId specified.
Events are sorted by createdAt in descending order (most recent first).
Example response
{
"matches": [
{
"eventId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"matchId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"subscriptionId": "123e4567-e89b-12d3-a456-426614174000",
"eventType": "onchain.activity.detected",
"createdAt": "2025-01-15T10:30:00Z",
"occurredAt": "2025-01-15T10:29:58Z",
"succeededAt": "2025-01-15T10:30:02Z",
"attemptCount": 1,
"status": "succeeded",
"payload": {
"eventId": "00000000-0000-0000-0000-000000000000",
"eventType": "onchain.activity.detected",
"data": {
"foo": "bar"
}
},
"latestAttempt": {
"result": "success",
"attemptedAt": "2025-01-15T10:30:00Z",
"statusCode": 200,
"attemptNumber": 1,
"requestHeaders": [
{
"name": "Content-Type",
"value": "application/json"
}
],
"targetUrl": "https://example.com/webhook"
}
}
],
"nextPageToken": "eyJsYXN0X2lkIjogImFiYzEyMyIsICJ0aW1lc3RhbXAiOiAxNzA3ODIzNzAxfQ=="
}Changes
- info
endpoint added
- info