Available on Enterprise plans. An organization without an Enterprise plan is refused with HTTP 402 and the error code
enterprise_plan_required. Self-hosted deployments need an Enterprise license for the same endpoints. To enable it, reach out to enterprise@langwatch.ai.Intro
A SCIM token is the credential your identity provider presents to the SCIM 2.0 endpoints. This API mints them, lists the ones that exist, and revokes them, which is everything you need to rotate a provider’s credential without opening the dashboard.Authentication
Requires an organization-level API key withorganization:manage. Pass it as a Bearer token:
Endpoints
The value is returned once
POST is the only response that ever contains the token itself. The list returns the id, the description, when it was created and when it was last used, and never the value or its hash. If the token is lost, mint a new one and revoke the old one.
lastUsedAt then tells you which one your provider is actually presenting, which is what makes a rotation safe to finish.
Rotating
- Mint a second token and store it in the identity provider.
- Watch
lastUsedAton the new token move. - Revoke the old one.
scim_token_not_found.