Elastic Stack (ELK Stack) Elastic Agent actions API

Elastic Agent actions APIs enable you to manage actions performed on Elastic Agents, including agent reassignment, diagnostics collection, enrollment management, upgrades, and bulk operations for agent lifecycle management.

Business capability
IT Operations Management BC-600.40

Operations 16

POST /api/fleet/agents/{agentId}/actions Create an agent action #
POST /api/fleet/agents/{agentId}/reassign Reassign an agent #
POST /api/fleet/agents/{agentId}/remove_collector Remove an OpAMP collector #
POST /api/fleet/agents/{agentId}/request_diagnostics Request agent diagnostics #
POST /api/fleet/agents/{agentId}/rollback Rollback an agent #
POST /api/fleet/agents/{agentId}/unenroll Unenroll an agent #
POST /api/fleet/agents/{agentId}/upgrade Upgrade an agent #
GET /api/fleet/agents/action_status Get an agent action status #
POST /api/fleet/agents/actions/{actionId}/cancel Cancel an agent action #
POST /api/fleet/agents/bulk_reassign Bulk reassign agents #
POST /api/fleet/agents/bulk_remove_collectors Bulk remove OpAMP collectors #
POST /api/fleet/agents/bulk_request_diagnostics Bulk request diagnostics from agents #
POST /api/fleet/agents/bulk_rollback Bulk rollback agents #
POST /api/fleet/agents/bulk_unenroll Bulk unenroll agents #
POST /api/fleet/agents/bulk_update_agent_tags Bulk update agent tags #
POST /api/fleet/agents/bulk_upgrade Bulk upgrade agents #

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-elastic-agent-actions-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-elastic-agent-actions-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 Elastic Agent actions 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 (60 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/elk-stack/refs/heads/main/openapi/elk-stack-elastic-agent-actions-api-openapi.yml