Skip to main content

Getting a key

Keys are created and revoked in the dashboard at www.sideren.io/dashboard/keys. A key is shown once at creation — store it somewhere safe. Keys start with sdn_.
Treat keys as secrets. Set them through environment variables rather than committing them, and rotate from the dashboard if one leaks.

How to present the key

Every endpoint accepts either presentation — x-api-key or Authorization: Bearer — so a client that can only set one auth header works everywhere. The table shows each protocol’s native convention. GET /v1/models needs no key at all.

Examples

Anthropic — x-api-key
OpenAI — Authorization: Bearer

Failure modes

  • A missing or malformed key returns 401 with an error body shaped for the protocol you called.
  • A valid key naming a model that does not exist in the catalog returns 404 — check the id against GET /v1/models.
See Errors for the full status-code reference and body shapes.