API keys

Create a key for each service that calls the DittoDub API, and retire keys you no longer use.

Use your key

Send the key in the x-api-key header. Keep it in an environment variable or secret manager, never in source code. Retire a key right away if it may have been exposed, then create a new one.

Request
curl "https://api.dittodub.com/v1/usage" \
  --header "x-api-key: $DITTODUB_API_KEY"