[Solved] Curl routes returns different information than shown on the dashboard

This is pretty straightforward, so maybe I just don’t understand what I should be getting back.

When I run a curl to GET the Cloudflare Worker route(s) list I get back some JSON with (a) route(s), but it is totally different than the actual route(s) that I have setup in the dashboard.

Ex.
curl -H “Content-Type: application/javascript” -H “X-Auth-Email:{AUTH_EMAIL}\" -H \"X-Auth-Key:{AUTH_KEY}” -X GET https://api.cloudflare.com/client/v4/zones/${ZONE}/workers/routes

Has anyone else seen this happen? Much thx.

Providing my own answer here for others to reference. Had a call with Cloudflare in which they pointed out that you will get different results for different zones, accounts, keys, etc., so be sure to double-check that you are requesting the data that you actually want. :slight_smile:

2 Likes