List conversations
/api/v2/conversationsReturns conversations the way the Inbox shows them, latest activity first, with each contact's recent messages.
conversation has the same fields as on the contact object, plus has_unread and message_count, the number of messages included in messages.
Rate limit 150 requests per minute
Headers
x-api-keyheaderRequiredYour API key.
Content-Typeheaderapplication/json. Not needed for this request.
Query parameters
limitintegerConversations per page, 1 to 20. Default 20.
message_limitintegerMessages per conversation, 1 to 100. Default 10.
limittimesmessage_limitcan be at most 1,000.pagestringThe
next_pagevalue from the previous response.fieldsstringContact details:
basic(default) orfull.start_datestringLast message from this date.
end_datestringLast message up to this date.
has_unreadbooleanOnly conversations with (
true) or without (false) unread messages.is_unknownbooleanOnly contacts without (
true) or with (false) a known name.
Errors
| Error | When |
|---|---|
400 too_many_messages | limit times message_limit is over 1,000. |
400 invalid_<parameter> | A query parameter has a value that is not allowed, for example invalid_limit or invalid_has_unread. message says what. |
400 invalid_date_range | start_date is after end_date. |
503 query_timeout | Too slow. Use a smaller limit. |
curl "https://app.dmtracker.ai/api/v2/conversations?limit=10&message_limit=5&has_unread=true" \
-H "x-api-key: $DMTRACKER_API_KEY" \
-H "Content-Type: application/json"{
"status": "success",
"data": [
{
"contact": {
"id": "7c1e9a52-3f4b-4d2a-9e61-0b8f2d5c4a17",
"username": "jane.fitness",
"full_name": "Jane Cooper",
"profile_picture": null
},
"conversation": {
"last_message_at": "2026-10-21T15:14:50.000+00:00",
"last_message_from": "user",
"last_message": "Happy to help! Want me to send you the program details?",
"last_contact_message_at": "2026-10-21T15:12:47.000+00:00",
"first_contact_message_at": "2026-10-21T15:12:47.000+00:00",
"can_reply": false,
"reply_window_expires_at": "2026-10-22T15:12:47.000+00:00",
"has_unread": false,
"message_count": 2
},
"messages": [
{
"id": 23686,
"from": "contact",
"sent_by": null,
"text": "Hi! How much is the coaching program?",
"preview": "Hi! How much is the coaching program?",
"message_type": "text",
"media": null,
"reaction_emoji": null,
"template_buttons": null,
"is_reply": false,
"sent_at": "2026-10-21T15:12:47.000+00:00"
},
{
"id": 23687,
"from": "user",
"sent_by": "alex@yourcompany.com",
"text": "Happy to help! Want me to send you the program details?",
"preview": "Happy to help! Want me to send you the program details?",
"message_type": "text",
"media": null,
"reaction_emoji": null,
"template_buttons": null,
"is_reply": false,
"sent_at": "2026-10-21T15:14:50.000+00:00"
}
]
}
],
"has_more": true,
"next_page": "eyJ0IjoiMjAyNi0xMC0yMVQx..."
}