List conversations
The newest 200 conversations on one side of the archive, filters applied within that page. The same page the inbox reads.
GET
/conversationsAuthorization
AuthorizationBearer token · headerrequired`MEDIAN_KEY` from Settings under API, or an MCP OAuth access token. A key acts as the organization; a token acts as the person who approved it.
Query parameters
archivedboolean`true` for the archive instead of the inbox.
statusstringAllowed:
openresolvedclosedchannelstringAllowed:
widgetemaildiscordsiteneedsHumanboolean`true` for only conversations waiting on a person.
limitintegerUp to 200. Default 50.
Responses
200The matching conversations, newest first.
conversationsConversationSummary[]Show propertiesHide properties
Array of
ConversationSummaryidstringthreadIdstring | nullW-12: the workspace's initial and the thread's number, which is how the team refers to it. Null for a thread from before numbers existed.
subjectstringpreviewstringstatusstringAllowed:
openresolvedclosedaiStatusstringAllowed:
handlingdraftingneeds a personpausedchannelstringAllowed:
widgetemaildiscordsiteassigneestring | nullThe teammate holding it, by name, or null while the AI has it.
isUnreadbooleanisArchivedbooleansnoozedUntilinteger | nulllastMessageAtintegercreatedAtintegercustomerobjectShow propertiesHide properties
idstring | nullnamestring | nullcustomerNumberinteger | nullemailstring | null401The bearer token is missing, revoked, or expired.
errorobjectShow propertiesHide properties
codestringmessagestring429Too many requests. Wait the seconds in `Retry-After`. Limits depend on the plan. See [rate limits](/api/errors-and-limits#rate-limits).
errorobjectShow propertiesHide properties
codestringmessagestringRequest
curl -X GET "https://api.median.sh/v1/conversations" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://api.median.sh/v1/conversations", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});Response
{
"conversations": [
{
"id": "string",
"threadId": "string",
"subject": "string",
"preview": "string",
"status": "open",
"aiStatus": "handling",
"channel": "widget",
"assignee": "string",
"isUnread": true,
"isArchived": true,
"snoozedUntil": 0,
"lastMessageAt": 0,
"createdAt": 0,
"customer": {
"id": "string",
"name": "string",
"customerNumber": 0,
"email": "string"
}
}
]
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}