Skip to main content
POST
Classify Comment
Classify a comment in one API call. Returns intent labels, sentiment, language, and a NAGL-generated analysis note. Semantic cache hits are free.
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

Dialect detection is a known limitation on /v1/classify. dialect is hardcoded to "gulf" for any Arabic text on this endpoint today; full dialect detection runs only on /v1/detect and /v1/translate. dialect_confidence exposes the NAGL intent classifier’s internal confidence, not a dialect-specific confidence. Treat the field as a rough signal until real dialect wiring lands. Use /v1/detect for authoritative dialect on Arabic text.

Response headers

Error responses

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

More examples

Request:
Response: