Kaseya Attachments API

The Attachments API from Kaseya — 6 operation(s) for attachments.

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 9

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 /v2/system/attachments/{moduleId}/{objectId} List attachments on an object · Get attachments #
Ask an LLM
“What attachments are attached to a ticket or contact?”
“Can I sort and page through an object's attachments?”
Tell an agent
List attachments on {module} object {object}.
Show {module} attachments for {object} sorted by {sort}.
POST /v2/system/attachments/{moduleId}/{objectId} Attach a file to an object · Post #
Ask an LLM
“How do I attach a file to a ticket or contact?”
“Can I upload a file to an object in one call?”
Tell an agent
Attach {file} to {module} object {object}.
Upload a file to {module} object {object}.
GET /v2/system/attachments/{moduleId}/{objectId}/{attachmentId} Get one attachment on an object · Get attachment #
Ask an LLM
“How do I fetch a single attachment on a ticket?”
“Can I read one attachment by its id?”
Tell an agent
Get attachment {attachment} on {module} object {object}.
Show the {module} attachment {attachment} for {object}.
DELETE /v2/system/attachments/{moduleId}/{objectId}/{attachmentId} Delete an attachment from an object · Delete attachment #
Ask an LLM
“How do I remove an attachment from a ticket?”
“Can I delete one attachment on an object?”
Tell an agent destructive · confirm first
Delete attachment {attachment} from {module} object {object}.
Remove {module} attachment {attachment} on {object}.
PUT /v2/system/attachments/{moduleId}/{objectId}/{attachmentId} Rename an attachment on an object · Put attachment #
Ask an LLM
“How do I rename an attachment already on a ticket?”
“Can I change the name of an existing attachment?”
Tell an agent
Rename attachment {attachment} on {module} object {object} to {name}.
Update the name of {module} attachment {attachment} for {object} to {name}.
GET /v2/system/attachments/{moduleId}/{objectId}/{attachmentId}/download Download an attachment · Download attachment #
Ask an LLM
“How do I download an attachment from a ticket?”
“Can I resize an attachment when downloading it?”
Tell an agent
Download attachment {attachment} from {module} object {object}.
Download {module} attachment {attachment} for {object} at {width} wide.
POST /v2/system/attachments/{moduleId} Upload a temporary attachment · Post temp attachment #
Ask an LLM
“How do I upload a file that is not yet attached to anything?”
“Can I upload a temporary attachment for later use?”
Tell an agent
Upload {file} as a temporary attachment to {module}.
Create a temp attachment in {module}.
DELETE /v2/system/attachments Delete several attachments · Delete attachments #
Ask an LLM
“How do I delete multiple attachments at once?”
“Can I remove several attachments by id?”
Tell an agent destructive · confirm first
Delete attachments {ids}.
Remove the attachments {ids} in one call.
DELETE /v2/system/attachments/temp Delete temporary attachments · Delete temp attachments #
Ask an LLM
“How do I clear all temporary attachments?”
“Can I remove temp attachments I uploaded earlier?”
Tell an agent destructive · confirm first
Delete all temporary attachments.
Clear the temp attachment folder.

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-attachments-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-attachments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: BMS API 2.0 Attachments API
  description: Documentation of APIs Version 2.0
  version: '2.0'
