Skip to main content
GET
Use this endpoint to list the conversations your MedAssist agent has had. Filter by date range, channel, tool usage, feedback, or message count, and page through results. To read the full transcript of a conversation, pass its session ID to Get Messages.

Headers

string
required
Bearer token. Format: Bearer <token>

Query parameters

string
required
ID of the agent whose conversations you want to list.
All other parameters are optional filters.

Date

string
default:"7d"
Preset date range. One of today, 7d, 30d, month, custom, all. Use custom together with date_from and date_to.
string
Start date (inclusive), format YYYY-MM-DD. Used when date_preset=custom.
string
End date (inclusive), format YYYY-MM-DD. Used when date_preset=custom.

Lookup

string
Return only the conversation with this session ID. Other filters are ignored when this is set.

Tool usage

string
Return only conversations in which the agent called this tool.
string
Narrow filter_tool_name to calls where this input parameter was set. Requires filter_tool_name.
string
Value that filter_tool_param_name must equal. Requires filter_tool_name.

Feedback

string
1 = only conversations with end-user feedback, 0 = only conversations without it. Omit for all.
string
1 = only conversations with annotation feedback, 0 = only conversations without it. Omit for all.
string
Return only conversations annotated by this user ID.

Channel

string
One of web, whatsapp, voice. Repeat the parameter to include several channels, for example filter_channel=web&filter_channel=whatsapp.

Message count

integer
Minimum total number of messages in the conversation.
integer
Maximum total number of messages in the conversation.
integer
Minimum number of messages sent by the user.
integer
Maximum number of messages sent by the user.

Pagination

integer
default:"1"
Page number.
integer
default:"50"
Results per page. One of 25, 50, 100.

Response

This endpoint returns an HTML page (Content-Type: text/html), not JSON. It lists matching conversations newest first, 50 per page by default. Each conversation is a table row (<tr>) with a data-session-id attribute. That value is the conversation ID to pass to Get Messages.
A JSON response is planned. Until then, extract the session IDs from the data-session-id attributes, as shown below.

Extracting session IDs

To get the next set of conversations, repeat the request with page=2, page=3, and so on until no session IDs are returned.