Kaseya Roles API

The Roles API from Kaseya — 8 operation(s) for roles.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /V1.0/Roles/query Search roles by name using query parameters · Roles url parameter query #
Ask an LLM
“How do I find a role by its name with a simple GET search?”
“Can I look up a role by name using only query parameters?”
Tell an agent
Search roles for {search} using the GET query parameter search.
Find the role named {search} with the GET roles search.
POST /V1.0/Roles/query Search roles with a POST body filter · Roles query #
Ask an LLM
“Can I filter roles with a POST body filter instead of query parameters?”
“What does the POST roles query return for a given filter?”
Tell an agent
Query roles with filter {filter} using the POST roles query.
Find roles matching {filter} in the POST body roles query.
GET /V1.0/Roles/{id} Get a role by ID · Roles query item #
Ask an LLM
“How do I look up one role by its ID?”
“Can I fetch a single role's details from its ID?”
Tell an agent
Get role {id}.
Show the details of role {id}.
GET /V1.0/Roles/query/count Count roles matching a query parameter search · Roles url parameter query count #
Ask an LLM
“How many roles match a given name search?”
“Can I get just the count of roles matching a query parameter?”
Tell an agent
Count roles matching {search} using the GET query parameter search.
Tell me how many roles are named {search}.
POST /V1.0/Roles/query/count Count roles matching a POST body filter · Roles query count #
Ask an LLM
“How many roles match a filter I send in the POST body?”
“Can I get a role count instead of the roles themselves?”
Tell an agent
Count roles matching {filter} using the POST roles query count.
Tell me how many roles match {filter}.
PUT /V1.0/Roles Replace a role's details · Roles update entity #
Ask an LLM
“How do I fully replace a role's hourly rate and description?”
“Can I deactivate a role by setting isActive to false?”
Tell an agent
Update role {id} with hourly rate {hourlyRate} and description {description}.
Replace role {id} so isActive is {isActive}.
POST /V1.0/Roles Create a role · Roles create entity #
Ask an LLM
“How do I add a new role type for my technicians?”
“Can I create a role with a default hourly factor and tax category?”
Tell an agent
Create a role named {name} with hourly factor {hourlyFactor}.
Add a new role {name} of type {roleType} with default tax category {quoteItemDefaultTaxCategoryId}.
PATCH /V1.0/Roles Partially update a role · Roles patch entity #
Ask an LLM
“Can I change just a role's hourly rate without resending the rest?”
“How do I deactivate a role without replacing it entirely?”
Tell an agent
Patch role {id} to hourly rate {hourlyRate}.
Set isActive to {isActive} on role {id}.
GET /V1.0/Roles/entityInformation Get the Roles entity definition · Roles query entity information #
Ask an LLM
“How do I see what the Roles entity includes?”
“What fields are available on the roles resource?”
Tell an agent
Show the Roles entity information using API code {code}.
Get the Roles entity details for user {user}.
GET /V1.0/Roles/entityInformation/fields List fields on the Roles entity · Roles query field definitions #
Ask an LLM
“Which fields exist on the Roles entity and what are their types?”
“Can I list each field definition with its label and type?”
Tell an agent
List the field definitions for the Roles entity using API code {code}.
Show Roles field definitions for user {user}.
GET /V1.0/Roles/entityInformation/userDefinedFields List user-defined fields for Roles · Roles query user defined field definitions #
Ask an LLM
“What custom user-defined fields are on the Roles entity?”
“Can I list only the UDFs defined for roles?”
Tell an agent
List user-defined field definitions on Roles using API code {code}.
Show roles UDFs for user {user}.
GET /v2/system/roles/lookup Get role lookup values · Get role lookups #
Ask an LLM
“What role values can I pick from in a lookup?”
“Can I get a list of role names for a dropdown?”
Tell an agent
Get the role lookup values.
List the roles I can choose from in a lookup.

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/kaseya:kaseya-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

kaseya-roles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kaseya Roles API
  version: '1.0'
  description: 'Operations tagged Roles across 2 of this provider''s published API definitions: kaseya-autotask-psa-openapi-original.json, kaseya-bms-openapi-original.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://webservices2.autotask.net/ATServicesRest
