Spaces method and path for this operation:
post /s/{space_id}/api/agent_builder/conversations/{conversation_id}/_add_events
Refer to Spaces for more information.
Append custom events to a conversation's timeline. The caller must be the owner, a member, or the conversation must be public. Server assigns id, created_at, and actor for each event; the body provides type and data. Only registered custom event types are accepted — built-in lifecycle types are rejected. To learn more about agent conversations, refer to the agent chat documentation.
[Required authorization] Route required privileges: agentBuilder:read.
POST
/api/agent_builder/conversations/{conversation_id}/_add_events
curl
curl \
-X POST "${KIBANA_URL}/api/agent_builder/conversations/${CONVERSATION_ID}/_add_events" \
-H "Authorization: ApiKey ${API_KEY}" \
-H "kbn-xsrf: true" \
-H "elastic-api-version: 2023-10-31" \
-H "Content-Type: application/json" \
-d '{
"events": [
{ "type": "text_note", "data": { "text": "A note on this conversation" } }
]
}'
POST kbn://api/agent_builder/conversations/${CONVERSATION_ID}/_add_events
{
"events": [
{ "type": "text_note", "data": { "text": "A note on this conversation" } }
]
}
Request example
Example request appending two custom events to a conversation
{
"events": [
{
"data": {
"text": "First note on this conversation"
},
"type": "text_note"
},
{
"data": {
"text": "Second note on this conversation"
},
"type": "text_note"
}
]
}
Response examples (200)
Example response returning the materialized events with server-assigned fields
{
"events": [
{
"actor": {
"id": "u_abc123_uid",
"type": "user",
"username": "elastic"
},
"created_at": "2026-09-14T10:00:00.000Z",
"data": {
"text": "First note on this conversation"
},
"id": "7d3f1a2b-4c5e-6f7a-8b9c-0d1e2f3a4b5c",
"type": "text_note"
},
{
"actor": {
"id": "u_abc123_uid",
"type": "user",
"username": "elastic"
},
"created_at": "2026-09-14T10:00:00.000Z",
"data": {
"text": "Second note on this conversation"
},
"id": "8e4f2b3c-5d6f-7a8b-9c0d-1e2f3a4b5c6d",
"type": "text_note"
}
]
}