Cloudflare Connections API
Cloudflare connection endpoints are used when you choose the BYO Cloudflare mode.
List Connections
GET /v1/cloudflare-connectionsCreate 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-templateReturns guidance for creating a token with the required permissions.
Test Connection
POST /v1/cloudflare-connections/:connectionId/testUse this before assigning a connection to production applications.
Worker Origins
GET /v1/cloudflare-connections/:connectionId/worker-originsLists origin options discovered from the connected account.
Delete Connection
DELETE /v1/cloudflare-connections/:connectionIdDelete only after confirming no production application depends on the connection.
