Skip to content
ChartDeck Developer API docs Account Get an API key

API keys

Make, scope, rotate and revoke keys; sandbox and live keys; what to do when a key leaks.

#Making a key

Keys are made only in the web app, under Account → Developer API (signed in). The API itself cannot make, widen or restore keys, so a leaked key can never mint another one.

  1. Accept the API terms (once).
  2. Give it a label and, if you like, fewer scopes than all, an expiry date and an IP allow list.
  3. Copy the key: it is shown once. ChartDeck stores only a fingerprint of it.

A key looks like cdk_ followed by 43 characters. The first 12 characters (the prefix) are shown in your key list, in /v1/me and in the admin tools, so you can tell keys apart without exposing them.

Up to 10 live keys per account; all of them share the account's limits. Whether a key reads live or recorded data depends on the account's tier, not on the key: without an API tier the account is on the sandbox.

#Scopes

ScopeGives
account:read/v1/me, /v1/usage
calendar:readthe economic calendar
news:readnews stories and sources
strata:readthe liquidation model and recorded liquidations
market:readvenues, markets, candles, open interest, funding, basis, long/short, large trades, order-book heatmap, footprint bars, ETF flows
analytics:readaggregated flow, OI build, stacked imbalances, screener, TWAP, market-cap indexes
webhooks:writemanaging your webhook endpoints

#Rotating and revoking

  • Rotate makes a new key with the same settings and stops the old one at once: put the new key in place straight after.
  • Revoke stops a key for good. A revoked key answers 401 unauthorized, an expired one 401 key_expired, and a call from outside the allow list 403 ip_not_allowed; an open stream closes with 4010.

#If a key leaks

Revoke it at once and make a new one. A key sent in a URL (?key=...) is refused and should be treated as leaked: URLs end up in logs.

The Developer API documentation is in English.