---
title: "Create webhook subscription"
method: POST
path: "/v2/data/webhooks/subscriptions"
tags: ["Webhooks"]
---

# Create webhook subscription

`POST /v2/data/webhooks/subscriptions`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/data/webhooks/subscriptions`
- Auth: HTTP bearer

Subscribe to real-time events across CDP products. A webhook subscription provides a `targetURL` and other relevant endpoint configuration to enable receiving webhooks when events occur.

An entity can have up to 100 webhook subscriptions. Once this limit is reached, new webhook subscription creation requests return a `400` error with `errorType: subscription_limit_exceeded`.

### Webhook Signature Verification

All webhooks include an HMAC-SHA256 signed header for security. The signature is signed with the secret that is returned in the `secret` field when creating a subscription.

Do not lose the secret, as you will not be able to recreate it. If you lose the secret, you will need to create a new subscription.

See the [verification guide](https://docs.cdp.coinbase.com/onramp-&-offramp/webhooks#webhook-signature-verification) for implementation details.

## Request body

- WebhookSubscriptionRequest: Request to create a new webhook subscription with support for multi-label filtering.
  - `description` string: A human-readable description of the webhook subscription. Must be at most 100 characters.
  - `eventTypes` EventType[], required: Types of events to subscribe to. Event types follow a dot-separated format: service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created", "acceptance.payment_session.authorization_succeeded"). The subscription will only receive events matching these types AND the label filter(s).
  - `isEnabled` boolean, required: Whether the subscription is enabled.
  - `target` WebhookTarget, required: Target configuration for webhook delivery. Specifies the destination URL and any custom headers to include in webhook requests.
    - `url` string, uri, required: The webhook URL to deliver events to. Must be a publicly accessible HTTPS URL that responds to HEAD requests with a 200 status code. If the URL is not publicly accessible or doesn't respond to HEAD requests with a 200 status code, the URL will be rejected with a 400.
    - `headers` object: Additional headers to include in webhook requests.
  - `metadata` WebhookMetadata: Optional subscription metadata. Up to 10 key/value pairs may be provided. Keys and values must each contain between 1 and 50 characters.
  - `labels` WebhookRequestLabels: String-valued filters supplied when creating or updating a webhook subscription. The subscription's `eventTypes` determine whether labels are required and which label keys are accepted. A subscription accepts at most 20 client-supplied labels. #### Label Behavior An event must match ALL labels to fire to your subscription `targetURL`. When multiple labels are supplied, the event must match ALL labels to fire to your subscription `targetURL`.

## Response `201`

Webhook subscription created successfully.

- WebhookSubscriptionResponse: Response containing webhook subscription details.
  - `createdAt` string, date-time, required: When the subscription was created.
  - `updatedAt` string, date-time: When the subscription was last updated.
  - `description` string: A human-readable description of the webhook subscription. Must be at most 100 characters.
  - `eventTypes` EventType[], required: Types of events to subscribe to. Event types follow a dot-separated format: service.resource.verb (e.g., "onchain.activity.detected", "wallet.activity.detected", "onramp.transaction.created", "acceptance.payment_session.authorization_succeeded").
  - `isEnabled` boolean, required: Whether the subscription is enabled.
  - `metadata` intersection: Additional metadata for the subscription.
    - [`Metadata`](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57/schema?at=%2Fcomponents%2Fschemas%2FMetadata)
    - object
      - `secret` string, uuid: Use the root-level `secret` field instead. Maintained for backward compatibility only.
  - `secret` string, uuid, required: Secret for webhook signature validation.
  - `subscriptionId` string, uuid, required: Unique identifier for the subscription.
  - `target` WebhookTarget, required: Target configuration for webhook delivery. Specifies the destination URL and any custom headers to include in webhook requests.
    - `url` string, uri, required: The webhook URL to deliver events to. Must be a publicly accessible HTTPS URL that responds to HEAD requests with a 200 status code. If the URL is not publicly accessible or doesn't respond to HEAD requests with a 200 status code, the URL will be rejected with a 400.
    - `headers` object: Additional headers to include in webhook requests.
  - `labels` WebhookResponseLabels: Effective filters stored on the webhook subscription. The response includes client-supplied labels plus labels defaulted or injected by the server. * `onchain.activity.detected`, `wallet.activity.detected`, and `wallet.activity.multi` include `network`. It defaults to `base-mainnet` when omitted from the request. * `wallet.activity.multi` includes the requested comma-separated `wallet_addresses`. * `health.*` includes the requested `service`. * Project-scoped events include the authenticated `project`. * Entity-scoped events include the authenticated `entity`. * User-scoped events include the authenticated `user_uuid` and a `sandbox` value.

## Other responses

- `400`: Invalid subscription configuration.
- `401`: Unauthorized.
- `429`: Rate limit exceeded.
- `500`: Internal server error.

## Changes

- **2026-12-01** `06cb41a4fb57`: 3 breaking, 7 warning, 3 info
  - added 'else' subschema to the request property `/else/else/else/else/`
  - added 'if' subschema to the request property `/else/else/else/else/`
  - added 'then' subschema to the request property `/else/else/else/else/`
  - added the new `payments.deposit_destinations.activated` enum value to the `eventTypes/items/` response property for the response status `201`
  - …9 more
- **2026-10-16** `ff3c1fdef902`: 7 warning, 3 info
  - added the new `acceptance.top_up_link.created` enum value to the `eventTypes/items/` response property for the response status `201`
  - added the new `acceptance.top_up_link.funds_added` enum value to the `eventTypes/items/` response property for the response status `201`
  - added the new `customers.requirement.changed` enum value to the `eventTypes/items/` response property for the response status `201`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `400`
  - …6 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/data/webhooks/subscriptions/post.md)

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
