Custom Domain
You can configure a status page to use your own domain, such as status.example.com - once applied you will need to make some DNS changes your end to get things working.
Endpoint
https://api.sorryapp.com/v1/pages/:page_id/custom_domain
Objects
These are the attributes which represent the object, most of which can be posted too and received in response to the available methods.
Properties
- Name
type
- Description
The type of DNS record you need to create.
- Name
from
- Description
Where the DNS record should point from.
- Name
to
- Description
Where the DNS record should point to.
- Name
created_at
- Description
The date/time the record was created.
- Name
updated_at
- Description
The date/time the record was last updated.
Create a custom domain
This endpoint allows you to add a custom domain to a single status page.
Required attributes
- Name
domain
- Type
- string
- Description
The sub-domain to use for the status page
Request
curl -X POST https://api.sorryapp.com/v1/pages/12ab34cd/custom_domain \
-d domain="status.acme.com" \
-H "Authorization: Bearer {token}"
Response
{
"response": {
"type": "CNAME",
"from": "status.acme.com",
"to": "12ab34cd.sorryapp.com",
"created_at": "2025-01-21 14:39:21 +0000",
"updated_at": "2025-01-21 14:39:21 +0000"
}
}
Retrieve custom domain
This endpoint displays the current custom domain configured for a single status page.
Request
curl -X GET https://api.sorryapp.com/v1/pages/12ab34cd/custom_domain \
-H "Authorization: {token}"
Response
{
"response": {
"type": "CNAME",
"from": "status.acme.com",
"to": "12ab34cd.sorryapp.com",
"created_at": "2025-01-21 14:39:21 +0000",
"updated_at": "2025-01-21 14:39:21 +0000"
}
}
Delete a page
This endpoint allows you to delete the custom domain.
Request
curl -X DELETE https://api.sorryapp.com/v1/pages/12ab34cd/custom_domain \
-H "Authorization: Bearer {token}"