Authentication
Authenticate with an API key, and the scopes that gate usage, billing and configuration endpoints.
Send your API key either way; both work on every endpoint.
Authorization: Bearer $SPARE_API_KEY
x-api-key: $SPARE_API_KEYOpenAI SDKs send the first, Anthropic SDKs the second.
Scopes
A new key can call models and read its own requests' settlement (inference:invoke). To read your
balance or use the configuration endpoints, create a key in the console with the scopes listed in the endpoint tables.
Calling an endpoint without its scope returns 403 with the missing scope in the message.
me
Paths under /v1/namespaces/me/ act on the workspace the key belongs to, so you never need a workspace id.
How is this guide?