Skip to content

API reference

List roles

workspace.ListRolesReadAPI key

Read workspace roles by role ID, including their labels, origins, assignment rules and number of active members using each base role.

POST/v1/operations/workspace.ListRoles
On this page

Access & visibility

Allow workspace.ListRoles on your API key.

Workspace access by default. Private member data requires approved member delegation through Brigg-Act-As; the key supplies permissions while private ownership and project boundaries remain enforced.

Set up authentication · Choose permissions

Request

No parameters. Send an empty JSON object ({}).

Response

Returns 200 OK with a JSON body.

rolesmap of WorkspaceRoleRequired

Workspace role definitions keyed by role identifier. Use the key, not the label, when interpreting a member's role.

Nested fields
labelstringOptional

Human-readable name of this role.

descriptionstringOptional

Descriptive text.

chatOnlybooleanOptional

Whether this role limits the member to chat-based access.

Allowed: false, true.

systembooleanRequired

Whether Brigg supplies this role as a built-in role.

Allowed: false, true.

originstringOptional

Where this role was defined: a bundled app, a custom definition or Brigg itself.

Allowed: "bundle", "custom", "system".

assignablebooleanRequired

Whether this role can be assigned to workspace members.

Allowed: false, true.

memberCountnumberRequired

Number of workspace members assigned to this role.

Errors & retries

This operation reads data. It needs no idempotency key and can be retried after a transient failure.

For rate limits, follow the server’s retry guidance and back off. See HTTP errors and safe retries and limits.

HTTP status Code What to do
400 invalid_json Send a JSON object with Content-Type: application/json.
400 invalid_input Check the request fields and types.
401 invalid_key The workspace API key is missing, invalid or revoked.
403 forbidden Check the key’s operation and resource grants. If Brigg-Act-As is supplied, the key must be authorized to delegate to that member.
404 not_found The requested operation or resource is not available to this credential.
429 rate_limited Wait for Retry-After before retrying.

Next steps

Download OpenAPI · Versioning & retirement

JSON schemas

Use the complete schemas for validation or client generation.

Full request JSON schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false,
  "examples": [
    {}
  ]
}
Full response JSON schema
{
  "type": "object",
  "properties": {
    "roles": {
      "type": "object",
      "description": "Workspace role definitions keyed by role identifier. Use the key, not the label, when interpreting a member's role.",
      "additionalProperties": {
        "title": "WorkspaceRole",
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "description": "Human-readable name of this role."
          },
          "description": {
            "type": "string",
            "description": "Descriptive text."
          },
          "chatOnly": {
            "type": "boolean",
            "enum": [
              false,
              true
            ],
            "description": "Whether this role limits the member to chat-based access."
          },
          "system": {
            "type": "boolean",
            "enum": [
              false,
              true
            ],
            "description": "Whether Brigg supplies this role as a built-in role."
          },
          "origin": {
            "type": "string",
            "enum": [
              "bundle",
              "custom",
              "system"
            ],
            "description": "Where this role was defined: a bundled app, a custom definition or Brigg itself."
          },
          "assignable": {
            "type": "boolean",
            "enum": [
              false,
              true
            ],
            "description": "Whether this role can be assigned to workspace members."
          },
          "memberCount": {
            "type": "number",
            "description": "Number of workspace members assigned to this role."
          }
        },
        "required": [
          "system",
          "assignable",
          "memberCount"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "roles"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "roles": {
        "member": {
          "label": "Member",
          "system": true,
          "origin": "system",
          "assignable": true,
          "memberCount": 8
        },
        "admin": {
          "label": "Administrator",
          "system": true,
          "origin": "system",
          "assignable": true,
          "memberCount": 2
        }
      }
    }
  ]
}

Search by operation name or what you want to build.

Use arrow keys to browse. Enter opens a result.