The API accepts two kinds of credential.

Which endpoints take which

Account and key management need a session token, so a leaked API key cannot be used to create more keys.

Session tokens

Log in with your email and password:
When a token expires, the API answers 401. Log in again to get a new one.

API keys

API keys start with dc_live_. Use them from servers, notebooks and training jobs:
Authorization: Bearer dc_live_... also works, for HTTP clients that only support bearer auth.
Do not put API keys in browser code or commit them to a repository. If a key leaks, revoke it and create a new one.