List all domains for a project
const url = 'https://dashboard.quantcdn.io/api/v2/organizations/test-org/projects/test-project/domains';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://dashboard.quantcdn.io/api/v2/organizations/test-org/projects/test-project/domains \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization identifier
Example
test-orgProject identifier
Example
test-projectResponses
Section titled “Responses”The request has succeeded.
object
Domain ID
Domain name
DNS engagement status. 1 indicates DNS is properly configured and engaged, 0 indicates DNS configuration is pending or incomplete.
DNS validation records required for SSL certificate validation. Present for domains pending certificate validation. Each record contains the CNAME information needed to validate domain ownership.
object
DNS record name (host/subdomain)
DNS record type (typically CNAME)
DNS record value to point to
DNS records required to route traffic to the CDN. These records differ based on domain type (apex vs subdomain). Present when the CDN is configured and ready to receive traffic.
object
DNS record type (CNAME, A, or ALIAS)
DNS record name/host (@ for apex/root domains, subdomain name for subdomains)
DNS record value (IP addresses for A records, domain name for CNAME/ALIAS)
Human-readable instructions for configuring this DNS record
Example
[ { "id": 123, "domain": "test-domain.com", "dns_engaged": 1, "dns_validation_records": [ { "name": "_abc123.example.com", "type": "CNAME", "value": "_xyz789.validation.example.com." } ], "dns_go_live_records": [ { "type": "CNAME", "name": "www", "value": "cdn.example.com", "description": "Add a CNAME record with the host set to your subdomain pointing to the CDN endpoint." } ] }]The server could not understand the request due to invalid syntax.
object
Error message
Error flag
Example
{ "message": "The requested resource was not found", "error": true}Access is forbidden.
object
Error message
Error flag
Example
{ "message": "The requested resource was not found", "error": true}