user-plusCreate a Subaccount

Create a new subaccount (child user) under the current customer account.

πŸ†• Create a Subaccount

Add a new subaccount to your SenderWiz customer account with first name, last name, email, password, and timezone.


πŸ”Ή HTTP Request

POST API-URL/children

πŸ“€ POST Parameters

Parameter
Type
Required
Description

first_name

string

βœ…

First name of the subaccount

last_name

string

βœ…

Last name of the subaccount

email

string

βœ…

Email address of the subaccount

password

string

βœ…

Login password

timezone

string

βœ…

Timezone (e.g., Asia/Kolkata)


πŸ” Authorization Headers

X-API-KEY: your-api-key-here

πŸ’» PHP Example

// CREATE A SUBACCOUNT
$response = $endpoint->createChild([
    'first_name' => 'Sophia',
    'last_name'  => 'Green',
    'email'      => '[email protected]',
    'password'   => 'StrongPass#2025',
    'timezone'   => 'America/New_York'
]);

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';

πŸ“¦ Sample JSON Response


🧾 Notes

  • Use the returned child_uid to perform updates, deletions, or permission management.

  • Ensure the email used is unique across the account.

Last updated