Domains

Remove a custom domain

Removes a custom domain from the deployment. The answer lists the domains that remain.

delete/v2/pens/{id}/domains/{host}

Request

  • Base URL
    https://api.codepen.io
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Response

The deployment's custom domains.

a_recordstring required

What the last lookup found for the A record, such as None, Valid, Legacy or Invalid.

cname_recordstring required

What the last lookup found for the CNAME record, such as None, Valid, Legacy or Invalid.

created_atstring date-time required
hoststring required
idstring required
status'Pending' | 'Verified' | 'Misconfigured' required

Example response

[
  {
    "dns": [
      {
        "name": "www",
        "type": "CNAME",
        "value": "custom.codepen.app"
      }
    ]
  }
]

Changes

No recorded changes to this operation across all 1 revision of this API.