Workers CI Read scope not available

I'm preparing to migrate several Pages projects to Workers, and need an equivalent to the Pages build webhooks, so that when I publish content in my CMS (Sanity), a build is triggered (Astro, mostly static but some dynamic routes).

It looks like I'll need to hit this Workers API endpoint (likely combined with a trigger ID obtained from other endpoints in the same "Worker Builds" section of the API docs):
https://developers.cloudflare.com/api/resources/workers_builds/subresources/triggers/methods/create_build/
But it requires Workers CI Write permission, and none of the permissions in the API token setup match that. I tried adding all Workers-related permissions and I'm still getting an "invalid token" error message for any Workers Builds API endpoint.

Ideally Workers would have a built-in build trigger setup like Pages does, but since that doesn't seem to exist where can I create the correct token for this API?
Interact with Cloudflare's products and services via the Cloudflare API
Was this page helpful?