← All docs

RidingDesk APIs

RidingDesk publishes two REST APIs that share the /api/v1/* URL space but are distinct products. The free Electoral Data API is open to anyone — the Canadian dataset of riding boundaries, postal-code lookups, and election results. The paid Customer Data API lets an active campaign read and write its own CRM data — voters, donations, canvassing, lawn signs.

Free · Public

Electoral Data API

Canadian boundaries, postal-code lookups, election results

Look up the federal, provincial, and municipal ridings for any Canadian postal code; browse boundary geometries as GeoJSON; list past elections and candidates. Free for all non-commercial use. Keys begin with ced_.

  • 343 federal ridings (2023 Representation Order)
  • All 10 provinces + 50+ major municipalities
  • GeoJSON boundary shapes (RFC 7946)
  • Anonymous: 10 req/min · Free key: 100 req/min
Paid · Per-campaign

Customer Data API

Read/write your campaign's CRM data

A scoped JSON API for the data inside an active RidingDesk campaign — voters, donations, volunteers, canvassing interactions, lawn signs, campaign metadata. Keys begin with rd_live_; STARTER tier or higher.

  • Per-key scopes (voters:read, donations:write, …)
  • Idempotency keys, cursor pagination, 402 capacity errors
  • OpenAPI 3.1 spec for codegen in any language
  • STARTER 60/min · PRO 300/min · CAMPAIGN_HQ 1200/min
Use it from Claude Desktop

The official @ridingdesk/mcp-server npm package wraps every endpoint as a Model Context Protocol tool. Add to claude_desktop_config.json:

"ridingdesk": {
  "command": "npx",
  "args": ["-y", "@ridingdesk/mcp-server"],
  "env": { "RIDINGDESK_API_KEY": "rd_live_..." }
}

Same base URL

Both APIs live under https://ridingdesk.ca/api/v1/. The path segment after /v1/ tells you which product (electoral vs the customer resources).

Different keys

ced_* only works against the electoral surface. rd_live_*only works against your campaign’s CRM resources. They aren’t interchangeable.

JSON only, no SDKs

Both APIs are vanilla JSON over HTTPS. The Customer Data API ships an OpenAPI 3.1 spec you can feed into any codegen tool.