Tone
Premium · 5 creditsAnalyze the tone of text, returning detected tones with confidence scores and suggestions for improvement.
POST /api/tone
Section titled “POST /api/tone”Parameters
Section titled “Parameters”| Field | Type | Required | Description |
|---|---|---|---|
text | string | Yes | Text to analyze |
Response
Section titled “Response”| Field | Type | Description |
|---|---|---|
primary_tone | string | Dominant detected tone |
tones | array | All detected tones with confidence |
tones[].tone | string | Tone name |
tones[].confidence | number | Confidence from 0.0 to 1.0 |
suggestions | array | Improvement suggestions |
Example
Section titled “Example”curl -X POST https://morso.dev/api/tone \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"text": "Per my last email, the deadline was yesterday. Please advise on next steps immediately."}'{ "primary_tone": "assertive", "tones": [ {"tone": "assertive", "confidence": 0.82}, {"tone": "urgent", "confidence": 0.71}, {"tone": "formal", "confidence": 0.65} ], "suggestions": [ "Consider softening the opening to avoid sounding passive-aggressive", "Replace 'immediately' with a specific timeframe for a more collaborative tone" ]}