Permission required: none — any member’s key can call this
Response
object
Errors
Errors answer withsuccess: false, a message and an error_code. See Error Codes for every code.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/roles' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"roles": [
{
"admin_grant_only": false,
"assignable": false,
"built_in": false,
"key": "sk-f6e5d4c3...redacted...b2a1",
"label": "example",
"base_role_key": "tenant_member",
"description": "Example description",
"parent_role_key": "example"
}
]
}
}
Lists the roles of your team: the three built-in roles plus this team’s custom roles
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/roles' \
-H 'Authorization: Bearer sk_xxxxxx'
{
"success": true,
"message": "Operation completed successfully",
"data": {
"roles": [
{
"admin_grant_only": false,
"assignable": false,
"built_in": false,
"key": "sk-f6e5d4c3...redacted...b2a1",
"label": "example",
"base_role_key": "tenant_member",
"description": "Example description",
"parent_role_key": "example"
}
]
}
}
GET /openapi/memorylake/admin/v1/roles
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/admin/v1/roles' \
-H 'Authorization: Bearer sk_xxxxxx'
Show Roles object
Show Role object
{
"success": true,
"message": "Operation completed successfully",
"data": {
"roles": [
{
"admin_grant_only": false,
"assignable": false,
"built_in": false,
"key": "sk-f6e5d4c3...redacted...b2a1",
"label": "example",
"base_role_key": "tenant_member",
"description": "Example description",
"parent_role_key": "example"
}
]
}
}
success: 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 |