---
title: "Add Cloudflare Dns"
method: POST
path: "/api/email/settings/cloudflare-dns"
---

# Add Cloudflare Dns

`POST /api/email/settings/cloudflare-dns`

## Request

- Base URL: `https://api.ascendkit.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ascendkit.dev/api/email/settings/cloudflare-dns`
- Auth: API key in header `X-AscendKit-Public-Key` and HTTP bearer

Add DKIM DNS records to Cloudflare using the provided API token.

Called from the portal's browser-based DNS setup page. The developer
enters their Cloudflare API token in the browser, which is sent here
to create the required records.

## Request body

- CloudflareDnsRequest
  - `apiToken` string, required
  - `domain` string, required

## Response `200`

Successful Response

- ApiResponse
  - `data` unknown
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ascendkit/apis/ascendkit-api.md) · [All operations](https://skmtc.dev/ascendkit/apis/ascendkit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ascendkit/apis/ascendkit-api/revisions/0a41c122c44f?raw)
