Skip to content

Retrieve a custom domain

Request

OAuth 2.0 scope:
  • okta.domains.read

Retrieves a custom domain by domainId

Path
domainIdstringrequired

id of the Domain

Example:OmWNeywfTzElSLOBMZsL
curl -i -X GET \
  https://subdomain.okta.com/api/v1/domains/OmWNeywfTzElSLOBMZsL

Responses

Success

Bodyapplication/json
brandIdstring

The ID number of the brand

Example:"bndul904tTZ6kWVhP0g3"
certificateSourceTypestring(DomainCertificateSourceType)

Certificate source type that indicates whether the certificate is provided by the user or Okta.

Enum:"MANUAL""OKTA_MANAGED"
classicBrandIdstring

The ID of the classic brand associated with this domain. Only present when the OIE_CLASSIC_INTEROP feature is enabled and the domain is paired with a classic brand.

Example:"bndul3lAFBFSfcI2HKWC"
dnsRecordsArray of objects(DNSRecordDomains)
domainstring

Custom domain name

Example:"login.example.com"
idstring

Unique ID of the domain

Example:"OcDz6iRyjkaCTXkdo0g3"
publicCertificateobject(DomainCertificateMetadata)

Certificate metadata for the domain

validationStatusstring(DomainValidationStatus)

Status of the domain

Enum:"COMPLETED""IN_PROGRESS""NOT_STARTED""VERIFIED"
Example:"VERIFIED"
Response
{ "brandId": "bndul904tTZ6kWVhP0g3", "certificateSourceType": "MANUAL", "classicBrandId": "bndul3lAFBFSfcI2HKWC", "dnsRecords": [ { … } ], "domain": "login.example.com", "id": "OcDz6iRyjkaCTXkdo0g3", "publicCertificate": { "expiration": "2021-05-11T05:13:05.000Z", "fingerprint": "73:68:82:7B:83:2E:48:29:A5:5E:E8:40:41:80:B3:AA:03:C4:42:43:05:73:45:BC:AA:47:00:23:A3:70:E5:C4", "subject": "CN=login.example.com" }, "validationStatus": "VERIFIED", "_links": { "self": { … }, "brand": { … }, "certificate": { … }, "classicBrand": { … }, "verify": { … } } }