ExchangeAuthCodeForAPIKeyRequestBody - TypeScript SDK
ExchangeAuthCodeForAPIKeyRequestBody - TypeScript SDK
ExchangeAuthCodeForAPIKeyRequestBody type definition
ExchangeAuthCodeForAPIKeyRequestBody - TypeScript SDK
1 import { ExchangeAuthCodeForAPIKeyRequestBody } from "@openrouter/sdk/models/operations"; 2 3 let value: ExchangeAuthCodeForAPIKeyRequestBody = { 4 code: "auth_code_abc123def456", 5 };
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
code | string | ✔️ | The authorization code received from the OAuth redirect | auth_code_abc123def456 |
codeChallengeMethod | operations.ExchangeAuthCodeForAPIKeyCodeChallengeMethod | ➖ | The method used to generate the code challenge | S256 |
codeVerifier | string | ➖ | The code verifier if code_challenge was used in the authorization request | dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk |