Skip to main content

Overview

Get started with CDP webhooks in just a few steps. This guide walks through creating a subscription that monitors USDC transfers on Base. Once you have the basic flow working, swap in any of the other event domains.

Prerequisites

Sign up at portal.cdp.coinbase.com, then navigate to API Keys and select Create API key under the Secret API Keys tab.
  1. Enter an API key nickname (restrictions are optional)
  2. Click Create
  3. Secure your API Key ID and Secret in a safe location
You’ll need an HTTPS URL to receive webhook events. For quick testing, webhook.site gives free temporary URLs instantly.For production, use your own HTTPS endpoint.
The CDP CLI handles authentication and exposes webhook subscription endpoints as typed commands (cdp data webhooks subscriptions create, list, update, delete). For raw HTTP, use cdp api.

1. Review the configuration

The contract_address used in the example below is the USD Base Coin contract.

Configuration fields

Below is a list of all payload information that can be provided when creating a webhook subscription:

Custom headers

You can also set a headers object in target if your URL requires specific headers:

2. Create subscription

Response:
response.json

Manage subscriptions

Use the subscriptionId from the response to view, update, or delete the subscription.

List all subscriptions

View subscription details

Update subscription

update requires all fields, even ones you aren’t changing — it’s a full replace:
Run cdp data webhooks subscriptions update --help to see all available fields.

Delete subscription

List subscription events

View delivery attempts for a subscription, including delivery status, retry count, and HTTP response details:
You can narrow results with the following optional query parameters (use == for query params): Results are limited to the 50 most recent events, returned newest first. Example with filters:
  • Wallet webhooks: Track the full transaction lifecycle, signing operations, and delegation events for API key wallets and user wallets.
  • Multi-address subscriptions: Monitor up to 100 wallet addresses with a single subscription.
  • Verify webhook signatures: Learn how to verify webhook signatures to ensure events are coming from Coinbase.
  • Support: Join our Discord for help and community support.