POST https://api.sendzen.io/v1/partner/onboardAuthorization: Bearer YOUR_PARTNER_API_KEY| Parameter | Type | Required | Description |
|---|---|---|---|
client_identifier | string | Yes | Unique identifier for your customer. Can be your customer's email, user_id, mobile number, or any unique ID |
client_webhook_url | string | Optional | Your webhook URL where you'll receive activity logs for this customer's account |
{
"client_identifier": "customer-12345",
"client_webhook_url": "https://your-domain.com/webhooks/sendzen"
}{
"user_data": {
"client_identifier": "customer-12345",
"project_id": "proj_a1b2c3d4e5f6",
"project_name": "Customer Project Name",
"api_key": "sk_live_abc123xyz789"
},
"iframe_url": "https://app.sendzen.io/onboard/iframe?token=eyJhbGc...",
"webhook": {
"url": "https://your-domain.com/webhooks/sendzen",
"valid": true,
"detail": "Webhook URL is valid and configured"
}
}user_dataclient_identifier: The unique identifier you providedproject_id: Unique project ID for this customerproject_name: Name of the projectapi_key: Important: This is the API key specific to this customer. You must use this API key for all operations related to this customer (sending messages, viewing activity, etc.). Each customer will have a unique API key.iframe_urlwebhookurl: The webhook URL you provided (if any)valid: Boolean indicating if the webhook URL is validdetail: Additional details about the webhook configurationiframe_url from Step 1 to embed the onboarding component in your partner panel:{
"status": "completed",
"project_id": "proj_a1b2c3d4e5f6",
"client_identifier": "user-acc-12345-abcde",
"waba_id": "109876543210987",
"phone_number_id": "201234567890123"
}status: "completed" indicates successful onboardingproject_id: The project ID for this customerclient_identifier: The unique identifier you providedwaba_id: WhatsApp Business Account IDphone_number_id: Phone number ID associated with the WABA{
"status": "failed",
"project_id": "proj_a1b2c3d4e5f6",
"client_identifier": "user-acc-12345-abcde",
"message": "User cancelled the authentication process."
}status: "failed" indicates onboarding was not completedproject_id: The project ID for this customerclient_identifier: The unique identifier you providedmessage: Description of why the onboarding failedwindow.postMessage(). Listen for these messages:client_webhook_url, you'll also receive webhook notifications about the onboarding status.user_data.api_key in Step 1) for all operations related to that customer:{
"error": "Invalid API key",
"message": "The provided API key is invalid or expired"
}client_identifier)src attribute with the new URL