OpenAICloudflare Developer PlatformJul 14, 2026, 12:00 AM

Workers - Platforms can now create Temporary Accounts via the Cloudflare API

A condensed section focused on the key takeaways first.

Original Post

Quick Digest

Summary

A condensed section focused on the key takeaways first.

openaienmodel: gpt-5-mini-2025-08-07

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/challenge and 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 --temporary flow.
  • 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/challenge and solve the returned proof-of-work.
  • Call POST /provisioning/previews with termsOfService, privacyPolicy, acceptTermsOfService, challengeToken, and solution.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.

Full Translation

Translations

A translation section that keeps the flow of the original article.

openaijamodel: gpt-5-mini-2025-08-07

Workers — プラットフォームが Cloudflare API を介して一時アカウントを作成できるようになりました

概要

プラットフォームは Cloudflare REST API を通じて一時プレビューアカウントを作成できるようになりました。これにより、ユーザーが Cloudflare にサインインする前にライブの Worker をデプロイできます。Temporary Accounts API により、コーディングエージェント、AI アプリビルダー、その他のプラットフォームは、生成された Worker とサポートされるリソースに対して同様のフローを構築できます。

プラットフォームはユーザーを自社のオンボーディングフロー内に留めたまま、アプリケーションの生成、デプロイ、テストを行わせることができます。ユーザーは既存の Cloudflare アカウントを持っている必要はなく、プラットフォーム側もユーザーのアカウントへの書き込みアクセスを必要としません。API は、ユーザーが一時アカウントとそのリソースを永続化(クレーム)できるクレーム URL を返します。

Cloudflare Drop ↗ は静的サイト向けにこのプレビュー&クレームのパターンを示しています。サイトをアップロードして1時間テスト/共有し、保持したい場合にのみサインインまたはアカウントを作成できます。

この API は、まず wrangler deploy --temporary で導入されたフローを拡張します。これにより、バックエンドはプロビジョニングとデプロイ体験を直接制御できます。

主な流れ

  • 製品内で Cloudflare の Terms of Service と Privacy Policy を表示し、ユーザーに同意させる。
  • proof-of-work チャレンジを要求し、解決する。
  • 一時プレビューアカウントを作成する。
  • 返却された一時アカウント ID と API トークンを使ってデプロイする。
  • デプロイ済みの Worker URL とクレーム URL をユーザーに表示する。

例: API 呼び出し

Terminal window

curl "https://api.cloudflare.com/client/v4/provisioning/previews/challenge" \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{}'

curl "https://api.cloudflare.com/client/v4/provisioning/previews" \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{
    "termsOfService": "https://www.cloudflare.com/terms/",
    "privacyPolicy": "https://www.cloudflare.com/privacypolicy/",
    "acceptTermsOfService": "yes",
    "challengeToken": "<CHALLENGE_TOKEN>",
    "solution": {
      "checkpoints": "<BASE64_CHECKPOINTS>"
    }
  }'

参考

  • 完全な API フロー、proof-of-work の要件、サポートされる製品、制限については Claim deployments (temporary accounts) を参照してください。
  • このフローの背景と設計目標については Temporary Cloudflare Accounts for AI agents ↗ を参照してください。

© 2026 Cloudflare, Inc. Privacy Policy Terms of Use