Security
bearerAuth and apiKeyAuth
- Production Serverhttps://api3.sprinklr.com/prod/api/v3/sourceAgnostic
- Mock serverhttps://developer.sprinklr.com/_mock/apis/sprinklr-v3/sourceAgnostic
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"
}
}'