Skip to content

Domains

All operations require authentication.

12 operationsv1/email/pro
Agent setup

List domainsAlpha

GET
/1.0/email/pro/{service}/domain

Returns the names of the domains attached to the service. Filter them by state, such as ok or suspended.

Path parameters

service
required
string

Service

Query parameters

state
ObjectStateEnum

Filter the value of state property (=)

Valuescreatingdeletingokreopeningsuspendedsuspendingunknown

Response

200string[]successful operation

Example uses service = string

$ curl https://api.eu.ovhcloud.com/1.0/email/pro/{service}/domain \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ "string"]

Get a domainAlpha

GET
/1.0/email/pro/{service}/domain/{domainName}

Returns the type and state of the domain, its MX, SRV and SPF records with their validation status, the expected records, its DKIM diagnostics, its MX relay and its aliases.

Path parameters

domainName
required
string

Domain name

service
required
string

Service

Response

200DomainNativesuccessful operation
cnameToCheck
read-only
string

Cname that will be checked to prove the domain ownership

dkimDiagnostics
read-only
DomainDkimDiagnostics

Dkim selectors and DNS configuration state

domainAliases
read-only
string[]

List of aliases for this domain

domainValidated
read-only
boolean

Domain validation status

expectedAutodiscoverSRV
read-only
string

Expected SRV record on this domain

expectedMX
read-only
string[]

Expected MX record(s) on this domain

expectedSPF
read-only
string

Expected SPF record on this domain

isAliasDomain
read-only
boolean

Indicate if this domain is an alias for another domain

mxIsValid
read-only
boolean

If true your DNS MX configuration is valid

mxRecord
read-only
string[]

Domain MX record configured in DNS

mxRelay
read-only
string

If specified, emails to not existing address will be redirected to that domain

name
read-only
string

Domain name

spfIsValid
read-only
boolean

SPF record validation passed

spfRecord
read-only
string[]

Domain's SPF record configured in the DNS

srvIsValid
read-only
boolean

If true your DNS SRV record is valid

srvRecord
read-only
string[]

Domain SRV record configured in DNS

state
read-only
ObjectStateEnum

Domain state

Valuescreatingdeletingokreopeningsuspendedsuspendingunknown
taskPendingId
read-only
integer

Pending tasks id

type
read-only
DomainTypeEnum

Domain type

ValuesauthoritativenonAuthoritative

Example uses domainName = string, service = string

$ curl https://api.eu.ovhcloud.com/1.0/email/pro/{service}/domain/{domainName} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "cnameToCheck": "string", "dkimDiagnostics": { "errorCode": 0, "message": "string", "state": "active" }, "domainAliases": [ "string" ], "domainValidated": true, "expectedAutodiscoverSRV": "string", "expectedMX": [ "string" ], "expectedSPF": "string", "isAliasDomain": true, "mxIsValid": true, "mxRecord": [ "string" ], "mxRelay": "string", "name": "string", "spfIsValid": true, "spfRecord": [ "string" ], "srvIsValid": true, "srvRecord": [ "string" ], "state": "creating", "taskPendingId": 0, "type": "authoritative"}

Add a domainProduction

POST
/1.0/email/pro/{service}/domain

Add a domain. Adds an authoritative or nonAuthoritative domain to the service and returns the task. For a domain hosted by OVHcloud, the MX, autodiscover SRV, SPF and DKIM records can be configured automatically.

Path parameters

service
required
string

The internal name of your pro organization

Request body (required)

autoEnableDKIM
boolean

Enable DKIM automatically after DKIM configuration

configureAutodiscover
boolean

If you host domain in OVH we can configure autodiscover record automatically

configureDKIM
boolean

Launch configuration of DKIM automatically for the domain

configureMx
boolean

If you host domain in OVH we can configure mx record automatically

configureSPF
boolean

Enable automatic SPF record (only for domains hosted by OVHcloud)

mxRelay
string

If specified, emails to not existing address will be redirected to that domain

