Skip to main content
POST
/
language
/
analyze
/
sentiment
Sentiment
curl --request POST \
  --url https://test.api.cxconnect.ai/language/analyze/sentiment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "document": {
    "value": "<string>",
    "mime_type": "<string>",
    "language": "<string>",
    "meta": {}
  },
  "meta": {
    "foo": "bar"
  }
}'
{
  "sentiment": "<string>",
  "magnitude": 123,
  "score": 123,
  "language": "<string>",
  "meta": {}
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
document
object
meta
object
Example:
{ "foo": "bar" }

Response

Successful sentiment result

sentiment
string
magnitude
number
score
number
language
string
meta
object
I