Elastic Observability agent config API

APIs that query the APM Server for configuration changes.

Operations 3

GET /config/v1/agents Get agent configuration changes #
POST /config/v1/agents Get agent configuration changes #
GET /config/v1/rum/agents Get RUM agent configuration changes #

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/elastic-observability-agent-config-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 email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

elastic-observability-agent-config-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Observability Intake agent config API
  description: OpenAPI schema for Observability Intake APIs
  version: '0.1'
  license:
    name: Elastic License 2.0
    url: https://www.elastic.co/licensing/elastic-license
  contact:
    name: APM Team
servers:
- url: /
security:
- apiKeyAuth: []
- secretToken: []
tags:
- name: agent config
  description: APIs that query the APM Server for configuration changes.
  x-displayName: APM agent configuration
paths:
  /config/v1/agents:
    get:
      summary: Get agent configuration changes
      description: 'To configure authenticated access to the APM server, the instructions at [APM API key](https://www.elastic.co/guide/en/observability/current/api-key.html) or [APM Secret Token](https://www.elastic.co/guide/en/observability/current/secret-token.html) must be followed to configure the correct permissions for APM access.

        '
      operationId: getAgentConfig
      tags:
      - agent config
      parameters:
      - in: query
        name: service.name
        required: true
        schema:
          type: string
      - in: query
        name: service.environment
        schema:
          type: string
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                type: object
    post:
      summary: Get agent configuration changes
      description: 'To configure authenticated access to the APM server, the instructions at [APM API key](https://www.elastic.co/guide/en/observability/current/api-key.html) or [APM Secret Token](https://www.elastic.co/guide/en/observability/current/secret-token.html) must be followed to configure the correct permissions for APM access.

        '
      operationId: postAgentConfig
      tags:
      - agent config
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - service
              properties:
                CAPTURE_BODY:
                  type: string
                  example: 'off'
                service:
                  type: object
                  required:
                  - name
                  properties:
                    environment:
                      type: string
                      example: all
                    name:
                      type: string
                      example: test-service
              additionalProperties: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  capture_body:
                    type: string
                    enum:
                    - 'off'
                    - errors
                    - transactions
                    - all
                    description: 'For transactions that are HTTP requests, the agent can optionally capture the request body (for example, POST variables). For transactions that are initiated by receiving a message from a message broker, the agent can capture the textual message body.

                      '
                    example: 'off'
                  transaction_max_spans:
                    type: integer
                    minimum: 0
                    description: The maximum number of spans that are recorded per transaction.
                    example: 500
                  transaction_sample_rate:
                    type: number
                    format: float
                    minimum: 0
                    maximum: 1
                    description: The agent samples transactions at this rate.
                    example: 0.3
                additionalProperties: true
        '403':
          description: APM Server is configured to fetch agent configuration from Elasticsearch but the configuration is invalid.
        '503':
          description: APM Server is starting up or Elasticsearch is unreachable.
  /config/v1/rum/agents:
    get:
      summary: Get RUM agent configuration changes
      description: 'To configure authenticated access to the APM server, the instructions at [APM API key](https://www.elastic.co/guide/en/observability/current/api-key.html) or [APM Secret Token](https://www.elastic.co/guide/en/observability/current/secret-token.html) must be followed to configure the correct permissions for APM access.

        '
      operationId: getRumAgentConfig
      tags:
      - agent config
      responses:
        '200':
          description: Successful response.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'e.g. Authorization: ApiKey base64AccessApiKey'
    secretToken:
      type: http
      scheme: bearer
      bearerFormat: Secret token