Classification
Route or tag text against your own taxonomy, a label, a confidence, and a one-line rationale.
POST/v1/classify
The example in the published schema
charged 00 credits
- auth (bearer key)
- per-key throttle
- validate body
- balance precheck
- run the capability
- charge credits ON SUCCESS ONLY
- JSON
The request body/v1/classify
{ "text": "My card was charged twice for one order.", "labels": [ "billing", "shipping", "technical", "refund" ] }
The responsepublished example
// sending the call
// 0 credits charged so farcurl https://api.thecompound.tech/v1/classify \
-H "Authorization: Bearer $COMPOUND_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"My card was charged twice for one order.","labels":["billing","shipping","technical","refund"]}'Scored
4 of 4 field checks passed when the eval suite last ran against production, on 2026-07-08. Every endpoint's score
The Extract & structure guide has this endpoint with its example response. The reference has every parameter.
More from Extract & structure
Field extraction $0.04/callPull a field set you define out of any block of text. You name the fields; you get typed values with confidence.Structure to your schema $0.06/callAny messy input, text, HTML, an email, plus YOUR JSON schema → output shaped to it, validated against your required fields and property types, with an automatic corrective retry and a `valid` flag.Record normalization $0.05/batchA batch of messy records → clean canonical rows, with a change log of every fix (casing, formats, dedup-ready values).Entity matching $0.08/runTwo record sets → which rows are the same real-world thing, with confidence and reasoning. Fuzzy names, typos, aliases handled.Batch categorization $0.03/batchUp to a hundred items against your taxonomy in one call, products, transactions, tickets, each with a confidence.