---
title: "Set up sending DNS on Cloudflare in one click"
method: POST
path: "/v1/domains/{id}/domain-connect/cloudflare"
tags: ["Domains"]
---

# Set up sending DNS on Cloudflare in one click

`POST /v1/domains/{id}/domain-connect/cloudflare`

## Request

- Base URL: `https://smtpfa.st/api`
- URL: `https://smtpfa.st/api/v1/domains/{id}/domain-connect/cloudflare`
- Auth: HTTP bearer

For a domain whose DNS is on Cloudflare, returns a signed Domain Connect link. The domain owner opens it, approves the change in Cloudflare, and the sending records are added for them. Not in Resend. Requires the domain:write scope.

## Path parameters

- `id` string, required

## Response `200`

The link to open

- object

## Other responses

- `401`: Invalid or missing API key
- `403`: Forbidden - domain not verified or insufficient permissions
- `404`: Resource not found
- `409`: Conflict - the resource already exists or changed meanwhile
- `429`: Rate limit exceeded - retry after the period indicated in the Retry-After header
- `500`: Internal server error

---

[API](https://skmtc.dev/smtpfa/apis/smtpfast-api.md) · [All operations](https://skmtc.dev/smtpfa/apis/smtpfast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smtpfa/apis/smtpfast-api/revisions/79dda742f53e?raw)
