Skip to content

Retrieve an email domain

Request

OAuth 2.0 scope:
  • okta.emailDomains.read

Retrieves an Email Domain by emailDomainId

Path
emailDomainIdstringrequired

The ID of the email domain.

Query
expandArray of strings

Specifies additional metadata to be included in the response

Items Value:"brands"
curl -i -X GET \
  'https://subdomain.okta.com/api/v1/email-domains/{emailDomainId}?expand=brands'

Responses

Success

Bodyapplication/json
displayNamestringrequired
userNamestringrequired
dnsValidationRecordsArray of objects(EmailDomainDNSRecord)
domainstring
idstring
validationStatusstring(EmailDomainStatus)
Enum:"DELETED""ERROR""NOT_STARTED""POLLING""VERIFIED"
validationSubdomainstring

The subdomain for the email sender's custom mail domain

Default:"mail"
_embeddedobjectread-only
Response
{ "id": "OeD114iNkrcN6aR680g4", "validationStatus": "NOT_STARTED", "displayName": "Admin", "userName": "admin", "domain": "example.com", "validationSubdomain": "mail", "dnsValidationRecords": [ { … }, { … }, { … }, { … } ] }