Skip to main content
POST
Create a sub-account

Authorizations

Authorization
string
header
required

Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.

Scopes

subaccounts:write

Body

application/json

Attributes for the new sub-account.

name
string
required

Sub-account name.

Maximum string length: 75
Example:

"Company name"

default_destinations
object

Default webhook URLs for inbound messages and delivery reports.

Response

Returns the created sub-account.

Sub-account details including the full API key. Returned only by the create operation.

id
integer<int32>
required

Sub-account ID.

Example:

123

created_at
string<date-time>
required

Date and time the sub-account was created in ISO 8601 format.

Example:

"2023-06-15T10:30:00Z"

name
string
required

Sub-account name.

Example:

"My sub-account"

api_key
string
required

Full sub-account API key.

Example:

"abc123def456"

redacted_api_key
string | null
required

Redacted sub-account API key, shown as ... followed by the last 4 characters. Null when the sub-account has no active key.

Example:

"...f456"

master_organization
integer<int32>
required

Master account ID.

Example:

456

status
enum<string>
required

Status of the subaccount. One of enabled (the subaccount is active and can be used) or disabled (the subaccount is suspended).

Available options:
enabled,
disabled
Example:

"enabled"

default_destinations
object
required

Default webhook URLs for inbound messages and delivery reports.