MonitorsDomain expiry monitoring
Create Customer Domain (Customer)
title: Create Customer Domain (Customer) description: POST /api/customers/:customerPublicId/domains
Create Customer Domain (Customer)
POST /api/customers/:customerPublicId/domains
Creates a customer domain for expiry monitoring.
Request Body
{
"domainName": "example.com",
"label": "Main Domain",
"status": "active",
"expiryWarningDays": 30,
"expiryErrorDays": 7
}Notes:
customerPublicIdshould be the customer public UUID. Legacy numeric customer IDs remain supported for compatibility.domainNamemust be a valid domain likeexample.com(no protocol, no path).- Creating an
activedomain may be blocked by quota limits.
Example (cURL)
BASE_URL="https://uptimeify.io"
TOKEN="<your-api-token>"
curl -X POST "$BASE_URL/api/customers/6bfec6f6-245a-47ce-843b-157d97d56f88/domains" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"domainName":"example.com","label":"Main Domain","status":"active","expiryWarningDays":30,"expiryErrorDays":7}'Response
Returns the newly created customer domain record.
Common errors
400 Invalid Customer identifierwhen:customerPublicIdis missing/invalid400 Invalid domain name...whendomainNameis invalid401 Unauthorizedwhen you are not logged in403 Forbiddenfor readonly/global supporter users, or when you cannot access the customer403 Active domain limit reached...when creating/activating would exceed your quota404 Customer not foundwhen the customer does not exist