mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
- 45687f423707f5838461585c568a024a19eb2f06 - 3103d3ca68b6e42ccdb6136588ec2b6edc8dcab0 - fd9f991606027cd86116317c71f8eb7b4e2aa3eb - 0f312019161edd76c1e5923d142c788d22f096d5 - 5dbab2094bc744db4a90b3097520d897e5d0d634 - 4c47d1af1735db18a1c1a7f463e801c7f71ad4e5 GitOrigin-RevId: 45687f423707f5838461585c568a024a19eb2f06
5.3 KiB
5.3 KiB
CreateAuthKeysCodeRequestBody
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
callback_url |
str | ✔️ | The callback URL to redirect to after authorization. Note, only https URLs on ports 443 and 3000 are allowed. | https://myapp.com/auth/callback |
code_challenge |
Optional[str] | ➖ | PKCE code challenge for enhanced security | E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM |
code_challenge_method |
Optional[operations.CreateAuthKeysCodeCodeChallengeMethod] | ➖ | The method used to generate the code challenge | S256 |
limit |
Optional[float] | ➖ | Credit limit for the API key to be created | 100 |
expires_at |
date | ➖ | Optional expiration time for the API key to be created | |
key_label |
Optional[str] | ➖ | Optional custom label for the API key. Defaults to the app name if not provided. | My Custom Key |
usage_limit_type |
Optional[operations.UsageLimitType] | ➖ | Optional credit limit reset interval. When set, the credit limit resets on this interval. | monthly |