Kaseya Contracts API

The Contracts API from Kaseya — 14 operation(s) for contracts.

Operations 18

GET /V1.0/Contracts/query #
POST /V1.0/Contracts/query #
GET /V1.0/Contracts/{id} #
GET /V1.0/Contracts/query/count #
POST /V1.0/Contracts/query/count #
PUT /V1.0/Contracts #
POST /V1.0/Contracts #
PATCH /V1.0/Contracts #
GET /V1.0/Contracts/entityInformation #
GET /V1.0/Contracts/entityInformation/fields #
GET /V1.0/Contracts/entityInformation/userDefinedFields #
GET /v2/finance/contracts/lookup #
POST /v2/finance/contracts/recurringservices #
PUT /v2/finance/contracts/recurringservices/{contractId} #
GET /v2/finance/contracts/summary #
POST /v2/finance/contracts/recurringservices/{contractId}/services #
PUT /v2/finance/contracts/{contractId}/activate #
PUT /v2/finance/contracts/{contractId}/deactivate #

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-contracts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

kaseya-contracts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Kaseya Contracts API
  version: '1.0'
  description: 'Operations tagged Contracts 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: Contracts
paths:
  /V1.0/Contracts/query:
    get:
      tags:
      - Contracts
      operationId: Contracts_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_ContractModel_Contract'
            text/json:
              schema:
                $ref: '#/components/schemas/QueryActionResult_ContractModel_Contract'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
    post:
      tags:
      - Contracts
      operationId: Contracts_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_ContractModel_Contract'
            text/json:
              schema:
                $ref: '#/components/schemas/QueryActionResult_ContractModel_Contract'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryModel'
        required: true
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /V1.0/Contracts/{id}:
    get:
      tags:
      - Contracts
      operationId: Contracts_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_ContractModel_Contract'
            text/json:
              schema:
                $ref: '#/components/schemas/ItemQueryResultModel_ContractModel_Contract'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /V1.0/Contracts/query/count:
    get:
      tags:
      - Contracts
      operationId: Contracts_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
    post:
      tags:
      - Contracts
      operationId: Contracts_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
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /V1.0/Contracts:
    put:
      tags:
      - Contracts
      operationId: Contracts_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/ContractModel'
        required: true
    post:
      tags:
      - Contracts
      operationId: Contracts_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/ContractModel'
        required: true
    patch:
      tags:
      - Contracts
      operationId: Contracts_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/ContractModel'
        required: true
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /V1.0/Contracts/entityInformation:
    get:
      tags:
      - Contracts
      operationId: Contracts_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
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /V1.0/Contracts/entityInformation/fields:
    get:
      tags:
      - Contracts
      operationId: Contracts_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
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /V1.0/Contracts/entityInformation/userDefinedFields:
    get:
      tags:
      - Contracts
      operationId: Contracts_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
    servers:
    - url: https://webservices2.autotask.net/ATServicesRest
  /v2/finance/contracts/lookup:
    get:
      tags:
      - Contracts
      operationId: GetContractLookups
      parameters:
      - name: Ids
        in: query
        schema:
          type: array
          items:
            type: integer
            format: int32
      - name: AccountId
        in: query
        schema:
          type: integer
          format: int32
      - name: Name
        in: query
        schema:
          type: string
      - name: ExcludeExpiredContracts
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ContractLookupOutputDtoListResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ContractLookupOutputDtoListResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ContractLookupOutputDtoListResponse'
      security:
      - bearerAuth: []
    servers:
    - url: https://api.bms.kaseya.com
  /v2/finance/contracts/recurringservices:
    post:
      tags:
      - Contracts
      operationId: PostRecurringServiceContract
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/RecurringServicesContractPostInputDto'
          application/json:
            schema:
              $ref: '#/components/schemas/RecurringServicesContractPostInputDto'
          text/json:
            schema:
              $ref: '#/components/schemas/RecurringServicesContractPostInputDto'
          application/*+json:
            schema:
              $ref: '#/components/schemas/RecurringServicesContractPostInputDto'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/RecurringServicesContractPostOutputDtoResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/RecurringServicesContractPostOutputDtoResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/RecurringServicesContractPostOutputDtoResponse'
      security:
      - bearerAuth: []
    servers:
    - url: https://api.bms.kaseya.com
  /v2/finance/contracts/recurringservices/{contractId}:
    put:
      tags:
      - Contracts
      operationId: PutRecurringServiceContract
      parameters:
      - name: contractId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/RecurringServicesContractPutInputDto'
          application/json:
            schema:
              $ref: '#/components/schemas/RecurringServicesContractPutInputDto'
          text/json:
            schema:
              $ref: '#/components/schemas/RecurringServicesContractPutInputDto'
          application/*+json:
            schema:
              $ref: '#/components/schemas/RecurringServicesContractPutInputDto'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/RecurringServicesContractPutOutputDtoResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/RecurringServicesContractPutOutputDtoResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/RecurringServicesContractPutOutputDtoResponse'
      security:
      - bearerAuth: []
    servers:
    - url: https://api.bms.kaseya.com
  /v2/finance/contracts/summary:
    get:
      tags:
      - Contracts
      operationId: GetContractsSummary
      parameters:
      - name: Filter.ContractType
        in: query
        schema:
          type: string
      - name: Filter.ContractName
        in: query
        schema:
          type: string
      - name: Filter.BillingCycle
        in: query
        schema:
          type: string
      - name: Filter.AccountName
        in: query
        schema:
          type: string
      - name: Filter.Status
        in: query
        schema:
          type: string
      - name: Sort
        in: query
        schema:
          type: string
      - name: Exclude
        in: query
        schema:
          type: string
      - name: PageSize
        in: query
        schema:
          type: integer
          format: int32
      - name: PageNumber
        in: query
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ClientContractSummaryOutputDtoIEnumerablePagedResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ClientContractSummaryOutputDtoIEnumerablePagedResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ClientContractSummaryOutputDtoIEnumerablePagedResponse'
      security:
      - bearerAuth: []
    servers:
    - url: https://api.bms.kaseya.com
  /v2/finance/contracts/recurringservices/{contractId}/services:
    post:
      tags:
      - Contracts
      operationId: PostRecurringServices
      parameters:
      - name: contractId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      requestBody:
        content:
          application/json-patch+json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/RecurringServicePostInputDto'
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/RecurringServicePostInputDto'
          text/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/RecurringServicePostInputDto'
          application/*+json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/RecurringServicePostInputDto'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/RecurringServicePostOutputDtoResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/RecurringServicePostOutputDtoResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/RecurringServicePostOutputDtoResponse'
      security:
      - bearerAuth: []
    servers:
    - url: https://api.bms.kaseya.com
  /v2/finance/contracts/{contractId}/activate:
    put:
      tags:
      - Contracts
      operationId: ActivateContract
      parameters:
      - name: contractId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ActivatedContractOutputDtoResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ActivatedContractOutputDtoResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ActivatedContractOutputDtoResponse'
      security:
      - bearerAuth: []
    servers:
    - url: https://api.bms.kaseya.com
  /v2/finance/contracts/{contractId}/deactivate:
    put:
      tags:
      - Contracts
      operationId: DeactivateContract
      parameters:
      - name: contractId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DeactivatedContractOutputDtoResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/DeactivatedContractOutputDtoResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/DeactivatedContractOutputDtoResponse'
      security:
      - bearerAuth: []
    servers:
    - url: https://api.bms.kaseya.com
components:
  schemas:
    ContractModel:
      type: object
      properties:
        id:
          format: int64
          type: integer
        billingPreference:
          format: int32
          type: integer
        billToCompanyContactID:
          format: int32
          type: integer
        billToCompanyID:
          format: int32
          type: integer
        companyID:
          format: int32
          type: integer
        contactID:
          format: int32
          type: integer
        contactName:
          type: string
        contractCategory:
          format: int32
          type: integer
        contractExclusionSetID:
          format: int32
          type: integer
        contractName:
          type: string
        contractNumber:
          type: string
        contractPeriodType:
          format: int32
          type: integer
        contractType:
          format: int32
          type: integer
        description:
          type: string
        endDate:
          format: date-time
          type: string
        estimatedCost:
          format: double
          type: number
        estimatedHours:
          format: double
          type: number
        estimatedRevenue:
          format: double
          type: number
        exclusionContractID:
          format: int64
          type: integer
        internalCurrencyOverageBillingRate:
          format: double
          type: number
        internalCurrencySetupFee:
          format: double
          type: number
        isCompliant:
          type: boolean
        isDefaultContract:
          type: boolean
        lastModifiedDateTime:
          format: date-time
          type: string
        opportunityID:
          format: int32
          type: integer
        organizationalLevelAssociationID:
          format: int32
          type: integer
        overageBillingRate:
          format: double
          type: number
        purchaseOrderNumber:
          type: string
        renewedContractID:
          format: int64
          type: integer
        serviceLevelAgreementID:
          format: int32
          type: integer
        setupFee:
          format: double
          type: number
        setupFeeBillingCodeID:
          format: int64
          type: integer
        startDate:
          format: date-time
          type: string
        status:
          format: int32
          type: integer
        timeReportingRequiresStartAndStopTimes:
          format: int32
          type: integer
        userDefinedFields:
          type: array
          items:
            $ref: '#/components/schemas/UserDefinedField'
    UserDefinedFieldInformationResultModel:
      type: object
      properties:
        fields:
          type: array
          items:
            $ref: '#/components/schemas/Field'
            readOnly: true
    EntityInformationResultModel:
      type: object
      properties:
        info:
          $ref: '#/components/schemas/EntityInformationModel'
          readOnly: true
    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'
    FieldInformationResultModel:
      type: object
      properties:
        fields:
          type: array
          items:
            $ref: '#/components/schemas/FieldInformationModel'
            readOnly: true
    QueryCountResultModel:
      type: object
      properties:
        queryCount:
          format: int32
          type: integer
    UserDefinedField:
      type: object
      properties:
        name:
          type: string
        value:
          type: string
    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
    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: []
    QueryActionResult_ContractModel_Contract:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ContractModel'
        pageDetails:
          $ref: '#/components/schemas/PagingModel'
    Object:
      type: object
      properties: {}
    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'
    ItemQueryResultModel_ContractModel_Contract:
      type: object
      properties:
        item:
          $ref: '#/components/schemas/ContractModel'
    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
    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'
    PagingModel:
      type: object
      properties:
        count:
          format: int32
          type: integer
        requestCount:
          format: int32
          type: integer
          readOnly: true
        prevPageUrl:
          type: string
        nextPageUrl:
          type: string
    ContractLookupOutputDto:
      type: object
      properties:
        Id:
          type: integer
          format: int32
        Name:
          type:
          - string
          - 'null'
        IsDefault:
          type:
          - boolean
          - 'null'
        SLAId:
          type:
          - integer
          - 'null'
          format: int32
        SLAName:
          type:
          - string
          - 'null'
        IsActive:
          type: boolean
        EndDate:
          type:
          - string
          - 'null'
          format: date-time
      additionalProperties: false
    RecurringServicesContractPutOutputDto:
      type: object
      properties:
        Id:
          type: integer
          format: int32
        CreatedBy:
          type:
          - integer
          - 'null'
          format: int32
        CreatedOn:
          type:
          - string
          - 'null'
          format: date-time
        ModifiedBy:
          type:
          - integer
          - 'null'
          format: int32
        ModifiedOn:
          type:
          - string
          - 'null'
          format: date-time
        ContractName:
          type:
          - string

# --- truncated at 32 KB (48 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/kaseya/refs/heads/main/openapi/kaseya-contracts-api-openapi.yml