Moogsoft Collector V2 API

This API enables you to work with collectors

Operations 36

GET /v2/collector-installer/base-url Returns the base URL for api requests. #
HEAD /v2/collector-installer/check Check if the collector service is active #
GET /v2/collector-installer/curl Returns a command to download and install the collector. #
GET /v2/collector-installer/download Download the collector bundle. #
GET /v2/collector-installer/latest-version Fetch the latest collector version as JSON. #
GET /v2/collector-installer/script Fetch the collector install script. #
GET /v2/collector-upgrade-schedules Get the collector upgrade schedule(s). #
PATCH /v2/collector-upgrade-schedules/{id} Update the collector upgrade schedule. #
POST /v2/collectors Register/update a collector and set up default plugins. #
GET /v2/collectors Get all known collectors. #
GET /v2/collectors/{collectorId} Get a collector by id. #
DELETE /v2/collectors/{collectorId} Delete Collector #
GET /v2/collectors/{collectorId}/api-key Get a new API Key for an id. #
GET /v2/collectors/{collectorId}/encrypted-topology Generate Encrypted Topology #
POST /v2/collectors/{collectorId}/heartbeats Process Heartbeats #
POST /v2/collectors/{collectorId}/logs Save Logs #
GET /v2/collectors/{collectorId}/logs Get Logs #
GET /v2/collectors/{collectorId}/messages Get Messages #
POST /v2/collectors/{collectorId}/messages Create Collector Message #
PATCH /v2/collectors/{collectorId}/messages/{messageId} Update Message Response #
GET /v2/manual-collector-config Returns any manual collector config that matches. #
DELETE /v2/manual-collector-config Delete all matching manual collector config. #
POST /v2/manual-collector-config Create new manual collector config. #
PATCH /v2/manual-collector-config/{id} Update the plugin config with the given id. #
GET /v2/manual-collector-config/{id} Get the manual collector config with the given id. #
DELETE /v2/manual-collector-config/{id} Delete the manual collector config with the given id. #
GET /v2/plugin-config Returns any plugin config that matches. #
DELETE /v2/plugin-config Delete all matching plugin config with the given collector id. #
POST /v2/plugin-config Create new plugin config. #
PATCH /v2/plugin-config/{id} Update the plugin config with the given id. #
GET /v2/plugin-config/{id} Get the plugin config with the given id. #
DELETE /v2/plugin-config/{id} Delete the plugin config with the given id. #
GET /v2/plugins Get all the plugins. #
GET /v2/plugins/{name} Get the named plugin. #
POST /v2/product-feedback Provide Feedback #
GET /v2/support-files/{collectorId} Get all support files for the currently enabled config #

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/collector"
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

moogsoft-collectors-openapi.yaml Raw ↑
openapi: 3.1.0
info:
  version: 1.1.0
  title: Collector V2 API
  description: This API enables you to work with collectors
  termsOfService: 'https://www.moogsoft.com/legal-information/express-terms-conditions/'
  contact:
    name: API Support
    url: 'https://docs.moogsoft.com/en/moogsoft-apis.html'
    email: support@moogsoft.com
  license:
    url: 'https://www.moogsoft.com/legal-information'
    name: Apex AIOps Incident Management Proprietary
servers:
  - url: 'https://api.moogsoft.ai'
  - url: 'https://api.dev.moogsoft.cloud'
