Skip to main content
GET
List Wastes
← Wastes API Retrieve a paginated list of waste disposal records for a specific facility. Each record includes enriched data: CO2e emissions, emission factor codes (LER/RD), linked projects, unit details, and the user who uploaded it.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Query Parameters

string
required
UUID of the facility to retrieve waste records forExample: 660e8400-e29b-41d4-a716-446655440000
array[string]
Filter by waste record status. Can be specified multiple times.Available values: uploaded, active, loading, review, error (see the status of Get Waste)Example: status[]=active&status[]=uploaded
date
Filter records with a start date on or after this date (ISO 8601)Example: 2024-01-01
date
Filter records with an end date on or before this date (ISO 8601)Example: 2024-12-31
array[string]
Filter by linked file UUID. Can be specified multiple times.Example: file_id[]=550e8400-e29b-41d4-a716-446655440000
datetime
Filter records created on or after this timestamp (ISO 8601)Example: 2024-01-01T00:00:00Z
datetime
Filter records created on or before this timestamp (ISO 8601)Example: 2024-12-31T23:59:59Z
string
Filter by CO2e calculation statusAvailable values: calculated, not_calculatedExample: co2e_status=calculated
array[string]
Filter by waste identification name. Can be specified multiple times.Example: identification_name[]=RSU-2024-001
array[string]
Filter by LER (European List of Waste) code, written as List LER Codes returns it: six digits with no spaces, with the trailing * of a hazardous waste. The code must match exactly. Can be specified multiple times.Example: ler_code[]=150101&ler_code[]=130205*
array[string]
Filter by R/D (recovery/disposal) code, written as List R/D Codes returns it: two digits (R01, not R1). The code must match exactly. Can be specified multiple times.Example: rd_code[]=R01
string
Filter by project UUIDExample: 770e8400-e29b-41d4-a716-446655440000
string
Sort field. Prefix with - for descending order.Example: -start_date (most recent first), identification_name
integer
default:"1"
Page number for paginationExample: 1
integer
default:"50"
Number of items per page (max 100)Example: 50

Response

array[object]
Array of waste record objects
integer
Total active and uploaded waste records in the facility (facility-wide counter, independent of filters)
integer
Number of waste records currently being processed (loading status) in the facility
integer
Total records matching the current filters — use this for pagination calculations
integer
Current page number
integer
Number of items per page
string
Hash of the current filter state. Passed to Bulk Delete by Filters to confirm the filters haven’t changed between listing and deleting.
boolean
Capability flag: true means this backend exposes the bulk-*-by-filters endpoint for this list, so the client may offer “select all matching”. false on a backend that only supports bulk delete by explicit ids.

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key
Solution: Verify your API key is valid and active.

403 Forbidden

Cause: The API key’s user is not a member of the organization (LOGGED_USER_NOT_MEMBER), or its role is limited to other facilities (FACILITY_NOT_IN_ROLE_SCOPE).

404 Not Found

Cause: The facility does not exist or is outside your organization’s perimeter (both answer the same)
Solution: Verify the facility_id with the Facilities API.

422 Validation Error

Cause: Missing required facility_id or invalid query parameter values
Solution: Ensure facility_id is provided and all filter values are valid.

Create Wastes (v2)

Create up to 5,000 wastes in one request

Update Waste

Modify an existing waste record

Bulk Delete by Filters

Delete all records matching the current filters

Facilities

List facilities for your organization