POST
/
sentiment
curl --request POST \
  --url https://www.norns.ai/api/v0/sentiment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "<string>"
}'
{
  "success": true,
  "data": {
    "sentiment": "positive",
    "score": 0,
    "emotions": [
      "<string>"
    ],
    "dominantEmotion": "<string>",
    "confidence": 0.5,
    "usage": 123,
    "tokenCount": 123
  }
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json
text
string
required

Text to analyze for sentiment

Response

200
application/json
Successful sentiment analysis response
success
boolean
data
object