Elastic Stack (ELK Stack) Security Osquery API

Run live queries, manage packs and saved queries.

Business capability
Threat Detection & Response Management BC-620.30

Operations 21

GET /api/osquery/history Get unified query history #
GET /api/osquery/live_queries Get live queries #
POST /api/osquery/live_queries Create a live query #
GET /api/osquery/live_queries/{id} Get live query details #
GET /api/osquery/live_queries/{id}/results/{actionId} Get live query results #
POST /api/osquery/live_queries/{id}/results/{actionId}/_export Export live query results #
GET /api/osquery/packs Get packs #
POST /api/osquery/packs Create a pack #
DELETE /api/osquery/packs/{id} Delete a pack #
GET /api/osquery/packs/{id} Get pack details #
PUT /api/osquery/packs/{id} Update a pack #
POST /api/osquery/packs/{id}/copy Copy a pack #
GET /api/osquery/saved_queries Get saved queries #
POST /api/osquery/saved_queries Create a saved query #
DELETE /api/osquery/saved_queries/{id} Delete a saved query #
GET /api/osquery/saved_queries/{id} Get saved query details #
PUT /api/osquery/saved_queries/{id} Update a saved query #
POST /api/osquery/saved_queries/{id}/copy Copy a saved query #
GET /api/osquery/scheduled_results/{scheduleId}/{executionCount} Get scheduled action results #
POST /api/osquery/scheduled_results/{scheduleId}/{executionCount}/_export Export scheduled query results #
GET /api/osquery/scheduled_results/{scheduleId}/{executionCount}/results Get scheduled query results #

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/elk-stack-security-osquery-api-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

elk-stack-security-osquery-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    name: Kibana Team
  description: The Kibana REST APIs enable you to manage resources such as connectors, data views, and saved objects.
  title: Kibana Security Osquery API
  version: ''
  x-doc-license:
    name: Attribution-NonCommercial-NoDerivatives 4.0 International
    url: https://creativecommons.org/licenses/by-nc-nd/4.0/
  x-feedbackLink:
    label: Feedback
    url: https://github.com/elastic/docs-content/issues/new?assignees=&labels=feedback%2Ccommunity&projects=&template=api-feedback.yaml&title=%5BFeedback%5D%3A+
servers:
- url: https://{kibana_url}
  variables:
    kibana_url:
      default: localhost:5601
security:
- apiKeyAuth: []
- basicAuth: []
tags:


# --- truncated at 32 KB (131 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/elk-stack/refs/heads/main/openapi/elk-stack-security-osquery-api-api-openapi.yml