curl --location --request POST 'https://api.figolabs.ai/api/v1/sentiment/anaylze' \
--header 'Authorization: Bearer {Your-API-Key}' \
--header 'Content-Type: application/json' \
--data-raw '{
"inputExpressions": ["I am happy", "I am sad"],
"sentimentInstruction" : "happy"
}'
{
"responseCode": "00",
"responseMessage": "Successful",
"responseData": {
"summary": "50% passed, 50% failed",
"results": [
{
"comment": "I am happy.",
"score": "1",
"reason": "The comment directly expresses happiness, which aligns with the context sentiment."
},
{
"comment": "I am sad.",
"score": "0",
"reason": "The comment expresses sadness, which does not align with the context sentiment of happiness."
}
]
}
}