Base URL
All MCP endpoints use your Knotie AI base URL:Authorization: Bearer pkt_... header. The legacy X-API-Key header is deprecated. See Authentication for details.
Customer management
Create customer (onboard)
| Field | Required | Notes |
|---|---|---|
basic.email | Yes | Must be unique within your partner scope |
basic.firstName | No | |
basic.lastName | No | |
basic.businessPhone | No | |
business.* | No | All business fields are optional |
isQuickOnboarding | No | Skip extended intake fields |
allowPortalAccess | No | If true, sends portal invite email with credentials |
planId | No | Applies subscription plan features automatically |
200 OK:
- Creates the customer record
- Sends portal invite email (if
allowPortalAccessistrue) - Applies plan features (if
planIdis provided)
| Code | Reason |
|---|---|
400 | Missing or invalid email, or email already exists |
401 | Invalid or missing API key |
403 | Partner account not found or inactive |
Create customer (simple)
List customers
| Parameter | Default | Description |
|---|---|---|
page | 1 | Page number |
limit | 20 | Results per page (max 100) |
search | — | Searches name, email, phone, and company |
monthlyCallVolume | — | Filter by call volume tier |
callComplexity | — | Filter by complexity level |
deploymentTimeline | — | Filter by deployment timeline |
200 OK:
Get customer
200 OK:
| Code | Reason |
|---|---|
404 | Customer not found |
Update customer
enableAdvancedAnalytics, enableApiAccess, customerPortalEnabled), menu visibility (showKnowledgeBase, showIntegration, allowedApps, etc.), team settings (maxTeamMembers, enableTeamMembers), AI credit settings, and deployment tracking fields.
Validation:
- Email format is validated and must be unique within your partner scope
- Credit plan IDs are validated if provided
200 OK: Same shape as the GET response.
Portal access
Enable portal access
200 OK:
- Creates or updates customer credentials
- Generates a temporary password
- Sends a branded portal invite email
Block / unblock portal access
200 OK:
action value | Meaning |
|---|---|
"blocked" | Access was active and is now suspended |
"granted" | Access was suspended and is now active |
Reset customer password
200 OK:
Agent mapping
Map customer to Retell agent
| Field | Required | Notes |
|---|---|---|
customerId | Yes | The customer’s ID |
profitMultiplier | Yes | Multiplier applied to call costs for billing |
200 OK:
| Code | Reason |
|---|---|
400 | Missing customerId or profitMultiplier |
404 | Agent or customer not found |
Unmap customer from Retell agent
Map customer to VAPI agent
Unmap customer from VAPI agent
Team members
Add team member
| Field | Required | Notes |
|---|---|---|
email | Yes | Must be unique per customer |
name | Yes | Display name |
role | No | Defaults to "member" |
200 OK:
- Team member count is checked against the customer’s
maxTeamMemberslimit
List team members
200 OK:
Delete team member
200 OK:
Common error responses
All endpoints return standard error responses:| HTTP code | Meaning |
|---|---|
400 | Bad request — missing or invalid fields |
401 | Unauthorized — invalid or missing API key |
403 | Forbidden — partner account inactive or insufficient permissions |
404 | Not found — customer, agent, or team member does not exist |
500 | Internal server error |