Skip to main content
Cloudflare Management

List Cloudflare zones for a connected account

Returns zones for a connected Cloudflare credential so you can select a zone for automatic Postmark or ImprovMX DNS setup. Obtain the positive accountId from getServerMailCloudflareOptions.accounts[].id or getCloudflareCredentials[].id; it is a Webdock credential id, not a native Cloudflare account id.

GET
/servers/{serverSlug}/mail/cloudflare/accounts/{accountId}/zones
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

serverSlugstringrequired
Minimum string length: 1
accountIdintegerrequired

Positive Webdock Cloudflare credential id from getServerMailCloudflareOptions.accounts[].id, not a native Cloudflare account id

Required range: 1 <= x

Response

application/json

Cloudflare zone list

itemsobject[]