Skip to content

Source Agnostic

Generate signed URLs for secure access to stored content. Supports a signed URL for a single asset and bulk signed URL generation.

Send a source-agnostic message (same behavior as legacy POST .../send).

Request

Security
bearerAuth and apiKeyAuth
Query
accountIdinteger, (int64)

Account id

Bodyapplication/jsonrequired
idstring
messageIdstringrequired

Message Id

senderProfileobject(SourceAgnosticProfile)required

Profile of Sender

receiverProfileobject(SourceAgnosticProfile)required

Profile of Receiver

contentobject(Content)

Content of Message

timeStampstring

TimeStamp of Message when it was created

conversationIdstringrequired

Conversation Id where this message is associated

channelCustomPropertiesobject

Field to store custom properties related to message

brandMessageboolean

flag to determine if it is a brand message

inReplyToMessageIdstring
conversationPropertiesobject

Properties of Case

messagePropertiesobject

Properties of Message

umKeyobject(UniversalMessageKey)
proxyEventMessageboolean
additionalInfoobject
additionalobject
curl -i -X POST \
  'https://api3.sprinklr.com/prod/api/v3/sourceAgnostic?accountId=0' \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "id": "string",
    "messageId": "string",
    "senderProfile": {
      "id": "string",
      "screenName": "string",
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "email": "string",
      "phoneNo": "string",
      "profileURL": "string",
      "profileImageURL": "string",
      "properties": {
        "property1": [
          "string"
        ],
        "property2": [
          "string"
        ]
      },
      "brandProfile": true,
      "lastPMTime": {}
    },
    "receiverProfile": {
      "id": "string",
      "screenName": "string",
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "email": "string",
      "phoneNo": "string",
      "profileURL": "string",
      "profileImageURL": "string",
      "properties": {
        "property1": [
          "string"
        ],
        "property2": [
          "string"
        ]
      },
      "brandProfile": true,
      "lastPMTime": {}
    },
    "content": {
      "title": "string",
      "titleHash": "string",
      "text": "string",
      "textHash": "string",
      "richText": "string",
      "postbackPayload": "string",
      "attachment": {
        "type": "IMAGE",
        "assetId": "string",
        "attachmentOptions": [
          {
            "channelType": "FACEBOOK",
            "accountId": 0,
            "embeddable": true,
            "category": "string",
            "noStory": true,
            "secret": true,
            "blockSocialActions": true,
            "expirationEnabled": true,
            "expirationDate": 0,
            "deletePost": true
          }
        ],
        "url": "string",
        "urlHash": "string",
        "title": "string",
        "description": "string",
        "previewUrl": "string",
        "hashedPreviewUrl": "string",
        "mimeType": "string",
        "alternateText": "string",
        "height": 0.1,
        "width": 0.1,
        "encryptedUrl": "string",
        "sizeInBytes": 0
      },
      "templateId": "string",
      "isRichText": true
    },
    "timeStamp": "string",
    "conversationId": "string",
    "channelCustomProperties": {
      "property1": [
        "string"
      ],
      "property2": [
        "string"
      ]
    },
    "brandMessage": true,
    "inReplyToMessageId": "string",
    "conversationProperties": {
      "property1": [
        "string"
      ],
      "property2": [
        "string"
      ]
    },
    "messageProperties": {
      "property1": [
        "string"
      ],
      "property2": [
        "string"
      ]
    },
    "umKey": {
      "universalMessageId": "string",
      "snType": "string",
      "msgType": 0,
      "snMsgId": "string",
      "sourceId": 0,
      "sourceType": "ACCOUNT",
      "snCreatedTimeYearMonth": "string",
      "snCreatedTime": 0,
      "hashedUniversalMessageId": {},
      "additional": {
        "property1": "string",
        "property2": "string"
      }
    },
    "proxyEventMessage": true,
    "additionalInfo": {
      "property1": {},
      "property2": {}
    },
    "additional": {
      "property1": "string",
      "property2": "string"
    }
  }'

Responses

Success

Bodyapplication/json
string(AssigneeType)
Response
"string"