---
title: "Connect a custom domain"
method: POST
path: "/api/v1/waitlists/{id}/domain"
tags: ["Integrations"]
---

# Connect a custom domain

`POST /api/v1/waitlists/{id}/domain`

## Request

- Base URL: `https://usewait.com`
- URL: `https://usewait.com/api/v1/waitlists/{id}/domain`
- Auth: HTTP bearer

Registers the domain with Cloudflare for SaaS and returns the exact CNAME to create. SSL is issued automatically within a few minutes.

## Request body

- object
  - `domain` string, required

## Response `200`

The domain was registered.

- object

## Other responses

- `400`: Validation failed. `details` names the offending fields.
- `401`: Missing, malformed or revoked API key.
- `403`: The key is valid but lacks the scope this operation requires.
- `404`: No such resource, or it belongs to another account.
- `422`: Registration failed; `error` explains why.
- `429`: Rate limit exceeded (120 requests/minute per account).
- `500`: Unexpected server error.

---

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