PHP Client for Cloudflare API
Workers

Cron

Cron endpoint reference.

Get

Get Cron Triggers

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
scriptNamestringYesName of the script, used in URLs and route configuration.
php
$response = $client->workers()->cron()->get('ACCOUNT_ID', 'SCRIPT_NAME');
View this operation on the Cloudflare API Reference

Update

Updates Cron Triggers for a Worker.

ParamTypeRequiredDefaultDescription
accountIdstringYesAccount identifier.
scriptNamestringYesName of the script, used in URLs and route configuration.
schedulesarrayYesValues to set on Script schedules.
php
$response = $client->workers()->cron()->update('ACCOUNT_ID', 'SCRIPT_NAME', []);
View this operation on the Cloudflare API Reference
Copyright © 2026