AuthThe Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityGenerally available since 9.2This functionality is generally available and ready for production usage.Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Create a new agent. Use this endpoint to define the agent's behavior, appearance, and capabilities through comprehensive configuration options. To learn more about agents, refer to the agents documentation.
Technical Preview; added in 9.4.0. Access-control mode: public (any privileged user can read/write), shared (any privileged user can read, only owner can write), private (only owner can read/write). Agents created without an access-control mode default to private.
Values:publicsharedprivate
avatar_colorstring
Optional hex color code for the agent avatar.
avatar_symbolstring
Optional symbol/initials for the agent avatar.
configurationobjectrequired
Configuration settings for the agent.
ai_indicesstring[] · max items: 100
Array of AI indices to associate with the agent.
connector_idsstring[] · max items: 100
Array of connector IDs to associate with the agent.
enable_elastic_capabilitiesboolean
When true, enables built-in Elastic capabilities for the agent.
instructionsstring
Optional system instructions that define the agent behavior.
plugin_idsstring[] · max items: 100
Array of plugin IDs to assign to the agent.
post_execution_workflow_idsstring[] · max items: 100
skill_idsstring[] · max items: 100
Array of skill IDs to be available to the agent.
subagent_idsstring[] · max items: 50The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityPreviewThis functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply.Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Technical Preview; added in 9.6.0. Allowlist of subagent IDs this agent may spawn. Missing or empty disables the run_subagent tool. Use '_self' to enable self-fork.
toolsobject[]required
tool_idsstring[]required
Array of tool IDs that the agent can use.
workflow_idsstring[] · max items: 100
descriptionstringrequired
Description of what the agent does.
idstringrequired
Unique identifier for the agent.
labelsstring[]
Optional labels for categorizing and organizing agents.