Skip to main content
The REST endpoints are listed in the sidebar under REST Endpoints. Every endpoint requires the bearer JWT described in Authentication.

Basics

The Coinbase Clearing REST API provides read-only queries of Coinbase Clearing LLC (CBC) data. All requests and responses use the application/json content type. Every endpoint is a POST that takes a JSON request body. Paths are relative to the /cdp-api base path. Environments are described on the Coinbase Clearing Connectivity page; REST API host names are not published yet.

Request structure

Every endpoint takes the same top-level request body: A request with no filters:

Response structure

Every endpoint returns the same top-level response body:

Pagination

Every endpoint uses bookmark-based pagination:
  1. Send the first request with "bookmark": null and "paging": "NEXT_PAGE".
  2. The response includes a bookmark string and an atEnd boolean.
  3. If atEnd is false, send the next request with the returned bookmark value.
  4. Repeat until atEnd is true.
To fetch the next page, pass the bookmark from the previous response:
The last page has atEnd set to true:

Filtering and sorting

queryArgs holds a typed query argument for each filterable field. All query argument fields are optional; include only the ones you need. Each query argument has two optional properties: Filters in the same group are combined with AND. Groups are combined with OR.

Operators by type

Filter example

A single filter on a field:
A filter and a sort on tradeDate:
The field names inside queryArgs are listed for each endpoint under REST Endpoints.