Get Domain CNAME Settings
This API endpoint retrieves the CNAME configuration details of a specific domain. The response includes the CNAME value and whether the domain is correctly configured.

Authorization: Bearer YOUR_TOKEN


Expected Behavior:


  • On success, the system will return the CNAME details.
  • If the request is invalid, a 400 error will be returned.
  • If authorization fails, a 401 error will be returned.
Path Parameters
  • domain string
    The domain for which CNAME data is being retrieved. Example: 'status.pinghome.dev'
JavaScript
Response codes
const axios = require('axios');

const url = "https://statuspage-query.api.pinghome.io/v1/domain/status.pinghome.dev/cname";
axios.get(url, {
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Content-Type': 'application/json'
  }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});
ResponseThis section is used to view the possible HTTP response codes returned by the API. These codes indicate the status of a request, such as 201 (Created), 401 (Unauthorized), 409 (Conflict), or 422 (Unprocessable Entity).