Skip to main content
Beta. The routing rules endpoints are new and their response shapes may still change.
Returns every routing rule on one domain — redirects and proxies, active and inactive — sorted by priority (highest first), then by creation time (oldest first). This is the same list you see on the domain’s Routing Rules tab.
List order and match order are the same except for ties. When rules share a priority, exact paths are checked before patterns, and longer source paths are checked before shorter ones. See How rules are matched.
Any role on the domain (owner, manager, or viewer) can list its rules.
Always call this endpoint from a server-side environment (backend API, serverless function, build script, etc.). Never include your API key in client-side code — it will be visible to anyone inspecting your frontend.
Programmatic (API key) access requires the Pro plan and above — requests from Starter accounts return 403 plan_upgrade_required.

Request

Headers

Path Parameters

Example Request

Response

Success (200)

Fields

The rule object

Every routing rules endpoint returns rules in this same shape.

Error Responses

Example

JavaScript / Node.js

Print the active rules for every domain on your account: