Skip to main content
GET
/
v1
/
sub-organizations
/
{id}
Retrieve a sub-account
curl --request GET \
  --url https://api.wavix.com/v1/sub-organizations/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": 123,
  "created_at": "2023-06-15T10:30:00Z",
  "name": "My sub-account",
  "api_key": "abc123def456",
  "master_organization": 456,
  "status": "enabled",
  "default_destinations": {
    "sms_endpoint": "https://examples.com/sms",
    "dlr_endpoint": "https://examples.com/dlr"
  }
}

Authorizations

Authorization
string
header
required

Bearer token using appid (Authorization: Bearer )

Path Parameters

id
integer<int32>
required

Sub-account ID.

Example:

123

Response

Sub-account.

Sub-account details including API key and webhook configurations.

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

Sub-account API key.

Example:

"abc123def456"

master_organization
integer<int32>
required

Master account ID.

Example:

456

status
enum<string>
required

Sub-account status.

Available options:
enabled,
disabled
Example:

"enabled"

default_destinations
object
required

Default webhook URLs for inbound messages and delivery reports.