Skip to main content
Version: 12 - TBD

ApiKey

class flow_api.api_key.ApiKey(select=None, cls=None, init=None, by='id', allow_normal=True, allow_deleted=False, commit=False, expires_at=<class 'flow_api.system.NotSet'>, is_enabled=<class 'flow_api.system.NotSet'>, key_hash=<class 'flow_api.system.NotSet'>, key_prefix=<class 'flow_api.system.NotSet'>, name=<class 'flow_api.system.NotSet'>, user_id=<class 'flow_api.system.NotSet'>, debug=False)

Base class: Row

An API key (Personal Access Token) bound to a user identity. It allows programmatic clients (such as LLM agents using the MCP server) to authenticate to the Cloudomation API. The key inherits all permissions of the user it is bound to, so access can be scoped via RBAC roles.

Parameters

NameTypeDescription
allow_deletedbool
allow_normalbool
bystr
clsOptional
commitbool
debugboolif set, the content of the data being written will be logged.
expires_atUnionWhen the API key expires. If unset, the key never expires.
initOptional
is_enabledUnionIf unset, the API key cannot be used to authenticate.
key_hashUnionHashed API key token. Internal only, never exposed.
key_prefixUnionPublic, non-secret prefix used to look up the API key.
nameUnionA human readable name for the API key.
selectOptional
user_idUnionReference to the user this API key belongs to.

Constants

RESOURCE = api_key

Methods

clone

delete

duplicate

exists

export

get

get_dict

restore

save

user