name
required
string

Domain to install on server

type
required
DomainTypeEnum

Type of domain that You want to install

ValuesauthoritativenonAuthoritative

Response

200Tasksuccessful operation
finishDate
read-only
stringdate-time

Completion date

function
read-only
TaskFunctionEnum

Function name

ValuesaddAccountaddAliasaddDomainaddDomainDKIMaddDomainDisclaimeraddExternalContactaddFullAccessaddSendAsaddSendOnBehalfToaddServiceAuthorizedIpchangeHostnamechangePasswordconfigureCustomerdeleteAccountdeleteAliasdeleteDomaindeleteDomainDKIMdeleteDomainDisclaimerdeleteExternalContactdeleteFullAccessdeleteSendAsdeleteSendOnBehalfTodeleteServicedeleteServiceAuthorizedIpdiagnoseAccountdisableDKIMenableDKIMexpandDriveinstallServermaintenancemigrateAccountViaOMMmigrationAccountmigrationDisclaimermigrationExternalContactmigrationHistorymigrationServicereOpenAccountsetAccountsetAliassetDnssetDomainsetDomainDisclaimersetExternalContactsetServicesuspendAccountsuspendServiceunknownunsuspendAccountunsuspendService
id
read-only
integer

Task id

status
read-only
TaskStatusEnum

Task status

Valuescancelleddoingdoneerrortodo
todoDate
read-only
stringdate-time

Creation date

Example uses service = string

$ curl https://api.eu.ovhcloud.com/1.0/email/pro/{service}/domain \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "finishDate": "2024-01-01T12:00:00Z", "function": "addAccount", "id": 0, "status": "cancelled", "todoDate": "2024-01-01T12:00:00Z"}

Remove a domainProduction

DELETE
/1.0/email/pro/{service}/domain/{domainName}

Remove a domain. Detaches the domain from the Email Pro service, which no longer serves email addresses on it, and returns the task.

Path parameters

domainName
required
string

Domain name

service
required
string

The internal name of your pro organization

Response

200Tasksuccessful operation
finishDate
read-only
stringdate-time

Completion date

function
read-only
TaskFunctionEnum

Function name

ValuesaddAccountaddAliasaddDomainaddDomainDKIMaddDomainDisclaimeraddExternalContactaddFullAccessaddSendAsaddSendOnBehalfToaddServiceAuthorizedIpchangeHostnamechangePasswordconfigureCustomerdeleteAccountdeleteAliasdeleteDomaindeleteDomainDKIMdeleteDomainDisclaimerdeleteExternalContactdeleteFullAccessdeleteSendAsdeleteSendOnBehalfTodeleteServicedeleteServiceAuthorizedIpdiagnoseAccountdisableDKIMenableDKIMexpandDriveinstallServermaintenancemigrateAccountViaOMMmigrationAccountmigrationDisclaimermigrationExternalContactmigrationHistorymigrationServicereOpenAccountsetAccountsetAliassetDnssetDomainsetDomainDisclaimersetExternalContactsetServicesuspendAccountsuspendServiceunknownunsuspendAccountunsuspendService
id
read-only
integer

Task id

status
read-only
TaskStatusEnum

Task status

Valuescancelleddoingdoneerrortodo
todoDate
read-only
stringdate-time

Creation date

Example uses domainName = string, service = string

$ curl https://api.eu.ovhcloud.com/1.0/email/pro/{service}/domain/{domainName} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "finishDate": "2024-01-01T12:00:00Z", "function": "addAccount", "id": 0, "status": "cancelled", "todoDate": "2024-01-01T12:00:00Z"}

Update a domainProduction

PUT
/1.0/email/pro/{service}/domain/{domainName}

Update a domain. Updates the type of the domain, authoritative or nonAuthoritative, and its mxRelay, the domain that receives the emails sent to addresses that do not exist.

Path parameters

domainName
required
string

Domain name

service
required
string

The internal name of your pro organization

Request body (required)

