Sentiment Analysis List Predictions

GET {{baseUrl}}/api/v1/datasets/{{sentiment-dataset-id}}/predictions

Lists the predictions made by the Sentiment API for a specific dataset ID. These predictions can be used to give feedback on.

Request Params

KeyDatatypeRequiredDescription
predictionTimestampStartstringOptional timestamp, predictions earlier are filtered out. Uses the ISO-8601 standard.
predictionTimestampEndstringOptional timestamp, predictions later are filtered out. Uses the ISO-8601 standard.
limitnumberThe limit defining the maximal number of predictions to return.
cursorstringThe cursor to view the next paginated collection of predictions as provided by the next_cursor value in the ListPredictionsResponse.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring
Authorizationstring

RESPONSES

status: OK

{"limit":20,"nextCursor":"VGhpcyBpcyBub3QgYSByZWFsIGN1cnNvciwgYnV0IHRoZXkgd291bGQgYmUgYmFzZTY0IGVuY29kZWQgdG9vCg==","predictions":[{"created_at":"2021-08-24T12:04:32Z","message_content":"This is very good, thanks a lot!","sentiment":"POSITIVE","sentiment_predicted":true}]}