| Name |
Type |
Description |
Notes |
| name |
str |
Name of the Api Key |
[optional] |
| expires_in |
str |
|
|
| user_id |
str |
User Id of the user that the Api Key belongs to. server-only. Eg: "user-id" |
[optional] |
| prefix |
str |
|
[optional] |
| remaining |
str |
|
|
| metadata |
str |
|
[optional] |
| refill_amount |
float |
|
[optional] |
| refill_interval |
float |
Interval to refill the Api Key in milliseconds. server-only. Eg: 1000 |
[optional] |
| rate_limit_time_window |
float |
The duration in milliseconds where each request is counted. Once the `maxRequests` is reached, the request will be rejected until the `timeWindow` has passed, at which point the `timeWindow` will be reset. server-only. Eg: 1000 |
[optional] |
| rate_limit_max |
float |
Maximum amount of requests allowed within a window. Once the `maxRequests` is reached, the request will be rejected until the `timeWindow` has passed, at which point the `timeWindow` will be reset. server-only. Eg: 100 |
[optional] |
| rate_limit_enabled |
bool |
Whether the key has rate limiting enabled. server-only. Eg: true |
[optional] |
| permissions |
str |
Permissions of the Api Key. |
[optional] |
from better_auth.models.api_key_create_post_request import ApiKeyCreatePostRequest
# TODO update the JSON string below
json = "{}"
# create an instance of ApiKeyCreatePostRequest from a JSON string
api_key_create_post_request_instance = ApiKeyCreatePostRequest.from_json(json)
# print the JSON string representation of the object
print(ApiKeyCreatePostRequest.to_json())
# convert the object into a dict
api_key_create_post_request_dict = api_key_create_post_request_instance.to_dict()
# create an instance of ApiKeyCreatePostRequest from a dict
api_key_create_post_request_from_dict = ApiKeyCreatePostRequest.from_dict(api_key_create_post_request_dict)
[Back to Model list] [Back to API list] [Back to README]