Authentication
Keep keys private, restrict their access and rotate them safely.
Live system status and incident history →
Bearer API keys
All /v1/* endpoints require Authorization: Bearer followed by an xm_live_ or xm_test_ key. Both modes use the same prepaid pipeline, spend caps and rate limits. Test keys do not bypass billing.
Keys contain a 43-character secret after the mode prefix. The server stores a SHA-256 hash and a 12-character display prefix. The complete key is returned only on creation. Never put keys in browser code, URLs, repositories, analytics or localStorage.
curl 'https://api.xoomcloud.si/v1/models' -H "Authorization: Bearer $XOOMCLOUD_API_KEY"Scopes and model allowlists
Inference requires inference scope, including model discovery. Serverless job operations require serverless scope. Additional metadata scope names are pods:read, pods:write and billing:read; compute control-plane mutations use verified sessions and organization compute roles. Key scopes are fixed at creation.
A null modelAllowlist removes the model restriction; an empty list permits no models. A nonempty list must contain exact model IDs. Discovery returns only allowed active models; a request outside the allowlist returns 403 permission_denied.
Spend limits and expiry
spendLimitMicros is a lifetime cap for a key, represented as a decimal string. The organization also has an optional UTC calendar-month cap. Admission includes in-flight reservations; a nonzero balance alone may not cover a request. Expired, revoked or suspended credentials return 401 invalid_api_key.
Rotation and leaked keys
For routine rotation, create a replacement with the intended scopes, update your server secret, verify a request and revoke the old key. There is no in-place secret rotation endpoint.
If a key leaks, revoke it immediately in the owning workspace, remove it from exposed locations and replace it. Review request metadata and wallet activity for unexpected use. Contact support with request IDs, never the secret. Revocation invalidates the cached key policy.