The Email Domains API provides operations to manage email domains for your organization.
okta.emailDomains.read
Lists all the Email Domains in your org
OK
Forbidden
Too Many Requests
{- "id": "OeD114iNkrcN6aR680g4",
- "validationStatus": "NOT_STARTED",
- "displayName": "Admin",
- "userName": "admin",
- "domain": "example.com",
- "validationSubdomain": "mail",
- "dnsValidationRecords": [
- {
- "recordType": "TXT",
- "fqdn": "_oktaverification.example.com",
- "verificationValue": "759080212bda43e3bc825a7d73b4bb64"
}, - {
- "recordType": "CNAME",
- "fqdn": "mail.example.com",
- "verificationValue": "u22224444.wl024.sendgrid.net"
}, - {
- "recordType": "CNAME",
- "fqdn": "t02._domainkey.example.com",
- "verificationValue": "t02.domainkey.u22224444.wl024.sendgrid.net"
}, - {
- "recordType": "CNAME",
- "fqdn": "t022._domainkey.example.com",
- "verificationValue": "t02.domainkey.u22224444.wl024.sendgrid.net"
}
]
}
okta.emailDomains.manage
Creates an Email Domain in your org
Success
Bad Request
Forbidden
Not Found
Conflict
Too Many Requests
{- "displayName": "Admin",
- "userName": "admin",
- "domain": "example.com",
- "brandId": "bnd100iSrkcN6aR680g1",
- "validationSubdomain": "mail"
}
{- "id": "OeD114iNkrcN6aR680g4",
- "validationStatus": "NOT_STARTED",
- "displayName": "Admin",
- "userName": "admin",
- "domain": "example.com",
- "validationSubdomain": "mail",
- "dnsValidationRecords": [
- {
- "recordType": "TXT",
- "fqdn": "_oktaverification.example.com",
- "verificationValue": "759080212bda43e3bc825a7d73b4bb64"
}, - {
- "recordType": "CNAME",
- "fqdn": "mail.example.com",
- "verificationValue": "u22224444.wl024.sendgrid.net"
}, - {
- "recordType": "CNAME",
- "fqdn": "t02._domainkey.example.com",
- "verificationValue": "t02.domainkey.u22224444.wl024.sendgrid.net"
}, - {
- "recordType": "CNAME",
- "fqdn": "t022._domainkey.example.com",
- "verificationValue": "t02.domainkey.u22224444.wl024.sendgrid.net"
}
]
}
okta.emailDomains.read
Retrieves an Email Domain by emailDomainId
Success
Forbidden
Not Found
Too Many Requests
{- "id": "OeD114iNkrcN6aR680g4",
- "validationStatus": "NOT_STARTED",
- "displayName": "Admin",
- "userName": "admin",
- "domain": "example.com",
- "validationSubdomain": "mail",
- "dnsValidationRecords": [
- {
- "recordType": "TXT",
- "fqdn": "_oktaverification.example.com",
- "verificationValue": "759080212bda43e3bc825a7d73b4bb64"
}, - {
- "recordType": "CNAME",
- "fqdn": "mail.example.com",
- "verificationValue": "u22224444.wl024.sendgrid.net"
}, - {
- "recordType": "CNAME",
- "fqdn": "t02._domainkey.example.com",
- "verificationValue": "t02.domainkey.u22224444.wl024.sendgrid.net"
}, - {
- "recordType": "CNAME",
- "fqdn": "t022._domainkey.example.com",
- "verificationValue": "t02.domainkey.u22224444.wl024.sendgrid.net"
}
]
}
okta.emailDomains.manage
Replaces associated username and sender display name by emailDomainId
OK
Bad Request
Forbidden
Not Found
Too Many Requests
{- "displayName": "IT Admin",
- "userName": "noreply"
}
{- "id": "OeD114iNkrcN6aR680g4",
- "validationStatus": "NOT_STARTED",
- "displayName": "IT Admin",
- "userName": "noreply",
- "domain": "example.com",
- "validationSubdomain": "mail",
- "dnsValidationRecords": [
- {
- "recordType": "TXT",
- "fqdn": "_oktaverification.example.com",
- "verificationValue": "759080212bda43e3bc825a7d73b4bb64"
}, - {
- "recordType": "CNAME",
- "fqdn": "mail.example.com",
- "verificationValue": "u22224444.wl024.sendgrid.net"
}, - {
- "recordType": "CNAME",
- "fqdn": "t02._domainkey.example.com",
- "verificationValue": "t02.domainkey.u22224444.wl024.sendgrid.net"
}, - {
- "recordType": "CNAME",
- "fqdn": "t022._domainkey.example.com",
- "verificationValue": "t02.domainkey.u22224444.wl024.sendgrid.net"
}
]
}
okta.emailDomains.manage
Deletes an Email Domain by emailDomainId
No Content
Unable to delete custom email domain due to mail provider specific restrictions
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000216",
- "errorSummary": "Email domain can't be deleted due to mail provider restrictions.",
- "errorLink": "E0000216",
- "errorId": "oaeEdRqprFuTyKokyYPbURJkB",
- "errorCauses": [ ]
}
okta.emailDomains.manage
Verifies an Email Domain by emailDomainId
Success
Email domain could not be verified by mail provider
Forbidden
Not Found
Too Many Requests
{- "id": "OeD114iNkrcN6aR680g4",
- "validationStatus": "VERIFIED",
- "displayName": "IT Admin",
- "userName": "noreply",
- "domain": "example.com",
- "validationSubdomain": "mail",
- "dnsValidationRecords": [
- {
- "recordType": "TXT",
- "fqdn": "_oktaverification.example.com",
- "verificationValue": "759080212bda43e3bc825a7d73b4bb64"
}, - {
- "recordType": "CNAME",
- "fqdn": "mail.example.com",
- "verificationValue": "u22224444.wl024.sendgrid.net"
}, - {
- "recordType": "CNAME",
- "fqdn": "t02._domainkey.example.com",
- "verificationValue": "t02.domainkey.u22224444.wl024.sendgrid.net"
}, - {
- "recordType": "CNAME",
- "fqdn": "t022._domainkey.example.com",
- "verificationValue": "t02.domainkey.u22224444.wl024.sendgrid.net"
}
]
}