Classify Waste
API Reference
Classify Waste
Classify a waste description into EWC codes using AI
POST
Classify Waste
Classify Waste
Classifies a plain-English waste description into the correct European Waste Catalogue (EWC) code(s) using AI. The EWC comprises approximately 650 six-digit codes across 20 chapters. Codes marked with an asterisk are hazardous.Requires authentication via
Authorization header. See Authentication.Request
Method:POST
Path: /v1/classify-waste
Headers
Bearer token with your API key, e.g.
Bearer wc_live_your_keyMust be
application/jsonBody Parameters
Plain-English description of the waste
Industry or activity that produced the waste (improves accuracy)
Extra detail about contamination, composition, etc.
Number of classifications to return (default 3, max 5)
Response
Success Response (200)
Ranked list of matching EWC codes with confidence scores
Six-digit EWC code (e.g.
17 08 02)Confidence score from 0 to 1. Below 0.7 suggests manual review
Explanation of why this code was selected (for audit trails)
Whether this EWC code is classified as hazardous
True if any returned code is hazardous
True if hazardous waste requires a consignment note
Guidance on appropriate disposal or recycling
Confidence Scores
| Score | Interpretation | Recommended Action |
|---|---|---|
| 0.9 - 1.0 | High confidence | Safe to use directly |
| 0.7 - 0.89 | Moderate confidence | Acceptable, but review if waste is unusual |
| Below 0.7 | Low confidence | Manual review recommended. A LOW_CONFIDENCE flag is returned |
Caching
Classifications are cached for 7 days based on the exact combination ofdescription and source_industry. EWC codes don’t change, so cached results remain accurate. The metadata.cached field indicates cache status.
Error Responses
| Code | HTTP | When |
|---|---|---|
INVALID_REQUEST | 400 | Missing description field |
CLASSIFICATION_FAILED | 500 | Waste classification could not be completed |