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_)💡 New Feature: We now provide both API key headers and a standard Authorization header for maximum compatibility with MCP client tools!
Important: Keep your credentials secure and never expose them in client-side code.
Verify your API key works by asking the gateway who you are
https://mcp.knotie-ai.pro — every example on this page.https://knotie-ai.pro — or your own white-label domain. Serves the partner routes under /api/partner/.connecthub.kno2gether.com; use it only if you were explicitly given access.Your pkt_ key goes in a standard Authorization: Bearer header. meta_whoami needs no scope, so it is the safest first call:
curl -X POST https://mcp.knotie-ai.pro/api/partner-rest/tools/meta_whoami \
-H "Authorization: Bearer pkt_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'# Scope-filtered tool list, with the JSON Schema for every argument curl https://mcp.knotie-ai.pro/api/partner-rest/tools \ -H "Authorization: Bearer pkt_YOUR_API_KEY" # Or the full OpenAPI 3.1 document (no auth needed) curl https://mcp.knotie-ai.pro/api/partner-rest/openapi.json
💡 Tip: A 401 with data.type: "mcp_disabled_on_key" means the key is valid but MCP access is toggled off — flip "Enable MCP" on in the key's scope editor.
AI agents should use the MCP endpoint instead — POST https://mcp.knotie-ai.pro/api/partner-mcp (JSON-RPC 2.0, and it requires Accept: application/json, text/event-stream). Same keys, same scopes, same tools. See the Partner MCP guide.
One call: account, credentials, welcome email, plan, and starting credits
customers_onboard provisions a complete customer in a single call. There is no password field — a secure password is generated server-side and delivered only in the branded welcome email.
curl -X POST https://mcp.knotie-ai.pro/api/partner-rest/tools/customers_onboard \
-H "Authorization: Bearer pkt_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"companyName": "Acme Corp",
"initialAiCredits": 250
}'curl -X POST https://knotie-ai.pro/api/partner/customers/onboard \
-H "X-API-Key: pkt_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"companyName": "Acme Corp",
"planId": "plan_abc123",
"features": { "showKnowledgeBase": true, "selfServeAgentLimit": 3 },
"initialAiCredits": 250
}'Substitute your own white-label domain for knotie-ai.pro if you have one. A partner bearer token works here too.
{
"customerId": "cus_abc123",
"userOnboardingId": "onb_abc123",
"created": true,
"existing": false,
"appliedPlanId": "plan_abc123",
"appliedFeatures": ["plan:plan_abc123", "showKnowledgeBase",
"selfServeAgentLimit", "initialAiCredits"],
"warnings": []
}warnings[]. Your partner master switches are applied last and unconditionally, so a feature you asked for may legitimately not have been enabled — that is reported as a warning, not an error. appliedFeatures is the honest record of what landed.created: false and mutates nothing — the plan, overrides and credits in that request are ignored. To change a live customer use customers_update or the credit tools.Give the customer a recurring monthly allocation, and portal credentials if needed
Step 3 already sent portal credentials in the welcome email. Use these when you need a recurring credit allocation, or need to re-issue access.
curl -X POST https://mcp.knotie-ai.pro/api/partner-rest/tools/customer_credits_set_monthly \
-H "Authorization: Bearer pkt_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customerId": "CUSTOMER_ID_FROM_STEP_3",
"monthlyAllocation": 500,
"rolloverEnabled": false,
"reason": "Growth plan monthly allocation"
}'monthlyAllocation: 0 turns the recurring grant off. Omit rolloverEnabled to leave the current setting alone. The ledger row is stamped [via api-key:<your key name>] automatically — do not append it to reason yourself. For a one-off grant use customer_credits_top_up.
curl -X POST https://mcp.knotie-ai.pro/api/partner-rest/tools/customers_enable_portal \
-H "Authorization: Bearer pkt_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customerId": "CUSTOMER_ID_FROM_STEP_3",
"generatePassword": true,
"notifyCustomer": true
}'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