Security
bearerAuth and apiKeyAuth
- Production Serverhttps://api3.sprinklr.com/prod/api/v3/task
- Mock serverhttps://developer.sprinklr.com/_mock/apis/sprinklr-v3/task
curl -i -X POST \
https://api3.sprinklr.com/prod/api/v3/task \
-H 'Authorization: Bearer <YOUR_Token_HERE>' \
-H 'Content-Type: application/json' \
-H 'Key: YOUR_API_KEY_HERE' \
-d '{
"assignment": {
"assigneeId": "string",
"assigneeType": "string",
"assignedById": 0,
"assignmentTime": 0
},
"taskType": "string",
"taskStatus": "string",
"title": "string",
"description": "string",
"assetId": "string",
"assetType": "string",
"dueDate": 0,
"customProperties": {
"property1": [
"string"
],
"property2": [
"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
},
"subscribers": [
{
"type": "string",
"ids": [
"string"
]
}
],
"queueIds": [
"string"
],
"parentTaskId": "string"
}'Success
Response
{ "id": "string", "assignment": { "assigneeId": "string", "assigneeType": "string", "assignedById": 0, "assignmentTime": 0 }, "taskType": "string", "taskStatus": "string", "title": "string", "description": "string", "assetId": "string", "assetType": "string", "parentTaskId": "string", "completionDate": 0, "dueDate": 0, "customProperties": { "property1": [ … ], "property2": [ … ] }, "inactive": true, "nextTaskId": "string", "attachment": { "type": "IMAGE", "assetId": "string", "attachmentOptions": [ … ], "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 }, "subscribers": [ { … } ], "queueDetails": [ { … } ], "createdTime": 0, "modifiedTime": 0, "workFlowState": { "executionTokenId": "string", "processVariables": { … } }, "externalCases": [ { … } ] }