Skip to content

Data Ingestion

Submit data ingestion tasks that load external data into the platform.

Submit a data ingestion task

Request

Security
bearerAuth and apiKeyAuth
Bodyapplication/jsonrequired
idstring
ingestionTaskIdstring

Existing ingestion task id to continue or reference

statusstring

Status of ingestion for task

typestringrequired

Type of ingestion

namestringrequired

Unique task name

fileNamestringrequired

Name of the file

fileUrlstringrequired

URL of file to load data

importTagstring

Tag for filtering

templateNamestringrequired

Name of template to use for ingestion

callbackUrlstringrequired

Callback URL to receive notification on success

callbackUrlHeadersobject

Callback URL headers

callbackTypestring

Type of callback to use

identifierFieldsobject

Unique identifiers to fetch existing data instead of sprinklr identifiers

externalSourceTypestring

Type of external source

credentialsIdstring

Credentials id

additionalobject

Additional information for task

curl -i -X POST \
  https://api3.sprinklr.com/prod/api/v3/dataIngestion/ingest \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "id": "string",
    "ingestionTaskId": "string",
    "status": "string",
    "type": "string",
    "name": "string",
    "fileName": "string",
    "fileUrl": "string",
    "importTag": "string",
    "templateName": "string",
    "callbackUrl": "string",
    "callbackUrlHeaders": {
      "property1": "string",
      "property2": "string"
    },
    "callbackType": "string",
    "identifierFields": {
      "property1": [
        "string"
      ],
      "property2": [
        "string"
      ]
    },
    "externalSourceType": "string",
    "credentialsId": "string",
    "additional": {
      "property1": {},
      "property2": {}
    }
  }'

Responses

Success

Bodyapplication/json
dataobject
errorsArray of objects(Error)
metadataobject(ResponseMetadata)
Response
{ "data": {}, "errors": [ { … } ], "metadata": {} }