GoodMem
ReferenceClient SDKsPython SDKModels

ApiKeyResponse Model

ApiKeyResponse Model documentation for Python SDK

API key metadata without sensitive information.

Properties

NameTypeDescriptionNotes
api_key_idstrUnique identifier for the API key.[optional]
user_idstrID of the user that owns this API key.[optional]
key_prefixstrFirst few characters of the key for display/identification purposes.[optional]
statusstrCurrent status of the API key: ACTIVE, INACTIVE, or STATUS_UNSPECIFIED.[optional]
labelsDict[str, str]User-defined labels for organization and filtering.[optional]
expires_atintExpiration timestamp in milliseconds since epoch. If not provided, the key does not expire.[optional]
last_used_atintLast time this API key was used, in milliseconds since epoch.[optional]
created_atintWhen the API key was created, in milliseconds since epoch.[optional]
updated_atintWhen the API key was last updated, in milliseconds since epoch.[optional]
created_by_idstrID of the user that created this API key.[optional]
updated_by_idstrID 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

On this page