Skip to content

Delegated Accounts

All operations require authentication.

20 operationsv1/email/domain
Agent setup

List delegated accountsProduction

GET
/1.0/email/domain/delegatedAccount

List delegated accounts. Returns the email addresses of the email accounts delegated to the customer account. Filter them by domain or accountName.

Query parameters

accountName
string

Name of email address

domain
string

Domain of email address

Response

200string[]successful operation

Reads your token from $OVH_TOKEN

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

Get a delegated accountProduction

GET
/1.0/email/domain/delegatedAccount/{email}

Get a delegated account. Returns the email address, description, size in bytes, allowed sizes and blocked state of the delegated email account.

Path parameters

email
required
string

Email

Response

200AccountDelegatedsuccessful operation
accountName
read-only
string

Name of account

allowedAccountSize
read-only
integer[]

List of allowed sizes for this account in bytes

description
string

Account description

domain
read-only
string

Name of domain

email
read-only
string

Email

isBlocked
read-only
boolean

If true your account is blocked

size
integer

Size of your account in bytes

Example uses email = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "accountName": "string", "allowedAccountSize": [ 0 ], "description": "string", "domain": "string", "email": "string", "isBlocked": true, "size": 0}

Update a delegated accountProduction

PUT
/1.0/email/domain/delegatedAccount/{email}

Update a delegated account. Updates the description or the size in bytes of the delegated email account. The allowed sizes are in allowedAccountSize.

Path parameters

email
required
string

Email

Request body (required)

accountName
read-only
string

Name of account

allowedAccountSize
read-only
integer[]

List of allowed sizes for this account in bytes

description
string

Account description

domain
read-only
string

Name of domain

email
read-only
string

Email

isBlocked
read-only
boolean

If true your account is blocked

size
integer

Size of your account in bytes

Response

200—successful operation

Example uses email = string

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

Change a delegated account passwordProduction

POST
/1.0/email/domain/delegatedAccount/{email}/changePassword

Change a delegated account password. Sets a new password and returns the task. The password needs 8 to 30 characters and no accents.

Path parameters

email
required
string

Email

Request body (required)

password
required
stringpassword

New password

Response

200TaskPopsuccessful operation
action
read-only
DomainPopActionEnum

Action of task

ValuesaddAccountchangeAccountchangePassworddeleteAccountinternalMigrationmigrationtemporaryTaskunknown
date
read-only
stringdate-time

Creation date of task

domain
read-only
string

Domain name of task

id
read-only
integer

Id of task

name
read-only
string

Account name of task

Example uses email = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/changePassword \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "action": "addAccount", "date": "2024-01-01T12:00:00Z", "domain": "string", "id": 0, "name": "string"}

List filtersProduction

GET
/1.0/email/domain/delegatedAccount/{email}/filter

List filters. Returns the names of the filters of the delegated email account. Get one to read its action, priority and state.

Path parameters

email
required
string

Email

Response

200string[]successful operation

Example uses email = string

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

Get a filterProduction

GET
/1.0/email/domain/delegatedAccount/{email}/filter/{name}

Get a filter. Returns the account, priority, active state, action (accept, account, delete or redirect) and action parameter of the filter.

Path parameters

email
required
string

Email

name
required
string

Filter name

Response

200Filtersuccessful operation
action
read-only
DomainFilterActionEnum

Action of filter

Valuesacceptaccountdeleteredirect
actionParam
read-only
string

Action parameter of filter

active
read-only
boolean

If true filter is active

domain
read-only
string

Domain name of filter

name
read-only
string

Filter name

pop
read-only
string

Account name of filter

priority
read-only
integer

Priority of filter

Example uses email = string, name = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/filter/{name} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "action": "accept", "actionParam": "string", "active": true, "domain": "string", "name": "string", "pop": "string", "priority": 0}

Create a filterProduction

POST
/1.0/email/domain/delegatedAccount/{email}/filter

Create a filter. Creates a filter with a rule on a header (operand and value), an action, a priority and an active state, and returns the task.

Path parameters

email
required
string

Email

Request body (required)

action
required
DomainFilterActionEnum

Action of filter

Valuesacceptaccountdeleteredirect
actionParam
string

Action parameter of filter

active
required
boolean

If true filter is active

header
required
string

Header to be filtered

name
required
string

Filter name

operand
required
DomainFilterOperandEnum

Rule of filter

ValuescheckspfcontainsnoContains
priority
required
integer

Priority of filter

value
required
string

Rule parameter of filter

Response

200TaskFiltersuccessful operation
account
read-only
string

Account name of task

action
read-only
string

Action of task

domain
read-only
string

Domain name of task

id
read-only
integer

Id of task

timestamp
read-only
stringdate-time

Creation date of task