cnameToCheck
read-only
string

Cname that will be checked to prove the domain ownership

domainAliases
read-only
string[]

List of aliases for this domain

domainValidated
read-only
boolean

Domain validation status

isAliasDomain
read-only
boolean

Indicate if this domain is an alias for another domain

mxIsValid
read-only
boolean

If true your dns mx configuration is valid

mxRecord
read-only
string[]

Domain MX record configured in DNS

mxRelay
string

If specified, emails to not existing address will be redirected to that domain

name
read-only
string

Domain name

srvIsValid
read-only
boolean

If true your dns srv record is valid

srvRecord
read-only
string[]

Domain SRV record configured in DNS

state
read-only
ObjectStateEnum

Domain state

Valuescreatingdeletingokreopeningsuspendedsuspendingunknown
taskPendingId
read-only
integer

Pending taks id

type
DomainTypeEnum

Domain type

ValuesauthoritativenonAuthoritative

Response

200—successful operation

Example uses domainName = string, service = string

$ curl https://api.eu.ovhcloud.com/1.0/email/pro/{service}/domain/{domainName} \
  -H "authorization: Bearer $OVH_TOKEN"

List DKIM selectorsAlpha

GET
/1.0/email/pro/{service}/domain/{domainName}/dkim

Returns the names of the DKIM selectors of the domain. Get one to read its DNS record and its status.

Path parameters

domainName
required
string

Domain name

service
required
string

Service

Response

200string[]successful operation

Example uses domainName = string, service = string

$ curl https://api.eu.ovhcloud.com/1.0/email/pro/{service}/domain/{domainName}/dkim \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ "string"]

Get a DKIM selectorAlpha

GET
/1.0/email/pro/{service}/domain/{domainName}/dkim/{selectorName}

Returns the status of the DKIM selector, the CNAME record to add to the DNS zone with its target and validation status, and the header used for the DKIM signature.

Path parameters

domainName
required
string

Domain name

selectorName
required
string

Selector name

service
required
string

Service

Response

200Dkimsuccessful operation
cnameIsValid
read-only
boolean

DNS CNAME validation passed

customerRecord
read-only
string

Customer DNS record

header
read-only
string

Header used for DKIM signature

lastUpdate
read-only
stringdate-time

Last update date

recordType
read-only
DkimRecordTypeEnum

Record type of the customer record

ValuesCNAME
selectorName
read-only
string

Selector name

status
read-only
DkimStatusEnum

DKIM status

ValuesdeletingdisablingenablinginProductionreadytodowaitingRecord
targetRecord
read-only
string

Target of the customer record

taskPendingId
read-only
integer

Pending task for this DKIM

Example uses domainName = string, selectorName = string, service = string

$ curl https://api.eu.ovhcloud.com/1.0/email/pro/{service}/domain/{domainName}/dkim/{selectorName} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "cnameIsValid": true, "customerRecord": "string", "header": "string", "lastUpdate": "2024-01-01T12:00:00Z", "recordType": "CNAME", "selectorName": "string", "status": "deleting", "targetRecord": "string", "taskPendingId": 0}

Create a DKIM selectorProduction

POST
/1.0/email/pro/{service}/domain/{domainName}/dkim

Create a DKIM selector. Creates the DKIM selector selectorName on the domain and returns the task. Set configureDkim to configure its DNS record when the domain is hosted by OVHcloud, and autoEnableDKIM to enable it once configured.

Path parameters

domainName
required
string

Domain name

service
required
string

The internal name of your pro organization

Request body (required)

autoEnableDKIM
boolean

Enable DKIM automatically after DKIM configuration

configureDkim
boolean

If you host domain in OVH we can configure dkim dns record automatically

selectorName
required
string

selector name for DKIM

Response

200Tasksuccessful operation
finishDate
read-only
stringdate-time

Completion date

function
read-only
TaskFunctionEnum

Function name

