> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ExchangeAuthCodeForAPIKeyRequest

## Fields

| Field | Type | Required | Description | Example |
| - | - | - | - | - |
| `Code` | `string` | ✅ | The authorization code received from the OAuth redirect | auth\_code\_abc123def456 |
| `CodeChallengeMethod` | optionalnullable.OptionalNullable\[[operations.ExchangeAuthCodeForAPIKeyCodeChallengeMethod](../../models/operations/exchangeauthcodeforapikeycodechallengemethod.mdx)] | ➖ | 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 |
