This guide will walk you through creating your first automated customer onboarding workflow using the Knotie AI Pro MCP API. You'll learn how to authenticate, create customers, and enable portal access programmatically.
Generate your partner API key from the Knotie AI Pro dashboard
First, log in to your partner dashboard and navigate to the API Keys section:
pkt_
)Important: Keep your API key secure and never expose it in client-side code.
Verify your API key works by fetching your capabilities
Test your API key with a simple capabilities request:
curl -H "X-API-Key: YOUR_API_KEY" \ -H "X-Partner-Email: your@email.com" \ https://analytics.knotie-ai.pro/mcp/capabilities
Replace YOUR_API_KEY
with your actual API key andyour@email.com
with your registered partner email.
Programmatically create and onboard a new customer
Create a customer using the MCP API:
curl -X POST \ -H "X-API-Key: YOUR_API_KEY" \ -H "X-Partner-Email: your@email.com" \ -H "Content-Type: application/json" \ -d '{ "email": "customer@example.com", "first_name": "John", "last_name": "Doe", "company_name": "Acme Corp" }' \ https://analytics.knotie-ai.pro/mcp/customers
{ "success": true, "customer_id": "uuid-here", "email": "customer@example.com", "message": "Customer created successfully" }
Give your customer access to their dashboard with auto-generated credentials
Enable portal access for your newly created customer:
curl -X POST \ -H "X-API-Key: YOUR_API_KEY" \ -H "X-Partner-Email: your@email.com" \ -H "Content-Type: application/json" \ -d '{ "customer_id": "CUSTOMER_ID_FROM_STEP_3", "send_email": false }' \ https://analytics.knotie-ai.pro/mcp/customers/portal-access
Discover all available endpoints for agent management, feature control, and more.
Learn advanced automation techniques with step-by-step video guides.
Ready to build AI automation? Download our Postman collection for easy testing:
Download Postman Collection