EmailMailbox
A mailbox in the deprecated Email API, per domain: list, create, get, update or delete one, purge it (purge), renew it (renew) or renew them all (renew_all).
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/email/mailboxes/{domain}/{email}/renew |
create |
OK |
POST |
/email/mailboxes/{domain} |
create |
OK |
POST |
/email/mailboxes/{domain}/renew |
create |
OK |
GET |
/email/mailboxes/{domain} |
list |
OK |
GET |
/email/mailboxes/{domain}/{mailbox_id} |
load |
OK |
DELETE |
/email/mailboxes/{domain}/{mailbox_id} |
remove |
Accepted |
DELETE |
/email/mailboxes/{domain}/{mailbox_id}/contents |
remove |
Accepted |
PATCH |
/email/mailboxes/{domain}/{mailbox_id} |
update |
Accepted |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
email_mailboxs, err := client.EmailMailbox(nil).List(map[string]any{"domain": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(email_mailboxs)
email_mailbox, err := client.EmailMailbox(nil).Load(map[string]any{"domain": "example", "id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(email_mailbox)
created, err := client.EmailMailbox(nil).Create(map[string]any{"domain": "example", "login": "example", "mailbox_type": "example", "password": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
updated, err := client.EmailMailbox(nil).Update(map[string]any{"id": "example_id", "domain": "example", "sharing_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
removed, err := client.EmailMailbox(nil).Remove(map[string]any{"domain": "example", "id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(removed)
Lua
Construct client as shown in the Lua setup, then call the operations:
local email_mailboxs, err = client:EmailMailbox():list({ domain = "example" })
local email_mailbox, err = client:EmailMailbox():load({ domain = "example", id = "example_id" })
local created, err = client:EmailMailbox():create({ domain = "example", login = "example", mailbox_type = "example", password = "example" })
local updated, err = client:EmailMailbox():update({ id = "example_id", domain = "example", sharing_id = "example" })
local removed, err = client:EmailMailbox():remove({ domain = "example", id = "example_id" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$email_mailboxs = $client->EmailMailbox()->list(["domain" => "example"]);
$email_mailbox = $client->EmailMailbox()->load(["domain" => "example", "id" => "example_id"]);
$created = $client->EmailMailbox()->create(["domain" => "example", "login" => "example", "mailbox_type" => "example", "password" => "example"]);
$updated = $client->EmailMailbox()->update(["id" => "example_id", "domain" => "example", "sharing_id" => "example"]);
$client->EmailMailbox()->remove(["domain" => "example", "id" => "example_id"]);
Python
Construct client as shown in the Python setup, then call the operations:
email_mailboxs = client.EmailMailbox().list({"domain": "example"})
email_mailbox = client.EmailMailbox().load({"domain": "example", "id": "example_id"})
created = client.EmailMailbox().create({ "domain": "example", "login": "example", "mailbox_type": "example", "password": "example" })
updated = client.EmailMailbox().update({"id": "example_id", "domain": "example", "sharing_id": "example"})
client.EmailMailbox().remove({"domain": "example", "id": "example_id"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
email_mailboxs = client.EmailMailbox.list({ "domain" => "example" })
email_mailbox = client.EmailMailbox.load({ "domain" => "example", "id" => "example_id" })
created = client.EmailMailbox.create({ "domain" => "example", "login" => "example", "mailbox_type" => "example", "password" => "example" })
updated = client.EmailMailbox.update({ "id" => "example_id", "domain" => "example", "sharing_id" => "example" })
client.EmailMailbox.remove({ "domain" => "example", "id" => "example_id" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const email_mailboxs = await client.EmailMailbox().list({ domain: "example" })
const email_mailbox = await client.EmailMailbox().load({ domain: "example", id: "example_id" })
const created = await client.EmailMailbox().create({ domain: "example", login: "example", mailbox_type: "example", password: "example" })
const updated = await client.EmailMailbox().update({ id: "example_id", domain: "example", sharing_id: "example" })
await client.EmailMailbox().remove({ domain: "example", id: "example_id" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
address |
string |
Yes | Address |
alias_count |
integer |
No | Alias Count |
aliases |
array |
Yes | Aliases |
antispam |
boolean |
Yes | Antispam |
autorenew |
object |
Yes | Autorenew |
domain |
string |
Yes | Domain |
errors |
array |
No | Errors |
expires_at |
string |
Yes | Expires At |
fallback_email |
string |
No | Fallback Email |
href |
string |
Yes | Href |
id |
string |
Yes | Id |
login |
string |
Yes | Login |
mailbox_type |
string |
Yes | Mailbox Type |
message |
string |
Yes | Message |
password |
string |
Yes | Password |
quota_used |
integer |
Yes | Quota Used |
responder |
object |
No | Responder |
status |
string |
Yes | Status |
to_convert |
boolean |
Yes | To Convert |
create
POST /email/mailboxes/{domain}/{email}/renew
Operation ID: postEmailMailboxesDomainEmailRenew.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
domain |
path |
string |
Yes | |
email |
path |
string |
Yes | |
sharing_id |
query |
string |
No | |
Dry-Run |
header |
integer |
No |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
duration |
integer |
Yes |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
errors |
array of object |
No | |
errors[].description |
string |
Yes | |
errors[].location |
enum: header, path, querystring, body |
Yes | |
errors[].name |
string |
Yes | |
status |
enum: success, error |
Yes |
202: Accepted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
402: Payment Required
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes | |
status_code |
integer |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
POST /email/mailboxes/{domain}
Operation ID: postEmailMailboxesDomain.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
domain |
path |
string |
Yes | |
Dry-Run |
header |
integer |
No |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
aliases |
array of string |
No | |
antispam |
boolean |
No | |
login |
string |
Yes | |
mailbox_type |
enum: standard, premium, standard_2023, premium_2023, standard_new (deprecated, replaced by standard_2023), premium_new (deprecated, replaced by premium_2023) |
Yes | |
password |
string |
Yes |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
errors |
array of object |
No | |
errors[].description |
string |
Yes | |
errors[].location |
enum: header, path, querystring, body |
Yes | |
errors[].name |
string |
Yes | |
status |
enum: success, error |
Yes |
202: Accepted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
POST /email/mailboxes/{domain}/renew
Operation ID: postEmailMailboxesDomainRenew.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
domain |
path |
string |
Yes | |
sharing_id |
query |
string |
No | |
Dry-Run |
header |
integer |
No |
Request body
application/json
The request body is any.
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
errors |
array of object |
No | |
errors[].description |
string |
Yes | |
errors[].location |
enum: header, path, querystring, body |
Yes | |
errors[].name |
string |
Yes | |
status |
enum: success, error |
Yes |
202: Accepted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
list
GET /email/mailboxes/{domain}
Operation ID: getEmailMailboxesDomain.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
domain |
path |
string |
Yes | |
<created_at |
query |
string (date-time) |
No | |
~login |
query |
string |
No | |
antispam |
query |
boolean |
No | |
login |
query |
string |
No | |
mailbox_type |
query |
enum: standard, premium, standard_2023, premium_2023 |
No | |
page |
query |
integer |
No | |
per_page |
query |
integer |
No |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
[].address |
string |
Yes | |
[].alias_count |
integer |
Yes | |
[].antispam |
boolean |
Yes | |
[].autorenew |
object |
Yes | |
[].autorenew.duration |
integer |
Yes | |
[].autorenew.duration_type |
string |
Yes | |
[].autorenew.enabled |
boolean |
Yes | |
[].autorenew.sharing_id |
string |
No | |
[].domain |
string |
Yes | |
[].expires_at |
string (date-time) |
Yes | |
[].href |
string |
Yes | |
[].id |
string |
Yes | |
[].login |
string |
Yes | |
[].mailbox_type |
enum: standard, premium, standard_2023, premium_2023 |
Yes | |
[].quota_used |
integer |
Yes | |
[].to_convert |
boolean |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
load
GET /email/mailboxes/{domain}/{mailbox_id}
Operation ID: getEmailMailboxesDomainMailboxId.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
domain |
path |
string |
Yes | |
mailbox_id |
path |
string |
Yes |
Responses
200: OK
application/json
| Property | Type | Required | Description |
|---|---|---|---|
address |
string |
Yes | |
alias_count |
integer |
No | |
aliases |
array of string |
Yes | |
antispam |
boolean |
Yes | |
autorenew |
object |
Yes | |
autorenew.duration |
integer |
Yes | |
autorenew.duration_type |
string |
Yes | |
autorenew.enabled |
boolean |
Yes | |
autorenew.sharing_id |
string |
No | |
domain |
string |
Yes | |
expires_at |
string (date-time) |
Yes | |
fallback_email |
string |
No | |
href |
string |
Yes | |
id |
string |
Yes | |
login |
string |
Yes | |
mailbox_type |
enum: standard, premium, standard_2023, premium_2023 |
Yes | |
quota_used |
integer |
Yes | |
responder |
object |
No | |
responder.enabled |
boolean |
No | |
responder.ends_at |
string (date-time) |
No | |
responder.message |
string |
No | |
responder.starts_at |
string (date-time) |
No |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
remove
DELETE /email/mailboxes/{domain}/{mailbox_id}
Operation ID: deleteEmailMailboxesDomainMailboxId.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
domain |
path |
string |
Yes | |
mailbox_id |
path |
string |
Yes |
Responses
202: Accepted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
DELETE /email/mailboxes/{domain}/{mailbox_id}/contents
Operation ID: deleteEmailMailboxesDomainMailboxIdContents.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
domain |
path |
string |
Yes | |
mailbox_id |
path |
string |
Yes |
Responses
202: Accepted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
update
PATCH /email/mailboxes/{domain}/{mailbox_id}
Operation ID: patchEmailMailboxesDomainMailboxId.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
domain |
path |
string |
Yes | |
mailbox_id |
path |
string |
Yes | |
sharing_id |
query |
string |
No |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
aliases |
array of string |
No | |
antispam |
boolean |
No | |
autorenew |
object |
No | |
autorenew.activated |
boolean |
Yes | |
autorenew.duration |
enum: 1, 12 |
Yes | |
login |
string |
No | |
mailbox_type |
enum: standard_2023, premium_2023 |
No | |
password |
string |
No | |
responder |
object |
No | |
responder.enabled |
boolean |
No | |
responder.ends_at |
string (date-time) |
No | |
responder.message |
string |
No | |
responder.starts_at |
string (date-time) |
No |
Responses
202: Accepted
application/json
| Property | Type | Required | Description |
|---|---|---|---|
message |
string |
Yes |
401: Unauthorized
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |
403: Forbidden
application/json
| Property | Type | Required | Description |
|---|---|---|---|
cause |
string |
Yes | |
code |
integer |
Yes | |
message |
string |
Yes | |
object |
string |
Yes |