ValuesaddAccountaddAliasaddDomainaddDomainDKIMaddDomainDisclaimeraddExternalContactaddFullAccessaddSendAsaddSendOnBehalfToaddServiceAuthorizedIpchangeHostnamechangePasswordconfigureCustomerdeleteAccountdeleteAliasdeleteDomaindeleteDomainDKIMdeleteDomainDisclaimerdeleteExternalContactdeleteFullAccessdeleteSendAsdeleteSendOnBehalfTodeleteServicedeleteServiceAuthorizedIpdiagnoseAccountdisableDKIMenableDKIMexpandDriveinstallServermaintenancemigrateAccountViaOMMmigrationAccountmigrationDisclaimermigrationExternalContactmigrationHistorymigrationServicereOpenAccountsetAccountsetAliassetDnssetDomainsetDomainDisclaimersetExternalContactsetServicesuspendAccountsuspendServiceunknownunsuspendAccountunsuspendService
id
read-only
integer

Task id

status
read-only
TaskStatusEnum

Task status

Valuescancelleddoingdoneerrortodo
todoDate
read-only
stringdate-time

Creation date

Example uses domainName = string, service = string

$ curl https://api.eu.ovhcloud.com/1.0/email/pro/{service}/domain/{domainName}/dkim \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "finishDate": "2024-01-01T12:00:00Z", "function": "addAccount", "id": 0, "status": "cancelled", "todoDate": "2024-01-01T12:00:00Z"}

Delete a DKIM selectorProduction

DELETE
/1.0/email/pro/{service}/domain/{domainName}/dkim/{selectorName}

Delete a DKIM selector. Removes the DKIM selector and its key from the domain of the Email Pro service, and returns the task.

Path parameters

domainName
required
string

Domain name

selectorName
required
string

selectorName

service
required
string

The internal name of your pro organization

Response

200Tasksuccessful operation
finishDate
read-only
stringdate-time

Completion date

function
read-only
TaskFunctionEnum

Function name

ValuesaddAccountaddAliasaddDomainaddDomainDKIMaddDomainDisclaimeraddExternalContactaddFullAccessaddSendAsaddSendOnBehalfToaddServiceAuthorizedIpchangeHostnamechangePasswordconfigureCustomerdeleteAccountdeleteAliasdeleteDomaindeleteDomainDKIMdeleteDomainDisclaimerdeleteExternalContactdeleteFullAccessdeleteSendAsdeleteSendOnBehalfTodeleteServicedeleteServiceAuthorizedIpdiagnoseAccountdisableDKIMenableDKIMexpandDriveinstallServermaintenancemigrateAccountViaOMMmigrationAccountmigrationDisclaimermigrationExternalContactmigrationHistorymigrationServicereOpenAccountsetAccountsetAliassetDnssetDomainsetDomainDisclaimersetExternalContactsetServicesuspendAccountsuspendServiceunknownunsuspendAccountunsuspendService
id
read-only
integer

Task id

status
read-only
TaskStatusEnum

Task status

Valuescancelleddoingdoneerrortodo
todoDate
read-only
stringdate-time

Creation date

Example uses domainName = string, selectorName = string, service = string

$ curl https://api.eu.ovhcloud.com/1.0/email/pro/{service}/domain/{domainName}/dkim/{selectorName} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "finishDate": "2024-01-01T12:00:00Z", "function": "addAccount", "id": 0, "status": "cancelled", "todoDate": "2024-01-01T12:00:00Z"}

Disable DKIM signingProduction

POST
/1.0/email/pro/{service}/domain/{domainName}/dkim/{selectorName}/disable

Disable DKIM signing. Stops signing the emails of the domain with this DKIM selector, and returns the task. The selector is kept.

Path parameters

domainName
required
string

Domain name

selectorName
required
string

selectorName

service
required
string

The internal name of your pro organization

Response

200Tasksuccessful operation
finishDate
read-only
stringdate-time

Completion date

function
read-only
TaskFunctionEnum

Function name

