Webhooks

Get webhook subscription matched event

Changed on

Retrieve a specific webhook matched event for a subscription, including its payload, delivery state, attempt count, and latest delivery attempt details.

get/v2/data/webhooks/subscriptions/{subscriptionId}/matches/{matchId}

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Path parameters

subscriptionId, string uuid required

Unique identifier for the webhook subscription.

matchId, string uuid required

Unique identifier for the webhook matched event.

Response

Webhook matched event retrieved successfully.

WebhookMatchResponse required

Details of an event that matched a webhook subscription.

eventId, string uuid required

Unique identifier for the webhook event.

matchId, string uuid required

Unique identifier for the webhook match.

subscriptionId, string uuid required

Unique identifier for the webhook subscription.

eventType, string required

The type of event that was delivered (e.g., "onchain.activity.detected").

status, 'retrying' | 'abandoned' | 'succeeded' | 'failed' required

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.
createdAt, string date-time required

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.

occurredAt, string date-time required

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.

succeededAt, string date-time

Timestamp when the matched event was successfully delivered to the target URL. Only present if status is succeeded.

attemptCount, integer required

Number of delivery attempts so far.

Includes the initial attempt and all retry attempts.

payload, object

The payload of the event.

latestAttempt, WebhookDeliveryAttempt

Outcome and timing of a single webhook delivery attempt.

nextAttemptAt, string date-time

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