API

MailboxSlot

A mailbox slot: list them or get one.

Operations

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

Method Route SDK operation Returns
GET /mailbox/slots list OK
GET /mailbox/slots/{slot_id} 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:

mailbox_slots, err := client.MailboxSlot(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(mailbox_slots)
mailbox_slot, err := client.MailboxSlot(nil).Load(map[string]any{"uuid": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(mailbox_slot)

Lua

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

local mailbox_slots, err = client:MailboxSlot():list()
local mailbox_slot, err = client:MailboxSlot():load({ uuid = "example" })

PHP

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

$mailbox_slots = $client->MailboxSlot()->list();
$mailbox_slot = $client->MailboxSlot()->load(["uuid" => "example"]);

Python

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

mailbox_slots = client.MailboxSlot().list()
mailbox_slot = client.MailboxSlot().load({"uuid": "example"})

Ruby

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

mailbox_slots = client.MailboxSlot.list()
mailbox_slot = client.MailboxSlot.load({ "uuid" => "example" })

TypeScript

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

const mailbox_slots = await client.MailboxSlot().list()
const mailbox_slot = await client.MailboxSlot().load({ uuid: "example" })

Fields

Field Type Required Description
autorenew object Yes Autorenew
config object Yes Config
expires_at string No Expires At
last_paid_duration integer No Last Paid Duration
refund_info object Yes Refund Info
refundable boolean Yes Refundable
uuid string Yes Uuid
webhosting_pack boolean Yes Webhosting Pack

list

GET /mailbox/slots

Operation ID: getMailboxSlots.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
config_name query string No
expires_at_gte query string (date-time) No
expires_at_lte query string (date-time) No
last_paid_duration query enum: 1, 12 No
page query integer No
per_page query integer No
refundable query enum: true, false No
sharing_id query string No
sort_by query enum: refund_expires_at, -refund_expires_at No
webhosting_pack query boolean No

Responses

200: OK

application/json

Property Type Required Description
[].autorenew object No
[].autorenew.duration_month enum: 1, 12 Yes
[].autorenew.sharing_id string Yes
[].config object Yes
[].config.label string Yes
[].config.name string Yes
[].config.uuid string Yes
[].expires_at string (date-time) No
[].last_paid_duration enum: 1, 12 No
[].refund_info object Yes
[].refund_info.currency string Yes
[].refund_info.price number Yes
[].refund_info.refund_expires_at string (date-time) Yes
[].refundable boolean Yes
[].uuid string Yes
[].webhosting_pack 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 /mailbox/slots/{slot_id}

Operation ID: getMailboxSlotsSlotId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
slot_id path string Yes

Responses

200: OK

application/json

Property Type Required Description
autorenew object No
autorenew.duration_month enum: 1, 12 Yes
autorenew.sharing_id string Yes
config object Yes
config.label string Yes
config.name string Yes
config.uuid string Yes
expires_at string (date-time) No
last_paid_duration enum: 1, 12 No
refund_info object Yes
refund_info.currency string Yes
refund_info.price number Yes
refund_info.refund_expires_at string (date-time) Yes
refundable boolean Yes
uuid string Yes
webhosting_pack 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