---
title: "Connect Cloudflare"
method: POST
path: "/api/v1/me/domains/{id}/connect/cloudflare"
tags: ["Domains"]
---

# Connect Cloudflare

`POST /api/v1/me/domains/{id}/connect/cloudflare`

## Request

- Base URL: `https://api.proof.holdings`
- URL: `https://api.proof.holdings/api/v1/me/domains/{id}/connect/cloudflare`
- Auth: API key in cookie `auth_token`

Connect a Cloudflare API token for auto-DNS domain verification.

## Path parameters

- `id` string, required: MongoDB ObjectId

## Request body

- ConnectCloudflareRequest: Request body for connecting a Cloudflare API token
  - `api_token` string, required: Cloudflare API token

## Response `200`

Cloudflare connected

- SuccessResponse: Generic success response
  - `success` boolean, required
  - `message` string

## Other responses

- `400`: Invalid token
- `409`: `domain_revoking` — the domain's revocation cascade is running (h-implement-proper-deletion, DOM-1); nothing is minted for it — retry in a moment

---

[API](https://skmtc.dev/proof/apis/proof-holdings-api.md) · [All operations](https://skmtc.dev/proof/apis/proof-holdings-api/llms.txt) · [OpenAPI document](https://skmtc.dev/proof/apis/proof-holdings-api/revisions/6b8d61ee354f?raw)
