team.roles: List the agency's roles and the full permission catalog.
API v1 is being retired. API v2 was published on 2026-11-09. v1 stops answering on 2026-12-07 (2026-12-21 if your agency asks for the extension), earlier only if no key uses it and announced at least 7 days before (Versioning); the
Sunsetheader of each v1 response is the date that applies to your key. Migrate from v1 to v2.
GET /v1/team/roles · MCP tool team_roles · Team
What it does
List the agency's roles and the full permission catalog.
When to use it
Lists every role of the agency (with its permissions, rank and how many active people hold it) together with the full VENUZ permission catalog, for building or editing a role with team.roles_manage. Needs a key that covers every account in the agency (team is agency-wide). Not paginated: the number of roles an agency configures is small.
Permission and cost
| Permission | team:read |
| Effect | Read only: it never changes anything. |
| Cost class | store — costs 1 unit (reads the copy VENUZ keeps) |
| Scope | The whole agency: the key needs access to all accounts. |
Example request (test mode)
With a test key in VENUZ_API_KEY (export VENUZ_API_KEY=vzk_test_…), this request changes nothing: test keys answer from a sample dataset.
curl -X GET "https://open.venuz.ai/v1/team/roles" \
-H "Authorization: Bearer $VENUZ_API_KEY"
Example response (200)
{
"data": [
{
"id": "8b000000-0000-4000-8000-000000000001",
"name": "Chatter",
"permissions": [
"chat.view",
"chat.send"
],
"effective_permissions": [
"chat.view",
"chat.send"
],
"is_system": false,
"hierarchy_level": 5,
"user_count": 1,
"created_at": "2026-09-28T12:00:00.000Z"
}
],
"permission_catalog": [
{
"key": "team.view",
"area": "team",
"group": "Team",
"label": "View team",
"description": "See the agency's team members, roles and invitations.",
"kind": "surface",
"preview_label": "View team",
"requires_all_accounts": true
}
],
"source": "store",
"as_of": "2026-09-28T12:00:00.000Z"
}
Response fields
| Field | Type | Required | Description |
|---|---|---|---|
data | array of object | yes | The agency's roles. |
data[].id | string (uuid) | yes | |
data[].name | string | yes | Name of the role, set by the agency. |
data[].permissions | array of string | yes | Raw permission keys stored on the role. |
data[].effective_permissions | array of string | yes | The keys this role grants: always equal to permissions, because no key grants another. Owner and Admin also hold the whole catalog by rank. Kept so existing clients keep working. |
data[].is_system | boolean | yes | true for the built-in Owner and Admin roles. |
data[].hierarchy_level | integer, 0 to 9 | yes | Rank: 0 is the Owner, 1 is Admin, 2-9 are custom (lower outranks higher). |
data[].user_count | integer, at least 0 | yes | Active team members with this role. |
data[].created_at | string (date-time) | yes | |
permission_catalog | array of object | yes | Every permission key VENUZ knows, for building or editing a role. |
permission_catalog[].key | string | yes | A user permission key of VENUZ (area.verb), for example team.invite. |
permission_catalog[].area | string | yes | The area this permission belongs to, for example team. |
permission_catalog[].group | string | yes | Display group for the role builder, for example "Team". |
permission_catalog[].label | string | yes | Short display label for this permission. |
permission_catalog[].description | string | yes | What this permission allows. |
permission_catalog[].kind | one of "surface", "capability" | yes | surface: a page/tab; capability: an action within it. |
permission_catalog[].preview_label | string | yes | Short label the role builder shows in its live preview. |
permission_catalog[].requires_all_accounts | boolean | yes | true if granting it only makes sense together with all-accounts access. |
source | always "store" | yes | |
as_of | string (date-time) | yes |
Errors and what to do
Every error is { "error", "message", "fix", "docs_url", "request_id" }. Branch on error; do what fix says.
| Error | HTTP | What to do |
|---|---|---|
invalid_api_key | 401 | Send a valid key as "Authorization: Bearer vzk_live_..." (or vzk_test_...). If you lost the key, ask the agency to create a new one. |
api_key_expired | 401 | Ask the agency to rotate the key or create a new one. Keys last at most 366 days. |
api_key_revoked | 401 | Stop using this key. Ask the agency for a new one if you still need access. |
api_key_suspended | 403 | If details.reason is creator_withdrawn, ask the agency owner to create a new key from an active member of the team. If it is suspended_by_venuz, contact VENUZ support: the same key works again as soon as the suspension is lifted, so do not delete it. |
agency_inactive | 403 | The agency's VENUZ account is suspended or closed; access resumes when it is active again. Do not delete the key. |
api_not_enabled | 403 | Ask VENUZ support to enable API access for the agency. Keep the key: it works as soon as access is enabled. |
ip_not_allowed | 403 | Send the request from one of the addresses allowed on the key, or ask the agency to update the allowed addresses. |
insufficient_scope | 403 | Call GET /v1/whoami to see what this key can do. Ask the agency to grant the missing permission (listed in details.missing_scopes) or to use a key that has it. If details.withheld_by_creator is true, the key has the permission but the person who created it cannot do this in VENUZ today: they need the role permissions in details.creator_missing_permissions (when details.creator_needs is any_of, any one of them is enough), or the agency must use a key created by someone who has them. |
all_accounts_required | 403 | Use a key created with access to all accounts, by a team member who can see all of them. Call GET /v1/whoami to check the key. |
rate_limited | 429 | Wait for the number of seconds in the Retry-After header, then retry. Spread requests out instead of retrying in a loop. Each request costs the units of its cost class (header X-Request-Cost: 1 for stored data, 2 for a realtime call to the OnlyFans account or a heavy query), and the RateLimit-* headers show how many units are left for this key and its agency in the current minute. |
internal_error | 500 | Retry once after a few seconds; do not retry in a loop. If the request was a write, retry with the SAME Idempotency-Key, never a new one. If it keeps failing, contact VENUZ support and include the request_id. |
api_halted | 503 | Wait for the number of seconds in the Retry-After header, then retry. Your key is still valid. |
stored_data_unavailable | 503 | Nothing was changed. Wait for the number of seconds in the Retry-After header, then retry once; do not retry in a loop. Narrowing the request (account_id or chat_id, a smaller limit) makes it lighter. If it keeps failing, contact VENUZ support with the request_id. |
VENUZ is independent software for agencies. It is not affiliated with, endorsed or sponsored by OnlyFans. OnlyFans is a trademark of its owner.