Endpoint & Available Methods

https://api.sorryapp.com/v1/pages/:page_id/custom_domain

The Custom Domain Object

These are the attributes which represent the object, most of which can be posted too and received in response to the actions.

Attribute Name Description
type The type of DNS record you need to create.
from Where the DNS record should point from.
to Where the DNS record should point to.
created_at The date/time the record was created.
updated_at The date/time the record was last updated.

Retrieve Custom Domain

GET https://api.sorryapp.com/v1/pages/:page_id/custom_domain

Example Request

curl -X GET https://api.sorryapp.com/v1/pages/:page_id/custom_domain \
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"

Example Response

{"response":{"type":"CNAME","from":"status.example.com","to":"xxxxx.sorryapp.com","created_at":"2016-02-09 14:39:21 +0000","updated_at":"2016-02-09 14:39:21 +0000"}}

Create Custom Domain

POST https://api.sorryapp.com/v1/pages/:page_id/custom_domain

Example Request

curl -X POST https://api.sorryapp.com/v1/pages/:page_id/custom_domain \
  -d domain="status.example.com" \
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"

Special Request Parameters

These attributes are not part of the standard resource and only apply on this specific action.

Attribute Name Description
domain The custom domain to add to the page.

Example Response

{"response":{"type":"CNAME","from":"status.example.com","to":"xxxxx.sorryapp.com","created_at":"2016-02-09 14:39:21 +0000","updated_at":"2016-02-09 14:39:21 +0000"}}

Delete Custom Domain

DELETE https://api.sorryapp.com/v1/pages/:page_id/custom_domain

Example Request

curl -X DELETE https://api.sorryapp.com/v1/pages/:page_id/custom_domain \
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"