API

EmailMigration

A domain's migration from the Email API to Mailbox: get its details or start it.

Operations

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

Method Route SDK operation Returns
POST /email/migration/{domain} create Accepted
GET /email/migration/{domain} load OK

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_migration, err := client.EmailMigration(nil).Load(map[string]any{"domain": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(email_migration)
created, err := client.EmailMigration(nil).Create(map[string]any{"domain": "example", "token": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

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

local email_migration, err = client:EmailMigration():load({ domain = "example" })
local created, err = client:EmailMigration():create({ domain = "example", token = "example" })

PHP

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

$email_migration = $client->EmailMigration()->load(["domain" => "example"]);
$created = $client->EmailMigration()->create(["domain" => "example", "token" => "example"]);

Python

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

email_migration = client.EmailMigration().load({"domain": "example"})
created = client.EmailMigration().create({ "domain": "example", "token": "example" })

Ruby

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

email_migration = client.EmailMigration.load({ "domain" => "example" })
created = client.EmailMigration.create({ "domain" => "example", "token" => "example" })

TypeScript

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

const email_migration = await client.EmailMigration().load({ domain: "example" })
const created = await client.EmailMigration().create({ domain: "example", token: "example" })

Fields

Field Type Required Description
available boolean Yes Available
currency string Yes Currency
forward_count integer Yes Forward Count
free_mailboxes integer Yes Free Mailboxes
included_mailboxes integer Yes Included Mailboxes
info array Yes Info
message string Yes Message
packmail boolean Yes Packmail
price_v1 number Yes Price V1
price_v2 number Yes Price V2
quota_v1 number Yes Quota V1
token string Yes Token
usage_v1 number Yes Usage V1

create

POST /email/migration/{domain}

Operation ID: postEmailMigrationDomain.

Authentication: bearer token (bearerAuth).

Parameters

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

Request body

application/json

Property Type Required Description
token 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

load

GET /email/migration/{domain}

Operation ID: getEmailMigrationDomain.

Authentication: bearer token (bearerAuth).

Parameters

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

Responses

200: OK

application/json

Property Type Required Description
available boolean Yes
currency string Yes
forward_count integer Yes
free_mailboxes integer Yes
included_mailboxes integer Yes
info array of object Yes
info[].login string Yes
info[].offer_v2 string Yes
info[].price_v2 number Yes
info[].price_v2_m number Yes
info[].quota number Yes
info[].quota_v2 number Yes
info[].usage number Yes
packmail boolean Yes
price_v1 number Yes
price_v2 number Yes
quota_v1 number Yes
token string Yes
usage_v1 number 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