Skip to content

Prediction API for intuition intent tasks

Request

Security
bearerAuth and apiKeyAuth
Bodyapplication/jsonrequired
idobject

Unresolved type (transientString)

textstring

Input text

languagestring

Language of the text, default to en

engineKeystringrequired

Engine key

resourceURLstring

Publicly accessible resource URL

detailsobject

Additional Details

curl -i -X POST \
  https://api3.sprinklr.com/prod/api/v3/intuition/intent/predict \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "id": {},
    "text": "string",
    "language": "string",
    "engineKey": "string",
    "resourceURL": "string",
    "details": {
      "property1": "string",
      "property2": "string"
    }
  }'

Responses

Success

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