Download OpenAPI specification:
The Mood Metrics API provides powerful sentiment analysis on submitted text, with optional long-term tracking and anomaly detection using feed IDs. Perfect for monitoring brand perception, social media streams, customer feedback, support tickets, or real-time news sentiment.
Submits text for sentiment analysis.
Behavior is controlled by the X-WFT-Async-Mode header:
true (default): Processing is asynchronous. The API immediately returns a job ID. Use the job endpoints to monitor progress and retrieve results when complete.false: Processing is synchronous. The API waits for the analysis to complete and returns the final sentiment analysis result in the same shape as GET /analyses/{id}.| X-WFT-Async-Mode required | boolean Example: true Controls whether analysis is processed asynchronously (job-based) or synchronously.
|
| feedId | string Optional identifier to group related texts. Enables long-term tracking, trend analysis, and anomaly detection across all items sharing the same feedId. |
| text required | string The text to analyze. Must be valid UTF-8. Supports all languages. |
{- "text": "I absolutely love this product! It's the best thing ever!",
- "feedId": "acme-corp-reviews"
}{- "data": {
- "jobId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}, - "errors": [ ]
}Fetches the final sentiment analysis result using the result ID obtained from a completed job. Includes overall sentiment, score, emotion breakdown, and rationale.
| id required | string <uuid> Example: a1b2c3d4-e5f6-7890-g1h2-i3j4k5l6m7n8 Result ID (UUID) from a SUCCEEDED sentiment analysis job |
{- "data": {
- "feedId": "acme-corp-reviews",
- "sentiment": "VERY_POSITIVE",
- "sentimentScore": 0.94,
- "emotionScores": [
- {
- "emotion": "HAPPINESS",
- "score": 0.97
}, - {
- "emotion": "SURPRISE",
- "score": 0.41
}, - {
- "emotion": "NEUTRAL",
- "score": 0.02
}
], - "rationale": "Strong positive indicators including words like 'love', 'best', 'amazing'"
}, - "errors": [ ]
}{- "data": {
- "certificatePem": "string",
- "keyPem": "string",
- "fingerprintSha256": "string",
- "expires": "2019-08-24T14:15:22Z"
}, - "errors": [
- {
- "type": "string",
- "message": "string",
- "details": { }
}
], - "metadata": null
}Returns the current status of an asynchronous job (PENDING, PROCESSING, SUCCEEDED, FAILED, CANCELED). On success, also returns the result ID.
| id required | string <uuid> Example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 UUID of the job returned when the analysis was submitted |
{- "data": {
- "jobId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}, - "errors": [
- {
- "type": "string",
- "message": "string",
- "details": { }
}
]
}