Skip to content
Sendtier Docs
Dashboard

Create an inbox

Requires a full-scope key. Omit username to assign one in the form agent- plus 8 lowercase base32 characters. A required domain must belong to this tenant, be verified, and have receiving enabled. retention_days defaults to the plan maximum and must be from 1 through that maximum. The caller's mode sets test_mode and never changes. An address belongs to one inbox across tenants and modes.

POST/v1/inboxes

Request body

ParameterDescription
username
string

Lowercase mailbox name. Omitted names are generated.

domainrequired
string

Verified tenant domain name with receiving enabled.

display_name
string

Control characters are rejected. At most 64 characters. An empty name is allowed.

Maximum length: 64.

retention_days
integer

Days to keep received mail. Defaults to the plan maximum.

Full request schema and constraints

Request Body

application/json
  1. body
username?string

Lowercase mailbox name. Omitted names are generated.

domain*string

Verified tenant domain name with receiving enabled.

display_name?string

Control characters are rejected. At most 64 characters. An empty name is allowed.

Lengthlength <= 64
retention_days?integer

Days to keep received mail. Defaults to the plan maximum.

Range1 <= value

Header parameters

ParameterDescription
Idempotency-Key
string

Repeated POST with the same key within 24 h returns the first response.

Maximum length: 255.

Full parameter schemas and constraints

Header Parameters

Idempotency-Key?string

Repeated POST with the same key within 24 h returns the first response.

Lengthlength <= 255

Authorization

headerAuthorizationBearer <token>

API key: st_live_... or st_test_...

Response Body

Inbox created.

application/json
  1. response
id*string
address*string
username*string
domain*string
display_name*string
Lengthlength <= 64
retention_days*integer
Range1 <= value
test_mode*boolean

Mode of the key or dashboard session that created the inbox. It never changes.

created_at*string
Formatdate-time