- url: https://api.bms.kaseya.com
tags:
- name: Roles
paths:
  /V1.0/Roles/query:
    get:
      tags:
      - Roles
      operationId: Roles_UrlParameterQuery
      parameters:
      - name: search
        in: query
        required: true
        schema:
          type: string
      - name: ApiIntegrationCode
        in: header
        description: API Integration Code
        required: true
        schema:
          type: string
      - name: UserName
        in: header
        description: User Name
        required: true
        schema:
          type: string
      - name: Secret
        in: header
        description: Secret
        required: true
        schema:
          type: string
      - name: ImpersonationResourceId
        in: header
        description: Impersonation Resource Key
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryActionResult_RoleModel_Role'
            text/json:
              schema:
                $ref: '#/components/schemas/QueryActionResult_RoleModel_Role'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      summary: Roles url parameter query
      x-summary-source: derived
    post:
      tags:
      - Roles
      operationId: Roles_Query
      parameters:
      - name: ApiIntegrationCode
        in: header
        description: API Integration Code
        required: true
        schema:
          type: string
      - name: UserName
        in: header
        description: User Name
        required: true
        schema:
          type: string
      - name: Secret
        in: header
        description: Secret
        required: true
        schema:
          type: string
      - name: ImpersonationResourceId
        in: header
        description: Impersonation Resource Key
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryActionResult_RoleModel_Role'
            text/json:
              schema:
                $ref: '#/components/schemas/QueryActionResult_RoleModel_Role'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryModel'
        required: true
      summary: Roles query
      x-summary-source: derived
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /V1.0/Roles/{id}:
    get:
      tags:
      - Roles
      operationId: Roles_QueryItem
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
          format: int64
      - name: ApiIntegrationCode
        in: header
        description: API Integration Code
        required: true
        schema:
          type: string
      - name: UserName
        in: header
        description: User Name
        required: true
        schema:
          type: string
      - name: Secret
        in: header
        description: Secret
        required: true
        schema:
          type: string
      - name: ImpersonationResourceId
        in: header
        description: Impersonation Resource Key
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ItemQueryResultModel_RoleModel_Role'
            text/json:
              schema:
                $ref: '#/components/schemas/ItemQueryResultModel_RoleModel_Role'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      summary: Roles query item
      x-summary-source: derived
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /V1.0/Roles/query/count:
    get:
      tags:
      - Roles
      operationId: Roles_UrlParameterQueryCount
      parameters:
      - name: search
        in: query
        required: true
        schema:
          type: string
      - name: ApiIntegrationCode
        in: header
        description: API Integration Code
        required: true
        schema:
          type: string
      - name: UserName
        in: header
        description: User Name
        required: true
        schema:
          type: string
      - name: Secret
        in: header
        description: Secret
        required: true
        schema:
          type: string
      - name: ImpersonationResourceId
        in: header
        description: Impersonation Resource Key
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryCountResultModel'
            text/json:
              schema:
                $ref: '#/components/schemas/QueryCountResultModel'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      summary: Roles url parameter query count
      x-summary-source: derived
    post:
      tags:
      - Roles
      operationId: Roles_QueryCount
      parameters:
      - name: ApiIntegrationCode
        in: header
        description: API Integration Code
        required: true
        schema:
          type: string
      - name: UserName
        in: header
        description: User Name
        required: true
        schema:
          type: string
      - name: Secret
        in: header
        description: Secret
        required: true
        schema:
          type: string
      - name: ImpersonationResourceId
        in: header
        description: Impersonation Resource Key
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryCountResultModel'
            text/json:
              schema:
                $ref: '#/components/schemas/QueryCountResultModel'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryModel'
        required: true
      summary: Roles query count
      x-summary-source: derived
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /V1.0/Roles:
    put:
      tags:
      - Roles
      operationId: Roles_UpdateEntity
      parameters:
      - name: ApiIntegrationCode
        in: header
        description: API Integration Code
        required: true
        schema:
          type: string
      - name: UserName
        in: header
        description: User Name
        required: true
        schema:
          type: string
      - name: Secret
        in: header
        description: Secret
        required: true
        schema:
          type: string
      - name: ImpersonationResourceId
        in: header
        description: Impersonation Resource Key
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResultModel'
            text/json:
              schema:
                $ref: '#/components/schemas/OperationResultModel'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoleModel'
        required: true
      summary: Roles update entity
      x-summary-source: derived
    post:
      tags:
      - Roles
      operationId: Roles_CreateEntity
      parameters:
      - name: ApiIntegrationCode
        in: header
        description: API Integration Code
        required: true
        schema:
          type: string
      - name: UserName
        in: header
        description: User Name
        required: true
        schema:
          type: string
      - name: Secret
        in: header
        description: Secret
        required: true
        schema:
          type: string
      - name: ImpersonationResourceId
        in: header
        description: Impersonation Resource Key
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResultModel'
            text/json:
              schema:
                $ref: '#/components/schemas/OperationResultModel'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoleModel'
        required: true
      summary: Roles create entity
      x-summary-source: derived
    patch:
      tags:
      - Roles
      operationId: Roles_PatchEntity
      parameters:
      - name: ApiIntegrationCode
        in: header
        description: API Integration Code
        required: true
        schema:
          type: string
      - name: UserName
        in: header
        description: User Name
        required: true
        schema:
          type: string
      - name: Secret
        in: header
        description: Secret
        required: true
        schema:
          type: string
      - name: ImpersonationResourceId
        in: header
        description: Impersonation Resource Key
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResultModel'
            text/json:
              schema:
                $ref: '#/components/schemas/OperationResultModel'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoleModel'
        required: true
      summary: Roles patch entity
      x-summary-source: derived
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /V1.0/Roles/entityInformation:
    get:
      tags:
      - Roles
      operationId: Roles_QueryEntityInformation
      parameters:
      - name: ApiIntegrationCode
        in: header
        description: API Integration Code
        required: true
        schema:
          type: string
      - name: UserName
        in: header
        description: User Name
        required: true
        schema:
          type: string
      - name: Secret
        in: header
        description: Secret
        required: true
        schema:
          type: string
      - name: ImpersonationResourceId
        in: header
        description: Impersonation Resource Key
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityInformationResultModel'
            text/json:
              schema:
                $ref: '#/components/schemas/EntityInformationResultModel'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      summary: Roles query entity information
      x-summary-source: derived
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /V1.0/Roles/entityInformation/fields:
    get:
      tags:
      - Roles
      operationId: Roles_QueryFieldDefinitions
      parameters:
      - name: ApiIntegrationCode
        in: header
        description: API Integration Code
        required: true
        schema:
          type: string
      - name: UserName
        in: header
        description: User Name
        required: true
        schema:
          type: string
      - name: Secret
        in: header
        description: Secret
        required: true
        schema:
          type: string
      - name: ImpersonationResourceId
        in: header
        description: Impersonation Resource Key
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FieldInformationResultModel'
            text/json:
              schema:
                $ref: '#/components/schemas/FieldInformationResultModel'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      summary: Roles query field definitions
      x-summary-source: derived
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /V1.0/Roles/entityInformation/userDefinedFields:
    get:
      tags:
      - Roles
      operationId: Roles_QueryUserDefinedFieldDefinitions
      parameters:
      - name: ApiIntegrationCode
        in: header
        description: API Integration Code
        required: true
        schema:
          type: string
      - name: UserName
        in: header
        description: User Name
        required: true
        schema:
          type: string
      - name: Secret
        in: header
        description: Secret
        required: true
        schema:
          type: string
      - name: ImpersonationResourceId
        in: header
        description: Impersonation Resource Key
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserDefinedFieldInformationResultModel'
            text/json:
              schema:
                $ref: '#/components/schemas/UserDefinedFieldInformationResultModel'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      summary: Roles query user defined field definitions
      x-summary-source: derived
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /v2/system/roles/lookup:
    get:
      tags:
      - Roles
      operationId: GetRoleLookups
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/RoleLookupOutputDtoListResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/RoleLookupOutputDtoListResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/RoleLookupOutputDtoListResponse'
      security:
      - bearerAuth: []
      summary: Get role lookups
      x-summary-source: derived
    servers:
    - url: https://api.bms.kaseya.com
