POST /v1/analyze/emotion endpoint accepts an audio file and returns a JSON object containing emotional signals extracted from the recording — including valence, arousal, and the dominant detected emotion. This endpoint requires Bearer token authentication.
Endpoint
Authentication
This endpoint requires a Bearer token. Include it in theAuthorization header:
Request
Content-Type:multipart/form-data
Request Fields
The audio file to analyze. Supported formats include WAV, MP3, M4A, FLAC, and OGG. See Audio Requirements for details.
Response
Status:200 OKContent-Type:
application/json
The response is a JSON object. The exact fields returned depend on the analysis model and may vary; the API spec defines the response as a free-form JSON object (additionalProperties: true). The following example illustrates the shape of a typical response:
200 OK
Example Response Fields
The fields below are illustrative examples of what the response may contain. Refer to the Dolva dashboard or model release notes for the authoritative list of fields returned by your model version.An example status indicator. May be
"ok" on a successful analysis.An example wrapper object containing extracted emotion signals.
Error Responses
| Status | Description |
|---|---|
401 Unauthorized | Bearer token is missing or invalid |
422 Unprocessable Entity | The audio field is missing or the file is invalid |
422 Validation Error