servers:
- url: https://api.bms.kaseya.com
security:
- bearerAuth: []
tags:
- name: Attachments
paths:
  /v2/system/attachments/{moduleId}/{objectId}:
    get:
      tags:
      - Attachments
      operationId: GetAttachments
      parameters:
      - name: objectId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: moduleId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - 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/AttachmentOutputDtoIEnumerablePagedResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/AttachmentOutputDtoIEnumerablePagedResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/AttachmentOutputDtoIEnumerablePagedResponse'
      summary: Get attachments
      x-summary-source: derived
    post:
      tags:
      - Attachments
      operationId: Post
      parameters:
      - name: objectId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: moduleId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                formFile:
                  type: string
                  format: binary
            encoding:
              formFile:
                style: form
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/AttachmentOutputDtoIEnumerableResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/AttachmentOutputDtoIEnumerableResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/AttachmentOutputDtoIEnumerableResponse'
      summary: Post
      x-summary-source: derived
  /v2/system/attachments/{moduleId}/{objectId}/{attachmentId}:
    get:
      tags:
      - Attachments
      operationId: GetAttachment
      parameters:
      - name: attachmentId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: objectId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: moduleId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/AttachmentOutputDtoResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/AttachmentOutputDtoResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/AttachmentOutputDtoResponse'
      summary: Get attachment
      x-summary-source: derived
    delete:
      tags:
      - Attachments
      operationId: DeleteAttachment
      parameters:
      - name: attachmentId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: objectId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: moduleId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
      summary: Delete attachment
      x-summary-source: derived
    put:
      tags:
      - Attachments
      operationId: PutAttachment
      parameters:
      - name: attachmentId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: objectId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: moduleId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/AttachmentPutInputDto'
          application/json:
            schema:
              $ref: '#/components/schemas/AttachmentPutInputDto'
          text/json:
            schema:
              $ref: '#/components/schemas/AttachmentPutInputDto'
          application/*+json:
            schema:
              $ref: '#/components/schemas/AttachmentPutInputDto'
      responses:
        '200':
          description: OK
      summary: Put attachment
      x-summary-source: derived
  /v2/system/attachments/{moduleId}/{objectId}/{attachmentId}/download:
    get:
      tags:
      - Attachments
      operationId: DownloadAttachment
      parameters:
      - name: attachmentId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: objectId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: moduleId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      - name: width
        in: query
        schema:
          type: integer
          format: int32
      - name: height
        in: query
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/File'
            application/json:
              schema:
                $ref: '#/components/schemas/File'
            text/json:
              schema:
                $ref: '#/components/schemas/File'
      summary: Download attachment
      x-summary-source: derived
  /v2/system/attachments/{moduleId}:
    post:
      tags:
      - Attachments
      operationId: PostTempAttachment
      parameters:
      - name: moduleId
        in: path
        required: true
        schema:
          type: integer
          format: int32
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                File:
                  type: string
                  format: binary
            encoding:
              File:
                style: form
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/TempAttachmentOuputDtoResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/TempAttachmentOuputDtoResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/TempAttachmentOuputDtoResponse'
      summary: Post temp attachment
      x-summary-source: derived
  /v2/system/attachments:
    delete:
      tags:
      - Attachments
      operationId: DeleteAttachments
      parameters:
      - name: attachmentIds
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
      summary: Delete attachments
      x-summary-source: derived
  /v2/system/attachments/temp:
    delete:
      tags:
      - Attachments
      operationId: DeleteTempAttachments
      requestBody:
        content:
          application/json-patch+json:
            schema:
              type: array
              items:
                type: string
          application/json:
            schema:
              type: array
              items:
                type: string
          text/json:
            schema:
              type: array
              items:
                type: string
          application/*+json:
            schema:
              type: array
              items:
                type: string
      responses:
        '200':
          description: OK
      summary: Delete temp attachments
      x-summary-source: derived
components:
  schemas:
    AttachmentOutputDtoIEnumerablePagedResponse:
      type: object
      properties:
        Success:
          type: boolean
          readOnly: true
        Error:
          $ref: '#/components/schemas/ErrorInfo'
        Result:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/AttachmentOutputDto'
        TotalRecords:
          type: integer
          format: int32
      additionalProperties: false
    TempAttachmentOuputDto:
      type: object
      properties:
        Name:
          type:
          - string
          - 'null'
        Alias:
          type:
          - string
          - 'null'
        FileType:
          type:
          - string
          - 'null'
        IsUploadedToBlob:
          type:
          - boolean
          - 'null'
      additionalProperties: false
    AttachmentOutputDtoIEnumerableResponse:
      type: object
      properties:
        Success:
          type: boolean
          readOnly: true
        Error:
          $ref: '#/components/schemas/ErrorInfo'
        Result:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/AttachmentOutputDto'
      additionalProperties: false
    AttachmentPutInputDto:
      required:
      - Name
      type: object
      properties:
        Id:
          type: integer
          format: int32
        Name:
          minLength: 1
          type: string
      additionalProperties: false
    File:
      type: object
      additionalProperties: false
    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
    AttachmentOutputDto:
      type: object
      properties:
        Id:
          type: integer
          format: int32
        OriginalFileName:
          type:
          - string
          - 'null'
        AliasName:
          type:
          - string
          - 'null'
        FileType:
          type:
          - string
          - 'null'
        ObjectId:
          type:
          - integer
          - 'null'
          format: int32
        ModuleId:
          type:
          - integer
          - 'null'
          format: int32
        Url:
          type:
          - string
          - 'null'
        WebUrl:
          type:
          - string
          - 'null'
        CreatedById:
          type:
          - integer
          - 'null'
          format: int32
        CreatedByName:
          type:
          - string
          - 'null'
        CreatedOn:
          type:
          - string
          - 'null'
          format: date-time
        IsUploadedToBlob:
          type:
          - boolean
          - 'null'
      additionalProperties: false
    TempAttachmentOuputDtoResponse:
      type: object
      properties:
        Success:
          type: boolean
          readOnly: true
        Error:
          $ref: '#/components/schemas/ErrorInfo'
        Result:
          $ref: '#/components/schemas/TempAttachmentOuputDto'
      additionalProperties: false
    AttachmentOutputDtoResponse:
      type: object
      properties:
        Success:
          type: boolean
          readOnly: true
        Error:
          $ref: '#/components/schemas/ErrorInfo'
        Result:
          $ref: '#/components/schemas/AttachmentOutputDto'
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      description: JWT Authorization header using the Bearer scheme.
      scheme: bearer
      bearerFormat: JWT