Create 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' => 'sophia.green@demo.com',
'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_uidto perform updates, deletions, or permission management.Ensure the email used is unique across the account.
Last updated