Registering a domain is the first step in the custom domain lifecycle. This endpoint creates a new domain record, generates a cryptographically secure verification token, and returns the DNS instructions you need to prove ownership. Once you add the required TXT record to your DNS provider, you can call the verify endpoint to advance the domain toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/plutoploy/dns-handling/llms.txt
Use this file to discover all available pages before exploring further.
verified status.
Method and Path
Request Body
The fully-qualified domain name you want to register, e.g.
example.com. Must be unique — attempting to register a domain that already exists will return a database error due to the UNIQUE constraint on domain_name.Response — 201 Created
Unique identifier for this domain record. Generated as a hex-encoded random 16-byte value (32 hex characters). Use this ID in all subsequent requests that reference this domain.
The fully-qualified domain name that was registered, echoed back exactly as supplied.
A cryptographically secure ownership token — the hex-encoded SHA-256 hash of 32 randomly generated bytes. This value must appear as a TXT record at
_acme-challenge.<domain>. for ownership verification to succeed.The current lifecycle status of the domain. Always
pending immediately after creation. Possible values across the full lifecycle are pending, verified, certificate_pending, active, and failed.A human-readable string describing exactly which DNS record to create, e.g.
"Create a TXT record for _acme-challenge.example.com. with value: <token>". Add this record at your DNS provider before calling the verify endpoint.Example
Request
Response
Error Cases
| Status | Cause |
|---|---|
400 Bad Request | The request body is malformed JSON, or domain_name is missing or empty. |
500 Internal Server Error | A database error occurred — most commonly a UNIQUE constraint violation if the domain is already registered, or a storage failure. |
Each domain name can only be registered once. The database enforces a UNIQUE constraint on
domain_name, so a second POST /domains call with the same value will result in a 500 error. If you need to re-register a domain (e.g. after a failed verification), delete the existing record first.