For AI agents: a documentation index is available at the root level at /llms.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
<Info icon="fa-light fa-lock" className="permission-callout">
<div className="permission-callout__header"><span className="permission-callout__title"><span className="permission-callout__label">Required permissions</span> <span className="fern-docs-badge small blue subtle rounded-full permission-callout__beta">Beta</span></span> <span className="permission-callout__learn-more">[Learn more](/developers/api-guidelines/permissions#how-permissions-work)</span></div>
`Organisation.Role` + `List`
<div className="permission-callout__roles"><span className="permission-callout__roles-label">Roles:</span> <Badge intent="info">Administrator</Badge> <Badge intent="info">User</Badge></div>
</Info>
Returns all roles in the Workspace.
System roles come first, in the order Administrator, User, and Observer, followed by custom roles alphabetically.
Pass `include_permissions=true` to also receive each role's permission list.
Use `my` in place of a numeric `orgId` to target the caller's own Workspace.
Authentication
AuthorizationBearer
An auth_token should be provided to authenticate a session.