Skip to Content

Roles and members

Invite your team, build roles that fit them, and manage API keys — all from the API.

One permission vocabulary covers both human roles and API-key scopes, so a role and a key are described the same way.

Start from the catalog

That returns every resource, the actions it supports, a description of each, and whether it can go on an API key. Build role editors from it rather than hardcoding a list.

Over the API: GET /v1/rbac/catalog.

A permission is resource:action. resource:* grants every action on one resource and * grants everything.

Nothing is implied. agents:update does not include agents:read — a key that can patch an agent but not read one is a valid, and sometimes correct, configuration.

You can only grant what you hold. This applies to roles, member assignments, and API keys alike. Exceeding it is refused, with the missing permissions listed in the error.

So an admin can't create a key more powerful than themselves, and a compromised key can't escalate.

Roles

Every workspace has owner, admin, builder, and viewer. None of them can be deleted, and owner is locked at full access.

Beyond those, create your own:

{
  "name": "QA reviewer",
  "description": "Reads calls and runs evals, changes nothing live.",
  "permissions": [
    "calls:read",
    "eval-runs:read",
    "eval-runs:create",
    "eval-suites:read"
  ]
}

Over the API: POST /v1/roles.

Up to 256 permissions per role. Unknown permissions are rejected rather than ignored.

A role still held by a member or a pending invitation can't be deleted — reassign them first.

Permissions worth knowing about

Evals split three ways: eval-checks:* for the check library, eval-suites:* for suites and scenarios, and eval-runs:* for running them. Grading finished calls also needs calls:read.

eval-runs:execute-live-tools is separate on purpose — it allows test runs that really call your systems. Owner and admin hold it; builder and viewer don't.

Alerts use alerts:*, and configuring a rule also checks that you can read the tools, webhooks, or extraction objects it watches.

Members

Invite someone by email, with the role they should land in:

{
  "email": "sam@example.com",
  "role_id": "ROLE_ID"
}

Over the API: POST /v1/members.

The response holds the one-time invitation URL — it's never retrievable later, so send it on now. Without a role_id, people are invited as viewers.

Re-inviting the same address revokes their previous invitations.

GET /members returns current members and pending invitations together. PATCH /members/{id} changes someone's role.

Removing a member revokes their sessions and their workspace API keys at the same time — one call, not three.

The last owner can't be demoted or removed.

If you sent an invitation with the wrong role, PATCH the invitation rather than re-sending it: the recipient's existing link keeps working and lands on the corrected role.

Password resets

An admin can reset a member's password from the dashboard, issuing a temporary one. Until that member chooses a new password, their session can do nothing else — GET /auth/me reports must_change_password: true and every other route is refused.

API keys

A key is a name, its scopes, and when it expires:

{
  "name": "MCP worker",
  "scopes": [
    "agents:read",
    "calls:read"
  ],
  "expires_in_days": 30
}

Over the API: POST /v1/api-keys.

The secret is returned once, at creation. Store it before you do anything else — no endpoint can retrieve it later.

Set expires_in_days (1–3,650) or an explicit expires_at. Give each integration its own key and an expiry. That makes it easier to rotate or revoke access when the integration changes.

GET /api-keys returns metadata only — prefix, status, scopes, who created it, when it was last used. Deleting a key revokes it and keeps the metadata readable for audit.

More on credentials: Authentication.

Alert permissions

Alerts are optional; ask us if you need them enabled. Reading rules and incidents needs alerts:read. The endpoint reference lists the create, update, and delete scopes for changing rules.

See also

Authentication · Workspace settings · Compliance

On this page