Overview
OAuth authentication endpointsAvailable Operations
- ExchangeAuthCodeForAPIKey - Exchange authorization code for API key
- CreateAuthCode - Create authorization code
- ListOauthJwks - OpenRouter access token signing keys
- CreateOauthToken - Exchange a workload identity token
ExchangeAuthCodeForAPIKey
Exchange an authorization code from the PKCE flow for a user-controlled API keyExample Usage
Parameters
Response
*operations.ExchangeAuthCodeForAPIKeyResponse, errorErrors
CreateAuthCode
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.