> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.ada.cx/reference/conversations/fetch-conversation-messages-by-id/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ada.cx/_mcp/server. # Get conversation messages GET https://example.ada.support/api/v2/conversations/{conversation_id}/messages/ Get messages (paginated) for a conversation by its ID. On a voice conversation, a text reply the caller sent by SMS and the AI Agent answered itself is stored with a `content.body` that starts with `sms:`. A reply that a Process captured as an input is stored as the bare text. Reference: https://docs.ada.cx/reference/conversations/fetch-conversation-messages-by-id ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### Path parameters - `conversation_id` (string, required) — The ID of the conversation ### Query parameters - `cursor` (string, optional) — Cursor for pagination. Use the value from `meta.next_page_url` in the previous response. - `limit` (integer, optional, default: 100) — Maximum number of messages to return (default 100, max 100) ## Response ### 200 List of messages - `data` (list of MessageEvents, required) — List of messages in the conversation - `meta` (PaginationMetadata, required) ## Errors ### 400 Bad Request Error Bad Request - `errors` (list of ErrorsErrorsItems, required) — A list of errors ### 401 Unauthorized Error Unauthorized - `errors` (list of ErrorsErrorsItems, required) — A list of errors ### 404 Not Found Error Not Found - `errors` (list of ErrorsErrorsItems, required) — A list of errors ### 429 Too Many Requests Error Too Many Requests - `errors` (list of ErrorsErrorsItems, required) — A list of errors ### 500 Internal Server Error Internal Server Error - `errors` (list of ErrorsErrorsItems, required) — A list of errors ## Types ### MessageEvents ### PaginationMetadata - `next_page_url` (string, optional, nullable) — The URL to the next page of results ### ErrorsErrorsItems - `type` (string, required) — The error type - `message` (string, required) — The error message - `details` (string, optional, nullable) — Extra information about the error ### MessageLogs - `type` (enum, optional) — The type of the message - Allowed values: `message_logs` - `message_id` (string, optional) — The ID of the message log - `created_at` (string, optional) — The date and time the message was created - `author` (MessageLogsAuthor, optional) — Information about the message author - `content` (MessageLogsContent, optional) — The message content. The structure varies based on the `type` field. Supported types: text, link, file, quick_replies. ### MessageLogsAuthor Information about the message author - `id` (string, optional, nullable) — If the role is `end_user`, the ID of the end user. If the role is `ai_agent` or `human_agent`, this is null. - `role` (enum, optional) — The author's role - Allowed values: `end_user`, `ai_agent`, `human_agent` - `avatar` (string, optional, nullable) — The URL of the author's avatar - `display_name` (string, optional, nullable) — The author's display name ### MessageLogsContent The message content. The structure varies based on the `type` field. Supported types: text, link, file, quick_replies. ### TextContent The content of the text message - `type` (enum, required) — The type of the message - Allowed values: `text` - `body` (string, required) — The body of the message ### LinkContent The content of a standalone link style messages, such as CSAT - `type` (enum, optional) — The type of the message - Allowed values: `link` - `url` (string, optional) — The link's URL - `link_text` (string, optional, nullable) — Text that can be used to display the link ### FileContent The content of a file message - `type` (enum, required) — The type of the message - Allowed values: `file` - `url` (string, required) — Presigned URL from the attachment upload endpoint (valid for 7 days) - `mime_type` (string, required) — MIME type of the file - `filename` (string, required) — Name of the file ### QuickRepliesContent The accepted values of a Playbook Ask step with quick replies enabled, as tappable options for the AI Agent message that asked the question. Delivered only on channels whose `capabilities.quick_replies` is true; other channels receive the options as text in the reply body. Render each option's `label` under the message named by `question_message_id`; the two arrive as separate messages and may arrive in either order. When the end user taps an option, post its `value` as a `text` message from the end user; the AI Agent resolves it to the option even when the label was translated. Free text remains accepted, so keep the composer available. - `type` (enum, required) — The type of the message - Allowed values: `quick_replies` - `question_message_id` (string, required, nullable) — The `message_id` of the AI Agent message whose question these options answer. Null only for a message written before the reference was recorded. - `options` (list of QuickRepliesContentOptionsItems, required) — The options, in the order the AI Agent presents them ### QuickRepliesContentOptionsItems - `label` (string, required) — The text to show on the option, translated into the end user's language - `value` (string, required) — The text to send back as the end user's message when the option is tapped ## Examples **Response** ```json { "data": [ { "type": "message_logs", "message_id": "6900e297d458517e4b15787d", "created_at": "2025-10-28T15:34:41+00:00", "author": { "role": "ai_agent", "id": {}, "display_name": {}, "avatar": {} }, "content": { "type": "text", "body": "Hello! I'm an AI Agent, here to assist with any questions you may have." } }, { "type": "message_logs", "message_id": "6900e299d458517e4b157881", "created_at": "2025-10-28T15:34:49+00:00", "author": { "id": "6900e28ff6f931ca8672f6dd", "role": "end_user", "display_name": {}, "avatar": {} }, "content": { "type": "text", "body": "this is just a test" } }, { "type": "message_logs", "message_id": "6900e2a2d458517e4b157887", "created_at": "2025-10-28T15:35:05+00:00", "author": { "role": "ai_agent", "id": {}, "display_name": {}, "avatar": {} }, "content": { "type": "link", "url": "https://example.com/csat?conversation_id=123", "link_text": "Rate your experience" } } ], "meta": { "next_page_url": "https://example.ada.support/api/v2/api-name?cursor=6658f91ea88ff7e389eff34d" } } ``` **SDK Code** ```python import requests url = "https://example.ada.support/api/v2/conversations/conversation_id/messages/" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://example.ada.support/api/v2/conversations/conversation_id/messages/'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://example.ada.support/api/v2/conversations/conversation_id/messages/" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://example.ada.support/api/v2/conversations/conversation_id/messages/") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://example.ada.support/api/v2/conversations/conversation_id/messages/") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://example.ada.support/api/v2/conversations/conversation_id/messages/', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://example.ada.support/api/v2/conversations/conversation_id/messages/"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://example.ada.support/api/v2/conversations/conversation_id/messages/")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```