Example uses email = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/filter \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "account": "string", "action": "string", "domain": "string", "id": 0, "timestamp": "2024-01-01T12:00:00Z"}

Delete a filterProduction

DELETE
/1.0/email/domain/delegatedAccount/{email}/filter/{name}

Delete a filter. Removes the filter and its rules from the email account, and returns the tasks. Incoming emails are no longer filtered by it.

Path parameters

email
required
string

Email

name
required
string

Filter name

Response

200TaskFilter[]successful operation
account
read-only
string

Account name of task

action
read-only
string

Action of task

domain
read-only
string

Domain name of task

id
read-only
integer

Id of task

timestamp
read-only
stringdate-time

Creation date of task

Example uses email = string, name = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/filter/{name} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "account": "string", "action": "string", "domain": "string", "id": 0, "timestamp": "2024-01-01T12:00:00Z" }]

Enable or disable a filterProduction

POST
/1.0/email/domain/delegatedAccount/{email}/filter/{name}/changeActivity

Enable or disable a filter. Set activity to true to apply the filter to incoming emails, or to false to suspend it.

Path parameters

email
required
string

Email

name
required
string

Filter name

Request body (required)

activity
required
boolean

New activity

Response

200TaskFiltersuccessful operation
account
read-only
string

Account name of task

action
read-only
string

Action of task

domain
read-only
string

Domain name of task

id
read-only
integer

Id of task

timestamp
read-only
stringdate-time

Creation date of task

Example uses email = string, name = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/filter/{name}/changeActivity \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "account": "string", "action": "string", "domain": "string", "id": 0, "timestamp": "2024-01-01T12:00:00Z"}

Change filter priorityProduction

POST
/1.0/email/domain/delegatedAccount/{email}/filter/{name}/changePriority

Change filter priority. Sets the priority of the filter, which gives the order the filters of the account are applied in.

Path parameters

email
required
string

Email

name
required
string

Filter name

Request body (required)

priority
required
integer

New priority

Response

200TaskFiltersuccessful operation
account
read-only
string

Account name of task

action
read-only
string

Action of task

domain
read-only
string

Domain name of task

id
read-only
integer

Id of task

timestamp
read-only
stringdate-time

Creation date of task

Example uses email = string, name = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/filter/{name}/changePriority \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "account": "string", "action": "string", "domain": "string", "id": 0, "timestamp": "2024-01-01T12:00:00Z"}

List filter rulesProduction

GET
/1.0/email/domain/delegatedAccount/{email}/filter/{name}/rule

List filter rules. Returns the IDs of the rules of the filter. Get one to read the header it checks, its operand and its value.

Path parameters

email
required
string

Email

name
required
string

Filter name

Response

200integer[]successful operation

Example uses email = string, name = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/filter/{name}/rule \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ 0]

Get a filter ruleProduction

GET
/1.0/email/domain/delegatedAccount/{email}/filter/{name}/rule/{id}

Get a filter rule. Returns the header, the operand (checkspf, contains or noContains) and the value of the rule.

Path parameters

email
required
string

Email

id
required
integer
—
name
required
string

Filter name

Response

200Rulesuccessful operation
header
read-only
string

Header to be filtered

id
read-only
integer
—
operand
read-only
DomainFilterOperandEnum

Rule of filter

ValuescheckspfcontainsnoContains
value
read-only
string

Rule parameter of filter

Example uses email = string, id = 0, name = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/filter/{name}/rule/{id} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "header": "string", "id": 0, "operand": "checkspf", "value": "string"}

Create a filter ruleProduction

POST
/1.0/email/domain/delegatedAccount/{email}/filter/{name}/rule

Create a filter rule. Adds a rule to the filter on a header, with an operand (checkspf, contains or noContains) and a value, and returns the task.

Path parameters

email
required
string

Email

name
required
string

Filter name

Request body (required)

header
required
string

Header to be filtered

operand
required
DomainFilterOperandEnum

Rule of filter

ValuescheckspfcontainsnoContains
value
required
string

Rule parameter of filter

Response

200TaskFiltersuccessful operation
account
read-only
string

Account name of task

action
read-only
string

Action of task

domain
read-only
string

Domain name of task

id
read-only
integer

Id of task

timestamp
read-only
stringdate-time

Creation date of task

Example uses email = string, name = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/filter/{name}/rule \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "account": "string", "action": "string", "domain": "string", "id": 0, "timestamp": "2024-01-01T12:00:00Z"}

Delete a filter ruleProduction

DELETE
/1.0/email/domain/delegatedAccount/{email}/filter/{name}/rule/{id}

Delete a filter rule. Removes the rule from the filter and returns the tasks. The filter keeps applying its other rules.

Path parameters

email
required
string

Email

