WorkerWorker Routes

Get Route

GET
Returns information about a route, including URL pattern and Worker.

Path parameters

route_idstringRequired
Identifier
zone_idstringRequired
Identifier

Response

This endpoint returns an object
result
objectOptional
GET
1curl https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/workers/routes/023e105f4ecef8ad9ca31a8372d0c353 \
2 -H "Authorization: Bearer <token>"
200Retrieved
1{
2 "result": {
3 "id": "023e105f4ecef8ad9ca31a8372d0c353",
4 "pattern": "example.net/*",
5 "script": "this-is_my_script-01"
6 }
7}