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
apiKey is falsy, the Spine constructor throws immediately — before
any network call.
Key rotation
Keys revoked in the dashboard stop working on the next request; you’ll seeSpineAuthError thrown from the SDK. Roll new keys through your
secret store before revoking the old one so running processes don’t
break mid-run. The server caches keys for up to 5 minutes, so leave that
grace window.
Overriding the base URL
Point the SDK at a staging or enterprise deployment viabaseURL:
/v1 paths automatically, so pass the host without the
API prefix.
Tuning timeouts and retries
Injecting your own fetch
For advanced cases (custom proxies, test doubles, alternative runtimes), pass a pre-configuredfetch implementation. The SDK still applies
X-API-KEY and User-Agent headers — your implementation does not need
to set them.
Observing requests
UseonRequest and onResponse for tracing every call: