The Spine API uses API keys sent as theDocumentation Index
Fetch the complete documentation index at: https://docs.getspine.ai/llms.txt
Use this file to discover all available pages before exploring further.
X-API-KEY request header. The
SDK adds the header for you on every request — you just need to give it
a key.
Passing the key
SPINE_API_KEY is unset, SpineClient()
raises ValueError immediately — before any network call.
Key rotation
Keys revoked in the dashboard stop working on the next request; you’ll seeAuthenticationError raised from the SDK. Roll new keys through
your secret store before revoking the old one so running processes
don’t break mid-run.
Overriding the base URL
Point the SDK at a staging or enterprise deployment viabase_url (or
the SPINE_BASE_URL env var):
/v1 automatically, so pass the host without the API
prefix.
Injecting your own HTTP client
For advanced cases (custom proxies, SSL contexts, test doubles), pass a pre-configuredhttpx.Client or httpx.AsyncClient. The SDK still
applies the X-API-KEY and User-Agent headers — your client does not
need to set them.
__exit__ —
that’s your responsibility.