LogoFreestyle
API Reference/Domains

Create a domain verification request

This creates a Freestyle Domain Verification Request. It returns a `verificationCode` for your domain. You need to place this code in a TXT record at `_freestyle_custom_hostname.thedomain.com`, then call the [verify domain](/#tag/domains/PUT/domains/v1/verifications) endpoint with the domain to verify it.

POST/domains/v1/verifications

Request Body

application/jsonRequired
domainRequiredstring

The domain to create a verification code for

curl -X POST "https://api.freestyle.sh/domains/v1/verifications" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "example.com"
  }'

Verification code created

{
  "id": "1234-5678-9012-3456",
  "domain": "example.com",
  "accountId": "1234-5678-9012-3456",
  "verificationCode": "freestyle-verification-v1-1234-5678-9012-3456",
  "createdAt": "1234567890"
}