Returns one role — built-in or custom — with every permission it grants and where each comes from: the built-in definition, the base role it was copied from, or this role’s own permission rules
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/roles/data_analyst' \ -H 'Authorization: Bearer sk_xxxxxx'
Returns one role — built-in or custom — with every permission it grants and where each comes from: the built-in definition, the base role it was copied from, or this role’s own permission rules. Any member may read the role; permissions is returned only to callers holding policy:manage on tenant:policy (the permission that lists permission rules) and is omitted for everyone else. The effective permissions of a member or an access group (Get Member Effective Permissions, Get Access Group Effective Permissions) also show what their role grants. To see your own permissions, use List My Permissions.
Permission required: none — any member’s key can call this
Path Parameters
string
required
Role key (key)
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/roles/data_analyst' \ -H 'Authorization: Bearer sk_xxxxxx'
Response
object
Show Role Detail object
boolean
When true, the role is admin-level: only the team owner may grant it (role change or invitation), and virtual members cannot hold it. A property of the role, the same for every caller; it is not the console role list’s per-caller assignable flag.
boolean
Whether member and invitation writes accept this role at all — the same for every caller. The owner role never is. Unlike the console’s role list, this does not say whether you yourself may grant it: for that, combine it with admin_grant_only and your own role.
boolean
true for the three roles every team has; false for roles authored in this team
string
The value the role fields of member and invitation writes accept
string
Display name. Built-in roles carry a fixed English label; custom roles carry the operator-authored one.
string
For custom roles: the role whose permission rules were copied into this one when it was created. Absent on built-in roles and on custom roles created without a base.
string
Operator-authored description. Only custom roles carry one.
string
Same value as base_role_key; kept for existing clients.
array
Every permission the role grants, with its source. Returned only to callers holding policy:manage on tenant:policy; omitted for everyone else. An empty list means the role grants nothing. Instance limits (the role’s access scope) are not reflected here.
Show Role Permission object
string
Permission, as <resource_type>:<action> (e.g. memorylake:project:project:read)
string
built_in: part of a built-in role’s definition. base_role: the base role grants it too — it was copied from the base role when this role was created. role_rule: granted only by this role’s own permission rules.