Sub-accounts
Create a sub-account
Changed onCreates a sub-account under the authenticated master account. Returns the sub-account with its generated api_key.
post/v1/sub-organizations
Request
- Base URLhttps://api.wavix.com
- URLhttps://api.wavix.com/v1/sub-organizations
- AuthHTTP bearer
Request body
Example request
{
"name": "Company name",
"default_destinations": {
"sms_endpoint": "https://examples.com/sms",
"dlr_endpoint": "https://examples.com/dlr"
}
}Response
Returns the created sub-account.
Example response
{
"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"
}
}Changes
- breaking
the
request property's maxLength was decreased to75
- breaking
- info
added the non-success response with the status
- info