Conversations

Get conversations

get

Fetches a conversations by agent API key. The response includes the conversation details.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Query parameters
pagenumberOptional

Page number

pageSizenumberOptional

Page size

orderBystring · enumOptional

Order by

Possible values:
orderDirectionstring · enumOptional

Order direction

Possible values:
withFeedbacksOnlybooleanOptional

If true, returns conversations with at least one feedback

Responses
200

Successfully received conversations.

application/json
get
/external/conversations

Create a new conversation

post

Creates a new conversation . The response includes the conversation ID.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Body
conversationUserIdstringRequired

Conversation user ID

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
titlestring · max: 255Optional

Conversation title

Example: New Conversation Title
contextstring · max: 256000Optional

Conversation context

Example: New conversation context
customDataobjectOptional

Conversation custom data

Example: {"key1":"value1","key2":"value2"}
conversationStateIdstringOptional

Conversation state ID

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Responses
post
/external/conversations

Delete all user conversations in current agent

delete

Delete all conversations associated with specified user in current agent.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Body
conversationUserIdstringRequired

Conversation user ID

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Responses
delete
/external/conversations

No content

Get conversation states

get

Fetches all available conversation states by agent API key.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Responses
200

Successfully retrieved conversation states.

application/json
get
/external/conversations/states

Get conversation by ID

get

Fetches a conversation by its unique ID. The response includes the conversation details.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Path parameters
idstringRequired

The ID of the conversation to retrieve.

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Responses
200

Successfully retrieved the conversation.

application/json
get
/external/conversations/{id}

Update conversation

put

Updates an existing conversation by ID. Returns the updated conversation.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Path parameters
idstringRequired

The ID of the conversation to update.

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Body
titlestring · max: 255Optional

Conversation title

Example: Updated Conversation Title
contextstring · max: 256000Optional

Conversation context

Example: Updated conversation context
statusstring · enumOptional

Conversation status

Example: activePossible values:
modestring · enumOptional

Conversation mode

Example: aiPossible values:
conversationStateIdstringOptional

Conversation state ID

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Responses
200

Successfully updated the conversation.

application/json
put
/external/conversations/{id}

Start a new conversation

post

Start a new conversation using either an email, SMS or voice as the communication method. The response includes the conversation ID.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Body
or
or
Responses
post
/external/conversations/start

Get conversation messages

get

Fetches all messages associated with a specific conversation ID.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Path parameters
idstringRequired

The ID of the conversation to retrieve messages for.

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Query parameters
shouldIncludeFeedbacksbooleanOptional

If true, returns conversation messages with feedbacks

orderDirectionstring · enumOptional

Message created at order direction. Default: ASC

Possible values:
Responses
200

Successfully retrieved conversation messages.

application/json
get
/external/conversations/{id}/messages

Send a message to an agent

post

Send a new message to an agent using conversationId.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Path parameters
idstringRequired

The ID of the conversation to send a message to.

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Body
messagestringRequired

The message that the user sends to the AI agent

Example: How does quantum entanglement work?
contextstringOptional

Context of the message

Example: User is asking about quantum physics.
Responses
post
/external/conversations/{id}/messages

Send a message to an agent

post

Send a new message to an agent using conversationId.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Path parameters
idstringRequired

The ID of the conversation to send a message to.

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Body
messagestringRequired

The message that the user sends to the AI agent

Example: How does quantum entanglement work?
contextstringOptional

Context of the message

Example: User is asking about quantum physics.
Responses
post
/external/conversations/{id}/messages/async

Get response on

get

Fetches response on a specific conversation message ID.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Path parameters
idstringRequired

The ID of the conversation to retrieve message for.

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
conversationMessageIdstringRequired

The ID of the conversation message to retrieve response for.

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Responses
200

Successfully retrieved conversation message.

application/json
get
/external/conversations/{id}/messages/{conversationMessageId}/response-on

Send a manual message to a user

post

Send a manual message to a user in a conversation that is in manual mode. Will fail if the conversation is not in manual mode or is a voice conversation.

Authorizations
Agent-Secret-KeystringRequired

Custom authentication header

Path parameters
idstringRequired

The ID of the conversation to send a message to the user.

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Body
messagestringRequired

The message that will be sent to the user

Example: Your appointment has been confirmed for tomorrow at 2pm.
conversationMessageIdstringOptional

The ID of the conversation message that the user sent to the AI agent

Example: 5f7b1b3b-3b3b-4b3b-3b3b-3b3b3b3b3b3b
Responses
200

Message sent successfully to the user.

application/json
post
/external/conversations/{id}/send-manual-message

Last updated