Documentation Index
Fetch the complete documentation index at: https://docs.wastecheck.co.uk/llms.txt
Use this file to discover all available pages before exploring further.
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.
Request
Method: POST
Path: /v1/classify-waste
Bearer token with your API key, e.g. Bearer wc_live_your_key
Body 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)
{
"classifications": [
{
"ewc_code": "17 08 02",
"description": "Gypsum-based construction materials",
"chapter": "17 - Construction and demolition wastes",
"is_hazardous": false,
"confidence": 0.94,
"reasoning": "Plasterboard is gypsum-based. Non-contaminated material from construction falls under chapter 17."
}
],
"compliance": {
"hazardous_waste": false,
"flags": [],
"disposal_notes": "Standard non-hazardous waste. Suitable for licensed waste transfer station or recycling.",
"requires_consignment_note": false
},
"metadata": {
"classified_at": "2026-03-25T14:31:00Z",
"model_version": "1.0",
"cached": false
}
}
Ranked list of matching EWC codes with confidence scores
classifications[].ewc_code
Six-digit EWC code (e.g. 17 08 02)
classifications[].confidence
Confidence score from 0 to 1. Below 0.7 suggests manual review
classifications[].reasoning
Explanation of why this code was selected (for audit trails)
classifications[].is_hazardous
Whether this EWC code is classified as hazardous
compliance.hazardous_waste
True if any returned code is hazardous
compliance.requires_consignment_note
True if hazardous waste requires a consignment note
compliance.disposal_notes
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 of description 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 |
Example
curl -X POST https://api.wastecheck.co.uk/v1/classify-waste \
-H "Authorization: Bearer wc_live_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"description": "Broken plasterboard from office refurbishment",
"source_industry": "construction",
"additional_context": "Non-contaminated, from internal walls"
}'