Skip to main content

Create a conversation

POST 
/ai/conversations

Create a new AI Conversation.

Request

Body

required

    name string

    metadata

    object

    Metadata associated with the conversation.

    property name* string

    Metadata associated with the conversation.

Responses

200: Successful Response

422: Validation Error

Request samples


curl -L 'https://api.telnyx.com/v2/ai/conversations' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "string",
"metadata": {}
}'

Response samples


{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "",
"created_at": "2025-04-15T13:07:28.764Z",
"metadata": {
"telnyx_conversation_channel": "phone_call",
"telnyx_agent_target": "+13128675309",
"telnyx_end_user_target": "+13128675309",
"assistant_id": "assistant-123"
},
"last_message_at": "2025-04-15T13:07:28.764Z"
}