WorkerWorker Tail Logs

Start Tail

POST
Starts a tail that receives logs and exception from a Worker.

Path parameters

script_namestringRequired
Name of the script, used in URLs and route configuration.
account_identifierstringRequired
Identifier

Response

This endpoint returns an object
result
objectOptional
POST
1curl -X POST https://api.cloudflare.com/client/v4/accounts/023e105f4ecef8ad9ca31a8372d0c353/workers/scripts/this-is_my_script-01/tails \
2 -H "Authorization: Bearer <token>"
200Successful
1{
2 "result": {}
3}