SDK Reference (BETA)TypeScript SDKOperationsExchangeAuthCodeForAPIKeyRequest - TypeScript SDKCopy pageExchangeAuthCodeForAPIKeyRequest type definition The TypeScript SDK and docs are currently in beta. Report issues on GitHub. Example Usage 1import { ExchangeAuthCodeForAPIKeyRequest } from "@openrouter/sdk/models/operations";23let value: ExchangeAuthCodeForAPIKeyRequest = {4 code: "auth_code_abc123def456",5}; Fields FieldTypeRequiredDescriptionExamplecodestring✔️The authorization code received from the OAuth redirectauth_code_abc123def456codeVerifierstring➖The code verifier if code_challenge was used in the authorization requestdBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXkcodeChallengeMethodoperations.ExchangeAuthCodeForAPIKeyCodeChallengeMethod➖The method used to generate the code challengeS256