> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateAuthKeysCodeRequest - Python SDK

> CreateAuthKeysCodeRequest method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

## Fields

| Field                   | Type                                                                                                                   | Required             | Description                                                                                                   | Example                                                            |
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| `callback_url`          | *str*                                                                                                                  | :heavy\_check\_mark: | The callback URL to redirect to after authorization. Note, only https URLs on ports 443 and 3000 are allowed. | [https://myapp.com/auth/callback](https://myapp.com/auth/callback) |
| `code_challenge`        | *Optional\[str]*                                                                                                       | :heavy\_minus\_sign: | PKCE code challenge for enhanced security                                                                     | E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM                        |
| `code_challenge_method` | [Optional\[operations.CreateAuthKeysCodeCodeChallengeMethod\]](../operations/createauthkeyscodecodechallengemethod.md) | :heavy\_minus\_sign: | The method used to generate the code challenge                                                                | S256                                                               |
| `limit`                 | *Optional\[float]*                                                                                                     | :heavy\_minus\_sign: | Credit limit for the API key to be created                                                                    | 100                                                                |
| `expires_at`            | [date](https://docs.python.org/3/library/datetime.html#date-objects)                                                   | :heavy\_minus\_sign: | Optional expiration time for the API key to be created                                                        |                                                                    |
