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": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.cxconnect.ai/llms.txt

Use this file to discover all available pages before exploring further.

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<float>
score
number<float>
language
string
meta
object