Zywave Roles API

The Roles API from Zywave — 2 operation(s) for roles.

GitHub OpenAPI

Operations 2

GET /bkb/v2.0/accounts/{accountId}/roles Get roles for a specific account id #
GET /bkb/v2.0/roles Get all user roles for an agency #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/zywave:zywave-roles-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

zywave-roles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: BKB Roles API
  version: v2.0
servers:
- url: https://api.zywave.com
security:
- oidc:
  - api.bkb
  - api.bkb:read
tags:
- name: Roles
paths:
  /bkb/v2.0/accounts/{accountId}/roles:
    get:
      tags:
      - Roles
      summary: Get roles for a specific account id
      operationId: Accounts_GetAccountRoles
      parameters:
      - name: accountId
        in: path
        required: true
        description: The account id.
        schema:
          type: integer
          format: int32
        x-position: 1
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AssignedRole'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
  /bkb/v2.0/roles:
    get:
      tags:
      - Roles
      summary: Get all user roles for an agency
      operationId: Roles_GetRoles
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UserRole'
        '401':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    ProblemDetails:
      type: object
      additionalProperties: {}
      properties:
        type:
          type:
          - string
          - 'null'
        title:
          type:
          - string
          - 'null'
        status:
          type:
          - integer
          - 'null'
          format: int32
        detail:
          type:
          - string
          - 'null'
        instance:
          type:
          - string
          - 'null'
        extensions:
          type: object
          additionalProperties: {}
    UserRole:
      type: object
      description: Represents a role a user may have on an account.
      additionalProperties: false
      properties:
        id:
          type: integer
          description: Gets or sets the unique ID for this role.
          format: int32
        brokerId:
          type: integer
          description: Gets or sets the unique broker ID for this role.
          format: int32
        name:
          type: string
          description: Gets or sets the role name.
    AssignedRole:
      type: object
      description: Represents the role an agency user has on an account.
      additionalProperties: false
      properties:
        accountId:
          type: integer
          description: Gets or sets the unique ID for this account.
          format: int32
        roleId:
          type: integer
          description: Gets or sets the unique ID for this role.
          format: int32
        brokerContactId:
          type: integer
          description: Gets or sets the unique ID for this broker contact.
          format: int32
  securitySchemes:
    oidc:
      type: openIdConnect
      openIdConnectUrl: https://auth.zywave.com//.well-known/openid-configuration
    bearer:
      type: http
      description: Enter your JWT access token
      scheme: bearer
      bearerFormat: JWT
x-generator: NSwag v14.7.1.0 (NJsonSchema v11.6.1.0 (Newtonsoft.Json v13.0.0.0))