components:
  schemas:
    RestUserAccessLevel:
      type: object
      properties: {}
    EntityInformationModel:
      type: object
      properties:
        name:
          type: string
          readOnly: true
        canCreate:
          type: boolean
          readOnly: true
        canDelete:
          type: boolean
          readOnly: true
        canQuery:
          type: boolean
          readOnly: true
        canUpdate:
          type: boolean
          readOnly: true
        userAccessForCreate:
          $ref: '#/components/schemas/RestUserAccessLevel'
          readOnly: true
        userAccessForDelete:
          $ref: '#/components/schemas/RestUserAccessLevel'
          readOnly: true
        userAccessForQuery:
          $ref: '#/components/schemas/RestUserAccessLevel'
          readOnly: true
        userAccessForUpdate:
          $ref: '#/components/schemas/RestUserAccessLevel'
          readOnly: true
        hasUserDefinedFields:
          type: boolean
          readOnly: true
        supportsWebhookCallouts:
          type: boolean
          readOnly: true
    FieldInformationResultModel:
      type: object
      properties:
        fields:
          type: array
          items:
            $ref: '#/components/schemas/FieldInformationModel'
            readOnly: true
    UserDefinedFieldInformationResultModel:
      type: object
      properties:
        fields:
          type: array
          items:
            $ref: '#/components/schemas/Field'
            readOnly: true
    ItemQueryResultModel_RoleModel_Role:
      type: object
      properties:
        item:
          $ref: '#/components/schemas/RoleModel'
    QueryModel:
      type: object
      properties:
        maxRecords:
          format: int32
          type: integer
        includeFields:
          type: array
          items:
            type: string
        filter:
          type: array
          items:
            $ref: '#/components/schemas/Filter'
      example:
        MaxRecords: 10
        IncludeFields: []
        Filter:
        - op: gt
          field: id
          value: 0
          udf: false
          items: []
    Field:
      type: object
      properties:
        name:
          type: string
        label:
          type: string
        type:
          type: string
        length:
          format: int32
          type: integer
        description:
          type: string
        isRequired:
          type: boolean
        isReadOnly:
          type: boolean
        isQueryable:
          type: boolean
        isReference:
          type: boolean
        referenceEntityType:
          type: string
        isPickList:
          type: boolean
        picklistValues:
          type: array
          items:
            $ref: '#/components/schemas/PickListValue'
        picklistParentValueField:
          type: string
        defaultValue:
          type: string
        isSupportedWebhookField:
          $ref: '#/components/schemas/Object'
    EntityInformationResultModel:
      type: object
      properties:
        info:
          $ref: '#/components/schemas/EntityInformationModel'
          readOnly: true
    PagingModel:
      type: object
      properties:
        count:
          format: int32
          type: integer
        requestCount:
          format: int32
          type: integer
          readOnly: true
        prevPageUrl:
          type: string
        nextPageUrl:
          type: string
    Object:
      type: object
      properties: {}
    RoleModel:
      type: object
      properties:
        id:
          format: int64
          type: integer
        description:
          type: string
        hourlyFactor:
          format: double
          type: number
        hourlyRate:
          format: double
          type: number
        isActive:
          type: boolean
        isExcludedFromNewContracts:
          type: boolean
        isSystemRole:
          type: boolean
        name:
          type: string
        quoteItemDefaultTaxCategoryId:
          format: int32
          type: integer
        roleType:
          format: int32
          type: integer
    Filter:
      type: object
      properties:
        op:
          type: string
        field:
          type: string
        udf:
          type: boolean
        value:
          description: 'Can be either an Integer, String, Boolean, an Array of Integers, or an Array of Strings. '
          type: object
          properties: {}
        items:
          description: An Array of Filter objects
          type: array
          items:
            $ref: '#/components/schemas/Filter'
    OperationResultModel:
      type: object
      properties:
        itemId:
          $ref: '#/components/schemas/Object'
    FieldInformationModel:
      type: object
      properties:
        name:
          type: string
        dataType:
          type: string
        length:
          format: int32
          type: integer
        isRequired:
          type: boolean
        isReadOnly:
          type: boolean
        isQueryable:
          type: boolean
        isReference:
          type: boolean
        referenceEntityType:
          type: string
        isPickList:
          type: boolean
        picklistValues:
          type: array
          items:
            $ref: '#/components/schemas/PickListValue'
        picklistParentValueField:
          type: string
        isSupportedWebhookField:
          $ref: '#/components/schemas/Object'
    PickListValue:
      type: object
      properties:
        value:
          type: string
        label:
          type: string
        isDefaultValue:
          type: boolean
        sortOrder:
          format: int32
          type: integer
        parentValue:
          type: string
        isActive:
          type: boolean
        isSystem:
          type: boolean
    QueryCountResultModel:
      type: object
      properties:
        queryCount:
          format: int32
          type: integer
    QueryActionResult_RoleModel_Role:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/RoleModel'
        pageDetails:
          $ref: '#/components/schemas/PagingModel'
    ErrorInfo:
      type: object
      properties:
        Code:
          type: integer
          format: int32
        Message:
          type:
          - string
          - 'null'
        Details:
          type:
          - string
          - 'null'
        StackStrace:
          type:
          - string
          - 'null'
        SubErrors:
          type:
          - array
          - 'null'
          items:
            type: string
      additionalProperties: false
    RoleLookupOutputDto:
      type: object
      properties:
        Id:
          type: integer
          format: int32
        Name:
          type:
          - string
          - 'null'
        IsDefault:
          type: boolean
      additionalProperties: false
    RoleLookupOutputDtoListResponse:
      type: object
      properties:
        Success:
          type: boolean
          readOnly: true
        Error:
          $ref: '#/components/schemas/ErrorInfo'
        Result:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/RoleLookupOutputDto'
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      description: JWT Authorization header using the Bearer scheme.
      scheme: bearer
      bearerFormat: JWT
x-refined-from:
- kaseya-autotask-psa-openapi-original.json
- kaseya-bms-openapi-original.json