Domains /
Get subdomain
Required permission
Account > Subdomains > General > Read
Path parameters
domain
string requiredName of the domainsubdomain
string requiredName of the subdomain
Response body
- {object}Response object.
data
{object} requiredResult data.recordType
string requiredThe record type to use for the DNS record to verify the subdomain - always CNAME for subdomains.name
string requiredThe subdomain.fullName
string requiredThe full domain name with subdomaincontent
string requiredThe content to set the DNS record toverified
boolean requiredWhether the subdomain has been verified successfully and can be used.certificate
{object}inProgress
booleanWhether a certificate is in the process of being generatedexpiryDate
stringExpiry date of the current certificaterefreshDare
stringRefresh date of the current certificatecdn
{object}cloudfront
{object}enabled
booleanstatus
stringdeployedAt
stringfastly
{object}enabled
booleanstatus
stringoptions
{object}service
{object}forceTlsEnableHsts
booleanhstsDuration
numberHSTS duration. Required when `forceTlsEnableHsts` is `true`.min300staleIfError
booleanstaleIfErrorTtl
numberdefaultTtl
numberlogging
{object}enabled
booleanhttp3
{object}enabled
booleanwebsockets
{object}enabled
booleancompression
{object}enabled
booleanmode
stringCompression options. Required when `enabled` is `true`.one ofgzip, brotlivclSnippets
[array]- {object}
id
stringname
string requiredmin length3max length39pattern^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$type
string requiredone ofinit, recv, hash, hit, miss, pass, fetch, error, deliver, log, nonedynamic
string requiredone of0, 1priority
number requiredmin0max100content
string requiredcacheSettings
[array]- {object}
id
stringname
string requiredmin length3max length39pattern^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$action
stringone ofpass, cache, restartcacheCondition
stringstaleTtl
number requiredttl
number requireddeployedAt
string
GET /v1/domains/{domain}/subdomains/{subdomain}
Example response
200 OK
JSON
{
"data": {
"recordType": "CNAME",
"name": "site",
"fullName": "site.example.com",
"content": "site.example.com.user-1234.dns.northflank.app",
"verified": true
}
}