ExchangeAuthCodeForAPIKeyRequest - TypeScript SDK

ExchangeAuthCodeForAPIKeyRequest type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

1import { ExchangeAuthCodeForAPIKeyRequest } from "@openrouter/sdk/models/operations";
2
3let value: ExchangeAuthCodeForAPIKeyRequest = {
4 code: "auth_code_abc123def456",
5};

Fields

FieldTypeRequiredDescriptionExample
codestring✔️The authorization code received from the OAuth redirectauth_code_abc123def456
codeVerifierstringThe code verifier if code_challenge was used in the authorization requestdBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
codeChallengeMethodoperations.ExchangeAuthCodeForAPIKeyCodeChallengeMethodThe method used to generate the code challengeS256