Start or immediately satisfy a household bin collection lookup
The journey's single write. Send postcode plus either free-text property (house number or name — may resolve straight to a result) or a property_id picked from a candidate list. If the address cannot be resolved to exactly one property, the response is 422 with the candidate list embedded and no lookup is created.
Free-text property must name the building: a house number or a house/building name, optionally with its flat/unit before it and its street after it (Flat 2, 60, Kings Road). A flat, floor or unit descriptor on its own — Ground Floor Flat, Flat 2, with or without a street — can never match a council's list, so it is refused with 422 property_identifier_required before any lookup exists (the held candidates ride on that response too).
allow_postcode_representative (Q10) must only be sent after the citizen explicitly consents to neighbour-based dates; it is honoured only when the exact property is not listed.
The lookup row is created before any council work begins. Cache hits return immediately. When recent cold timing predicts a result below ten seconds, when no timing history exists yet, or when the route maintainer's control plane holds the council's active deterministic route healthy (the estimate is then that route's own recent p90, or unknown, whatever the blended history says), the server briefly awaits deterministic work. For predicted longer waits it returns the durable running lookup immediately. Crossing the brief response budget also returns that durable lookup; in either case the same work continues in the background instead of restarting. For journeys that are already in, or historically expected to need, the fallback worker, the estimate also includes current queue depth and recent stage execution time. Queue telemetry can increase but never reduce the historical estimate, and the healthy-route rule never applies once a lookup has reached the browser or Opus stage or a residential handoff.
Previously verified knowledge is looked up by property_id, not by address spelling. A stale result that still contains future dates is returned immediately with its original retrieved_at while a low-priority refresh runs in the background.
Request
- Base URL: https://whenisbins.com/v1
- URL: https://whenisbins.com/v1/lookups
- Auth: one of:
- none
- HTTP bearer
Headers
Random token for safely retrying one lookup creation request. It must contain 1 to 128 visible ASCII characters. Repeating the same request with the same key returns the same Lookup, whether it was answered at once from stored information, joined to a lookup already running, or queued. Reusing a key with a different canonical property request returns 409. A key is remembered for 30 days or until its Lookup is removed; only HMAC digests are retained by shared admission.
Request body
Example request
{
"postcode": "CB4 2HX",
"property": "15",
"property_id": "p:4c5ee6c2f2c7c959",
"street": "Church Road",
"locality": "Coleraine"
}Response
Lookup created. status may already be done (cache hit) or queued/running/partial — the body is the same Lookup resource GET /lookups/{lookup_id} serves.
Changes
No recorded changes to this operation across all 1 revision of this API.