Get Started

Authentication

Put your key in the Authorization header of every request, using the Bearer scheme.

Add the Key to the Header

Keys start with ds_live_. A missing, wrong, or deleted key returns 401 invalid_api_key.

HTTP
Authorization: Bearer ds_live_...

Keys and workspaces

  • A key belongs to the workspace it was created in. Credits, rate limits and jobs are all based on that workspace.
  • You can create up to 10 keys per workspace. Keys in a team workspace are managed by the team together and use team credits.
  • Looking up a job from another workspace returns 404 not_found.

Store the Key Safely

  • The full key is shown only once, right after you create it. If you lose it, you'll need to create a new one.
  • Anyone with your key can use your credits. Keep it on your server only, and never put it in browser or app code.
  • You're responsible for keeping your keys safe. Credits used with a leaked key aren't refunded.
  • If a key is leaked, delete it in the console right away and switch to a new key. Requests with a deleted key are rejected immediately. Jobs submitted with that key, including those in progress, disappear from lookups and lists, and no webhooks are sent. Credits are not refunded.

Related Docs