v1
latestOpenAPI 3.0.02026-07-26254134307.1 KBConversations
List conversation messages
List the messages in a conversation in reverse chronological order (newest first).
Required scope: messages:read
get/conversations/{conversation_id}/messages
Path parameters
conversation_idstring required
The conversation ID
Query parameters
limitinteger
Example:25
Max number of results per page
page_tokenstring
Example:https://yourCompany.api.frontapp.com/endpoint?limit=25&page_token=92f32bcd7625333caf4e0f8fc26d920c812f
Token to use to request the next page
sort_bystring
Field used to sort the messages. Only supports created_at.
sort_order'asc' | 'desc'
Example:asc
Order by which results should be sorted
Response
Array of messages
Example response
{
"_pagination": {
"next": "https://yourCompany.api.frontapp.com/conversations/cnv_y4xb93i/messages?page_token=klsljs8023j09suidfjlsjiei00043lllwww998303dkef0g"
},
"_links": {
"self": "https://yourCompany.api.frontapp.com/conversations/cnv_y4xb93i/messages"
},
"_results": [
{
"_links": {
"self": "https://yourCompany.api.frontapp.com/messages/msg_1q15qmtq",
"related": {
"conversation": "https://yourCompany.api.frontapp.com/conversations/cnv_yo1kg5q",
"message_replied_to": "https://yourCompany.api.frontapp.com/messages/msg_2y67qldq",
"message_seen": "https://yourCompany.api.frontapp.com/messages/msg_1q15qmtq/seen"
}
},
"id": "msg_1q15qmtq",
"message_uid": "1eab543f84a0785f7b6b8967cck18f4d",
"type": "email",
"draft_mode": "shared",
"version": "551ba368f3e7803cce51503ee3e58ef0-26028-1701804863304-945c",
"created_at": 1701292639,
"subject": "Jim's pranks are getting out of hand",
"blurb": "It's high time we discuss the pranking culture in the office",
"author": {
"_links": {
"self": "https://yourCompany.api.frontapp.com/teammates/tea_6r55a",
"related": {
"inboxes": "https://yourCompany.api.frontapp.com/teammates/tea_6r55a/inboxes",
"conversations": "https://yourCompany.api.frontapp.com/teammates/tea_6r55a/conversations",
"botSource": "https://yourCompany.api.frontapp.com/rules/rul_6r55a"
}
},
"id": "tea_6r55a",
"email": "michael.scott@dundermifflin.com",
"username": "PrisonMike",
"first_name": "Michael",
"last_name": "Scott",
"is_admin": true,
"custom_fields": {
"city": "London, UK",
"isVIP": true,
"renewal_date": 1525417200,
"sla_time": 90,
"owner": "leela@planet-express.com",
"replyTo": "inb_55c8c149",
"Job Title": "firefighter"
}
},
"recipients": [
{
"_links": {
"related": {
"contact": "https://yourCompany.api.frontapp.com/contacts/crd_2njtoem"
}
},
"name": "Phyllis Lapin-Vance",
"handle": "purpleboss@limitlesspaper.com",
"role": "cc"
}
],
"body": "<p>Hi there,</p><p>I wanted to let you know that I'm suggesting an update to <a href='https://dundermifflin.com/privacy/pranks'>Dunder Mifflin's Pranking Policy</a> to provide non-humorous employees greater control over their well-being in the office.</p>",
"text": "Hi there,\\n\\nI wanted to let you know that I'm suggesting an update to Dunder Mifflin's Pranking Policy (https://dundermifflin.com/privacy/pranks) to provide non-humorous employees greater control over their well-being in the office.",
"attachments": [
{
"id": "fil_3q8a7mby",
"filename": "Andy_Anger_Management_Certificate.png",
"url": "https://yourCompany.api.frontapp.com/download/fil_3q8a7mby",
"content_type": "image/png",
"size": 4405,
"metadata": {
"is_inline": true,
"cid": "526b45586d0e6b1c484afab63d1ef0be"
}
}
],
"signature": {
"_links": {
"self": "https://yourCompany.api.frontapp.com/signatures/sig_6rrv2",
"related": {
"owner": "https://yourCompany.api.frontapp.com/teams/tim_k30"
}
},
"id": "sig_6rrv2",
"name": "Finer Things Club signature",
"body": "<div>—<br />{{user.name}}<br />No paper, no plastic, and no work talk allowed<br /></div>",
"is_visible_for_all_teammate_channels": true,
"is_private": true
},
"metadata": {
"intercom_url": "http://intercom.com",
"duration": 189,
"external_id": "dkd84992kduo903",
"twitter_url": "https://twitter.com",
"is_retweet": true,
"have_been_retweeted": true,
"thread_ref": "t0930k9000-394",
"chat_visitor_url": "https://yourCompany.com/products"
}
}
]
}