Skip to content

API Token & Zone Configuration

How to create a secure Cloudflare API token with Zaraz Edit permissions and connect WP Zbridge.

WP Zbridge Pro uses Cloudflare’s REST API v4 (/client/v4/zones/{zone_id}/settings/zaraz/config) to read, update and publish your Zaraz configuration. Lite doesn’t need a token; it exports the container instead.


    • Log into the Cloudflare Dashboard.
    • Click your user profile in the top right corner and choose My Profile > API Tokens.
    • Click Create Token.
    • Scroll down to Custom Token and click Get started.
    • Enter a descriptive Token Name: WP Zbridge Deployment Token.
    • Set the following two permissions:
      • Zone | Zaraz | Edit
      • Zone | Zone | Read
    • (Optional) Add Zone | Analytics | Read to show Zaraz activity, rejected requests and your zone’s traffic statistics on the dashboard.
    • Under Zone Resources, choose:
      • Include | Specific zone | YourDomain.com
    • (Optional) Set an expiration date or client IP address restrictions.
    • Click Continue to summary, then Create Token.
    • Copy the generated token string. (Cloudflare will never display this token again).

  1. In your Cloudflare dashboard, select your domain name.
  2. In the right-hand sidebar of the Overview page, scroll down to the API section.
  3. Click to copy your Zone ID (a 32-character hexadecimal string, e.g. d3b07384d113edec49eaa6238ad5ff00).

  1. In your WordPress admin, go to WP Zbridge > Cloudflare & Edge.
  2. Paste your API Token and Zone ID.
  3. Click Test Connection. A message confirms whether WP Zbridge can reach your zone.

Cloudflare API Token & Zone ID Configuration