{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Message API V3 — Developer Guide","description":"Sprinklr offers robust, convenient, and simple RESTful Web service APIs to integrate data from Sprinklr to any external system.","keywords":["Sprinklr API","Sprinklr Developer Portal","OAuth 2.0","RESTful API","Social Media API","Customer Experience API","Unified-CXM","Social Listening API"]},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"message-api-v3--developer-guide","__idx":0},"children":["Message API V3 — Developer Guide"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Applies to:"]}," Sprinklr Message API V3 (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/message"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/conversation"]},")"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["V2 API reference:"]}," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://legacy-dev.sprinklr.com/message"},"children":["Message | Sprinklr Developer Portal"]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"1-overview","__idx":1},"children":["1. Overview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All data pulled in from digital channels is stored in Sprinklr as a standard ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Universal Message"]}," object. Messages are either ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["inbound"]}," (posts coming from a channel) or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["outbound"]}," (posts to a channel from Sprinklr), and the object covers Ads, Listening, Organic, and any external data ingested into the platform. Once a message is ingested, Sprinklr automatically assigns it a unique message ID — also referred to as the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["UMID"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Message V3 exposes read, action, and update capabilities across a small, method-differentiated surface:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Operation"},"children":["Operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Method"},"children":["Method"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Path"},"children":["Path"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Fetch messages (single, bulk, or by UM ID)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/message?messageId="]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["?umId="]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Fetch conversation for a message"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/conversation?messageId="]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Perform an action on a message"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/message/action"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Mark a message as read (WhatsApp only)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/message/read?messageId="]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Update message workflow, content, and attachments"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/message/workflow?messageId="]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Add associated application data"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/message/associated-app-data?messageId="]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create / publish a message"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Not part of Message V3. Use the Publishing APIs."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Delete a message"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Exposed as the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["action"]}," on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/action"]},", not as an HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE"]},"."]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is the central design change from V2, which spread reads across three endpoints (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/message/byMessageId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/message"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/message/bulk-fetch"]},") and used ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," for reads and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]}," for partial updates."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For more details refer to ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/sprinklr-v3/message"},"children":["Message API Reference"]}," and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/sprinklr-v3/conversation"},"children":["Conversation API Reference"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"11-the-message-data-model","__idx":2},"children":["1.1 The message data model"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Layer"},"children":["Layer"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Object"},"children":["Object"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"What it holds"},"children":["What it holds"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Notes"},"children":["Notes"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Identity"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelMessageId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["conversationId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parentMessageId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["quotedMessageId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sprinklr and native identifiers"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," is the UMID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Origin"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sourceType"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sourceId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelType"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accountType"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["permalink"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelCreatedTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["createdTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["modifiedTime"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Where the message came from and when"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sourceType"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sourceId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content"]}," are ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["required"]}," on the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Message"]}," schema"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Content"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content.title"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content.text"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content.richText"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content.isRichText"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content.attachment"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content.templateId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content.postbackPayload"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content.titleHash"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content.textHash"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The message payload"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#13-the-content-object"},"children":["§1.3"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["People"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["senderProfile"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["receiverProfile"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mentionedProfiles[]"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["authorId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Profiles attached to the message"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Profile"]}," objects"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Workflow"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["workflow.assignment"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["workflow.customProperties"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["workflow.queues[]"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["workflow.spaceWorkflows[]"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["workflow.campaignId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["workflow.modifiedTime"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Partner and workspace-level routing and tagging state"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["campaignId"]}," is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["required"]}," on the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Workflow"]}," schema"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Enrichment"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["enrichments"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["textEntities"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["insights"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["language"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["location"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["contextualInformation[]"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customPropertiesMetadata[]"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelSpecificInfo"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["botApplicationInfo"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Derived and channel-specific metadata"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Publishing / state"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["draftId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["postId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["assetId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["brandPost"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["deleted"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoImported"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["autoResponse"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["apiStatus"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["associatedCaseNumber"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Post lifecycle state"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["apiStatus"]}," reports when fields were removed under a resyndication policy"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"12-addressing-a-message","__idx":3},"children":["1.2 Addressing a message"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A message is addressed in two ways:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["By message ID (UMID)"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["By UM ID query parameter"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["umId"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Message ID composition"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"messageId = sourceType + \"_\" + sourceId + \"_\" + channelCreatedTime + \"_\" + channelType + \"_\" + messageType + \"_\" + channelMessageId\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Example:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"ACCOUNT_12345678_1779725555000_WHATSAPP_BUSINESS_316_6a1474f3268905389646cce7\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sourceType"]}," in that composition takes values such as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ACCOUNT"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PERSISTENT_SEARCH"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LISTENING"]},". The full enum is in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#81-sourcetype"},"children":["§8.1"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"13-the-content-object","__idx":4},"children":["1.3 The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content"]}," object"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["title"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Title of the message"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["titleHash"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Hashed title of the message"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["text"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Text content of the message"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["textHash"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Hashed text content of the message"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["richText"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Rich text content of the message"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["isRichText"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Whether the provided text is rich text"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["postbackPayload"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Postback payload of the button selected"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["attachment"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Attachment of the message to be published. Polymorphic — see below."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["templateId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Content template ID"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["attachment"]}," is a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["discriminated union"]}," keyed on the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," property. Supported ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," discriminator values include ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["IMAGE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["VIDEO"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LINK"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DOC"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BASE64"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CAROUSEL"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MULTI_MEDIA"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GEO_LOCATION"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CARD"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CO_BROWSE_INVITE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RICH_TEXT_CAROUSEL"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUDIO"]},", among others. Always set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," — without it the payload cannot be resolved to a concrete attachment schema."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"2-base-urls-and-environments","__idx":5},"children":["2. Base URLs and environments"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["All API calls are sent to the production endpoint:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"https://api3.sprinklr.com/{env}/api/v3\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["So the message resource in production is:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"https://api3.sprinklr.com/{env}/api/v3/message\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replace ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{env}"]}," with your assigned environment identifier. The OpenAPI document enumerates: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod"]}," (default), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod0"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod2"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod3"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod4"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod5"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod6"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod8"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod11"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod12"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod15"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod16"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod17"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod18"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod19"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod21"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod25"]},". See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://legacy-dev.sprinklr.com/apis"},"children":["APIs | Sprinklr Developer Portal"]}," for the current environment list."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"3-authentication-and-common-headers","__idx":6},"children":["3. Authentication and common headers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All Message API calls are authenticated with OAuth 2.0. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.sprinklr.com/help/articles/developer-tools/developer-tools-in-sprinklr/692e8b39f0afa271d18a5929"},"children":["Developer Tools in Sprinklr"]}," for API key and secret generation, and the Authorize flow."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Header"},"children":["Header"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Purpose"},"children":["Purpose"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required on"},"children":["Required on"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Bearer {{accessToken}}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Authenticates the user with the server"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["All requests"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Key"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{{apiKey}}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Authenticates the application with the server"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["All requests"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Content-Type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["application/json"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Declares the request body media type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Accept"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["application/json"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Declares the acceptable response type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["All requests"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Permissions:"]}," Sprinklr's API governance model derives permissions from the Sprinklr user tied to the API key. Account permission is required to view content from, engage with, or publish from specific accounts. Missing permission returns ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 Forbidden"]},"."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"4-write-operations","__idx":7},"children":["4. Write operations"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"41-patch-apiv3messageaction--perform-an-action-on-a-message","__idx":8},"children":["4.1 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/action"]}," — Perform an action on a message"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["operationId"]},":"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MessageApiV3_performMessageAction"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Summary:"]}," Performs the provided action on the given message"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replaces ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v2/message/action"]},", which carried ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["action"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accountId"]}," in the request body."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-parameters","__idx":9},"children":["Query parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Example"},"children":["Example"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Message ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ACCOUNT_1000070103_1649479490272_TWITTER_5_1512652734423512131"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accountId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Account ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["600039042"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["action"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Action to perform"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HIDE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LIKE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"supported-actions","__idx":10},"children":["Supported actions"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HIDE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["UNHIDE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LIKE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["UNLIKE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAVORITE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["UNFAVORITE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["APPROVE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["REJECT"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["These actions are specific to native channel types."]}," A channel that has no concept of \"favorite\" will not honour ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAVORITE"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request","__idx":11},"children":["Request"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request PATCH \\\n  'https://api3.sprinklr.com/{env}/api/v3/message/action?messageId=ACCOUNT_1000070103_1649479490272_TWITTER_5_1512652734423512131&accountId=600039042&action=HIDE' \\\n  --header 'Authorization: Bearer {{accessToken}}' \\\n  --header 'Key: {{apiKey}}' \\\n  --header 'Accept: application/json'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200"]}," response is typed as a plain ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["string"]}," in the OpenAPI document."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"42-patch-apiv3messageread--mark-a-message-as-read","__idx":12},"children":["4.2 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/read"]}," — Mark a message as read"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["operationId"]},":"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MessageApiV3_notifyMessageRead"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Summary:"]}," Mark Message as Read (Supported for WhatsApp only)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replaces ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v2/message/notify-read?messageId={id}"]},". The V2 path segment ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["notify-read"]}," is renamed to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-parameters-1","__idx":13},"children":["Query parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Message ID"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-1","__idx":14},"children":["Request"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request PATCH \\\n  'https://api3.sprinklr.com/{env}/api/v3/message/read?messageId=ACCOUNT_12345678_1779725555000_WHATSAPP_BUSINESS_316_6a1474f3268905389646cce7' \\\n  --header 'Authorization: Bearer {{accessToken}}' \\\n  --header 'Key: {{apiKey}}' \\\n  --header 'Accept: application/json'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"what-this-endpoint-does","__idx":15},"children":["What this endpoint does"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This endpoint surfaces Meta's ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Mark message as read"]}," capability. Sprinklr already invokes Meta's read API when an agent opens the Care console; this endpoint exists so that integrations whose agents are ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["not"]}," in Sprinklr can trigger the same signal."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Expected end result:"]}," the customer sees that the brand has read the message — the WhatsApp blue tick."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Channel support:"]}," WhatsApp only. Calling this for any other channel is not supported."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"43-patch-apiv3messageworkflow--update-workflow-content-and-attachments","__idx":16},"children":["4.3 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/workflow"]}," — Update workflow, content, and attachments"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["operationId"]},":"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MessageApiV3_updateMessageWorkflowWithAttachments"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Summary:"]}," Update message workflow with optional content/attachments (same content shape as source-agnostic send)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replaces ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT /api/v2/message/workflow"]},". The method is corrected from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]}," to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}]},", because this is a partial update of workflow properties, not a full replacement of the message."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-parameters-2","__idx":17},"children":["Query parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional*"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Message ID"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["umId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional*"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Universal Message ID"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["* Supply exactly one. The V2 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageIds"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["array in the body"]}," is replaced by a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["query parameter"]}," — consistent with how other V3 endpoints handle ID lookup."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-body--messageworkflowwithcontentdto","__idx":18},"children":["Request body — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MessageWorkflowWithContentDTO"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["assignment"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Assignment details. See sub-table below."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customProperties"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Map[String → Array[String]]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Partner custom properties — ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["replaces"]}," the listed properties"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["addedCustomProperties"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Map[String → Array[String]]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Partner custom properties to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["add"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["removedCustomProperties"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Map[String → Array[String]]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Partner custom properties to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["remove"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["clientCustomProperties"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Map[String → Array[String]]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Workspace (client) custom properties — ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["replaces"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["addedClientCustomProperties"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Map[String → Array[String]]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Workspace custom properties to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["add"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["removedClientCustomProperties"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Map[String → Array[String]]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Workspace custom properties to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["remove"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["addedQueues"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Array[Long]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Partner queue IDs to add"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["removedQueues"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Array[Long]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Partner queue IDs to remove"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["addedClientQueues"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Array[Long]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Workspace queue IDs to add"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["removedClientQueues"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Array[Long]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Workspace queue IDs to remove"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sentiment"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integer (int32)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sentiment value on the message"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["note"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Note to attach to the message"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Message text"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Full ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Content"]}," object — text, title, rich text, attachment, template. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#13-the-content-object"},"children":["§1.3"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["clearAttachments"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["If ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]},", clears existing attachments on the message"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["appendAttachments"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["If ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]},", appends rather than replaces attachments"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["assignment"]}," sub-parameters:"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["assigneeId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ID of the assignee"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["assigneeType"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Assignee type, for example ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["USER"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BOT"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["assignedById"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ID of the user who assigned"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["assignmentTime"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Assignment time (epoch ms)"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Custom properties are keyed by custom field ID (for example ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["_c_64dcb892e32de6530b5a8dbf"]},") and always take a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["list"]}," of values, even for single-valued fields."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request--custom-properties","__idx":19},"children":["Request — custom properties"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request PATCH \\\n  'https://api3.sprinklr.com/{env}/api/v3/message/workflow?messageId=ACCOUNT_1000070103_1649479490272_TWITTER_5_1512652734423512131' \\\n  --header 'Authorization: Bearer {{accessToken}}' \\\n  --header 'Key: {{apiKey}}' \\\n  --header 'Content-Type: application/json' \\\n  --header 'Accept: application/json' \\\n  --data '{\n    \"addedCustomProperties\": {\n        \"_c_64dcb892e32de6530b5a8dbf\": [\"escalated\"]\n    },\n    \"removedCustomProperties\": {\n        \"_c_6512721b83353e6f3e80c1c5\": [\"pending-triage\"]\n    },\n    \"addedQueues\": [17],\n    \"sentiment\": 1,\n    \"note\": \"Escalated after second customer follow-up.\"\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request--update-message-text","__idx":20},"children":["Request — update message text"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request PATCH \\\n  'https://api3.sprinklr.com/{env}/api/v3/message/workflow?messageId={messageId}' \\\n  --header 'Authorization: Bearer {{accessToken}}' \\\n  --header 'Key: {{apiKey}}' \\\n  --header 'Content-Type: application/json' \\\n  --header 'Accept: application/json' \\\n  --data '{\n    \"content\": {\n        \"text\": \"Updated response text.\",\n        \"isRichText\": false\n    }\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request--clear-attachments","__idx":21},"children":["Request — clear attachments"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request PATCH \\\n  'https://api3.sprinklr.com/{env}/api/v3/message/workflow?messageId={messageId}' \\\n  --header 'Authorization: Bearer {{accessToken}}' \\\n  --header 'Key: {{apiKey}}' \\\n  --header 'Content-Type: application/json' \\\n  --header 'Accept: application/json' \\\n  --data '{\n    \"clearAttachments\": true\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"custom-property-operation-mapping-v2--v3","__idx":22},"children":["Custom-property operation mapping (V2 → V3)"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V2 ( PUT /api/v2/message/workflow )"},"children":["V2 (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT /api/v2/message/workflow"]},")"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V3 ( PATCH /api/v3/message/workflow ) — OpenAPI field"},"children":["V3 (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/workflow"]},") — OpenAPI field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Semantics"},"children":["Semantics"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customProperties"]}," action"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customProperties"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Replace the listed properties"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customPropertiesToAdd"]}," action"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["addedCustomProperties"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Add values without removing existing ones"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customPropertiesToRemove"]}," action"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["removedCustomProperties"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Remove the listed values"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"44-post-apiv3messageassociated-app-data--add-associated-application-data","__idx":23},"children":["4.4 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v3/message/associated-app-data"]}," — Add associated application data"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["operationId"]},":"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MessageApiV3_addAssociatedAppData"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Summary:"]}," Add Associated Application Data"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Internal CRM integration endpoint to associate external application data with a message.This endpoint is primarily for internal CRM integrations and system-to-system communications."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-parameters-3","__idx":24},"children":["Query parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Message ID"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-body--associatedapplicationdata-required","__idx":25},"children":["Request body — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AssociatedApplicationData"]}," (required)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["| Parameter | Type | Required | Description |"," ","|---|---|---|"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationType"]}," | String | Required | Type of the external application |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationId"]}," | String | Required | ID of the external application |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationUserId"]}," | String | User ID within the external application |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationMessageType"]}," | String | Optional | Message type within the external application |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationMessageId"]}," | String | Required | Message ID within the external application |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationMessageNumber"]}," | String | Optional | Message number within the external application |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationParentMessageId"]}," | String | Optional | Parent message ID within the external application |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationParentMessageNumber"]}," | String | Optional | Parent message number within the external application |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["associationTime"]}," | Long (int64) | Optional | Association time (epoch ms) |"," ","| ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationOrganizationId"]}," | String | Optioanl | Organization ID within the external application |"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-2","__idx":26},"children":["Request"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request POST \\\n  'https://api3.sprinklr.com/{env}/api/v3/message/associated-app-data?messageId={messageId}' \\\n  --header 'Authorization: Bearer {{accessToken}}' \\\n  --header 'Key: {{apiKey}}' \\\n  --header 'Content-Type: application/json' \\\n  --header 'Accept: application/json' \\\n  --data '{\n  \"applicationType\": \"SALESFORCE\",\n  \"applicationId\": \"00D3h000007R1LGEA0\",\n  \"applicationUserId\": \"005xx000001X8UzAAK\",\n  \"applicationMessageType\": \"Case\",\n  \"applicationMessageId\": \"500xx000004TCxbAAG\",\n  \"applicationMessageNumber\": \"00001234\",\n  \"applicationParentMessageId\": \"500xx000004TCxaAAG\",\n  \"applicationParentMessageNumber\": \"00001233\",\n  \"associationTime\": 1649479990000,\n  \"applicationOrganizationId\": \"00D3h000007R1LGEA0\"\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"45-method-comparison--when-to-use-which","__idx":27},"children":["4.5 Method comparison — when to use which"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"GET /message"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /message"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"GET /conversation"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /conversation"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"PATCH /message/action"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /message/action"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"PATCH /message/read"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /message/read"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"PATCH /message/workflow"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /message/workflow"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"POST /message/associated-app-data"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /message/associated-app-data"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Purpose"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Fetch one or many messages"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Fetch a message thread"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Act on a message on the native channel"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Signal read receipt"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Change workflow, content, attachments"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Attach external app metadata"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Addressing"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["umId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," + ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accountId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["umId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Body"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MessageWorkflowWithContentDTO"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AssociatedApplicationData"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Channel constraints"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Action support is channel-specific"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["WhatsApp only"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bulk"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes — comma-separated IDs"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"5-read-operations","__idx":28},"children":["5. Read operations"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"51-get-apiv3message--fetch-messages","__idx":29},"children":["5.1 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/message"]}," — Fetch messages"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["operationId"]},":"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MessageApiV3_getMessages"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Summary:"]}," Fetch Messages by UM ID or Message Id. Supports bulk fetch."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This single endpoint replaces ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["three"]}," V2 reads:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V2 endpoint"},"children":["V2 endpoint"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V3 equivalent"},"children":["V3 equivalent"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v2/message/byMessageId?messageId={id}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/message?messageId={id}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v2/message?id={umid}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/message?umId={umid}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v2/message/bulk-fetch"]}," with a body array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/message?messageId={id1,id2,id3}"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-parameters-4","__idx":30},"children":["Query parameters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Choose ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["one"]}," of the following methods to retrieve messages:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method 1: Fetch by Message ID"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Retrieve a single message using Sprinklr's internal message ID."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The unique Sprinklr message identifier. ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["64e76b8ad9a9d946c006ca5f"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method 2: Fetch by UMID"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Retrieve a message using its Universal Message ID (UMID)."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["umid"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The Universal Message ID in the format: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sourceType_sourceId_timestamp_channelType_messageType_channelMessageId"]}," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ACCOUNT_600056911_1742986039000_FACEBOOK_470_600275313172150"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method 3: Bulk Fetch Messages"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Retrieve multiple messages at once (up to 50)."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageIds"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Comma-separated list of message IDs (maximum 50). ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["64e76b8ad9a9d946c006ca5f,64e76b8ad9a9d946c006ca60,64e76b8ad9a9d946c006ca61"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["⚠️ ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Important"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"Use only ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ONE"]}," of the above methods per request. Mixing parameters will result in a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["400 Bad Request"]}," error."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request--single-message","__idx":31},"children":["Request — single message"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location 'https://api3.sprinklr.com/{env}/api/v3/message?messageId=ACCOUNT_1000070103_1649479490272_TWITTER_5_1512652734423512131' \\\n--header 'Authorization: Bearer {{accessToken}}' \\\n--header 'Key: {{apiKey}}' \\\n--header 'Accept: application/json'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request--bulk-fetch","__idx":32},"children":["Request — bulk fetch"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Up to 50 comma-separated message IDs in one call\ncurl --location 'https://api3.sprinklr.com/{env}/api/v3/message?messageId=ACCOUNT_1000070103_1649479490272_TWITTER_5_1512652734423512131,ACCOUNT_1000070103_1649437883290_TWITTER_5_1512478222092582025' \\\n--header 'Authorization: Bearer {{accessToken}}' \\\n--header 'Key: {{apiKey}}' \\\n--header 'Accept: application/json'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request--by-um-id","__idx":33},"children":["Request — by UM ID"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location 'https://api3.sprinklr.com/{env}/api/v3/message?umId=69c17f4c82492af653b27af2' \\\n--header 'Authorization: Bearer {{accessToken}}' \\\n--header 'Key: {{apiKey}}' \\\n--header 'Accept: application/json'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"id\": \"64e76b8ad9a9d946c006ca5f\",\n  \"umid\": \"ACCOUNT_600056911_1742986039000_FACEBOOK_470_600275313172150\",\n  \"text\": \"Need help with my order #12345\",\n  \"channelType\": \"FACEBOOK\",\n  \"messageType\": \"INBOUND\",\n  \"senderName\": \"John Doe\",\n  \"senderId\": \"facebook_user_123\",\n  \"conversationId\": \"conv_abc123def456\",\n  \"sentiment\": \"NEGATIVE\",\n  \"language\": \"en\",\n  \"createdTime\": 1742986039000,\n  \"modifiedTime\": 1742986039000,\n  \"customProperties\": {\n    \"orderNumber\": \"12345\",\n    \"productCategory\": \"Electronics\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"52-get-apiv3conversation--fetch-a-messages-conversation","__idx":34},"children":["5.2 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation"]}," — Fetch a message's conversation"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["operationId"]},":"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ConversationApiV3_getProfileConversations"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Summary:"]}," Fetch conversations (paginated)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replaces ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://legacy-dev.sprinklr.com/message-conversations"},"children":["Message Conversations"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v2/message/conversations"]},"). The method changes from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," and every parameter moves from the request body to the query string — semantically correct, because this is a read."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The endpoint is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["dual-mode"]}," and is shared with the Profile API:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Message conversations"]}," — supply ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]},". This is the Message-relevant mode."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Profile conversations"]}," — supply ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelType"]}," + ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelId"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-parameters-5","__idx":35},"children":["Query parameters"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Parameter"},"children":["Parameter"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Example"},"children":["Example"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required for message conversations"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Message ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ACCOUNT_1000070103_1649479490272_TWITTER_5_1512652734423512131"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelType"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required for profile conversations"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Channel type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TWITTER"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FACEBOOK"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required for profile conversations"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Channel ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1647140850"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinceTime"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Since time lower bound (epoch ms)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1581172111000"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["untilTime"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Until time upper bound (epoch ms)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1649826760000"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageNumber"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["0-based page index; offset is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageNumber * pageSize"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageSize"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Page size / rows"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["20"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["50"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sourceType"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SourceType"]}," enum name. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#81-sourcetype"},"children":["§8.1"]},"."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ACCOUNT"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortKey"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Message field name, ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["case-sensitive"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["createdTime"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortOrder"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Sort order"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ASC"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DESC"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parentSnMsgId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Parent message ID for message conversation filtering"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1647140850_902522372057571430"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["msgTypes"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Comma-separated message ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["type integers"]}," for filtering"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["5"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["5,7"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Supported ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortKey"]}," values"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["associatedCaseNumber"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelCreatedTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelMessageId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["createdTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["modifiedTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parentMessageId"]},". Omit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortKey"]}," for the default."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-3","__idx":36},"children":["Request"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X GET \\\n  'https://api3.sprinklr.com/{env}/api/v3/conversation?messageId=ACCOUNT_1000070103_1649479490272_TWITTER_5_1512652734423512131&sinceTime=1581172111000&untilTime=1649826760000&pageNumber=0&pageSize=20&sortKey=createdTime&sortOrder=DESC' \\\n  -H 'Authorization: Bearer {{accessToken}}' \\\n  -H 'Key: {{apiKey}}' \\\n  -H 'Accept: application/json'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"filtering-by-message-type","__idx":37},"children":["Filtering by message type"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["msgTypes"]}," takes ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["comma-separated integers"]},", not names. The commonly used codes include:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Channel"},"children":["Channel"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Message type"},"children":["Message type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Code"},"children":["Code"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Twitter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["REC_DM_TYPE_CODE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["5"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Twitter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["REPLY_TYPE_CODE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["7"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Twitter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SENT_REPLY_TYPE_CODE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["11"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Facebook"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FB_COMMENT_TYPE_CODE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["14"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Facebook"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FB_POST_TYPE_CODE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["15"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Facebook"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FB_PRIVATE_MESSAGE_TYPE_CODE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["38"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Instagram"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["INSTAGRAM_COMMENT_TYPE_CODE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["37"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Instagram"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["INSTAGRAM_DIRECT_MESSAGE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["320"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["YouTube"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YT_COMMENTS_TYPE_CODE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["44"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["LinkedIn"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LINKED_IN_POST_TYPE_CODE"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["16"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Email"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["EMAIL"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["175"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["WhatsApp Business"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WHATSAPP_BUSINESS"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["316"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Twitter DMs and replies only\ncurl -X GET \\\n  'https://api3.sprinklr.com/{env}/api/v3/conversation?messageId={messageId}&msgTypes=5,7' \\\n  -H 'Authorization: Bearer {{accessToken}}' \\\n  -H 'Key: {{apiKey}}' \\\n  -H 'Accept: application/json'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The complete code table — Twitter, Facebook, Instagram, YouTube, LinkedIn, TikTok, Weibo, VK, Xing, Line, WeChat, and message sub-type codes — is published on the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://legacy-dev.sprinklr.com/message"},"children":["V2 Message reference page"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Mutual exclusivity:"]}," provide either ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," OR (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelType"]}," + ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelId"]},"), not both."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"6-response-format-and-status-codes","__idx":38},"children":["6. Response format and status codes"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"61-the-v3-envelope","__idx":39},"children":["6.1 The V3 envelope"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"data\": {},\n  \"errors\": [],\n  \"metadata\": {}\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object / Array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The payload — message objects, conversation messages, or an action result string"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["errors"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Array[Error]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Array of error objects (empty if no errors)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["metadata"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Pagination and response metadata"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"62-response-codes","__idx":40},"children":["6.2 Response codes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The OpenAPI document declares the same response set on ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["every"]}," Message V3 and Conversation V3 operation:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"HTTP Code"},"children":["HTTP Code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Scenario"},"children":["Scenario"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200 OK"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Success"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Request completed. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /message"]}," returns message objects; the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," operations return a string."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400 Bad Request"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Invalid parameters"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Missing required parameters, invalid parameter combinations, or invalid parameter types"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401 Unauthorized"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Authentication failed"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Invalid or missing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization"]}," token"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403 Forbidden"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Insufficient permissions"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The user behind the API key lacks permission on the account or entity"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["404 Not Found"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No message found"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No message matches the supplied identifier"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"7-v2--v3-migration","__idx":41},"children":["7. V2 → V3 migration"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"71-endpoint-mapping","__idx":42},"children":["7.1 Endpoint mapping"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"read","__idx":43},"children":["Read"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"What you want to do"},"children":["What you want to do"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V2"},"children":["V2"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V3"},"children":["V3"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Fetch message by message ID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v2/message/byMessageId?messageId={id}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/message?messageId={id}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Fetch message by UMID"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v2/message?id={umid}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/message?umId={umid}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Fetch multiple messages in bulk"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v2/message/bulk-fetch"]}," with body array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/message?messageId={id1,id2,id3}"]}," — up to 50, comma-separated"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"conversations","__idx":44},"children":["Conversations"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"What you want to do"},"children":["What you want to do"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V2"},"children":["V2"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V3"},"children":["V3"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Fetch all conversation messages for a message"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v2/message/conversations"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," in body"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation?messageId={id}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Filter conversations by date range"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinceDate"]}," + ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["untilDate"]}," in body"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation?messageId={id}&sinceTime={epoch}&untilTime={epoch}"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Filter conversations by message type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["msgTypes"]}," in body"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation?messageId={id}&msgTypes={type}"]}," — comma-separated"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Paginate conversations"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start"]}," + ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rows"]}," in body"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation?messageId={id}&pageNumber={n}&pageSize={n}"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"actions","__idx":45},"children":["Actions"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"What you want to do"},"children":["What you want to do"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V2"},"children":["V2"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V3"},"children":["V3"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Perform an action (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HIDE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["UNHIDE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LIKE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["UNLIKE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAVORITE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["UNFAVORITE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["APPROVE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["REJECT"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v2/message/action"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["action"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accountId"]}," in body"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/action"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["action"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accountId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Mark message as read (WhatsApp only)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v2/message/notify-read?messageId={id}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/read?messageId={id}"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"update","__idx":46},"children":["Update"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"What you want to do"},"children":["What you want to do"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V2"},"children":["V2"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V3"},"children":["V3"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Replace all custom properties on a message"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT /api/v2/message/workflow"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customProperties"]}," action"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/workflow?messageId={id}"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customProperties"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Add / merge custom properties on a message"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT /api/v2/message/workflow"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customPropertiesToAdd"]}," action"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/workflow?messageId={id}"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["addedCustomProperties"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Remove specific custom properties from a message"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT /api/v2/message/workflow"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customPropertiesToRemove"]}," action"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/workflow?messageId={id}"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["removedCustomProperties"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Update message text content"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT /api/v2/message/workflow"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}," field in body"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/workflow?messageId={id}"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content.text"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["(The story description expresses the last four rows as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["op: replace"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["op: add"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["op: remove"]}," and a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["text"]}," field. See the conflict callouts in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#43-patch-apiv3messageworkflow--update-workflow-content-and-attachments"},"children":["§4.3"]},".)"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"72-key-structural-changes","__idx":47},"children":["7.2 Key structural changes"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Three separate read endpoints (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/byMessageId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/bulk-fetch"]},") consolidated into one ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/message"]}," using query params"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Conversations moves from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," with body params to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," with query params — semantically correct since it is a read operation"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["notify-read"]}," renamed to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/read"]}," — cleaner and more consistent"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT /message/workflow"]}," corrected to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}," — since it is a partial update of workflow properties, not a full replacement"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Three custom property actions (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customProperties"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customPropertiesToAdd"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customPropertiesToRemove"]},") map to standard ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["op: replace"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["op: add"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["op: remove"]}," operations — consistent with SCIM PATCH semantics"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageIds"]}," array in workflow update moves to a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message_id"]}," query parameter — consistent with how other V3 endpoints handle ID lookup"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"73-parameter-renames","__idx":48},"children":["7.3 Parameter renames"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V2"},"children":["V2"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V3"},"children":["V3"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Where"},"children":["Where"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," (UMID)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["umId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/message"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinceDate"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinceTime"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["untilDate"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["untilTime"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageNumber"]}," (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageNumber = start / rows"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rows"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageSize"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sort.key"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortKey"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sort.order"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortOrder"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageIds"]}," (body array)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," query parameter"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/workflow"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customPropertiesToAdd"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["addedCustomProperties"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/workflow"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customPropertiesToRemove"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["removedCustomProperties"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/workflow"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Note the naming inversion on custom properties: V2 used a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["customProperties…"]}," suffix pattern, V3 uses an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["…CustomProperties"]}," prefix pattern. A find-and-replace migration will not work."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"74-method-changes--the-migration-trap","__idx":49},"children":["7.4 Method changes — the migration trap"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Three of the five V2 write/read operations change HTTP method:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Operation"},"children":["Operation"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V2 method"},"children":["V2 method"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V3 method"},"children":["V3 method"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Message conversations"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Message action"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Mark as read"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Workflow update"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bulk fetch"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Every one of these also moves parameters ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["out of the request body and into the query string"]},". A client that only swaps the base URL from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v2"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3"]}," will fail on all five. Note also that V2 Message Conversations documented ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Content-Type: multipart/form-data"]}," — V3 sends no body at all for that call."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"75-migration-steps","__idx":50},"children":["7.5 Migration steps"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Update the base URL."]}," Point at ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://api3.sprinklr.com/{env}/api/v3"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Collapse your three read paths into one."]}," Route ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["byMessageId"]},", UMID, and bulk-fetch traffic to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/message"]}," with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["umId"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Batch your reads."]}," Replace bulk-fetch body arrays with comma-separated ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," values, up to 50 per call."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Convert conversations from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]},"."]}," Move ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinceDate"]},"→",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinceTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["untilDate"]},"→",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["untilTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start"]},"→",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageNumber"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rows"]},"→",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageSize"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["msgTypes"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parentSnMsgId"]}," into the query string."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Recalculate pagination."]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageNumber = start / rows"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageSize = rows"]},". V2 defaulted ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rows"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["21"]},"; do not assume V3 keeps a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["21"]}," default — send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageSize"]}," explicitly."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Change action and read calls to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}]}," and move ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["action"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["accountId"]}," into the query string."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Change workflow updates from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}]},", move ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageIds"]}," from the body to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," query parameter, and rename the custom-property maps per ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#73-parameter-renames"},"children":["§7.3"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortKey"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortOrder"]}," explicitly"]}," rather than relying on a default — the sources disagree on what the default is."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Update response parsing."]}," Read through ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["response.data"]}," and check ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["response.errors"]}," for the structured ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{id, code, message}"]}," error objects."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Re-verify the three known issues"]}," in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#10-caveats-and-best-practices"},"children":["§10"]}," against your own environment before cutover."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"8-supported-enums","__idx":51},"children":["8. Supported enums"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"81-sourcetype","__idx":52},"children":["8.1 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SourceType"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Applies to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sourceType"]}," query parameter on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/message"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation"]},", and to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sourceType"]}," field on the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Message"]}," object."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ACCOUNT"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PERSISTENT_SEARCH"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LISTENING"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BENCHMARKING"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUDIENCE"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUDIENCE_STUDY"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FEED_DATA"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ADVOCACY"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["EXTERNAL"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SPRINKLR_COMMERCE"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WHATSAPP_COMMERCE"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SELF_SERVE"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HULK"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["STORY_MESSAGE"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"82-message-actions","__idx":53},"children":["8.2 Message actions"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["HIDE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["UNHIDE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LIKE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["UNLIKE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FAVORITE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["UNFAVORITE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["APPROVE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["REJECT"]}," — subject to native channel support."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"83-attachment-type-discriminator","__idx":54},"children":["8.3 Attachment ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}," discriminator"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["IMAGE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["VIDEO"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LINK"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DOC"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BASE64"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CAROUSEL"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["MULTI_MEDIA"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GEO_LOCATION"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CARD"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CO_BROWSE_INVITE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["RICH_TEXT_CAROUSEL"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUDIO"]},", and further values including quick reply, authentication, Apple Pay interactive, app link, list picker, location request, CTA URL, address, time picker, rich link, events, contact details form, feedback, form, secure form, appointment, survey, product card, product showcase card, info card, product banner, product list, quick select pills, voice, HSM, button template, list template, product, poll, album, story, and thread attachments."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"84-sort-keys--get-apiv3conversation-","__idx":55},"children":["8.4 Sort keys (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /api/v3/conversation"]},")"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["associatedCaseNumber"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelCreatedTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelMessageId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["createdTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["modifiedTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parentMessageId"]},". ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Case-sensitive."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"9-use-cases","__idx":56},"children":["9. Use cases"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"91-hydrate-a-batch-of-messages-from-a-webhook-feed","__idx":57},"children":["9.1 Hydrate a batch of messages from a webhook feed"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scenario:"]}," a webhook delivers 40 message IDs; you need text, sender, and workflow state for a dashboard."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use bulk fetch rather than 40 individual calls:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"GET /api/v3/message?messageId=id1,id2,id3,...\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Stay at or below 50 IDs per call. In V2 this required ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v2/message/bulk-fetch"]}," with a body array; in V3 it is a plain ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," and is cacheable."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"92-reconstruct-a-full-customer-thread-from-one-inbound-message","__idx":58},"children":["9.2 Reconstruct a full customer thread from one inbound message"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scenario:"]}," an agent tool receives one message and needs the surrounding conversation, newest first."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"GET /api/v3/conversation?messageId={messageId}&pageNumber=0&pageSize=50&sortKey=createdTime&sortOrder=DESC\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortKey"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortOrder"]}," explicitly"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"93-pull-only-direct-messages-from-a-twitter-thread","__idx":59},"children":["9.3 Pull only direct messages from a Twitter thread"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scenario:"]}," you need DMs only, excluding public replies and retweets."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"GET /api/v3/conversation?messageId={messageId}&msgTypes=5\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["msgTypes"]}," takes integer codes, not names. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["5"]}," is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["REC_DM_TYPE_CODE"]}," for Twitter. Combine codes with commas: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["msgTypes=5,7"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"94-backfill-a-conversation-over-a-fixed-window","__idx":60},"children":["9.4 Backfill a conversation over a fixed window"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scenario:"]}," a nightly job reconciles the last 24 hours of a thread."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"GET /api/v3/conversation?messageId={messageId}&sinceTime={epochMsStart}&untilTime={epochMsEnd}&pageNumber=0&pageSize=50\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Both bounds are ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["epoch milliseconds"]},". In V2 these were ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinceDate"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["untilDate"]}," in the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," body."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"95-moderate-an-incoming-comment","__idx":61},"children":["9.5 Moderate an incoming comment"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scenario:"]}," an automated policy detects an abusive comment and must hide it on the native channel."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"PATCH /api/v3/message/action?messageId={messageId}&accountId={accountId}&action=HIDE\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Action availability is channel-specific. Handle the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," path explicitly — an invalid action type returns an error."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"96-signal-a-whatsapp-read-receipt-from-an-external-agent-desk","__idx":62},"children":["9.6 Signal a WhatsApp read receipt from an external agent desk"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scenario:"]}," agents work in your own console, not in Sprinklr, and the customer must still see the blue tick."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"PATCH /api/v3/message/read?messageId={whatsappMessageId}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sprinklr fires Meta's read API when an agent opens the Care console, and this endpoint provides the same signal for integrations whose agents are outside Sprinklr. Verify the error contract first — see the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}," vs ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["404"]}," note in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#42-patch-apiv3messageread--mark-a-message-as-read"},"children":["§4.2"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"97-route-and-tag-a-message-from-an-external-triage-engine","__idx":63},"children":["9.7 Route and tag a message from an external triage engine"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scenario:"]}," a classifier assigns a queue, sets sentiment, adds a tag, and clears an obsolete tag — in one call."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request PATCH \\\n  'https://api3.sprinklr.com/{env}/api/v3/message/workflow?messageId={messageId}' \\\n  --header 'Authorization: Bearer {{accessToken}}' \\\n  --header 'Key: {{apiKey}}' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\n    \"addedQueues\": [17],\n    \"sentiment\": -1,\n    \"addedCustomProperties\": { \"_c_64dcb892e32de6530b5a8dbf\": [\"billing-dispute\"] },\n    \"removedCustomProperties\": { \"_c_64dcb892e32de6530b5a8dbf\": [\"unclassified\"] },\n    \"assignment\": { \"assigneeId\": \"4471\", \"assigneeType\": \"USER\" }\n  }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["One ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}," covers queue, sentiment, tagging, and assignment. No read-modify-write cycle is needed — the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["added…"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["removed…"]}," maps are additive and subtractive respectively."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"98-strip-an-attachment-that-should-never-have-been-published","__idx":64},"children":["9.8 Strip an attachment that should never have been published"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scenario:"]}," an attachment on an outbound message violates policy and must be removed while the text stays."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"PATCH /api/v3/message/workflow?messageId={messageId}\n{ \"clearAttachments\": true }\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"99-correlate-a-sprinklr-message-with-a-crm-record","__idx":65},"children":["9.9 Correlate a Sprinklr message with a CRM record"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scenario:"]}," your CRM creates a ticket for an inbound message and you need the linkage stored on the Sprinklr side."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"POST /api/v3/message/associated-app-data?messageId={messageId}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationType"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationMessageId"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["applicationOrganizationId"]}," in the body (",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#44-post-apiv3messageassociated-app-data--add-associated-application-data"},"children":["§4.4"]},")."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"910-page-through-a-long-conversation","__idx":66},"children":["9.10 Page through a long conversation"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"let pageNumber = 0;\nconst pageSize = 50;\nlet all = [];\n\nwhile (true) {\n  const res = await get(\n    `/api/v3/conversation?messageId=${messageId}` +\n    `&pageNumber=${pageNumber}&pageSize=${pageSize}` +\n    `&sortKey=createdTime&sortOrder=ASC`\n  );\n\n  if (res.errors && res.errors.length) {\n    handleErrors(res.errors);        // V3 returns {id, code, message} objects\n    break;\n  }\n\n  const batch = res.data || [];\n  all = all.concat(batch);\n\n  // ResponseMetadata has no declared properties in the supplied spec —\n  // do not depend on metadata.hasMore until confirmed. Stop on a short page.\n  if (batch.length < pageSize) break;\n  pageNumber += 1;\n}\n","lang":"javascript"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"10-caveats-and-best-practices","__idx":67},"children":["10. Caveats and best practices"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method and shape"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Every V2 write on this surface changes method in V3. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]},"→",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}," for action and read, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]},"→",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}," for workflow, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]},"→",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," for conversations and bulk fetch."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Parameters move from the body to the query string on all of those."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /message/action"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/read"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/workflow"]}," return a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["plain string"]}," on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200"]},", not an object."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Identifiers"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," is the UMID and is composite: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sourceType_sourceId_channelCreatedTime_channelType_messageType_channelMessageId"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["URL-encode message IDs containing reserved characters."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Supply exactly one of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["umId"]}," — not both."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Every ID-bearing query parameter is declared ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["required: false"]}," in the specification. That is a specification looseness, not permission to omit it; QA confirmed that missing required fields return a validation error."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Bulk fetch"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Limit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId"]}," lists to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["50"]}," comma-separated IDs per call."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Prefer one bulk call over N single calls."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Pagination"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Pages are ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["0-based"]},"; offset is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageNumber * pageSize"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["V2 defaulted ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rows"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["21"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]},". Do not carry that assumption into V3 — send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pageSize"]}," explicitly."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ResponseMetadata"]}," has no declared properties in the supplied specification; do not depend on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["metadata.hasMore"]}," until confirmed. Stop paging on a short page."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sorting"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortKey"]}," is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["case-sensitive"]}," and limited to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["associatedCaseNumber"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelCreatedTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["channelMessageId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["createdTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["modifiedTime"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parentMessageId"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Always send ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortKey"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sortOrder"]},"; the sources disagree on the default."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Channel constraints"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/message/read"]}," is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["WhatsApp only"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Message actions are specific to native channel types — a channel that does not support an action will not honour it."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["msgTypes"]}," takes ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["integer codes"]},", not names. The full table is on the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://legacy-dev.sprinklr.com/message"},"children":["V2 Message reference"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Content and attachments"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["content.attachment"]}," is a discriminated union — always set ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["clearAttachments"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["appendAttachments"]}," are booleans on the workflow ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data completeness"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["apiStatus"]}," on the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Message"]}," object reports when fields were removed under a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["resyndication policy"]}," — a message can return ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200"]}," with fields stripped. Check ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["apiStatus"]}," before treating a payload as complete."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Twitter syndication, Case Compliance, and Listening data require explicit enablement requests to Sprinklr Support. A ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403"]}," or an empty payload for those data sets may be an entitlement gap, not a client bug."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Error handling"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["errors[]"]}," entries carry ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]}," (24-character hex ObjectId), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["code"]}," (integer), and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}," (dotted key such as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["account.not.found"]},"). Match on ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}," keys, not on prose."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Always inspect ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["errors"]}," even on a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200"]},"."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"em","attributes":{},"children":["All JSON payloads in this guide are illustrative examples. They are not real customer data and are not guaranteed production responses. All credentials are placeholders (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{{accessToken}}"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{{apiKey}}"]},") and must never be committed or logged."]}]}]},"headings":[{"value":"Message API V3 — Developer Guide","id":"message-api-v3--developer-guide","depth":1},{"value":"1. Overview","id":"1-overview","depth":2},{"value":"1.1 The message data model","id":"11-the-message-data-model","depth":3},{"value":"1.2 Addressing a message","id":"12-addressing-a-message","depth":3},{"value":"1.3 The content object","id":"13-the-content-object","depth":3},{"value":"2. Base URLs and environments","id":"2-base-urls-and-environments","depth":2},{"value":"3. Authentication and common headers","id":"3-authentication-and-common-headers","depth":2},{"value":"4. Write operations","id":"4-write-operations","depth":2},{"value":"4.1 PATCH /api/v3/message/action — Perform an action on a message","id":"41-patch-apiv3messageaction--perform-an-action-on-a-message","depth":3},{"value":"Query parameters","id":"query-parameters","depth":4},{"value":"Supported actions","id":"supported-actions","depth":4},{"value":"Request","id":"request","depth":4},{"value":"4.2 PATCH /api/v3/message/read — Mark a message as read","id":"42-patch-apiv3messageread--mark-a-message-as-read","depth":3},{"value":"Query parameters","id":"query-parameters-1","depth":4},{"value":"Request","id":"request-1","depth":4},{"value":"What this endpoint does","id":"what-this-endpoint-does","depth":4},{"value":"4.3 PATCH /api/v3/message/workflow — Update workflow, content, and attachments","id":"43-patch-apiv3messageworkflow--update-workflow-content-and-attachments","depth":3},{"value":"Query parameters","id":"query-parameters-2","depth":4},{"value":"Request body — MessageWorkflowWithContentDTO","id":"request-body--messageworkflowwithcontentdto","depth":4},{"value":"Request — custom properties","id":"request--custom-properties","depth":4},{"value":"Request — update message text","id":"request--update-message-text","depth":4},{"value":"Request — clear attachments","id":"request--clear-attachments","depth":4},{"value":"Custom-property operation mapping (V2 → V3)","id":"custom-property-operation-mapping-v2--v3","depth":4},{"value":"4.4 POST /api/v3/message/associated-app-data — Add associated application data","id":"44-post-apiv3messageassociated-app-data--add-associated-application-data","depth":3},{"value":"Query parameters","id":"query-parameters-3","depth":4},{"value":"Request body — AssociatedApplicationData (required)","id":"request-body--associatedapplicationdata-required","depth":4},{"value":"Request","id":"request-2","depth":4},{"value":"4.5 Method comparison — when to use which","id":"45-method-comparison--when-to-use-which","depth":3},{"value":"5. Read operations","id":"5-read-operations","depth":2},{"value":"5.1 GET /api/v3/message — Fetch messages","id":"51-get-apiv3message--fetch-messages","depth":3},{"value":"Query parameters","id":"query-parameters-4","depth":4},{"value":"Request — single message","id":"request--single-message","depth":4},{"value":"Request — bulk fetch","id":"request--bulk-fetch","depth":4},{"value":"Request — by UM ID","id":"request--by-um-id","depth":4},{"value":"5.2 GET /api/v3/conversation — Fetch a message's conversation","id":"52-get-apiv3conversation--fetch-a-messages-conversation","depth":3},{"value":"Query parameters","id":"query-parameters-5","depth":4},{"value":"Request","id":"request-3","depth":4},{"value":"Filtering by message type","id":"filtering-by-message-type","depth":4},{"value":"6. Response format and status codes","id":"6-response-format-and-status-codes","depth":2},{"value":"6.1 The V3 envelope","id":"61-the-v3-envelope","depth":3},{"value":"6.2 Response codes","id":"62-response-codes","depth":3},{"value":"7. V2 → V3 migration","id":"7-v2--v3-migration","depth":2},{"value":"7.1 Endpoint mapping","id":"71-endpoint-mapping","depth":3},{"value":"Read","id":"read","depth":4},{"value":"Conversations","id":"conversations","depth":4},{"value":"Actions","id":"actions","depth":4},{"value":"Update","id":"update","depth":4},{"value":"7.2 Key structural changes","id":"72-key-structural-changes","depth":3},{"value":"7.3 Parameter renames","id":"73-parameter-renames","depth":3},{"value":"7.4 Method changes — the migration trap","id":"74-method-changes--the-migration-trap","depth":3},{"value":"7.5 Migration steps","id":"75-migration-steps","depth":3},{"value":"8. Supported enums","id":"8-supported-enums","depth":2},{"value":"8.1 SourceType","id":"81-sourcetype","depth":3},{"value":"8.2 Message actions","id":"82-message-actions","depth":3},{"value":"8.3 Attachment type discriminator","id":"83-attachment-type-discriminator","depth":3},{"value":"8.4 Sort keys ( GET /api/v3/conversation )","id":"84-sort-keys--get-apiv3conversation-","depth":3},{"value":"9. Use cases","id":"9-use-cases","depth":2},{"value":"9.1 Hydrate a batch of messages from a webhook feed","id":"91-hydrate-a-batch-of-messages-from-a-webhook-feed","depth":3},{"value":"9.2 Reconstruct a full customer thread from one inbound message","id":"92-reconstruct-a-full-customer-thread-from-one-inbound-message","depth":3},{"value":"9.3 Pull only direct messages from a Twitter thread","id":"93-pull-only-direct-messages-from-a-twitter-thread","depth":3},{"value":"9.4 Backfill a conversation over a fixed window","id":"94-backfill-a-conversation-over-a-fixed-window","depth":3},{"value":"9.5 Moderate an incoming comment","id":"95-moderate-an-incoming-comment","depth":3},{"value":"9.6 Signal a WhatsApp read receipt from an external agent desk","id":"96-signal-a-whatsapp-read-receipt-from-an-external-agent-desk","depth":3},{"value":"9.7 Route and tag a message from an external triage engine","id":"97-route-and-tag-a-message-from-an-external-triage-engine","depth":3},{"value":"9.8 Strip an attachment that should never have been published","id":"98-strip-an-attachment-that-should-never-have-been-published","depth":3},{"value":"9.9 Correlate a Sprinklr message with a CRM record","id":"99-correlate-a-sprinklr-message-with-a-crm-record","depth":3},{"value":"9.10 Page through a long conversation","id":"910-page-through-a-long-conversation","depth":3},{"value":"10. Caveats and best practices","id":"10-caveats-and-best-practices","depth":2}],"frontmatter":{"seo":{"title":"Message API V3 — Developer Guide"}},"lastModified":"2026-10-22T18:27:14.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/developer-guides-v3/message-api-v3-developer-guide","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}