Workers - Platforms can now create Temporary Accounts via the Cloudflare API
Key Points
- Create preview accounts via REST API
- Deploy Workers without user Cloudflare account
- Claim URL converts preview to permanent
Summary
Cloudflare added a Temporary Accounts REST API that lets platforms create preview accounts, deploy live Workers and supported resources, and let users test without an existing Cloudflare account. The API returns a temporary account ID, API token, and a claim URL so users can convert a preview into a permanent Cloudflare account and resources.
Key Points
- Platforms can programmatically provision preview accounts via
POST https://api.cloudflare.com/client/v4/provisioning/previews. - A proof-of-work step is required: request a challenge with
POST /provisioning/previews/challengeand include the solved checkpoints in the preview creation request. - Platforms must surface Cloudflare's Terms of Service and Privacy Policy and require acceptance as part of provisioning.
- The preview response includes a temporary account ID, API token for deployment, and a claim URL to make the account permanent.
- No existing Cloudflare account or platform write access to a user account is required; this expands the earlier
wrangler deploy --temporaryflow. - Check the docs "Claim deployments (temporary accounts)" and "Temporary Cloudflare Accounts for AI agents" for supported products, proof-of-work details, and limits.
Quick integration checklist
- Show ToS and Privacy Policy and capture user acceptance.
- Call
POST /provisioning/previews/challengeand solve the returned proof-of-work. - Call
POST /provisioning/previewswithtermsOfService,privacyPolicy,acceptTermsOfService,challengeToken, andsolution.checkpoints. - Use the returned temporary account ID and API token to deploy Workers and supported resources.
- Present the deployed URL and claim URL to the user so they can convert the preview to a permanent account when ready.
Action for engineers
Implement the proof-of-work + preview provisioning on your backend, gate showing the claim URL until deployment completes, and validate token lifecycle and limits per the Cloudflare docs.