id
required
integer
—
name
required
string

Filter name

Response

200TaskFilter[]successful operation
account
read-only
string

Account name of task

action
read-only
string

Action of task

domain
read-only
string

Domain name of task

id
read-only
integer

Id of task

timestamp
read-only
stringdate-time

Creation date of task

Example uses email = string, id = 0, name = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/filter/{name}/rule/{id} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "account": "string", "action": "string", "domain": "string", "id": 0, "timestamp": "2024-01-01T12:00:00Z" }]

Get a delegated account responderProduction

GET
/1.0/email/domain/delegatedAccount/{email}/responder

Get a delegated account responder. Returns the content, the start and end dates and the copy settings of the responder of the delegated email account.

Path parameters

email
required
string

Email

Response

200ResponderAccountsuccessful operation
account
read-only
string

Name of account

content
string

Content of responder

copy
read-only
boolean

If true, emails will be copy to emailToCopy address

copyTo
read-only
string

Account where copy emails

from
stringdate-time

Date of start responder

to
stringdate-time

Date of end responder

Example uses email = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/responder \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "account": "string", "content": "string", "copy": true, "copyTo": "string", "from": "2024-01-01T12:00:00Z", "to": "2024-01-01T12:00:00Z"}

Create a delegated account responderProduction

POST
/1.0/email/domain/delegatedAccount/{email}/responder

Create a delegated account responder. Creates the automatic reply of the delegated email account with its content and optional start and end dates, and returns the task. Set copy to true to copy the emails to copyTo.

Path parameters

email
required
string

Email

Request body (required)

content
required
string

Content of responder

copy
required
boolean

If true, emails will be copy to emailToCopy address

copyTo
string

Account where copy emails

from
stringdate-time

Date of start responder

to
stringdate-time

Date of end responder

Response

200TaskSpecialAccountsuccessful operation
account
read-only
string

Account name of task

action
read-only
DomainSpecialAccountActionEnum

Action of task

Valuesaddchangedelete
date
read-only
stringdate-time

Creation date of task

domain
read-only
string

Domain name of task

id
read-only
integer

Id of task

type
read-only
DomainSpecialAccountTypeEnum

Type of action filter

Values25galiasdeletefilterforwardresponder

Example uses email = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/responder \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "account": "string", "action": "add", "date": "2024-01-01T12:00:00Z", "domain": "string", "id": 0, "type": "25g"}

Delete a delegated account responderProduction

DELETE
/1.0/email/domain/delegatedAccount/{email}/responder

Delete a delegated account responder. Removes the automatic reply of the delegated email account and returns the task.

Path parameters

email
required
string

Email

Response

200TaskSpecialAccountsuccessful operation
account
read-only
string

Account name of task

action
read-only
DomainSpecialAccountActionEnum

Action of task

Valuesaddchangedelete
date
read-only
stringdate-time

Creation date of task

domain
read-only
string

Domain name of task

id
read-only
integer

Id of task

type
read-only
DomainSpecialAccountTypeEnum

Type of action filter

Values25galiasdeletefilterforwardresponder

Example uses email = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/responder \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "account": "string", "action": "add", "date": "2024-01-01T12:00:00Z", "domain": "string", "id": 0, "type": "25g"}

Update a delegated account responderProduction

PUT
/1.0/email/domain/delegatedAccount/{email}/responder

Update a delegated account responder. Updates the content and the start and end dates of the responder.

Path parameters

email
required
string

Email

Request body (required)

account
read-only
string

Name of account

content
string

Content of responder

copy
read-only
boolean

If true, emails will be copy to emailToCopy address

copyTo
read-only
string

Account where copy emails

from
stringdate-time

Date of start responder

to
stringdate-time

Date of end responder

Response

200—successful operation

Example uses email = string

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

Refresh delegated account usageProduction

POST
/1.0/email/domain/delegatedAccount/{email}/updateUsage

Refresh delegated account usage. Asks for the figures returned by usage to be recomputed; they are updated asynchronously.

Path parameters

email
required
string

Email

Response

200—successful operation

Example uses email = string

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

Get delegated account usageProduction

POST
/1.0/email/domain/delegatedAccount/{email}/usage

Get delegated account usage. Returns the number of emails, the maximum size in bytes of the mailbox (quota) and the date of the measure.

Path parameters

email
required
string

Email

Response

200DomainUsageAccountStructsuccessful operation
date
stringdate-time

Timestamp

emailCount
integer

Number of message in mailbox

quota
integer

Size of mailbox (bytes)

Example uses email = string

$ curl https://api.eu.ovhcloud.com/1.0/email/domain/delegatedAccount/{email}/usage \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "date": "2024-01-01T12:00:00Z", "emailCount": 0, "quota": 0}