Lists the API keys of your team. Callers holding only own-scope read permission see just the keys they created.
Permission required:service_account:read (all keys) or service_account:read (your own keys only)
When owner_principal_id names another member: service_account:read (all keys)
Query Parameters
integer
default:"20"
Number of items per page (1–100)
string
Token from the previous page. Opaque — do not construct or parse it.
string
Case-insensitive substring match on the key name
string
Only keys in this state (the status field). One of: enabled, disabled, expired.
string
Only keys owned by this member (owner.principal_id). With permission to read only your own keys, any principal_id other than yours is refused (403).
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/api-keys' \ -H 'Authorization: Bearer sk_xxxxxx'
Response
object
Show Load More Response API Key object
array
List of items in the current page
Show API Key object
array
Client IPs or CIDR ranges this key may be used from. Empty array = no restriction.
integer
Creation time, Unix seconds
string
Stable identifier of this API key
boolean
true for keys the platform created for its own use (for example the console playground)
string
First 8 characters of the key body. The full key is never returned by read endpoints.
string
Display name
string
Current state of the key. One of: enabled, disabled, expired.
string
Fallback model-routing group. Omitted = none.
integer
Expiry time, Unix seconds. Omitted when the key never expires.
string
Model-routing group the key’s requests use. Omitted = the owner’s own group.
string
Last 4 characters of the key, to match a key someone holds without returning it. Omitted for keys whose plaintext is not retained.
integer
Time this key was last used, Unix seconds. APPROXIMATE — updates are throttled and may lag by up to one hour. Omitted when the key has never been used.
object
Member this key acts as — its requests carry this member’s permissions and usage is attributed to them. For a key issued to a virtual member, that member. Omitted when the account no longer exists.
Show API Key Owner object
string
Display name of the member
string
human = joined via invitation, virtual = managed identity created by an owner/admin
string
principal_id of the member (see GET /members)
integer
After a rotation with old_key_expires_in, the time the replaced key stops working, Unix seconds. Omitted when no replaced key is still working.
boolean
true = read-only key: requests that create, change or delete anything are refused with 403 API_KEY_READ_ONLY. Omitted = full access.
string
Token to fetch the next page; absent on the last page
integer
Total number of items matching the filter across all pages; omitted when the count is unavailable