Custom Domains: Create
This documentation entry provides a clear guide for developers on how to create a new custom domain using the API, including the necessary parameters, headers, and expected response.
Endpoint
POST /api/domains
/api/domainsRequest
POST https://uptimekeep.com/api/domainsHeader
Type
Description
Parameter
Type
Required
Description
curl --request POST \
--url 'https://uptimekeep.com/api/domains' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=domain.com' \
--form 'custom_index_url=https://mywebsite.com/' \
--form 'custom_not_found_url=https://mywebsite.com/404-page'Response
Fields
Field
Type
Description
Errors
Last updated