Workers Builds

workers_builds

Methods

Get Latest Builds By Script IDs -> Envelope<{ builds }>
get/accounts/{account_id}/builds/builds/latest

Retrieve the most recent builds for multiple worker scripts

Get Builds By Version IDs -> Envelope<{ builds }>
get/accounts/{account_id}/builds/builds

Retrieve builds for specific version IDs

Get Account Limits -> Envelope<{ build_minutes_refresh_on, has_reached_build_minutes_limit }>
get/accounts/{account_id}/builds/account/limits

Retrieve account limits and usage information

workers_builds.builds

Methods

List Builds By Script -> V4PagePaginationArray<{ build_outcome, build_trigger_metadata, build_uuid, 8 more... }>
get/accounts/{account_id}/builds/workers/{external_script_id}/builds

Get all builds for a specific worker script with pagination

Get Build By UUID -> Envelope<{ build_outcome, build_trigger_metadata, build_uuid, 8 more... }>
get/accounts/{account_id}/builds/builds/{build_uuid}

Retrieve detailed information about a specific build

Cancel Build -> Envelope<{ build_outcome, build_uuid, stopped_on }>
put/accounts/{account_id}/builds/builds/{build_uuid}/cancel

Cancel a running or queued build

workers_builds.builds.logs

Methods

Get Build Logs -> Envelope<{ cursor, lines, truncated }>
get/accounts/{account_id}/builds/builds/{build_uuid}/logs

Retrieve logs for a specific build with cursor-based pagination

workers_builds.repos

Workers BuildsRepos

Config Autofill

workers_builds.repos.config_autofill

Methods

Get Repository Configuration Autofill -> Envelope<{ config_file, default_worker_name, env_worker_names, 2 more... }>
get/accounts/{account_id}/builds/repos/{provider_type}/{provider_account_id}/{repo_id}/config_autofill

Analyze repository for automatic configuration detection

workers_builds.repos.connections

Methods

Create Or Update Repository Connection -> Envelope<{ created_on, deleted_on, modified_on, 6 more... }>
put/accounts/{account_id}/builds/repos/connections

Upsert a repository connection for CI/CD integration

Delete Repository Connection -> Envelope<unknown>
delete/accounts/{account_id}/builds/repos/connections/{repo_connection_uuid}

Remove a repository connection

workers_builds.tokens

Methods

Create Build Token -> Envelope<{ build_token_name, build_token_uuid, cloudflare_token_id, 1 more... }>
post/accounts/{account_id}/builds/tokens

Create a new build authentication token

List Build Tokens -> V4PagePaginationArray<{ build_token_name, build_token_uuid, cloudflare_token_id, 1 more... }>
get/accounts/{account_id}/builds/tokens

Get all build tokens with pagination

Delete Build Token -> Envelope<unknown>
delete/accounts/{account_id}/builds/tokens/{build_token_uuid}

Remove a build authentication token

workers_builds.triggers

Methods

List Triggers By Script -> SinglePage<{ branch_excludes, branch_includes, build_caching_enabled, 14 more... }>
get/accounts/{account_id}/builds/workers/{external_script_id}/triggers

Get all triggers for a specific worker script

Create Trigger -> Envelope<{ branch_excludes, branch_includes, build_caching_enabled, 14 more... }>
post/accounts/{account_id}/builds/triggers

Create a new CI/CD trigger

Update Trigger -> Envelope<{ branch_excludes, branch_includes, build_caching_enabled, 14 more... }>
patch/accounts/{account_id}/builds/triggers/{trigger_uuid}

Update an existing CI/CD trigger

Delete Trigger -> Envelope<unknown>
delete/accounts/{account_id}/builds/triggers/{trigger_uuid}

Remove a CI/CD trigger

Purge Build Cache -> Envelope<unknown>
post/accounts/{account_id}/builds/triggers/{trigger_uuid}/purge_build_cache

Clear the build cache for a specific trigger

Create Manual Build -> Envelope<{ build_uuid, created_on }>
post/accounts/{account_id}/builds/triggers/{trigger_uuid}/builds

Trigger a manual build for a specific trigger

Workers BuildsTriggers

Environment Variables

workers_builds.triggers.environment_variables

Methods

List Environment Variables -> Envelope<Record<string, { created_on, is_secret, value }>>
get/accounts/{account_id}/builds/triggers/{trigger_uuid}/environment_variables

Get all environment variables for a trigger

Upsert Environment Variables -> Envelope<Record<string, { created_on, is_secret, value }>>
patch/accounts/{account_id}/builds/triggers/{trigger_uuid}/environment_variables

Create or update environment variables for a trigger

Delete Environment Variable -> Envelope<unknown>
delete/accounts/{account_id}/builds/triggers/{trigger_uuid}/environment_variables/{environment_variable_key}

Remove a specific environment variable from a trigger