ApiKeyResponse Model
ApiKeyResponse Model documentation for Python SDK
API key metadata without sensitive information.
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| api_key_id | str | Unique identifier for the API key. | [optional] |
| user_id | str | ID of the user that owns this API key. | [optional] |
| key_prefix | str | First few characters of the key for display/identification purposes. | [optional] |
| status | str | Current status of the API key: ACTIVE, INACTIVE, or STATUS_UNSPECIFIED. | [optional] |
| labels | Dict[str, str] | User-defined labels for organization and filtering. | [optional] |
| expires_at | int | Expiration timestamp in milliseconds since epoch. If not provided, the key does not expire. | [optional] |
| last_used_at | int | Last time this API key was used, in milliseconds since epoch. | [optional] |
| created_at | int | When the API key was created, in milliseconds since epoch. | [optional] |
| updated_at | int | When the API key was last updated, in milliseconds since epoch. | [optional] |
| created_by_id | str | ID of the user that created this API key. | [optional] |
| updated_by_id | str | ID of the user that last updated this API key. | [optional] |
Example
from goodmem_client.models.api_key_response import ApiKeyResponse
# TODO update the JSON string below
json = "{}"
# create an instance of ApiKeyResponse from a JSON string
api_key_response_instance = ApiKeyResponse.from_json(json)
# print the JSON string representation of the object
print(ApiKeyResponse.to_json())
# convert the object into a dict
api_key_response_dict = api_key_response_instance.to_dict()
# create an instance of ApiKeyResponse from a dict
api_key_response_from_dict = ApiKeyResponse.from_dict(api_key_response_dict)↑ Back to Python SDK ↑ Back to Python SDK ↑ Back to Python SDK