Connect a Cloudflare zone
With a Cloudflare API token limited to one zone (Zone → Zone → Read and Zone → DNS → Edit), checked with Cloudflare and kept sealed. From then on, each own domain you add in that zone gets its records written by OpenPanel: a proxied CNAME to edge.openpanel.sh and the TXT proof, and the domain is verified by itself; removing the domain removes them. Set the zone's SSL/TLS mode to Full. Organization admins only.
bearerAuthorizationBearer <token>An API key (opk_…) or a CLI token (opc_…).
application/json- body
token*stringA Cloudflare API token limited to one zone, with Zone → Zone → Read and Zone → DNS → Edit. Kept sealed and never returned.
length <= 200Connect a Cloudflare zone
application/json- response
id*stringuuidprovider*"cloudflare""cloudflare"zoneId*stringCloudflare's id of the zone.
name*stringThe zone, such as example.com.
sslMode*|The zone's SSL/TLS mode when last checked (off, flexible, full, strict), or null when the token may not read it. Own domains behind Cloudflare need full.
createdAt*stringdate-timecheckedAt*stringdate-timecreatedByName*string|nulldomains*integerOwn domains whose records OpenPanel wrote in this zone.
curl -X POST "https://openpanel.sh/api/v1/dns-zones" \ -H "Authorization: Bearer $OPENPANEL_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "token": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "provider": "cloudflare", "zoneId": "string", "name": "string", "sslMode": "string", "createdAt": "2019-08-24T14:15:22Z", "checkedAt": "2019-08-24T14:15:22Z", "createdByName": "string", "domains": 0}