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.
Send a message to an agent and receive a complete response. This synchronous endpoint waits for the agent to fully process your request before returning the final result. Use this for simple chat interactions where you need the complete response. To learn more about agent chat, refer to the agent chat documentation.
_execution_modeenumThe Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityExperimental since 9.4This functionality is experimental and is not ready for production usage. Experimental features may change or be removed at any time. Elastic will work to fix any issues, but experimental features 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.
define how to execute the agent (local execution or via task_manager)
Values:localtask_manager
access_controlobjectThe Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityGenerally available since 9.5This 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.
Optional conversation access control. Defaults to private.
access_modeenumrequired
Access mode to apply when creating a new conversation. Set to public to make the conversation visible to other users who can access the underlying agent. This setting is ignored when continuing an existing conversation.
Values:privatepublic
actionenumdeprecated
Deprecated and ignored. The "regenerate" action has been removed; the field is still accepted for backward compatibility.
Values:regenerate
agent_idstring · default: elastic-ai-agent
The ID of the agent to chat with. Defaults to the default Elastic AI agent.
attachmentsobject[]The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityPreview since 9.3This 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.
Optional attachments to send with the message.
datamapstring to object
Payload of the attachment. Required unless origin is provided (content is resolved once at send time).
descriptionstring · max length: 1024
Human-readable label for the attachment.
group_idstring · max length: 256
Stable identifier for the logical group this attachment belongs to. Attachments sharing the same group_id were submitted together as a single logical entity.
hiddenboolean
When true, the attachment will not be displayed in the UI.
idstring
Optional id for the attachment.
originstring
Origin string (for example, saved object ID) for by-reference attachments. When provided without data, the content is resolved once using the attachment type’s resolve hook.
typestringrequired
Type of the attachment.
browser_api_toolsobject[]
Optional browser API tools to be registered as LLM tools with browser.* namespace. These tools execute on the client side.
descriptionstringrequired
Description of what the browser API tool does.
idstringrequired
Unique identifier for the browser API tool.
schemaobjectrequired
JSON Schema defining the tool parameters (JsonSchema7Type).
configuration_overridesobject
Runtime configuration overrides. These override the stored agent configuration for this execution only.
enable_elastic_capabilitiesboolean
Whether to enable built-in Elastic skills for this execution.
instructionsstring
Custom instructions for the agent.
skill_idsstring[] · max items: 100
Skill IDs to enable for this execution, replacing the stored skill list. Note: only fully restricts the available skill set when enable_elastic_capabilities is also set to false.
toolsobject[]
Tool selection to enable for this execution.
tool_idsstring[]required
connector_idstringnullable
Optional connector ID for the agent to use for model routing. Mutually exclusive with inference_id; omit or use only one.
conversation_idstring · max length: 256
Optional existing conversation ID to continue a previous conversation.
execution_idstring
Optional client-generated execution ID. Provide it to address this execution later (for example, to abort it). Must be unique; defaults to a server-generated ID.
inference_idstringnullable
Optional inference endpoint ID for model routing (public alias for the same internal identifier as connector_id). Mutually exclusive with connector_id.
inputstring · max length: 100000
The user input message to send to the agent.
project_routingstring · max length: 2048
Cross-project search routing expression resolved from the header project picker, applied to the run's searches. Serverless (CPS) only; ignored elsewhere.
promptsmapstring to anyOf
Use this field to respond to a confirmation, authorization, or ask_user_question prompt. Send an allow boolean to answer a confirmation prompt, an authorized boolean to answer an authorization prompt, or an answers array (one entry per question) to answer an ask_user_question prompt.
<string>unionanyOf
Any of:
allowbooleanrequired
authorizedbooleanrequired
Answers to an ask_user_question prompt; one entry per question, in order.
answersobject[] · max items: 100required
choicenumber[] · max items: 100
customstring · min length: 1 · max length: 20000
skippedboolean
read_onlybooleanThe Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityPlannedWe plan to add this functionality in a future Elastic Stack update. Subject to changes.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.
When true, the created conversation is presented as read-only in the UI: its history is shown but no message input is offered. This carries no authorization meaning — the conversation can still be continued through the API. This setting is ignored when continuing an existing conversation.
reasoning_levelenumThe Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.AvailabilityPlannedWe plan to add this functionality in a future Elastic Stack update. Subject to changes.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.
Reasoning effort level for the LLM. One of: none, minimal, low, medium, high, xhigh. Support depends on the underlying model and provider.