> ## 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. # ExchangeAuthCodeForAPIKeyRequestBody ## Example Usage ```typescript theme={null} import { ExchangeAuthCodeForAPIKeyRequestBody } from "@openrouter/sdk/models/operations"; let value: ExchangeAuthCodeForAPIKeyRequestBody = { code: "auth_code_abc123def456", }; ``` ## Fields | Field | Type | Required | Description | Example | | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -------------------- | -------------------------------------------------------------------------- | -------------------------------------------- | | `code` | *string* | :heavy\_check\_mark: | The authorization code received from the OAuth redirect | auth\_code\_abc123def456 | | `codeChallengeMethod` | [operations.ExchangeAuthCodeForAPIKeyCodeChallengeMethod](../../models/operations/exchangeauthcodeforapikeycodechallengemethod.mdx) | :heavy\_minus\_sign: | The method used to generate the code challenge | S256 | | `codeVerifier` | *string* | :heavy\_minus\_sign: | The code verifier if code\_challenge was used in the authorization request | dBjftJeZ4CVP-mB92K27uhbUJU1p1r\_wW1gFWFOEjXk |