- Applies to: Sprinklr Intuition APIs (
/api/v3/intuition)
Sprinklr Intuition APIs run machine-learning predictions and classifications against text or publicly accessible resources. The APIs support single-item and batch requests for text classification, location insights, product insights, intent detection, and visual detection.
A single prediction request is an object containing an engineKey and the input required by that engine. A batch request is an array of the same request objects.
| Operation | Method | Path |
|---|---|---|
| Text prediction | POST | /api/v3/intuition/text/predict |
| Batch text prediction | POST | /api/v3/intuition/text/batch-predict |
| Location Insights prediction | POST | /api/v3/intuition/location-insights/predict |
| Batch Location Insights prediction | POST | /api/v3/intuition/location-insights/batch-predict |
| Product Insights prediction | POST | /api/v3/intuition/product-insights/predict |
| Batch Product Insights prediction | POST | /api/v3/intuition/product-insights/batch-predict |
| Intent prediction | POST | /api/v3/intuition/intent/predict |
| Batch Intent prediction | POST | /api/v3/intuition/intent/batch-predict |
| Visual prediction | POST | /api/v3/intuition/visual/predict |
| Batch Visual prediction | POST | /api/v3/intuition/visual/batch-predict |
Single endpoints accept one request object. Batch endpoints accept an array of request objects. Each request identifies the model or task through engineKey and supplies text, resourceURL, or other engine-specific input.
All documented endpoints use the following base URL:
https://api3.sprinklr.com/api/v3The Intuition resource is:
https://api3.sprinklr.com/api/v3/intuitionInclude a valid API V3 bearer token. The selected engineKey must identify an available Intuition engine.
| Header | Value | Description | Required on |
|---|---|---|---|
Authorization | Bearer <accessToken> | Authenticates the caller. | All requests |
Content-Type | application/json | Indicates a JSON request body. | All documented POST requests |
Accept | application/json | Requests a JSON response. | Recommended |
Do not publish, commit, or log real access tokens.
| Parameter | Sub-parameter | Type | Required | Description |
|---|---|---|---|---|
| Root object | text | String | No | Input text to classify or analyze. Required for text-based engines. |
| Root object | language | String | No | Language of the input text. Defaults to en. |
| Root object | engineKey | String | Yes | Engine key identifying the machine-learning model or task. |
| Root object | resourceURL | String | No | Publicly accessible resource URL. Required for engines that use a URL instead of inline content. |
| Root object | details | Object<String, String> | No | Additional key-value metadata passed to the engine. |
details | Dynamic key-value pair | String | No | Engine-specific metadata. |
| Parameter | Sub-parameter | Type | Required | Description |
|---|---|---|---|---|
| Root | N/A | Array | Yes | Collection of prediction request objects. |
[] | text | String | No | Input text to classify or analyze. Required for text-based engines. |
[] | language | String | No | Language of the input text. Defaults to en. |
[] | engineKey | String | Yes | Engine key identifying the machine-learning model or task. |
[] | resourceURL | String | No | Publicly accessible resource URL. Required for URL-based engines. |
[] | details | Object<String, String> | No | Additional key-value metadata passed to the engine. |
POST /api/v3/intuition/text/predictSubmits text or another supported resource for machine-learning prediction or classification.
Uses the common single-request fields.
curl --location 'https://api3.sprinklr.com/api/v3/intuition/text/predict' \
--header 'Authorization: Bearer <accessToken>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"engineKey": "sentiment-en",
"text": "I love this product!"
}'HTTP/1.1 204 No ContentThe source document records 204 No Content for this operation and provides no response body or response-parameter schema.
POST /api/v3/intuition/text/batch-predictRuns text predictions for multiple request objects in one API call. Each array item follows the Text Predict request model.
Uses the common batch-request fields.
curl --location 'https://api3.sprinklr.com/api/v3/intuition/text/batch-predict' \
--header 'Authorization: Bearer <accessToken>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '[
{ "engineKey": "sentiment-en", "text": "Great service!" },
{ "engineKey": "sentiment-en", "text": "Terrible experience." }
]'[
{
"engineKey": "sentiment-en",
"text": "Love it",
"language": "en"
},
{
"engineKey": "topic-classifier",
"text": "Shipping delay",
"details": {
"channel": "twitter"
}
}
]| Parameter | Type | Required | Description | Sub-parameters |
|---|---|---|---|---|
data | Array | Yes | Array of text-prediction result objects. | data[].input, data[].response |
data[].input | Object | Yes | Echo of the corresponding request element. | Request-specific fields |
data[].response | Object | Yes | Text-prediction response. | classDetails |
data[].response.classDetails | Array | No | Detected classification details. | label, confidence, additional |
label | String | No | Detected category label. | None |
confidence | Number | No | Prediction confidence between 0 and 1. | None |
additional | Object<String, String> | No | Engine-specific metadata. | Dynamic key-value pairs |
{
"data": [
{
"input": {
"engineKey": "sentiment-en",
"text": "Great service!"
},
"response": {
"classDetails": [
{ "label": "Positive", "confidence": 0.91 }
]
}
},
{
"input": {
"engineKey": "sentiment-en",
"text": "Terrible experience."
},
"response": {
"classDetails": [
{ "label": "Negative", "confidence": 0.88 }
]
}
}
]
}| Status | Condition | Description |
|---|---|---|
200 | Success | Returns an array of text-prediction result objects. |
400 | Invalid request | Null body, null array element, validation failure, or invalid engineKey. |
500 | Server error | Internal classification or downstream-service failure. |
- Each request element is validated independently.
- A null element at any array index returns HTTP
400. - Results are correlated with inputs through server-assigned internal IDs.
POST /api/v3/intuition/location-insights/predictAnalyzes unstructured text and returns detected location categories, subjects, sentiments, and phrase-level details.
None.
None.
Uses the common single-request fields.
curl --location 'https://api3.sprinklr.com/api/v3/intuition/location-insights/predict' \
--header 'Authorization: Bearer <accessToken>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"engineKey": "location-insights-en",
"text": "The store in downtown Chicago was amazing."
}'{
"engineKey": "location-insights-en",
"text": "Visited the Paris flagship store.",
"language": "en"
}| Parameter | Type | Required | Description | Sub-parameters |
|---|---|---|---|---|
data | Object | Yes | Single location-insight result. | input, response |
data.input | Object | Yes | Echo of the request input. The server assigns an internal ID. | text, language, engineKey, resourceURL, details |
data.response | Array<Object> | No | Detected location-insight phrase details. | category, subject, sentiment, additional |
category | Object | No | Detected location-category phrase. | name, start, end, phrase, confidence |
subject | Object | No | Detected location-subject phrase. | name, start, end, phrase, confidence |
sentiment | Object | No | Detected sentiment phrase. | name, start, end, phrase, confidence |
additional | Object<String, String> | No | Engine-specific metadata. | Dynamic key-value pairs |
name | String | No | Category name for the detected phrase. | None |
start | Integer | No | Starting character position. | None |
end | Integer | No | Ending character position. | None |
phrase | String | No | Detected phrase text. | None |
confidence | Number | No | Prediction confidence between 0 and 1. | None |
{
"data": {
"input": {
"engineKey": "location-insights-en",
"text": "The store in downtown Chicago was amazing.",
"language": "en"
},
"response": [
{
"category": {
"name": "Location Experience",
"start": 4,
"end": 29,
"phrase": "store in downtown Chicago",
"confidence": 0.91
},
"sentiment": {
"name": "Positive",
"start": 34,
"end": 41,
"phrase": "amazing",
"confidence": 0.95
}
}
]
}
}| Status | Condition | Description |
|---|---|---|
200 | Success | Returns one location-insight result object. |
400 | Invalid request | Null body, null list element, validation failure, or invalid engineKey. |
500 | Server error | Internal classification or downstream-service failure. |
POST /api/v3/intuition/location-insights/batch-predictRuns Location Insights predictions for multiple request objects in one API call.
Uses the common batch-request fields.
curl --location 'https://api3.sprinklr.com/api/v3/intuition/location-insights/batch-predict' \
--header 'Authorization: Bearer <accessToken>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '[
{ "engineKey": "location-insights-en", "text": "Great store in NYC." },
{ "engineKey": "location-insights-en", "text": "Poor service in London." }
]'The batch response uses the same phrase-detail objects as the single response, but data is an array.
| Parameter | Type | Required | Description | Sub-parameters |
|---|---|---|---|---|
data | Array | Yes | Array of location-insight result objects. | data[].input, data[].response |
data[].input | Object | Yes | Echo of the request input. | Common request fields |
data[].response | Array<Object> | No | Detected phrase details. | category, subject, sentiment, additional |
category | Object | No | Location-category phrase. | name, start, end, phrase, confidence |
subject | Object | No | Location-subject phrase. | name, start, end, phrase, confidence |
sentiment | Object | No | Sentiment phrase. | name, start, end, phrase, confidence |
{
"data": [
{
"input": {
"engineKey": "location-insights-en",
"text": "Great store in NYC."
},
"response": [
{
"category": {
"name": "Location Experience",
"phrase": "store in NYC"
},
"sentiment": {
"name": "Positive",
"phrase": "Great"
}
}
]
},
{
"input": {
"engineKey": "location-insights-en",
"text": "Poor service in London."
},
"response": [
{
"subject": {
"name": "Service",
"phrase": "service"
},
"sentiment": {
"name": "Negative",
"phrase": "Poor"
}
}
]
}
]
}| Status | Condition | Description |
|---|---|---|
200 | Success | Returns an array of location-insight results. |
400 | Invalid request | Null body, null list element, validation failure, or invalid engineKey. |
500 | Server error | Internal classification or downstream-service failure. |
POST /api/v3/intuition/product-insights/predictIdentifies product categories, brands, sentiment, and phrase-level insight details, including hierarchical product categorization.
Uses the common single-request fields.
curl --location 'https://api3.sprinklr.com/api/v3/intuition/product-insights/predict' \
--header 'Authorization: Bearer <accessToken>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"engineKey": "product-insights-en",
"text": "The new iPhone camera is incredible but battery life is poor."
}'| Parameter | Type | Required | Description | Sub-parameters |
|---|---|---|---|---|
data | Object | Yes | Single product-insight result. | input, response |
input | Object | Yes | Echo of the request input. | Common request fields |
response | Array | Yes | Prediction output. | category, brand, sentiment, additional |
category | Object | No | Product-category phrase with hierarchy. | name, start, end, phrase, confidence, l1, l2, l3 |
brand | Object | No | Detected brand phrase. | name, start, end, phrase, confidence |
sentiment | Object | No | Detected sentiment phrase. | name, start, end, phrase, confidence |
additional | Object | No | Engine-specific metadata. | Dynamic key-value pairs |
l1 | String | No | Level-1 product category. | None |
l2 | String | No | Level-2 product category. | None |
l3 | String | No | Level-3 product category. | None |
{
"data": {
"input": {
"engineKey": "product-insights-en"
},
"response": [
{
"category": {
"name": "Smartphones",
"l1": "Electronics"
},
"brand": {
"name": "Apple"
},
"sentiment": {
"name": "Mixed"
}
}
]
}
}| Status | Condition | Description |
|---|---|---|
200 | Success | Returns a product-insight result object. |
400 | Invalid request | Null request body or invalid engineKey. |
500 | Server error | Internal classification or downstream-service failure. |
POST /api/v3/intuition/product-insights/batch-predictRuns Product Insights predictions for multiple text inputs in one API call.
Uses the common batch-request fields.
curl --location 'https://api3.sprinklr.com/api/v3/intuition/product-insights/batch-predict' \
--header 'Authorization: Bearer <accessToken>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '[
{ "engineKey": "product-insights-en", "text": "Love the Nike shoes." },
{ "engineKey": "product-insights-en", "text": "Samsung TV has great picture." }
]'HTTP/1.1 200 SuccessThe source document specifies a successful HTTP 200 response but does not provide the response body or a response-parameter table for this operation.
POST /api/v3/intuition/intent/predictIdentifies user intent, categorization details, and phrase-level insights using the selected intent-classification engine.
Uses the common single-request fields.
curl --location 'https://api3.sprinklr.com/api/v3/intuition/intent/predict' \
--header 'Authorization: Bearer <accessToken>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"engineKey": "intent-classifier",
"text": "I want to cancel my subscription"
}'HTTP/1.1 200 SuccessThe source document specifies a successful HTTP 200 response but does not provide the response body or a response-parameter table for this operation.
POST /api/v3/intuition/intent/batch-predictRuns intent predictions for multiple text inputs in one request.
Uses the common batch-request fields.
curl --location 'https://api3.sprinklr.com/api/v3/intuition/intent/batch-predict' \
--header 'Authorization: Bearer <accessToken>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '[
{
"engineKey": "intent-classifier",
"text": "I want to cancel my subscription"
},
{
"engineKey": "intent-classifier",
"text": "How do I update my billing information?"
}
]'HTTP/1.1 200 SuccessThe source document specifies a successful HTTP 200 response but does not provide the response body or a response-parameter table for this operation.
POST /api/v3/intuition/visual/predictRuns image-based prediction using a public resource URL and an engine key. The operation is described as returning detected visual entities, confidence scores, and bounding-box information.
Uses the common single-request fields. resourceURL is required for image or visual engines that operate on a resource URL.
curl --location 'https://api3.sprinklr.com/api/v3/intuition/visual/predict' \
--header 'Authorization: Bearer <accessToken>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"engineKey": "logo-detection",
"resourceURL": "https://example.com/banner.jpg",
"language": "en"
}'HTTP/1.1 200 SuccessThe source document specifies a successful HTTP 200 response but does not provide the response body or response-parameter table.
POST /api/v3/intuition/visual/batch-predictRuns visual predictions for multiple image inputs in one request.
Uses the common batch-request fields. resourceURL is required for visual engines that operate on images.
curl --location 'https://api3.sprinklr.com/api/v3/intuition/visual/batch-predict' \
--header 'Authorization: Bearer <accessToken>' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '[
{
"engineKey": "logo-detection",
"resourceURL": "https://example.com/img1.jpg"
},
{
"engineKey": "logo-detection",
"resourceURL": "https://example.com/img2.jpg"
}
]'HTTP/1.1 200 SuccessThe source document specifies a successful HTTP 200 response but does not provide the response body or response-parameter table.
The documented Location Insights and Product Insights single operations use a data object containing the echoed input and prediction response.
{
"data": {
"input": {},
"response": []
}
}The documented Text and Location Insights batch operations return a data array.
{
"data": [
{
"input": {},
"response": {}
}
]
}The exact shape of response is engine-specific. Text prediction uses classDetails; Location Insights uses phrase-detail objects; Product Insights uses category, brand, and sentiment objects.
The following codes are explicitly documented for the APIs that include status-code tables.
| HTTP code | Scenario | Description |
|---|---|---|
200 OK | Success | Returns the documented prediction result or result array. |
204 No Content | Text Predict source example | The request succeeds without a response body. |
400 Bad Request | Invalid request | Null body or list element, validation failure, or invalid engineKey, depending on the operation. |
500 Internal Server Error | Server error | Internal classification or downstream-service failure. |
The source does not provide an error payload schema. Do not add one without confirming it against the service contract or OpenAPI specification.
- Use a supported
engineKeyfor the prediction task. - Supply
textfor text-based engines. - Supply a publicly accessible
resourceURLfor URL-based visual engines. - Batch payloads must be arrays of request objects.
- For Batch Text Predict, each array element is validated independently, and a null element returns HTTP
400. - Batch Text Predict results are correlated with inputs through server-assigned internal IDs.
confidencevalues documented in Text and Location Insights responses range from 0 to 1.- Character offsets are represented by
startandendin phrase-level results. - Product categories may include the
l1,l2, andl3hierarchy fields.
Use Text Predict for one input or Batch Text Predict for multiple inputs. Select an engine such as sentiment-en or another available text-classification engine.
Use Location Insights to identify location-related categories, subjects, sentiments, phrases, positions, and confidence values.
Use Product Insights to identify product categories, category hierarchy, brands, and sentiment from customer text.
Use Intent Predict to classify the purpose of a customer statement, such as cancellation or billing-information requests.
Use Visual Predict with a publicly accessible image URL and an available visual engine such as logo-detection.
Use the corresponding batch endpoint when you need to submit multiple text or image inputs in one request.
- Confirm that every
engineKeyused in an example is available in the target environment. - Confirm the
204 No Contentbehavior documented for Text Predict against the service contract. - Add missing response bodies and response schemas for Product Insights Batch, Intent, and Visual APIs only after validating them against the OpenAPI specification or an observed production-safe response.
- Confirm whether the production base URL requires an environment segment for the target deployment.
- Keep access tokens and other credentials out of published examples.
- Replace example resource URLs with safe, publicly accessible samples where needed.
- Validate all cURL examples before publication.
All payloads in this guide are illustrative. Credentials and identifiers are placeholders and must not be committed or logged.