Retrieve the Open311 GeoReport v2 service definition (required attributes) for a service code before submitting a request

domain: wiki.open311.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Call GET /services.[format] to list available service_code values and check the metadata flag on the target service
  2. If metadata is true, call GET /services/{service_code}.[format] to retrieve the service definition's attribute list
  3. For each returned attribute, check the required flag and datatype (string, number, datetime, text, singlevaluelist, or multivaluelist)
  4. For singlevaluelist/multivaluelist attributes, read the nested values array of key/name pairs to present valid options to the user
  5. Build the attribute[code]=value pairs for the POST /requests call using the codes and, for multivaluelist fields, repeat attribute[code][]=value for each selected value

Known gotchas

Related routes

Submit and poll a municipal waste-pickup service request via the Open311 GeoReport v2 API
Open311 GeoReport v2 (wiki.open311.org) · 5 steps · unrated
Resolve a batch-type Open311 GeoReport v2 service request token into its service_request_id
wiki.open311.org · 5 steps · unrated
Submit a civic service request and poll its status via the Open311 GeoReport v2 API
open311.org · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans