Conversation History
Retrieve and analyze historical conversation data for users and services.
List Conversations
Retrieve conversations in an organization based on supplied filters.
Permissions
This endpoint may be impacted by the following permissions:
- The
final_message
field in the response is only non-empty if the authenticated user has theConversation.GetMessage
permission on the final message. - The
version_set_info
field in the response is only non-empty if the authenticated user has theService.GetVersionSet
permission on the version set. - Only conversations for which the user has the
Conversation.GetConversation
permission are returned.
The identifier of the user whose conversations to retrieve.
[]
The identifier of the service whose conversation to retrieve.
[]
Whether the conversation is finished.
The ID of the conversation to retrieve.
[]
The maximum number of conversations to retrieve.
150
The continuation token returned from the previous response to retrieve the next set of conversations.
0
The field to sort the conversations by. Supported fields are created_at
. Specify a +
before the field name to indicate ascending sorting and -
for descending sorting. Multiple fields can be specified to break ties.
[]
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
[]
Succeeded.
Invalid authorization credentials.
Missing required permissions.
Invalid request path parameter or query parameter failed validation.
The user has exceeded the rate limit of 15 requests per minute for this endpoint.
The service is going through temporary maintenance.
GET /v1/{organization}/conversation/ HTTP/1.1
Host: api.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
X-ORG-ID: YOUR_API_KEY
Accept: */*
{
"conversations": [
{
"id": "text",
"user_id": "text",
"created_at": "2025-10-11T15:09:38.818Z",
"is_finished": true,
"is_analyzed": true,
"completed_post_processings": [
"generate-user-models"
],
"final_message": "text",
"service_id": "text",
"version_set_info": {
"name": "text",
"agent_version_info": [],
"service_hierarchical_state_machine_version_info": [],
"llm_model_preferences": {
"ANY_ADDITIONAL_PROPERTY": {
"llm_name": "text",
"top_p": 1,
"temperature": 1,
"top_k": 1
}
}
},
"num_messages": 1
}
],
"has_more": true,
"continuation_token": 1
}
curl --request GET \
--url 'https://api.amigo.ai/v1/<YOUR-ORG-ID>/conversation/?user_id=<USER-ID>&limit=10&continuation_token=0' \
--header 'Authorization: Bearer <AUTH-TOKEN-OF-USER>' \
--header 'accept: application/json'
Query Parameters
user_id
string
Filter by specific user
service_id
string
Filter by specific service
is_finished
boolean
Filter by conversation state
limit
integer
Results per page (max 100)
continuation_token
string
Pagination token
Get Conversation Messages
Retrieve all messages from a specific conversation.
Retrieve messages in a conversation, sorted in the specified order, up to the specified limit.
Permissions
This endpoint is impacted by the following permissions:
- Only messages that the authenticated user has
Conversation.GetMessage
permission on will be returned.
The identifier of the conversation.
^[a-f0-9]{24}$
The IDs of the messages to retrieve.
[]
The IDs of the interactions to retrieve messages for.
[]
The maximum number of messages to return. At most 500 messages can be returned in one request.
500
The continuation token to use to retrieve the next set of messages.
0
The field to sort the messages by. Supported fields are interaction_id
and created_at
. Specify a +
before the field name to indicate ascending sorting and -
for descending sorting. Multiple fields can be specified to break ties.
[]
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
[]
Succeeded.
Invalid authorization credentials.
Missing required permissions.
Specified organization or conversation is not found.
Invalid request path parameter failed validation.
The user has exceeded the rate limit of 20 requests per minute for this endpoint.
The service is going through temporary maintenance.
GET /v1/{organization}/conversation/{conversation_id}/messages/ HTTP/1.1
Host: api.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
X-ORG-ID: YOUR_API_KEY
Accept: */*
{
"messages": [
{
"id": "text",
"interaction_id": "text",
"created_at": "2025-10-11T15:09:38.818Z",
"sender": "text",
"message": "text",
"format": "text",
"message_type": "user-message",
"message_metadata": [
"text"
]
}
],
"has_more": true,
"continuation_token": 1
}
curl --request GET \
--url 'https://api.amigo.ai/v1/<YOUR-ORG-ID>/conversation/<CONVERSATION-ID>/messages/' \
--header 'Authorization: Bearer <AUTH-TOKEN-OF-USER>' \
--header 'accept: application/json'
Last updated
Was this helpful?