Skip to Content
MailroomMailroom home

Write the domain's DNS records into Cloudflare

Uses a Cloudflare API token with DNS edit rights on the zone. Existing records are left alone. The token is not stored.

POST
/domains/{id}/auto-configure

Uses a Cloudflare API token with DNS edit rights on the zone. Existing records are left alone. The token is not stored.

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Path Parameters

id*string

Request Body

application/json
  1. body
provider*"cloudflare"
Value in"cloudflare"
api_token*string
include_inbound?boolean

Response Body

Per-record outcome (created, exists, skipped, failed)

Example Request
curl -X POST 'https://api.mailroomapi.com/v1/domains/string/auto-configure' \  -H 'Content-Type: application/json' \  -d '{  "provider": "cloudflare",  "api_token": "string"}'
Example Response200
Empty