Skip to main content

Total Emotions

Get the quantity of each emotion detected during a specific session

URL

GET /v1/sessions/:sessionId/emotions

Request URL Parameters

ParameterDescription
:sessionIdID of the session to retrieve.

Response Body

session
string
Expandable
ID of the session
Example: 65ea1530bb50af72b6e3dc1e
emotions
object
Key-value object containing the times each emotion was detected

Response codes

CodeMeaningDescription
200OKThe request has succeeded. The client can read the result in the body.
400Bad RequestServer received an invalid request body or invalid query parameters.
404Not FoundThe requested resource does not exist or you do not have permissions to perform this action on it.

Request example

curl -X GET 'https://api.emogg.com/v1/sessions/:sessionId/emotions' \
-H 'Authorization: Bearer YOUR_API_TOKEN'

Example response

{
"session": "65ea1530bb50af72b6e3dc1e",
"emotions": {}
}