Nexthink Execute API

The Execute API from Nexthink — 2 operation(s) for execute.

Operations 2

POST /api/v1/nql/execute Execute an NQL V1 #
POST /api/v2/nql/execute Execute an NQL V2 #

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/nexthink-execute-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

nexthink-execute-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Campaigns Execute API
  version: 1.0.0
servers:
- url: https://{instance}.api.{region}.nexthink.cloud
  description: Nexthink Infinity instance API host
  variables:
    instance:
      default: instance
      description: Your Nexthink instance name
    region:
      default: us
      enum:
      - us
      - eu
      - pac
      - meta
      description: Nexthink cloud region
security:
- bearerAuth: []
tags:
- name: Execute
paths:
  /api/v1/nql/execute:
    post:
      tags:
      - Execute
      summary: Execute an NQL V1
      description: Executes an NQL query and returns the results.
      operationId: execute
      parameters:
      - name: Authorization
        in: header
        schema:
          type: string
      - name: Accept
        description: Set the header to `application/json` for a JSON response or `text/csv` for a CSV response. If no value is set, `application/json` applied by default. Otherwise, 406 error (not acceptable) is returned.
        in: header
        schema:
          type:
          - string
          - 'null'
      - name: x-utc-times
        description: Set the header to `true` for UTC timezone. With any other value, regional timezone is applied by default.
        in: header
        schema:
          type:
          - string
          - 'null'
      requestBody:
        description: The configuration of the execution.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NqlApiExecuteRequest'
        required: true
      responses:
        '200':
          description: OK - Successful execution.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NqlApiExecuteResponse'
            text/csv:
              schema:
                type: string
        '401':
          description: Unauthorized - No valid authentication credentials.
        '403':
          description: No permission - Not authorized to execute queries.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found - No query associated with that ID.
        '406':
          description: Not Acceptable. The Accept header should be "application/json", "text/csv" or empty.
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service unavailable.
  /api/v2/nql/execute:
    post:
      tags:
      - Execute
      summary: Execute an NQL V2
      description: Executes an NQL query and returns the results.
      operationId: execute
      parameters:
      - name: Authorization
        in: header
        schema:
          type: string
      - name: Accept
        description: Set the header to `application/json` for a response or `text/csv` for a CSV response. If no value is set, `application/json` is applied by default. Otherwise, 406 error (not acceptable) is returned.
        in: header
        schema:
          type:
          - string
          - 'null'
      - name: x-utc-times
        description: Set the header to `true` for UTC timezone. With any other value, regional timezone is applied by default.
        in: header
        schema:
          type:
          - string
          - 'null'
      requestBody:
        description: The configuration of the execution.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NqlApiExecuteRequest'
        required: true
      responses:
        '200':
          description: OK - Successful execution.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NqlApiExecuteV2Response'
            text/csv:
              schema:
                type: string
        '401':
          description: Unauthorized - No valid authentication credentials.
        '403':
          description: No permission - Not authorized to execute queries
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found - No query associated with that ID
        '406':
          description: Not Acceptable - The accept header should be "application/json", "text/csv" or empty
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service unavailable
components:
  schemas:
    NqlApiExecuteV2Response:
      type: object
      properties:
        queryId:
          type: string
          description: Identifier of the executed query
        executedQuery:
          type: string
          description: Final query executed with the parameters replaced
        rows:
          type: integer
          description: Number of rows returned
          format: int64
        executionDateTime:
          type: string
          description: Date and time of the execution in ISO format
        data:
          type: array
          description: List of rows with the data returned by the query execution
          items:
            type: object
            properties:
              key1: {}
              key2: {}
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: Message with the description of the error.
        code:
          type: integer
          description: Error code
          format: int32
        source:
          type: string
          description: Source of the error, if any.
    NqlApiExecuteRequest:
      required:
      - queryId
      type: object
      properties:
        queryId:
          maxLength: 255
          minLength: 1
          pattern: ^#[a-z0-9_]{2,255}$
          type: string
          description: Identifier of the query which is going to be executed.
        parameters:
          type: object
          additionalProperties:
            type: string
          description: 'Key and value of the parameters to be replaced within the NQL query in order to compose a final query for execution. Example: {\"alert_name\": \"my_alert\", \"alert_status\": \"Open\"}"'
    DateTime:
      type: object
      properties:
        year:
          type: integer
          format: int64
        month:
          type: integer
          format: int64
        day:
          type: integer
          format: int64
        hour:
          type: integer
          format: int64
        minute:
          type: integer
          format: int64
        second:
          type: integer
          format: int64
    NqlApiExecuteResponse:
      type: object
      properties:
        queryId:
          type: string
          description: Identifier of the executed query
        executedQuery:
          type: string
          description: Final query executed with the replaced parameters.
        rows:
          type: integer
          description: Number of rows returned
          format: int64
        executionDateTime:
          allOf:
          - $ref: '#/components/schemas/DateTime'
          - type: object
            description: Date and time of the execution
        headers:
          type: array
          description: Ordered list with the headers of the returned fields.
          items:
            type: string
        data:
          type: array
          description: List of rows with the data returned by the query execution.
          items:
            type: array
            items:
              type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: jwt
x-apievangelist-source: https://docs.nexthink.com/api/llms.txt
x-apievangelist-method: searched
x-apievangelist-generated: '2026-07-20'