Skip to main content

API keys

Your API key determines the environment. Use the same base URL for both: Both environments are billed per score at the same rate.

Required headers

X-Tenant-Id is required for tenant-scoped requests. Tenant deletion, deletion status, rate-limit status, and analytics endpoints are scoped by your API key and environment instead.

Example request

Tenant header

The X-Tenant-Id header identifies which tenant the request is for. Tenants are created automatically on first tenant-scoped request. Use a stable identifier: your internal customer/account ID, a UUID, or a unique slug.

Key rotation

1

Create new key

Generate a new key in the Embed Portal. Your old key stays active.
2

Deploy

Update your systems to use the new key.
3

Revoke old key

Once all systems are updated, revoke the old key.
Revoking a key returns 401 Unauthorized for new requests but doesn’t affect scoring jobs already accepted.

Error responses

Example 401 Response

API versioning

Current version: v1. URL-based versioning. No breaking changes to v1. If v2 is ever needed, 12+ months notice before v1 retirement.