Spaces method and path for this operation:
Refer to Spaces for more information.
Create an empty conversation without sending a message. Returns the created conversation immediately. Use this to obtain a conversation ID before starting a chat session. To learn more about agent conversations, refer to the agent chat documentation.
[Required authorization] Route required privileges: agentBuilder:read.
Body
-
Optional access control settings. Defaults to private.
Additional properties are NOT allowed.
-
The ID of the agent to associate with the conversation. Defaults to the default Elastic AI agent.
Maximum length is
256. -
Optional client-supplied UUID for the conversation. Server-generated if omitted.
Maximum length is
256. -
Title for the conversation. Defaults to "New conversation".
Maximum length is
500.
curl \
-X POST "${KIBANA_URL}/api/agent_builder/conversations" \
-H "Authorization: ApiKey ${API_KEY}" \
-H "kbn-xsrf: true" \
-H "Content-Type: application/json" \
-d '{
"title": "My new conversation",
"access_control": {
"access_mode": "private",
"entries": [{ "type": "user", "id": "u_abc123_uid", "role": "member" }]
}
}'
POST kbn://api/agent_builder/conversations
{
"title": "My new conversation",
"access_control": {
"access_mode": "private",
"entries": [{ "type": "user", "id": "u_abc123_uid", "role": "member" }]
}
}
{
"access_control": {
"access_mode": "private",
"entries": [
{
"id": "u_abc123_uid",
"role": "member",
"type": "user"
},
{
"id": "u_def456_uid",
"role": "member",
"type": "user"
}
]
},
"title": "My new conversation"
}
{
"access_control": {
"access_mode": "private",
"entries": [
{
"added_at": "2026-08-14T10:00:00.000Z",
"id": "u_abc123_uid",
"role": "member",
"type": "user"
},
{
"added_at": "2026-08-14T10:00:00.000Z",
"id": "u_def456_uid",
"role": "member",
"type": "user"
}
]
},
"agent_id": "elastic-ai-agent",
"created_at": "2026-08-14T10:00:00.000Z",
"id": "bcc176c5-38f6-40be-be0c-898e34fa1480",
"permissions": {
"delete": true,
"rename": true
},
"rounds": [],
"title": "My new conversation",
"updated_at": "2026-08-14T10:00:00.000Z",
"user": {
"username": "elastic"
}
}