Docs/API

Cloudflare Connections API

Cloudflare Connections API

Cloudflare connection endpoints are used when you choose the BYO Cloudflare mode.

List Connections

GET /v1/cloudflare-connections

Create Connection

POST /v1/cloudflare-connections
Content-Type: application/json

{
  "name": "Production Cloudflare",
  "apiToken": "cloudflare_token",
  "zoneId": "zone_123"
}

Store provider tokens only through the dashboard or a trusted server path.

Token Template

GET /v1/cloudflare-connections/token-template

Returns guidance for creating a token with the required permissions.

Test Connection

POST /v1/cloudflare-connections/:connectionId/test

Use this before assigning a connection to production applications.

Worker Origins

GET /v1/cloudflare-connections/:connectionId/worker-origins

Lists origin options discovered from the connected account.

Delete Connection

DELETE /v1/cloudflare-connections/:connectionId

Delete only after confirming no production application depends on the connection.