List organization roles
Preview
Not yet in the latest release.
The four organization roles (owner, admin, member, guest) and the org-level permissions each grants — the platform's own matrix with what the loaded modules contribute at level: "org". The same in every organization and for every caller (no preview, no credential ceiling): it describes the roles, not the caller. Any member may read it.
GET
/api/org-rolesbetter-auth.session_token<token>
Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
Header Parameters
X-Org-Id?string
Organization ID. Required for cookie auth. Not needed for API key auth (org resolved from key).
Format
uuidcurl -X GET "https://your-instance/api/org-roles"{
"object": "list",
"data": [
{
"object": "org_role",
"role": "owner",
"permissions": [
"string"
]
}
],
"hasMore": true
}{
"type": "https://docs.appstrate.dev/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing session",
"code": "unauthorized",
"request_id": "req_abc123"
}{
"type": "https://docs.appstrate.dev/errors/forbidden",
"title": "Forbidden",
"status": 403,
"detail": "Insufficient permissions",
"code": "forbidden",
"request_id": "req_abc123"
}