Authentication
Exchange a 1claw token for an OIDC federation token (RFC 8693)
Mints a short-lived RS256-signed JWT targeted at an external relying party (e.g. Anthropic Workload Identity Federation). The relying party validates the token via this issuer's JWKS URL (/.well-known/jwks.json) and exchanges it for its own short-lived service credentials.
Requirements:
- The agent that owns the subject_token must have federation_enabled = true and the requested audience must appear in federation_audiences.
- The subject_token must be a valid 1claw agent JWT or ocv_ API key.
- Optional scope narrows the agent's existing scopes — it cannot escalate.
Returns 503 when ONECLAW_JWT_RS256_SIGNING_KEY_ID is not configured on the server.
post/v1/auth/federated-token
Request
- Base URL: https://api.1claw.co
- URL: https://api.1claw.co/v1/auth/federated-token
- Auth: none required
Request body
Example request
{
"audience": "https://api.anthropic.com"
}Response
Federation token issued
Changes
No recorded changes to this operation across all 1 revision of this API.