Get Waste Unique Values
Get Waste Unique Values
Get all unique values for a specific waste field with their record counts
GET
Get Waste Unique Values
Get Waste Unique Values
Retrieve all unique values for a specific waste field within a facility, along with the count of records for each value. Useful for building filter dropdowns or understanding data distribution.Use Case: This endpoint is commonly used to populate filter options in a UI — for example, listing all distinct file IDs or LER codes present in a facility’s waste records so users can filter by them.
Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
The waste field to get unique values forAvailable values:
file_id, created_at, identification_name, ler_code, rd_codeExample: field=file_idThe UUID of the facility to scope the query toExample:
660e8400-e29b-41d4-a716-446655440000Response
The field name that was queried
Total number of unique values found
List of unique values with their record counts
Example
Successful Response
Field Reference
| Field | Description | Value format |
|---|---|---|
file_id | Source import file UUID | UUID string |
created_at | Record creation date | ISO date string |
identification_name | Waste identification name or invoice number | Text string |
ler_code | European Waste List (LER) code | Code string (e.g. 15 01 01) |
rd_code | Recovery/disposal operation code | Code string (e.g. R1) |
Common Errors
401 Unauthorized
Cause: Missing or invalid API key422 Validation Error
Cause: Missing or invalidfield or facility_id parameter
Related Endpoints
List Wastes
Retrieve waste records with filtering and pagination
Bulk Delete by Filters
Delete all waste records matching filter criteria
Bulk Delete Wastes
Delete specific waste records by ID
Wastes Overview
Learn about the Wastes API