paths:
  /v2/collector-installer/base-url:
    get:
      tags:
        - collector-installer
      summary: Returns the base URL for api requests.
      description: Returns the base URL for api requests.
      operationId: getBaseUrl
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponsestring'
                __errors__:
                  '#/components/schemas/MoogResponsestring': No foreign doc with id components found
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:view'
        description: Required user permissions for this endpoint
  /v2/collector-installer/check:
    head:
      tags:
        - collector-installer
      summary: Check if the collector service is active
      description: Used as a health check for the collector
      operationId: collectorHealthCheck
      responses:
        '204':
          description: No Content
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value: []
        description: Required user permissions for this endpoint
  /v2/collector-installer/curl:
    get:
      tags:
        - collector-installer
      summary: Returns a command to download and install the collector.
      description: Returns a command to download and install the collector.
      operationId: getInstallCommand
      parameters:
        - name: platform
          in: query
          description: The desired platform for the install command
          required: true
          schema:
            $ref: '#/components/schemas/PlatformType'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponsestring'
                __errors__:
                  '#/components/schemas/MoogResponsestring': No foreign doc with id components found
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:edit'
        description: Required user permissions for this endpoint
  /v2/collector-installer/download:
    get:
      tags:
        - collector-installer
      summary: Download the collector bundle.
      description: Download the collector bundle (latest if no version specified).
      operationId: download
      parameters:
        - name: arch
          in: query
          description: The desired architecture for the download
          required: true
          schema:
            $ref: '#/components/schemas/ArchType'
        - name: fileType
          in: query
          description: The desired version for the download (default to .tar for Linux and .msi for Windows if not provided)
          schema:
            $ref: '#/components/schemas/FileType'
        - name: libc
          in: query
          description: The desired libc implementation for a Linux download
          schema:
            $ref: '#/components/schemas/LIBC'
        - name: platform
          in: query
          description: The desired platform for the download
          required: true
          schema:
            $ref: '#/components/schemas/PlatformType'
        - name: version
          in: query
          description: The desired version for the download (default to latest if not provided)
          schema:
            type: string
            pattern: '^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponsestring'
                __errors__:
                  '#/components/schemas/MoogResponsestring': No foreign doc with id components found
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:edit'
        description: Required user permissions for this endpoint
  /v2/collector-installer/latest-version:
    get:
      tags:
        - collector-installer
      summary: Fetch the latest collector version as JSON.
      description: Fetch the latest collector version as JSON.
      operationId: latestVersionJson
      parameters:
        - name: arch
          in: query
          description: The desired architecture
          required: true
          schema:
            $ref: '#/components/schemas/ArchType'
        - name: fileType
          in: query
          description: The desired file extension
          schema:
            $ref: '#/components/schemas/FileType'
        - name: platform
          in: query
          description: The desired platform
          required: true
          schema:
            $ref: '#/components/schemas/PlatformType'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponsestring'
                __errors__:
                  '#/components/schemas/MoogResponsestring': No foreign doc with id components found
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:view'
        description: Required user permissions for this endpoint
  /v2/collector-installer/script:
    get:
      tags:
        - collector-installer
      summary: Fetch the collector install script.
      description: Fetch the collector install script.
      operationId: getInstallScript
      parameters:
        - name: base_url
          in: query
          description: The baseUrl for the install script when a reverse proxy is utilized
          schema:
            type: string
            pattern: '^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]'
        - name: platform
          in: query
          description: The desired platform for the install script
          required: true
          schema:
            $ref: '#/components/schemas/PlatformType'
        - name: proxy_url
          in: query
          description: The proxyUrl for the install script when a proxy url is utilized
          schema:
            type: string
            pattern: '^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:edit'
        description: Required user permissions for this endpoint
  /v2/collector-upgrade-schedules:
    get:
      tags:
        - Collector Upgrade Schedules Resource
      summary: Get the collector upgrade schedule(s).
      description: Get the collector upgrade schedule(s).
      operationId: getCollectorUpgradeSchedules
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponseListOfCollectorUpgradeScheduleDto'
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:view'
        description: Required user permissions for this endpoint
  '/v2/collector-upgrade-schedules/{id}':
    patch:
      tags:
        - Collector Upgrade Schedules Resource
      summary: Update the collector upgrade schedule.
      description: Update the collector upgrade schedule.
      operationId: updateCollectorUpgradeSchedule
      parameters:
        - name: id
          in: path
          description: The collector upgrade schedule id
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BaseCollectorUpgradeScheduleDto'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponseCollectorUpgradeScheduleDto'
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:edit'
        description: Required user permissions for this endpoint
  /v2/collectors:
    post:
      tags:
        - collectors
      summary: Register/update a collector and set up default plugins.
      description: Register/update a collector and set up default plugins.
      operationId: registerCollector
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterCollectorDto'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponseCollectorDto'
        '400':
          description: Bad Request
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:edit'
        description: Required user permissions for this endpoint
    get:
      tags:
        - collectors
      summary: Get all known collectors.
      description: Get all known collectors.
      operationId: getCollectors
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponseListOfCollectorDto'
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:view'
        description: Required user permissions for this endpoint
  '/v2/collectors/{collectorId}':
    get:
      tags:
        - collectors
      summary: Get a collector by id.
      description: Get a collector by id.
      operationId: getCollector
      parameters:
        - name: collectorId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponseCollectorDto'
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:view'
        description: Required user permissions for this endpoint
    delete:
      tags:
        - collectors
      summary: Delete Collector
      operationId: deleteCollector
      parameters:
        - name: collectorId
          in: path
          description: The collector id
          required: true
          schema:
            type: string
      responses:
        '204':
          description: No Content
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:edit'
        description: Required user permissions for this endpoint
  '/v2/collectors/{collectorId}/api-key':
    get:
      tags:
        - collectors
      summary: Get a new API Key for an id.
      description: Generate new API Key.
      operationId: getAPIKey
      parameters:
        - name: collectorId
          in: path
          description: The id to get an API Key for
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponsestring'
                __errors__:
                  '#/components/schemas/MoogResponsestring': No foreign doc with id components found
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:view'
        description: Required user permissions for this endpoint
  '/v2/collectors/{collectorId}/encrypted-topology':
    get:
      tags:
        - collectors
      summary: Generate Encrypted Topology
      operationId: generateEncryptedTopology
      parameters:
        - name: api_key
          in: query
          required: true
          schema:
            type: string
        - name: collectorId
          in: path
          description: The collector id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponsestring'
                __errors__:
                  '#/components/schemas/MoogResponsestring': No foreign doc with id components found
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:view'
        description: Required user permissions for this endpoint
  '/v2/collectors/{collectorId}/heartbeats':
    post:
      tags:
        - collectors
      summary: Process Heartbeats
      operationId: processHeartbeats
      parameters:
        - name: collectorId
          in: path
          description: The collector id
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/CollectorHeartbeatDto'
      responses:
        '201':
          description: Created
        '400':
          description: Bad Request
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:edit'
        description: Required user permissions for this endpoint
  '/v2/collectors/{collectorId}/logs':
    post:
      tags:
        - collectors
      summary: Save Logs
      operationId: saveLogs
      parameters:
        - name: collectorId
          in: path
          description: The collector id
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/CollectorLogDto'
      responses:
        '201':
          description: Created
        '400':
          description: Bad Request
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:edit'
        description: Required user permissions for this endpoint
    get:
      tags:
        - collectors
      summary: Get Logs
      operationId: getLogs
      parameters:
        - name: direction
          in: query
          description: The direction that log timestamps will be ordered
          schema:
            type: object
            enum:
              - ASC
              - DESC
            default: DESC
        - name: end_time
          in: query
          description: The UTC end time of logs to filter on
          schema:
            type: integer
            format: int64
            minimum: 0
        - name: keyword
          in: query
          schema:
            type: string
        - name: limit
          in: query
          description: The maximum number of logs to return
          schema:
            type: integer
            format: int32
            minimum: 1
            maximum: 10000
            default: '5000'
        - name: skip
          in: query
          description: The number of logs to skip before returning the results
          schema:
            type: integer
            format: int32
            minimum: 0
            default: '0'
        - name: start_time
          in: query
          description: The UTC start time of logs to filter on
          schema:
            type: integer
            format: int64
            minimum: 0
        - name: collectorId
          in: path
          description: The collector id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponseCollectorLogResponse'
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':
          description: Requested object(s) not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        4XX:
          description: Authorization or other error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        5XX:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogErrorResponse'
      security:
        - ApiKeyAuth: []
      servers:
        - url: 'https://api.moogsoft.ai'
        - url: 'https://api.dev.moogsoft.cloud'
      x-permissions:
        value:
          - 'integrations:view'
        description: Required user permissions for this endpoint
  '/v2/collectors/{collectorId}/messages':
    get:
      tags:
        - collectors
      summary: Get Messages
      operationId: getMessages
      parameters:
        - name: action
          in: query
          schema:
            $ref: '#/components/schemas/CollectorAction'
        - name: status
          in: query
          schema:
            $ref: '#/components/schemas/CollectorMessageStatus'
        - name: collectorId
          in: path
          description: The collector id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogResponseListOfCollectorMessageDto'
        '400':
          description: Invalid parameters or data validation violation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoogFailureResponse'
        '404':

# --- truncated at 32 KB (84 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/moogsoft/refs/heads/main/openapi/moogsoft-collectors-openapi.yaml