GET /openapi/memorylake/admin/v1/me/permissions
Permission required: none — any member’s key can call this
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/me/permissions' \
-H 'Authorization: Bearer sk_xxxxxx'
Response
Show My Permissions object
Show My Permissions object
Per scopable resource type: all = every instance; instances = only the listed ones
Show My Access Scope object
Show My Access Scope object
Read-only. Instance-level actions the member’s role grants for this type — the most a scope entry can allow.
Actions the caller holds only on the listed instances (granted through a permission level on them), keyed by action. Actions not listed here hold on every instance the caller reaches.
The instances, when mode is instances
Show Access Scope Instance object
Show Access Scope Instance object
Read-only. The permission level, when via_permission_level is true. One of:
read, write, manage.Read-only. The member reaches this instance through a permission level granted on it, not through this scope. May be echoed back on write; such instances are skipped.
When mode is instances: what limits the caller — a role’s access scope or the caller’s own (personal)
{
"success": true,
"message": "Operation completed successfully",
"data": {
"permissions": [
"example"
],
"role": "tenant_member",
"scopes": [
{
"mode": "all",
"resource_type": "example",
"available_actions": [
"example"
],
"instance_only_actions": {
"key": [
"example"
]
},
"instances": [
{
"id": "bc572b050c9920425b5fd75681eccbb2",
"actions": [],
"effective_actions": [],
"permission_level": "read",
"shadowed_actions": [],
"via_permission_level": false,
"workspace_id": "0fa2d21dc175adc7a003e0b37f156cb1"
}
],
"restricted_by": [
{
"type": "role",
"id": "7ea9bf65e6937c3c168bc7a2a0f6fbf2",
"name": "Example name"
}
]
}
]
}
}
Errors
Errors answer withsuccess: false, a message and an error_code. See Error Codes for every code.
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, disabled or expired |
403 | The key is not allowed to do this |
429 | Too many requests. Wait for the time in Retry-After |
500 | Server-side error |