Skip to main content
POST
Create a subaccount. Its `token` is shown once, here.

Authorizations

Authorization
string
header
required

A person's session: Authorization: Bearer <ID token>, the ID token the Sendblue sign-in issues. The person acts in their company's root account with the role of their seat.

Headers

Idempotency-Key
string
required

A value unique to this intended write, 1 to 128 visible ASCII characters. A repeat with the same key returns the original result.

Required string length: 1 - 128
Pattern: ^[\x21-\x7E]+$

Body

application/json

Optional. An absent body is an empty object.

name
string
Maximum string length: 64

Response

The subaccount with its token.

id
string
required
name
string
required
status
enum<string>
required
Available options:
active,
suspended,
closed
parent_id
string
required
created_at
string<date-time> | null
required
updated_at
string<date-time> | null
required
token
string
required

The subaccount's account token. Shown once.