Overview
OAuth authentication endpointsAvailable Operations
- exchange_auth_code_for_api_key - Exchange authorization code for API key
- create_auth_code - Create authorization code
- list_oauth_jwks - OpenRouter access token signing keys
- create_oauth_token - Exchange a workload identity token
exchange_auth_code_for_api_key
Exchange an authorization code from the PKCE flow for a user-controlled API keyExample Usage
Parameters
Response
operations.ExchangeAuthCodeForAPIKeyResponseErrors
create_auth_code
Create an authorization code for the PKCE flow to generate a user-controlled API key. Requires a Clerk session that completed reverification recently (Clerklax level); otherwise the response is 403 with error.metadata.reverification set to lax, and the caller must reverify the session before retrying.