GET
/
v1
/
call
/
{callId}
/
sentiment-run
JavaScript
import Roark from '@roarkanalytics/sdk';

const client = new Roark({
  bearerToken: 'My Bearer Token',
});

const response = await client.call.getSentimentRuns('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');

console.log(response.data);
{
  "data": {
    "status": "<string>",
    "averageSentiment": 123,
    "averageCategoricalSentiment": "<string>",
    "commonEmotion": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

callId
string<uuid>
required

ID of the call to fetch sentiment run for

Response

200
application/json

Sentiment analysis for a specific call

The response is of type object.