The Customer Management API allows you to programmatically create customers, enable portal access, and manage their credentials. This is perfect for automated onboarding workflows triggered by ad campaigns, lead forms, or AI agents.
Use the create customer endpoint to add a new customer to your partner account. The system automatically generates a unique customer ID.
Enable portal access for the customer using their customer ID. This generates secure login credentials and provides the portal URL.
Share the portal URL and credentials with your customer. You can optionally have the system send an email automatically.
https://analytics.knotie-ai.pro/mcp/customersCreate a new customer account with automatic ID generation
{
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"company_name": "Acme Corp"
}{
"success": true,
"customer_id": "uuid-generated-id",
"email": "[email protected]",
"message": "Customer created successfully"
}curl -X POST \ -H "X-API-Key: YOUR_API_KEY" \ -H "X-Partner-Email: [email protected]" \ -H "Content-Type: application/json" \ -d '{"email":"[email protected]","first_name":"John","last_name":"Doe","company_name":"Acme Corp"}' \ https://analytics.knotie-ai.pro/mcp/customers
https://analytics.knotie-ai.pro/mcp/customers/portal-accessEnable customer portal access with auto-generated secure credentials
{
"customer_id": "uuid-from-create-customer",
"send_email": false
}{
"success": true,
"email": "[email protected]",
"portal_url": "https://subdomain.knotie-ai.pro",
"password": "auto-generated-secure-password",
"message": "Portal access enabled successfully"
}curl -X POST \ -H "X-API-Key: YOUR_API_KEY" \ -H "X-Partner-Email: [email protected]" \ -H "Content-Type: application/json" \ -d '{"customer_id":"uuid-from-create-customer","send_email":false}' \ https://analytics.knotie-ai.pro/mcp/customers/portal-access
https://analytics.knotie-ai.pro/mcp/customers/reset-passwordReset customer portal password with new auto-generated credentials
{
"customer_id": "uuid-from-create-customer",
"send_email": false
}{
"success": true,
"new_password": "new-auto-generated-password",
"message": "Password reset successfully"
}curl -X POST \ -H "X-API-Key: YOUR_API_KEY" \ -H "X-Partner-Email: [email protected]" \ -H "Content-Type: application/json" \ -d '{"customer_id":"uuid-from-create-customer","send_email":false}' \ https://analytics.knotie-ai.pro/mcp/customers/reset-password