Get webhook subscription matched event
Changed onRetrieve a specific webhook matched event for a subscription, including its payload, delivery state, attempt count, and latest delivery attempt details.
Request
- Base URLhttps://api.cdp.coinbase.com/platform
- AuthHTTP bearer
Path parameters
Unique identifier for the webhook subscription.
Unique identifier for the webhook matched event.
Response
Webhook matched event retrieved successfully.
Details of an event that matched a webhook subscription.
Unique identifier for the webhook event.
Unique identifier for the webhook match.
Unique identifier for the webhook subscription.
The type of event that was delivered (e.g., "onchain.activity.detected").
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.
Timestamp when the underlying event was processed by the webhook system.
If an event is replayed, a new createdAt will be recorded at the time of replay.
Timestamp when the underlying event actually occurred.
This is different from createdAt, which is the timestamp the event reached the webhook system and matched the subscription.
If an event is replayed, the occurredAt timestamp will remain the same.
Timestamp when the matched event was successfully delivered to the target URL. Only present if status is succeeded.
Number of delivery attempts so far.
Includes the initial attempt and all retry attempts.
The payload of the event.
Outcome and timing of a single webhook delivery attempt.
Timestamp when the matched event will be retried. Only supplied if the matched event's status is retrying.
Example response
{
"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"
}
}Changes
- info
endpoint added
- info