List conversations.
Changed onReturns all conversations for an agent. Each conversation represents a chat session with a user and contains the full message history. Results are paginated and sorted by most recent activity.
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The ID of the agent to get the conversations for
Query parameters
Page number to retrieve. Page numbering starts at 1.
Increment until the response's last_page value is reached to paginate through all results. Default: 1.
Sort direction for results.
Field to sort results by.
Filter conversations by user type.
Filter the results by conversation name
Only conversations that received message(s) after this date will be returned in results. If not set, the parameter is ignored.
Response
List of conversations for an agent
Example response
{
"status": "success",
"data": {
"current_page": 1,
"data": [
{
"created_at": "2023-04-30 16:43:53",
"updated_at": "2023-04-30 16:43:53",
"deleted_at": "2023-04-30 16:43:53",
"id": 1,
"name": "Conversation 1",
"session_id": "f1b9aaf0-5e4e-11eb-ae93-0242ac130002"
}
],
"first_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"next_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"path": "https://app.customgpt.ai/api/v1/users?page=1",
"per_page": 10,
"prev_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"to": 1,
"total": 1
}
}Changes
- warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - warning
added the new
422.00enum value to the/response property for the response status - info
added the new optional
queryrequest parameterlastUpdatedAfter - info
added the non-success response with the status
- warning
- warning
added the new
Agent id is requiredenum value to the/response property for the response status - warning
added the new
Agent with id {projectId} not foundenum value to the/response property for the response status - info
added the new optional
queryrequest parametername - info
added the new optional
queryrequest parameterorderBy - info
added the new enum value
meto thequeryrequest parameteruserFilter - info
removed the
Project id is requiredenum value from the/response property for the response status - info
removed the
Project with id {projectId} not foundenum value from the/response property for the response status
- warning