Skip to main content
POST
Classify Comment
Classify a comment in one API call. Returns intent labels, sentiment, detected language and Arabic dialect, a suggested reply in the commenter’s own dialect, and the reasoning behind the classification.
Cost: $0.006 per request (6 credits). Semantic cache hits are free (X-NAWA-Cache: HIT) and do not decrement your credit balance.

Request

Headers

Body

Query parameters

Example request

Response

Success response (200)

Result fields

Changed 2026-09-13. Three fields on this endpoint used to be placeholders and are now real: dialect was hardcoded to "gulf" for all Arabic, dialect_confidence returned the classifier’s overall confidence rather than a dialect score, and suggested_reply.text returned internal reasoning instead of a reply. If you built around any of those, re-read the table above. The reasoning moved to its own reasoning field.

Response headers

Error responses

See Errors for the full envelope shape and all error codes.

More examples

Request:
Response: