Skip to main content
The REST endpoints are listed in the sidebar under REST Endpoints. Every endpoint except GET /api/ping requires the signed headers described in Authentication.

Basics

All requests and responses use the application/json content type and standard HTTP status codes. Hosts for each environment are listed on the Coinbase Derivatives: Predictions Connectivity page.

Data types

Tickers

Tickers are opaque ASCII strings up to 128 bytes. A ticker is never all digits: in an id_or_ticker path segment, an all-digit value is read as an ID and anything else as a ticker. Do not parse meaning from a ticker.

Pagination

List endpoints return one page per request. Every list response has two fields: GET /api/balances returns a single object and is not paginated.

Status codes

Success

A successful request returns HTTP 200. The response body for each endpoint is documented under REST Endpoints.

Errors

Errors return HTTP 4xx or 5xx. The error body depends on the route:

Common error codes