Authentication
To call Dex API endpoints, include your API key as a Bearer token.
Base URL
https://api.prod.getdex.com
Required header
Authorization: Bearer dex_your_api_key
Content-Type: application/json
Create an API key
- Open Settings → Workflow → Dex API & MCP.
- Click Create API key, give the key a name, choose its access, and click Create key.
- Copy the key from the dialog, including its
dex_prefix, and store it somewhere safe.
A full key is dex_ followed by 64 characters. If Dex rejects a key you just created, check that the whole key was copied.
dex_••••••••a1b2, so you can tell keys apart but can't copy them again. If you lose a key, regenerate it or create a new one.Rate limits
Each API key can make 100 requests per minute to each endpoint. Every key keeps its own count for every endpoint, so a second key, or a call to a different endpoint, doesn't use up the first one's allowance. Counts reset every minute.
Going over it returns HTTP 429 with the error code rate_limited. The connection isn't dropped. Wait for the number of seconds in the Retry-After header, then retry. Every response also carries x-ratelimit-limit, x-ratelimit-remaining and x-ratelimit-reset headers (the reset is in seconds from now), so you can slow down before you hit the limit. Spread requests out rather than sending them in parallel bursts.
Quick test
curl --request GET \
--url https://api.prod.getdex.com/v1 \
--header 'Authorization: Bearer dex_your_api_key'

