{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Source Agnostic 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":"source-agnostic-api-v3--developer-guide","__idx":0},"children":["Source Agnostic 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 Source Agnostic API V3 (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/deflect"]},")"]},{"$$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/source-agnostic-message"},"children":["Source Agnostic | 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":["The Source Agnostic APIs allow you to import third‑party messages into Sprinklr, update their status, and delete conversations.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"They provide a unified way to manage external messages and cases within Sprinklr."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Source Agnostic V3 exposes operations on a single resource path — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/sourceAgnostic"]}," — differentiated by 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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Operation"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Method"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Method"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Path"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Path"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Send Message"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["POST"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/sourceAgnostic"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Update Message Status"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["PATCH"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/sourceAgnostic"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Delete Conversation"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DELETE"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/api/v3/sourceAgnostic"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"2-base-urls-and-environments","__idx":2},"children":["2. Base URLs and environments"]},{"$$mdtype":"Tag","name":"p","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 Source Agnostic resource in production is:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"https://api3.sprinklr.com/{env}/api/v3/sourceAgnostic\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replace ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{env}"]}," with your assigned environment identifier (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod0"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["prod2"]},", etc.)."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"3-authentication-and-common-headers","__idx":3},"children":["3. Authentication and common headers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All Source Agnostic API calls are authenticated with OAuth 2.0."]},{"$$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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Header"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Value"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Purpose"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Purpose"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required on"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Required on"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Authorization"]},{"$$mdtype":"Tag","name":"td","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":["Key"]},{"$$mdtype":"Tag","name":"td","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":["Content-Type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["application/json"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Declares the request body media type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["All requests"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Accept"]},{"$$mdtype":"Tag","name":"td","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":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"4-write-operations","__idx":4},"children":["4. Write Operations"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"41-send-a-source-agnostic-message","__idx":5},"children":["4.1 Send a Source Agnostic Message"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v3/sourceAgnostic?accountId={id}"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Imports a third‑party message into Sprinklr. A case and profile are created automatically."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-parameter","__idx":6},"children":["Query Parameter"]},{"$$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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Parameter"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required/Optional"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Required/Optional"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Type"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["accountId"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unique identifier for the Source Agnostic account."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integer"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"steps-to-extract-account-id-from-sprinklr-ui","__idx":7},"children":["Steps to Extract Account ID from Sprinklr UI"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Navigate to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["All Settings"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Accounts"]}," page."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Locate the account you want."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["three‑dot icon"]}," next to the account name."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]}," from the dropdown. A third‑pane window opens."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In the window, click the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["copy URL icon"]}," at the top right."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Paste the copied URL into any encoder/decoder tool."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The account ID will appear in the decoded URL."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"If the decoded URL contains ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/ACCOUNT/100426226/OVERVIEW"]},", then the account ID is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["100426226"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"request-parameters","__idx":8},"children":["Request 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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Parameter"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required/Optional"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Required/Optional"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Type"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["messageId"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unique identifier for the message. Must be unique for every request."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["conversationId"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unique identifier for the conversation. Use the same ID for multiple messages in one conversation. A new ID creates a new case."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["senderProfile"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Profile details of the sender. See senderProfile table below."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["receiverProfile"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Profile details of the receiver. See receiverProfile table below."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["content"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Content of the message."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["content.text"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Text of the message."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["content.isRichText"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required when sending HTML content. Set to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}," if content is HTML."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Boolean"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["content.attachment"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required for messages with attachments. Object containing attachment details. See the attachment object table below."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["messageProperties"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom properties at the message level."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["conversationProperties"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom properties at the case level."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"senderprofile--receiverprofile-object","__idx":9},"children":["SenderProfile / ReceiverProfile 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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Parameter"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required/Optional"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Required/Optional"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Type"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unique identifier for the sender or receiver profile."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Integer"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["screenName"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Screen name or handle of the sender/receiver."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["name"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Full name of the sender/receiver. Recommended for easier identification in Sprinklr."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["firstName"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["First name of the sender/receiver."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["lastName"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Last name of the sender/receiver."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["email"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Email address of the sender/receiver."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["phoneNo"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Phone number of the sender/receiver."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["profileURL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Profile URL of the sender/receiver."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["profileImageURL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Profile image URL of the sender/receiver."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["properties"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom properties for the sender/receiver."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"attachment-object","__idx":10},"children":["Attachment 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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Parameter"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required/Optional"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Required/Optional"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Type"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Type of attachment. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Supported values:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["IMAGE"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["VIDEO"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DOC"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUDIO"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["BASE64"]},"."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["url"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required (except Base64)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["URL of the attachment. Must be a valid Sprinklr CDN URL obtained via the Media Upload API."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["base64EncodedContent"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required (Base64 only)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Base64‑encoded content for the attachment."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["fileName"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required (Base64 only)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["File name of the attachment when using Base64."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["title"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Title of the attachment."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["description"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Description of the attachment."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["previewUrl / previewImageUrl"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Preview URL or image preview for the attachment."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["mimeType"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["MIME type of the attachment (e.g., ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["image/jpeg"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["video/mp4"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["application/pdf"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["audio/mpeg"]},")."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example-request--text-message","__idx":11},"children":["Example Request — Text Message"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request POST 'https://api3.sprinklr.com/{env}/api/v3/sourceAgnostic?accountId=66122694' \\\n--header 'Authorization: Bearer {token}' \\\n--header 'Content-Type: application/json' \\\n--data '{\n  \"messageId\": \"br_test_text_1\",\n  \"conversationId\": \"shamyak_test_1_1004\",\n  \"senderProfile\": { \"id\": \"918410614581\" },\n  \"receiverProfile\": { \"id\": \"19283994232\" },\n  \"content\": { \"text\": \"This is a text message\" }\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example--send-image-attachment","__idx":12},"children":["Example — Send Image Attachment"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request POST 'https://api3.sprinklr.com/{env}/api/v3/sourceAgnostic?accountId=66122694' \\\n--header 'Authorization: Bearer <token>' \\\n--header 'Content-Type: application/json' \\\n--data '{\n  \"messageId\": \"br_test_image_1\",\n  \"conversationId\": \"shamyak_test_1_1004\",\n  \"senderProfile\": { \"id\": \"918410614581\" },\n  \"receiverProfile\": { \"id\": \"19283994232\" },\n  \"content\": {\n    \"text\": \"This is a test message with image\",\n    \"attachment\": {\n      \"type\": \"IMAGE\",\n      \"url\": \"https://cdn.sprinklr.com/qa6/media/123456789.png\",\n      \"title\": \"Test_image1.png\",\n      \"description\": \"This is a test image\",\n      \"mimeType\": \"image/jpeg\"\n    }\n  }\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example--send-video-attachment","__idx":13},"children":["Example — Send Video Attachment"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request POST 'https://api3.sprinklr.com/{env}/api/v3/sourceAgnostic?accountId=66122694' \\\n--header 'Authorization: Bearer <token>' \\\n--header 'Content-Type: application/json' \\\n--data '{\n  \"messageId\": \"br_test_video_1\",\n  \"conversationId\": \"br_test_conversation_video\",\n  \"senderProfile\": { \"id\": \"918410614581\" },\n  \"receiverProfile\": { \"id\": \"19283994232\" },\n  \"content\": {\n    \"text\": \"This is a test message with video\",\n    \"attachment\": {\n      \"type\": \"VIDEO\",\n      \"url\": \"https://cdn.sprinklr.com/qa6/media/test_video.mp4\",\n      \"title\": \"Test_video.mp4\",\n      \"description\": \"Sample video attachment\",\n      \"mimeType\": \"video/mp4\"\n    }\n  }\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example--send-document-attachment","__idx":14},"children":["Example — Send Document Attachment"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request POST 'https://api3.sprinklr.com/{env}/api/v3/sourceAgnostic?accountId=66122694' \\\n--header 'Authorization: Bearer <token>' \\\n--header 'Content-Type: application/json' \\\n--data '{\n  \"messageId\": \"br_test_doc_1\",\n  \"conversationId\": \"br_test_conversation_doc\",\n  \"senderProfile\": { \"id\": \"918410614581\" },\n  \"receiverProfile\": { \"id\": \"19283994232\" },\n  \"content\": {\n    \"text\": \"This is a test message with document\",\n    \"attachment\": {\n      \"type\": \"DOC\",\n      \"url\": \"https://cdn.sprinklr.com/qa6/media/test_doc.pdf\",\n      \"title\": \"Contract.pdf\",\n      \"description\": \"Signed contract document\",\n      \"mimeType\": \"application/pdf\"\n    }\n  }\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example--send-audio-attachment","__idx":15},"children":["Example — Send Audio Attachment"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request POST 'https://api3.sprinklr.com/{env}/api/v3/sourceAgnostic?accountId=66122694' \\\n--header 'Authorization: Bearer <token>' \\\n--header 'Content-Type: application/json' \\\n--data '{\n  \"messageId\": \"br_test_audio_1\",\n  \"conversationId\": \"br_test_conversation_audio\",\n  \"senderProfile\": { \"id\": \"918410614581\" },\n  \"receiverProfile\": { \"id\": \"19283994232\" },\n  \"content\": {\n    \"text\": \"This is a test message with audio\",\n    \"attachment\": {\n      \"type\": \"AUDIO\",\n      \"url\": \"https://cdn.sprinklr.com/qa6/media/test_audio.mp3\",\n      \"title\": \"Voice Note\"\n    }\n  }\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example--send-base64-attachment","__idx":16},"children":["Example — Send BASE64 Attachment"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request POST 'https://api3.sprinklr.com/{env}/api/v3/sourceAgnostic?accountId=66122694' \\\n--header 'Authorization: Bearer <token>' \\\n--header 'Content-Type: application/json' \\\n--data '{\n  \"messageId\": \"br_test_base64_1\",\n  \"conversationId\": \"br_test_conversation_base64\",\n  \"senderProfile\": { \"id\": \"918410614581\" },\n  \"receiverProfile\": { \"id\": \"19283994232\" },\n  \"content\": {\n    \"text\": \"This is a test message with base64 image\",\n    \"attachment\": {\n      \"type\": \"BASE64\",\n      \"base64EncodedContent\": \"<base64-string>\",\n      \"fileName\": \"Test_image.jpg\",\n      \"title\": \"Base64 Image\",\n      \"description\": \"Converted image attachment\"\n    }\n  }\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example--send-multimedia-attachment","__idx":17},"children":["Example — Send Multimedia Attachment"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request POST 'https://api3.sprinklr.com/{env}/api/v3/sourceAgnostic?accountId=66122694' \\\n--header 'Authorization: Bearer <token>' \\\n--header 'Content-Type: application/json' \\\n--data '{\n  \"messageId\": \"br_test_multi_1\",\n  \"conversationId\": \"br_test_conversation_multi\",\n  \"senderProfile\": { \"id\": \"918410614581\" },\n  \"receiverProfile\": { \"id\": \"19283994232\" },\n  \"content\": {\n    \"text\": \"Testing multiple attachments\",\n    \"attachment\": {\n      \"type\": \"MULTI_MEDIA\",\n      \"attachments\": [\n        {\n          \"type\": \"DOC\",\n          \"url\": \"https://cdn.sprinklr.com/qa6/media/test_doc1.pdf\",\n          \"title\": \"Test Doc 1\",\n          \"mimeType\": \"application/pdf\"\n        },\n        {\n          \"type\": \"DOC\",\n          \"url\": \"https://cdn.sprinklr.com/qa6/media/test_doc2.pdf\",\n          \"title\": \"Test Doc 2\",\n          \"mimeType\": \"application/pdf\"\n        }\n      ]\n    }\n  }\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example--enrich-case-and-message-custom-properties","__idx":18},"children":["Example — Enrich Case and Message Custom Properties"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request POST 'https://api3.sprinklr.com/{env}/api/v3/sourceAgnostic?accountId=66122694' \\\n--header 'Authorization: Bearer <token>' \\\n--header 'Content-Type: application/json' \\\n--data '{\n  \"messageId\": \"br_test_properties_1\",\n  \"conversationId\": \"br_test_conversation_properties\",\n  \"senderProfile\": { \"id\": \"19283994233\" },\n  \"receiverProfile\": { \"id\": \"91841061431\" },\n  \"content\": { \"text\": \"Test message\" },\n  \"messageProperties\": {\n    \"_c_63fdcfded4572f6e1021beff\": [ \"Test1\" ]\n  },\n  \"conversationProperties\": {\n    \"_c_63fdcfded4572f6e1021beff\": [ \"Test2\" ]\n  }\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example--send-html-content","__idx":19},"children":["Example — Send HTML Content"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request POST 'https://api3.sprinklr.com/{env}/api/v3/sourceAgnostic?accountId=66122694' \\\n--header 'Authorization: Bearer <token>' \\\n--header 'Content-Type: application/json' \\\n--data '{\n  \"messageId\": \"br_test_html_2\",\n  \"conversationId\": \"shamyak_test_1_1004\",\n  \"senderProfile\": { \"id\": \"19283994233\" },\n  \"receiverProfile\": { \"id\": \"91841061431\" },\n  \"content\": {\n    \"text\": \"<div style=\\\\\\\"border:1px solid #ccc; padding:10px;\\\\\\\">\\\\n<p style=\\\\\\\"text-align:center;\\\\\\\"><b>Need assistance?</b> Fill out our <a href=\\\\\\\"https://forms.office.com/r/5wTBFPQ7DC\\\\\\\">feedback form</a>.</p>\\\\n</div>\",\n    \"isRichText\": true\n  }\n}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"42-update-message-status","__idx":20},"children":["4.2 Update Message Status"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/sourceAgnostic?accountId={id}&conversationId={id}&messageId={id}&status={value}"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Updates the status of a message already imported into Sprinklr."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-parameters","__idx":21},"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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Parameter"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required / Optional"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Required / Optional"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Type"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["accountId"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unique identifier for the Source Agnostic account. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"You can get the account ID from the Sprinklr UI (see steps below)."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["conversationId"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unique identifier that the brand generates each time a new conversation (composed of several messages) is created within Sprinklr. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"When sending messages within the same conversation, the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["conversationId"]}," should remain the same. Passing a new ID will create a new case."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["messageId"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unique identifier of the message whose status you want to update. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Dev Notes:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messageId = sourceType + \"_\" + sourceId + \"_\" + ChannelCreatedTime + \"_\" + ChannelType + \"_\" + MessageType + \"_\" + channelMessageId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["status"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["New status to assign to the message. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Valid values:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sent"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["delivered"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["read"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["failed"]},". ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Dev Notes:"]}," Status updates apply only to existing brand messages and are limited to a single message per request."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["errorMessage"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Optional"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Brief description explaining the reason for message failure."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"steps-to-extract-message-id-from-sprinklr-ui","__idx":22},"children":["Steps to Extract Message ID from Sprinklr UI"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To find the message ID in the Sprinklr UI:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Care Console"]},", open the relevant case."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Double‑click the message whose status you want to update."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click on ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Properties"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ID"]}," field, the message ID is the value following the prefix ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PID_"]},"."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Example:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"If the ID field shows ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PID_123456789"]},", then the message ID is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["123456789"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example-request","__idx":23},"children":["Example Request"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request PATCH 'https://api3.sprinklr.com/{env}/api/v3/sourceAgnostic?accountId=66122694&conversationId=shamyak_test_1_1004&messageId=shamyak_test_1_104&status=read' \\\n--header 'Authorization: Bearer {token}' \\\n--header 'Content-Type: application/json'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"5-delete-operations","__idx":24},"children":["5. Delete Operations"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"51-delete-a-conversation","__idx":25},"children":["5.1 Delete a Conversation"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE /api/v3/sourceAgnostic?conversationId={id}"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Deletes a conversation and all associated messages and case data. This action is irreversible."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-parameter-1","__idx":26},"children":["Query Parameter"]},{"$$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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Parameter"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required/Optional"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Required/Optional"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Type"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["conversationId"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unique identifier of the conversation to be deleted. Deleting a conversation removes all associated messages and case data."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"example-request-1","__idx":27},"children":["Example Request"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl --location --request DELETE 'https://api3.sprinklr.com/{env}/api/v3/sourceAgnostic?conversationId=br_test_conversation_video' \\\n--header 'Authorization: Bearer {Access Token}' \\\n--header 'Content-Type: application/json'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"6-response-format-and-status-codes","__idx":28},"children":["6. Response format and status codes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All Source Agnostic API responses return a consistent envelope:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"data\": Object | String | Boolean,\n  \"errors\": []\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"envelope-fields","__idx":29},"children":["Envelope Fields"]},{"$$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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Field"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Type"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["data"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Object / String / Boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Response payload. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"Examples: case ID (string), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["true"]}," for status update success, or object details."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["errors"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Array"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["List of error messages (empty if none)."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"example--send-message-response","__idx":30},"children":["Example — Send Message Response"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"data\": \"120119884\",\n  \"errors\": []\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"example--update-status-response","__idx":31},"children":["Example — Update Status Response"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"data\": true,\n  \"errors\": []\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"example--delete-conversation-response","__idx":32},"children":["Example — Delete Conversation Response"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"200 OK\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"62-response-codes","__idx":33},"children":["6.2 Response codes"]},{"$$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":["Profiles found and returned successfully"]}]},{"$$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 or invalid parameter combinations"]}]},{"$$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":["User lacks ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["VIEW"]}," permission for ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AUDIENCE_PROFILE"]}]}]},{"$$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 Profiles Found"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No profiles match the search criteria"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["500 Internal Server Error"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Server Error"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unexpected server-side error occurred"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"7-migration-from-v2-to-v3","__idx":34},"children":["7. Migration from V2 to V3"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Source Agnostic APIs have been redesigned in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["V3"]}," for consistency, clarity, and improved lifecycle control.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},"Below is a comparison of ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["V2 vs V3 endpoints and behavior"]},":"]},{"$$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":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Operation"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V2 Endpoint"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["V2 Endpoint"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"V3 Endpoint"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["V3 Endpoint"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Key Differences"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Key Differences"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Send Message"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v2/source-agnostic/{accountId}/send"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v3/sourceAgnostic?accountId={id}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["V2 used path parameter for accountId; V3 uses query parameter."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Update Status"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v2/source-agnostic/{accountId}/updateStatus"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PATCH /api/v3/sourceAgnostic?accountId={id}&conversationId={id}&messageId={id}&status={value}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["V2 used POST with accountId in path; V3 uses PATCH with query parameters for granular control."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Close Conversation"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /api/v2/source-agnostic/closeConversation?conversationId={conversationId}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["DELETE /api/v3/sourceAgnostic?conversationId={id}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["V2 used POST; V3 uses DELETE for proper REST semantics."]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]}]},"headings":[{"value":"Source Agnostic API V3 — Developer Guide","id":"source-agnostic-api-v3--developer-guide","depth":1},{"value":"1. Overview","id":"1-overview","depth":2},{"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 Send a Source Agnostic Message","id":"41-send-a-source-agnostic-message","depth":3},{"value":"Query Parameter","id":"query-parameter","depth":4},{"value":"Steps to Extract Account ID from Sprinklr UI","id":"steps-to-extract-account-id-from-sprinklr-ui","depth":4},{"value":"Request Parameters","id":"request-parameters","depth":4},{"value":"SenderProfile / ReceiverProfile Object","id":"senderprofile--receiverprofile-object","depth":4},{"value":"Attachment Object","id":"attachment-object","depth":4},{"value":"Example Request — Text Message","id":"example-request--text-message","depth":4},{"value":"Example — Send Image Attachment","id":"example--send-image-attachment","depth":4},{"value":"Example — Send Video Attachment","id":"example--send-video-attachment","depth":4},{"value":"Example — Send Document Attachment","id":"example--send-document-attachment","depth":4},{"value":"Example — Send Audio Attachment","id":"example--send-audio-attachment","depth":4},{"value":"Example — Send BASE64 Attachment","id":"example--send-base64-attachment","depth":4},{"value":"Example — Send Multimedia Attachment","id":"example--send-multimedia-attachment","depth":4},{"value":"Example — Enrich Case and Message Custom Properties","id":"example--enrich-case-and-message-custom-properties","depth":4},{"value":"Example — Send HTML Content","id":"example--send-html-content","depth":4},{"value":"4.2 Update Message Status","id":"42-update-message-status","depth":3},{"value":"Query Parameters","id":"query-parameters","depth":4},{"value":"Steps to Extract Message ID from Sprinklr UI","id":"steps-to-extract-message-id-from-sprinklr-ui","depth":4},{"value":"Example Request","id":"example-request","depth":4},{"value":"5. Delete Operations","id":"5-delete-operations","depth":2},{"value":"5.1 Delete a Conversation","id":"51-delete-a-conversation","depth":3},{"value":"Query Parameter","id":"query-parameter-1","depth":4},{"value":"Example Request","id":"example-request-1","depth":4},{"value":"6. Response format and status codes","id":"6-response-format-and-status-codes","depth":2},{"value":"Envelope Fields","id":"envelope-fields","depth":3},{"value":"Example — Send Message Response","id":"example--send-message-response","depth":3},{"value":"Example — Update Status Response","id":"example--update-status-response","depth":3},{"value":"Example — Delete Conversation Response","id":"example--delete-conversation-response","depth":3},{"value":"6.2 Response codes","id":"62-response-codes","depth":3},{"value":"7. Migration from V2 to V3","id":"7-migration-from-v2-to-v3","depth":2}],"frontmatter":{"seo":{"title":"Source Agnostic API V3 — Developer Guide"}},"lastModified":"2026-10-12T04:13:20.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/developer-guides-v3/source-agnostic-api-v3","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}