ValuesaddAccountaddAliasaddDomainaddDomainDKIMaddDomainDisclaimeraddExternalContactaddFullAccessaddSendAsaddSendOnBehalfToaddServiceAuthorizedIpchangeHostnamechangePasswordconfigureCustomerdeleteAccountdeleteAliasdeleteDomaindeleteDomainDKIMdeleteDomainDisclaimerdeleteExternalContactdeleteFullAccessdeleteSendAsdeleteSendOnBehalfTodeleteServicedeleteServiceAuthorizedIpdiagnoseAccountdisableDKIMenableDKIMexpandDriveinstallServermaintenancemigrateAccountViaOMMmigrationAccountmigrationDisclaimermigrationExternalContactmigrationHistorymigrationServicereOpenAccountsetAccountsetAliassetDnssetDomainsetDomainDisclaimersetExternalContactsetServicesuspendAccountsuspendServiceunknownunsuspendAccountunsuspendService
id
read-only
integer

Task id

status
read-only
TaskStatusEnum

Task status

Valuescancelleddoingdoneerrortodo
todoDate
read-only
stringdate-time

Creation date

Example uses domainName = string, selectorName = string, service = string

$ curl https://api.eu.ovhcloud.com/1.0/email/pro/{service}/domain/{domainName}/dkim/{selectorName}/disable \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "finishDate": "2024-01-01T12:00:00Z", "function": "addAccount", "id": 0, "status": "cancelled", "todoDate": "2024-01-01T12:00:00Z"}

Enable DKIM signingProduction

POST
/1.0/email/pro/{service}/domain/{domainName}/dkim/{selectorName}/enable

Enable DKIM signing. Signs the emails of the domain with the DKIM selector, or switches to it from the selector in use, and returns the task.

Path parameters

domainName
required
string

Domain name

selectorName
required
string

selectorName

service
required
string

The internal name of your pro organization

Response

200Tasksuccessful operation
finishDate
read-only
stringdate-time

Completion date

function
read-only
TaskFunctionEnum

Function name

ValuesaddAccountaddAliasaddDomainaddDomainDKIMaddDomainDisclaimeraddExternalContactaddFullAccessaddSendAsaddSendOnBehalfToaddServiceAuthorizedIpchangeHostnamechangePasswordconfigureCustomerdeleteAccountdeleteAliasdeleteDomaindeleteDomainDKIMdeleteDomainDisclaimerdeleteExternalContactdeleteFullAccessdeleteSendAsdeleteSendOnBehalfTodeleteServicedeleteServiceAuthorizedIpdiagnoseAccountdisableDKIMenableDKIMexpandDriveinstallServermaintenancemigrateAccountViaOMMmigrationAccountmigrationDisclaimermigrationExternalContactmigrationHistorymigrationServicereOpenAccountsetAccountsetAliassetDnssetDomainsetDomainDisclaimersetExternalContactsetServicesuspendAccountsuspendServiceunknownunsuspendAccountunsuspendService
id
read-only
integer

Task id

status
read-only
TaskStatusEnum

Task status

Valuescancelleddoingdoneerrortodo
todoDate
read-only
stringdate-time

Creation date

Example uses domainName = string, selectorName = string, service = string

$ curl https://api.eu.ovhcloud.com/1.0/email/pro/{service}/domain/{domainName}/dkim/{selectorName}/enable \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "finishDate": "2024-01-01T12:00:00Z", "function": "addAccount", "id": 0, "status": "cancelled", "todoDate": "2024-01-01T12:00:00Z"}

List available DKIM selectorsProduction

GET
/1.0/email/pro/{service}/domain/{domainName}/dkimSelector

List available DKIM selectors. Returns the selector names that can be used to create a DKIM selector on the domain.

Path parameters

domainName
required
string

Domain name

service
required
string

The internal name of your pro organization

Response

200string[]successful operation

Example uses domainName = string, service = string

$ curl https://api.eu.ovhcloud.com/1.0/email/pro/{service}/domain/{domainName}/dkimSelector \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ "string"]