{ "opencollection": "1.0.0", "info": { "name": "Salesforce Einstein Bots AI Record Insights Predictions API", "version": "58.0.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://login.salesforce.com/services/oauth2/authorize", "accessTokenUrl": "https://login.salesforce.com/services/oauth2/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Predictions", "type": "folder" }, "items": [ { "info": { "name": "Salesforce Einstein Make a prediction", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}.salesforce.com/services/data/v58.0/wave/prediction", "body": { "type": "json", "data": "{}" } }, "docs": "Makes a prediction using an Einstein Discovery model. Provide the model ID and input field values to receive a prediction with explanatory factors." }, { "info": { "name": "Salesforce Einstein Analyze sentiment", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}.salesforce.com/services/data/v58.0/sentiment", "body": { "type": "multipart-form", "data": [ { "name": "modelId", "type": "text", "value": "" }, { "name": "document", "type": "text", "value": "" }, { "name": "numResults", "type": "text", "value": "" } ] } }, "docs": "Analyzes the sentiment of the given text. Use the pre-built CommunitySentiment model or a custom-trained sentiment model." }, { "info": { "name": "Salesforce Einstein Detect intent", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}.salesforce.com/services/data/v58.0/intent", "body": { "type": "multipart-form", "data": [ { "name": "modelId", "type": "text", "value": "" }, { "name": "document", "type": "text", "value": "" }, { "name": "numResults", "type": "text", "value": "" } ] } }, "docs": "Detects the intent of the given text. Requires a custom-trained intent model." }, { "info": { "name": "Salesforce Einstein List predictions for a definition", "type": "http" }, "http": { "method": "GET", "url": "https://{instance}.salesforce.com/services/data/v58.0/einstein/prediction-definitions/:predictionDefinitionId/predictions", "params": [ { "name": "predictionDefinitionId", "value": "", "type": "path", "description": "Unique identifier for the prediction definition." }, { "name": "recordId", "value": "", "type": "query", "description": "Filter predictions by Salesforce record ID." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of predictions to return." }, { "name": "offset", "value": "", "type": "query", "description": "Offset for pagination." } ] }, "docs": "Returns prediction results for a given prediction definition." }, { "info": { "name": "Salesforce Einstein Make a prediction", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}.salesforce.com/services/data/v58.0/predict", "body": { "type": "multipart-form", "data": [ { "name": "modelId", "type": "text", "value": "" }, { "name": "sampleLocation", "type": "text", "value": "" }, { "name": "sampleContent", "type": "text", "value": "" }, { "name": "sampleBase64Content", "type": "text", "value": "" }, { "name": "numResults", "type": "text", "value": "" } ] } }, "docs": "Classifies an image using a trained model. Submit either an image file or a URL to an image." }, { "info": { "name": "Salesforce Einstein Detect objects in an image", "type": "http" }, "http": { "method": "POST", "url": "https://{instance}.salesforce.com/services/data/v58.0/detect", "body": { "type": "multipart-form", "data": [ { "name": "modelId", "type": "text", "value": "" }, { "name": "sampleLocation", "type": "text", "value": "" }, { "name": "sampleContent", "type": "text", "value": "" }, { "name": "sampleBase64Content", "type": "text", "value": "" } ] } }, "docs": "Detects objects and their bounding boxes in an image." } ] } ], "bundled": true }