API

Mailbox

A mailbox, by address: list, create, get, update or delete one, or renew it (renew).

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /mailbox/mailboxes/{email}/renew create OK
POST /mailbox/mailboxes create Accepted
GET /mailbox/mailboxes list OK
GET /mailbox/mailboxes/{email} load OK
DELETE /mailbox/mailboxes/{email} remove No Content
PATCH /mailbox/mailboxes/{email} update No Content

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:

mailboxs, err := client.Mailbox(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(mailboxs)
mailbox, err := client.Mailbox(nil).Load(map[string]any{"address": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(mailbox)
created, err := client.Mailbox(nil).Create(map[string]any{"config_name": "example", "email": "example", "password": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.Mailbox(nil).Update(map[string]any{"address": "example", "aliases": []any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
removed, err := client.Mailbox(nil).Remove(map[string]any{"address": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local mailboxs, err = client:Mailbox():list()
local mailbox, err = client:Mailbox():load({ address = "example" })
local created, err = client:Mailbox():create({ config_name = "example", email = "example", password = "example" })
local updated, err = client:Mailbox():update({ address = "example", aliases = {} })
local removed, err = client:Mailbox():remove({ address = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$mailboxs = $client->Mailbox()->list();
$mailbox = $client->Mailbox()->load(["address" => "example"]);
$created = $client->Mailbox()->create(["config_name" => "example", "email" => "example", "password" => "example"]);
$updated = $client->Mailbox()->update(["address" => "example", "aliases" => []]);
$client->Mailbox()->remove(["address" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

mailboxs = client.Mailbox().list()
mailbox = client.Mailbox().load({"address": "example"})
created = client.Mailbox().create({ "config_name": "example", "email": "example", "password": "example" })
updated = client.Mailbox().update({"address": "example", "aliases": []})
client.Mailbox().remove({"address": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

mailboxs = client.Mailbox.list()
mailbox = client.Mailbox.load({ "address" => "example" })
created = client.Mailbox.create({ "config_name" => "example", "email" => "example", "password" => "example" })
updated = client.Mailbox.update({ "address" => "example", "aliases" => [] })
client.Mailbox.remove({ "address" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const mailboxs = await client.Mailbox().list()
const mailbox = await client.Mailbox().load({ address: "example" })
const created = await client.Mailbox().create({ config_name: "example", email: "example", password: "example" })
const updated = await client.Mailbox().update({ address: "example", aliases: [] })
await client.Mailbox().remove({ address: "example" })

Fields

Field Type Required Description
address string Yes Address
aliases array No Aliases
antispam boolean Yes Antispam
autorenew object Yes Autorenew
config object Yes Config
config_name string Yes Config Name
created_at string Yes Created At
data_access boolean Yes Data Access
domain_part string Yes Domain Part
duration_month integer No Duration Month
email string Yes Email
expires_at string Yes Expires At
internal_domain boolean Yes Internal Domain
issues array No Issues
last_paid_duration integer Yes Last Paid Duration
local_part string Yes Local Part
message string Yes Message
owner object Yes Owner
password string Yes Password
quota integer Yes Quota
quota_used integer Yes Quota Used
responder object Yes Responder
updated_at string Yes Updated At
uuid string Yes Uuid

create

POST /mailbox/mailboxes/{email}/renew

Operation ID: postMailboxMailboxesEmailRenew.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
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
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

POST /mailbox/mailboxes

Operation ID: postMailboxMailboxes.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
sharing_id query string No

Request body

application/json

Property Type Required Description
aliases array of string No
config_name string Yes
duration_month enum: 1, 12 No
email string Yes
password 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

list

GET /mailbox/mailboxes

Operation ID: getMailboxMailboxes.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
address query string No
domain_part query string No
local_part query string No
page query integer No
per_page query integer No
search query string No
sharing_id query string No
sort_by query enum: id, -id, local_part, -local_part, config_name, -config_name, ... No

Responses

200: OK

application/json

Property Type Required Description
[].address string Yes
[].antispam boolean Yes
[].autorenew object No
[].autorenew.duration enum: 1, 12 Yes
[].autorenew.duration_type enum: m, y Yes
[].autorenew.sharing_id string Yes
[].config object Yes
[].config.label string Yes
[].config.name string Yes
[].config.quota_kb integer Yes
[].config.uuid string Yes
[].created_at string (date-time) Yes
[].data_access boolean Yes
[].domain_part string Yes
[].expires_at string (date-time) Yes
[].internal_domain boolean Yes
[].issues array of string No
[].last_paid_duration integer Yes
[].local_part string Yes
[].owner object Yes
[].owner.id string Yes
[].owner.name string Yes
[].quota integer Yes
[].quota_used integer Yes
[].responder object No
[].responder.ends_at string (date-time) Yes
[].responder.message string Yes
[].responder.starts_at string (date-time) Yes
[].updated_at string (date-time) Yes
[].uuid 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

load

GET /mailbox/mailboxes/{email}

Operation ID: getMailboxMailboxesEmail.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
email path string Yes
sharing_id query string No

Responses

200: OK

application/json

Property Type Required Description
address string Yes
aliases array of string No
antispam boolean Yes
autorenew object No
autorenew.duration enum: 1, 12 Yes
autorenew.duration_type enum: m, y Yes
autorenew.sharing_id string Yes
config object Yes
config.label string Yes
config.name string Yes
config.quota_kb integer Yes
config.uuid string Yes
created_at string (date-time) Yes
data_access boolean Yes
domain_part string Yes
expires_at string (date-time) Yes
internal_domain boolean Yes
issues array of any No
last_paid_duration integer Yes
local_part string Yes
owner object Yes
owner.id string Yes
owner.name string Yes
quota integer Yes
quota_used integer Yes
responder object No
responder.ends_at string (date-time) Yes
responder.message string Yes
responder.starts_at string (date-time) Yes
updated_at string (date-time) Yes
uuid 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

remove

DELETE /mailbox/mailboxes/{email}

Operation ID: deleteMailboxMailboxesEmail.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
email path string Yes
sharing_id query string No

Responses

204: No Content
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 /mailbox/mailboxes/{email}

Operation ID: patchMailboxMailboxesEmail.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
email path string Yes

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
config_name enum: standard, premium No
password string No
responder object No
responder.activated boolean Yes
responder.ends_at string (date-time) No
responder.message string No
responder.starts_at string (date-time) No

Responses

204: No Content
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