API Gateway
Token Exchange
Exchange an OIDC id_token issued by a configured external provider for a nominative Prisme access token, without any browser redirect. Intended for native/mobile or headless clients that already authenticated against their IdP. Loosely follows RFC 8693. The target provider must have config.allowTokenExchange = true. The subject_token signature is verified against the provider JWKS and its aud claim must match the provider client_id (and iss the configured issuer when set). The user is then matched or provisioned exactly like the browser callback (POST /v2/login/callback).
post/v2/login/token-exchange
Request body
Response
Success Response
Example response
{
"email": "foo@prisme.ai"
}