CallMCP — Phone Call MCP Server
ai.callmcp/server
Serveur MCP OK 214 outils
À quoi ça sert
Relie un assistant à KaiCalls. Les outils montrent surtout la gestion de comptes Local Services Ads (leads, conversations, réponses, rapports), CallRail, Nimbata et des profils d'agence.
Résumé rédigé par L’Atlas le 29 nov. 2026, reformulé seulement à partir de la description de l’auteur et des outils vus par notre test. Texte de l’auteur ci-dessous.
Phone call MCP server: AI agents place and answer real calls, text, email and WhatsApp via KaiCalls.
Fiche technique
- Auteur
- callmcp.ai (espace de noms du registre)
- Dépôt
- github.com/CallMCP/callmcp
- Site
- callmcp.ai
- Version
- 0.1.5
- Transport
- Streamable HTTP stdio
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://callmcp.ai/mcp Streamable HTTP
- Paquets
- @callmcp/server 0.1.5 npm stdio
- Outils
- 214
- Catégories
- IA, agents et mémoire, Messagerie et communication
- Comparatifs
- Serveurs MCP pour WhatsApp, Serveurs MCP pour Gmail et e-mail
- Dernière mise à jour
- 12 nov. 2026
- Publication
- 12 nov. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/ai.callmcp/server)<a href="https://latlas.dev/mcp/ai.callmcp/server"><img src="https://latlas.dev/badge/fiche/ai.callmcp/server.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://callmcp.ai/mcp
- Dernier résultat
- OK 28 nov. 2026, 07:48
- Temps de réponse
- 754 ms (initialize + tools/list)
- Version du protocole
- 2025-06-18
- Nom annoncé
- kaicalls-mcp 1.1.1
- Outils
- 214
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 07:48 | OK | 754 ms | 214 |
Outils exposés (214, réponse à tools/list, 28 nov. 2026)
request_human_approval
Request Human Approval
Ask a named principal for a specific decision using the provisioned voice approval channel. Requires restricted approvals:write, a configured callback host and signing secret. Returns dispatch status; the signed callback carries the decision and evidence. No approval is implied by dispatch. SMS-only delivery is unavailable.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| source | string | oui | Lowercase control-plane slug, e.g. "zehrava-gate". |
| source_request_id | string | oui | |
| source_intent_id | string | non | |
| message_id | string | non | |
| responds_to_hash | string | non | |
| principal_id | string | oui | |
| channel | object | oui | |
| summary | string | oui | |
| risk_level | enum: "low" | "medium" | "high" | "critical" | oui | |
| required_factors | array<string> | non | |
| expires_at | string | oui | |
| callback_url | string | oui | Must be https and host-allowlisted. |
| callback_secret_id | string | non |
connect_agent
Connect External Agent
Connect an external agent to a business and its signed event outbox. Requires current business admin membership, an assigned Kai agent, and agents:write, sms:write, webhooks:write. New SMS/WhatsApp conversations route to the external agent; explicit handoffs win. Grants no additional permissions and does not activate unregistered channels. Use a stable idempotency_key; replacements require expected_revision. The signing secret is returned only for a non-replayed connect. External realtime voice and email execution are not connected by this operation.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | |
| agent_id | string | oui | |
| external_agent_id | string | oui | |
| webhook_url | string | oui | |
| idempotency_key | string | oui | Required in the body or Idempotency-Key header. |
| expected_revision | integer | non | |
| a2a_enabled | boolean | non | Route public A2A message/send to the signed receiver, which must return a JSON-RPC A2A message. SDK handleA2ARequest/handle_a2a_request connects the receiver to your own agent. |
| a2a_url | string | null | non | Optional existing native A2A endpoint; requires a2a_enabled. Omit to use the signed event receiver. |
| external_reply_timeout_seconds | integer | null | non |
get_agent_connection
Get Agent Connection
Discover the external agent connection, signed webhook configuration, scoped API operation catalog, channel readiness and remaining runtime requirements. Requires agents:read, sms:read and webhooks:read. Configuration does not prove delivery or recipient consent.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non |
disconnect_agent
Disconnect External Agent
Disconnect the external agent and disable its webhook atomically. Requires current business admin membership and agents:write, sms:write, webhooks:write. Pass the stored expected_revision. Inherited conversations return to Kai; explicit handoffs remain.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | |
| expected_revision | integer | oui |
get_lsa_account_report
get lsa account report
Read the authorized advertiser's live Google Local Services aggregate account report, including actual spend, currency and charged lead totals. Requires linked manager-account access. Dates are calendar dates inclusive at both ends. Source may lag by 30 minutes. Connected phone calls means duration over 30 seconds; responsiveness is the previous 90 days. This is not signed-case revenue or lead-rating reporting.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| connection_id | string | oui | |
| start_date | string | oui | |
| end_date | string | oui |
get_lsa_setup
get lsa setup
Inspect Google LSA account selection and sync freshness, with setup steps. Saved configuration never proves a live workflow. Cloud-project production access is not shown here; Google Cloud reports it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui |
sync_lsa
sync lsa
Sync an explicitly selected connected LSA advertiser. Requires current business admin role. Syncing runs lead ingestion, and existing business speed-to-lead configuration may contact the new leads it finds.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| connection_id | string | oui |
list_lsa_leads
list lsa leads
List synced Google LSA leads, charge and credit states, source IDs and rating details. The returned LSA lead id identifies the lead in LSA commands; the separate lead_id field links to the CRM.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| offset | integer | non | |
| limit | integer | non |
get_lsa_conversations
get lsa conversations
Read the latest 200 synced Google LSA conversation events for an LSA lead, including customer and advertiser messages. History is as current as the last sync.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| lead_id | string | oui |
get_lsa_report
get lsa report
Report LSA lead counts, types, observed statuses, ratings and credit counts for an explicit UTC window (start inclusive, end exclusive). Includes sync freshness and completeness. Removed unrated leads are counted separately because they cannot be rated here. Financial amounts, signed cases and response-time metrics are unavailable in this source and cannot be derived from counts.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| start | string | oui | |
| end | string | oui |
send_lsa_reply
send lsa reply
Send an authorized text reply inside an existing Google LSA message lead through the Ads API. This contacts the customer. Requires current business admin role and a stable idempotency_key. A retry with the same key is deduplicated; pending/unknown writes are blocked. Provider acceptance does not prove customer delivery. Attachments are unsupported.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| lead_id | string | oui | |
| message | string | oui | |
| idempotency_key | string | oui |
rate_lsa_lead
rate lsa lead
Submit an authorized, truthful Google LSA quality survey and return Google's actual bonus-credit decision. This is not a guaranteed refund or the retired manual dispute workflow. Requires admin role and a stable retry key. Each rating is a per-lead survey answer based on that lead, not a bulk dissatisfaction claim. The reason must match the positive/negative rating; OTHER requires a comment. Neutral takes no reason.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| lead_id | string | oui | |
| rating | enum: "VERY_SATISFIED" | "SATISFIED" | "NEUTRAL" | "DISSATISFIED" | "VERY_DISSATISFIED" | oui | |
| reason | enum: "BOOKED_CUSTOMER" | "LIKELY_BOOKED_CUSTOMER" | "SERVICE_RELATED" | "HIGH_VALUE_SERVICE" | "OTHER_SATISFIED_REASON" | "GEO_MISMATCH" | "JOB_TYPE_MISMATCH" | "NOT_READY_TO_BOOK" … | non | |
| comment | string | non | |
| idempotency_key | string | oui |
get_callrail
Read CallRail setup
Read a business's CallRail call-tracking setup. action=status returns the connected CallRail account, which CallRail companies feed which business, every company the saved key can see (with its company_id), and the businesses you can link them to. action=list_trackers (with link_id from status) returns that company's tracking numbers, where each one rings now, and whether it already rings a KaiCalls line. If nothing is connected yet, ask the person for their CallRail API key and use manage_callrail connect.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| action | enum: "status" | "list_trackers" | non | |
| link_id | string | non |
manage_callrail
Set up CallRail
Connect CallRail call tracking to a business's line. Order: (1) connect {api_key, account_id?}; (2) get_callrail status lists the companies the key can see; (3) link_company {company_id, target_business_id?} once per business; (4) set_writeback {enabled}; (5) get_callrail list_trackers; (6) route_tracker only after the owner says yes. The API key: the person may paste their CallRail API v3 key straight into this chat. Take it and pass it as api_key; do not send them elsewhere to paste it. KaiCalls stores it encrypted and never returns it. One agency-level key serves every company that CallRail login can see, so connect once and link each firm with its own link_company. They create the key in CallRail under Integrations > API Keys > Create API V3 Key, signed in as a login that can see every company to link. CallRail shows the key only once. If they would rather paste it themselves: https://www.kaicalls.com/dashboard/settings/connections?connector=callrail. If connect answers choose_account, call it again with one of the returned account ids. link_company subscribes that CallRail company's calls: calls Kai answers get the CallRail source, campaign, keyword and landing page, and Kai's outcome is written back to CallRail as a KaiCalls tag, a summary note and good_lead when Kai qualified the caller. route_tracker {link_id, tracker_id, mode} changes where a live tracking number rings: mode kai_answers sends every call to Kai; business_first sends it to a KaiCalls line that rings t…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| action | enum: "connect" | "link_company" | "unlink_company" | "route_tracker" | "restore_tracker" | "set_writeback" | "disconnect" | oui | |
| api_key | string | non | CallRail API v3 key, as the person pasted it in chat. Stored encrypted; never returned. |
| account_id | string | non | Only when connect answered choose_account: one of the account ids it listed. |
| company_id | string | non | A company id from get_callrail status (companies[].id). |
| target_business_id | string | non | |
| link_id | string | non | |
| tracker_id | string | non | |
| mode | enum: "kai_answers" | "business_first" | non | |
| kai_number | string | non | |
| enabled | boolean | non |
get_nimbata
Read Nimbata setup
Read a business's Nimbata call-tracking setup: the connected Nimbata account, which Nimbata projects feed which business (with when each last synced and how many calls matched), the projects the saved token can see, and the businesses you can link them to.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| action | enum: "status" | non |
manage_nimbata
Set up Nimbata
Connect Nimbata call tracking to a business's line. connect {api_token} checks and saves a Nimbata personal API token (Agency plan; one token can serve many businesses). link_project {project_id, target_business_id?} attaches that Nimbata project's calls to a business and adds KaiCalls tags to the project: calls Kai answers get Nimbata's source, UTM and click ids, and Kai's outcome is written back to the Nimbata call as a KaiCalls tag, a KaiCalls qualified tag when Kai qualified the caller, and a summary comment. unlink_project {link_id}; set_writeback {enabled}; disconnect. Requires current admin role on every business involved. Routing stays in Nimbata: add the KaiCalls number to the project's call flow there.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| action | enum: "connect" | "link_project" | "unlink_project" | "set_writeback" | "disconnect" | oui | |
| api_token | string | non | |
| project_id | string | non | |
| target_business_id | string | non | |
| link_id | string | non | |
| enabled | boolean | non |
agency_profile_bootstrap
Create Agency Profile
Registers a new agency for the signed-in user and makes them its owner, using the given brand and support details. Requires a signed-in user session with a verified email; an API key cannot create an agency. Repeating it for an agency that already exists does not create a second one.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| brand | object | oui | Agency brand: name and an optional HTTPS logo URL. |
| support | object | oui | Support contact shown to clients: email, owner name, optional HTTPS help URL and a coverage statement. |
agency_profile_update
Update Agency Profile
Replaces the agency brand, support details and requested commercial mode. Requires an agency owner or admin and the current profile revision; a stale revision is rejected. It does not change any published offer.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| expectedRevision | string | oui | The profile revision you last read. |
| brand | object | oui | |
| support | object | oui | |
| commercialMode | enum: "commission" | "partner_billed" | oui | commission (client pays the platform directly) or partner_billed (the agency is billed wholesale). |
agency_profile_invite
Invite Agency Team Member
Creates a staff invitation for an email address with the admin, operator or reader role and returns a one-time invite link that expires in 7 days. Requires an agency owner or admin; only the owner can invite an admin. It sends no email; the returned link is delivered by whoever created the invite.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| string | oui | Email address the invitee must sign in with (verified). | |
| role | enum: "admin" | "operator" | "reader" | oui | Role granted on acceptance: admin, operator or reader. |
agency_profile_accept_invite
Accept Agency Invitation
Joins the agency using the token from an invite link. The signed-in user must have a verified email that matches the invited address, and the invite must be unexpired and not revoked. Accepting the same invite again is a no-op.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| token | string | oui | The token from the invite link. |
agency_profile_revoke_invite
Revoke Agency Invitation
Cancels a pending staff invitation so its link can no longer be used. Requires an agency owner or admin. It does not remove anyone who already accepted; revoke_member does that.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| inviteId | string | oui | The invitation to cancel. |
agency_profile_assign
Assign Staff Member to Client
Gives an active agency staff member access to one client business with the admin or member business role. Requires an agency owner or admin who can manage that client; only the owner can assign an admin staff member. Assigning an existing assignment again changes nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| userId | string | oui | The agency staff member to assign. |
| businessId | string | oui | The client business to grant access to. |
| businessRole | enum: "admin" | "member" | oui | Business role to grant: admin or member. |
agency_profile_unassign
Remove Staff Member from Client
Removes a staff member's agency assignment to one client business, and removes the business membership if this assignment created it. Requires an agency owner or admin; only the owner can unassign an admin. It does not remove the person from the agency.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| userId | string | oui | The agency staff member to unassign. |
| businessId | string | oui | The client business to remove access from. |
agency_profile_revoke_member
Remove Agency Team Member
Removes a staff member from the agency: revokes their membership, all their client assignments, their accepted invites and every API key issued to them through the agency. Requires an agency owner or admin; only the owner can remove an admin, and the owner cannot be removed.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| userId | string | oui | The staff member to remove. |
agency_profile_issue_key
Issue Agency API Key
Creates a new API key for yourself in this agency, limited to the requested scopes, and returns the secret once. Readers cannot get write scopes, only the agency owner can get billing:write, and a delegated key cannot issue a key broader than itself. Each call creates another key (up to 20 active per user).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| name | string | oui | A label for the key. |
| scopes | array<string> | oui | Scopes to grant, from the supported agency set (for example workspaces:read, agents:write, billing:read). |
agency_offer_save
Save Agency Offer Draft
Creates a new offer draft, or replaces an existing draft when offerId and its current revision are given. Requires an agency owner or admin. Saving changes only the draft; clients see nothing until it is published.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| offerId | string | non | Existing offer to update. Without it, a new draft is created. |
| expectedRevision | string | non | Current draft revision; required when offerId is given. |
| draft | object | oui | The offer: name, industry, commercial mode, retail price and scope, 1-3 packages, supported claims, support policy and the branding-limitations acknowledgement. |
agency_offer_preview
Preview Agency Offer
Builds the publishable manifest and sales kit for an offer draft and returns its fingerprint and revision for publishing. Requires an agency owner or admin. It saves nothing and fails if a package release, variant or claim is not supported.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| offerId | string | oui | The offer draft to preview. |
agency_offer_publish
Publish Agency Offer
Publishes the previewed offer as a new immutable version and returns its enrollment link. Requires an agency owner or admin, plus the fingerprint and revision from preview; partner-billed offers also need billing collection to be ready. Publishing the same fingerprint again returns the existing version.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| offerId | string | oui | The offer to publish. |
| expectedRevision | string | oui | The draft revision returned by preview. |
| fingerprint | string | oui | The manifest fingerprint returned by preview. |
agency_offer_archive
Archive Agency Offer
Archives an offer so it can no longer be published or used for new enrollments. Requires an agency owner or admin and the current offer revision. Existing installations are not removed.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| offerId | string | oui | The offer to archive. |
| expectedRevision | string | oui | The offer revision you last read. |
agency_enrollment_start_self_service
Start Self-Service Enrollment
Starts a business owner's own enrollment in a published agency offer, using the business name and intake facts. Requires a signed-in user session with a verified email and an idempotency key; the same key replays the same session. Nothing is installed until the owner approves and finishes.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| offerVersionId | string | oui | The published offer version to enroll in. |
| name | string | oui | The business name. |
| facts | object | oui | Intake facts: business profile, hours, qualification questions, routing, fallback, booking, FAQs and reporting. |
| idempotencyKey | string | non | Stable key for this request; reuse it when retrying the same request. |
agency_enrollment_finish_self_service
Finish Self-Service Enrollment
Completes a self-service enrollment after the owner has approved the current intake: creates the client business and queues its package installations, which later configure the business's voice agent. Only the owner who started it can finish it. Repeating it returns the recorded result.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| sessionId | string | oui | The owner's enrollment session. |
| idempotencyKey | string | non | Stable key for this request; reuse it when retrying the same request. |
agency_enrollment_owner_save
Save Owner Intake Facts
Lets the client owner replace the intake facts on their own enrollment link. Requires the owner who claimed the link and the session's current revision. Saving clears any earlier owner approval, so the owner must approve again.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| sessionId | string | oui | The owner's enrollment session. |
| expectedRevision | string | oui | The session revision you last read. |
| facts | object | oui | The full replacement intake facts. |
| idempotencyKey | string | non | Stable key for this request; reuse it when retrying the same request. |
agency_enrollment_create
Create Client Enrollment Batch
Creates an enrollment session for 1-50 existing or new clients against a published offer version and returns one owner approval link per new client. Requires an agency owner, admin or operator with access to each existing client, and an idempotency key; a replay returns the session without the links. It sends no email and installs nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| offerVersionId | string | oui | The published offer version to enroll clients in. |
| entries | array<object> | oui | One entry per client: either businessId (existing client) or newClient (name, externalRef, ownerEmail), plus expectedRevision and intake facts. |
| ownerEmail | string | non | Optional default owner email. |
| idempotencyKey | string | non | Stable key for this request; reuse it when retrying the same request. |
agency_enrollment_save
Save Client Enrollment Batch
Replaces the client entries of an uncommitted enrollment session. Requires the session creator (or an agency owner/admin) and the current session revision. Saving revokes all outstanding owner approval links for the batch, so owners must be sent new links.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| sessionId | string | oui | The enrollment session. |
| expectedRevision | string | oui | The session revision you last read. |
| entries | array<object> | oui | The full replacement list of client entries. |
| idempotencyKey | string | non | Stable key for this request; reuse it when retrying the same request. |
agency_enrollment_preview
Preview Client Enrollment
Checks every client in the batch for missing facts, owner approval and payer conflicts, and returns what enrolling would install, with the fingerprint and approval IDs needed to enroll. Requires an agency owner, admin or operator. It records the preview on the session but installs nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| sessionId | string | oui | The enrollment session to preview. |
| idempotencyKey | string | non | Stable key for this request; reuse it when retrying the same request. |
agency_enrollment_enroll
Enroll Clients in Offer
Commits the previewed batch: creates new client businesses, records owner approvals and queues package installations for every ready client; installations later configure each client voice agent. Requires an agency owner, admin or operator who created the session, its idempotency key, and the fingerprint and revision from preview. Clients that are not ready are reported with their next step instead of being installed.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| sessionId | string | oui | The enrollment session to commit. |
| expectedRevision | string | oui | The session revision returned by preview. |
| fingerprint | string | oui | The fingerprint returned by preview. |
| approvalIds | array<string> | oui | The approval IDs returned by preview for existing clients. |
| idempotencyKey | string | non | Stable key for this request; reuse it when retrying the same request. |
agency_enrollment_claim_owner
Claim Owner Enrollment Link
Links the signed-in client owner to their enrollment link using its token. The user's verified email must match the owner email on the link. It approves nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| sessionId | string | oui | The owner's enrollment session from the link. |
| token | string | oui | The token from the owner link. |
| idempotencyKey | string | non | Stable key for this request; reuse it when retrying the same request. |
agency_enrollment_approve_owner
Approve Owner Enrollment
Records the client owner's approval of the exact offer and intake facts on their enrollment link. Requires the owner who claimed the link, the session's current revision and its fingerprint. It does not enroll; the agency still enrolls the batch.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| sessionId | string | oui | The owner's enrollment session. |
| expectedRevision | string | oui | The session revision you last read. |
| fingerprint | string | oui | The session's request fingerprint you reviewed. |
| idempotencyKey | string | non | Stable key for this request; reuse it when retrying the same request. |
agency_enrollment_rotate_owner_link
Replace Owner Enrollment Link
Issues a new owner link for a client in the batch and invalidates the old one, clearing any earlier claim and approval. Requires the session creator (or an agency owner/admin) and the link's current revision. It sends nothing; the returned link is delivered by whoever re-issued it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| sessionId | string | oui | The owner's enrollment session to re-issue. |
| expectedRevision | string | oui | The session revision you last read. |
| idempotencyKey | string | non | Stable key for this request; reuse it when retrying the same request. |
agency_enrollment_revoke
Revoke Enrollment Session
Revokes an enrollment session and all of its owner links so nothing more can be approved or enrolled from it. Requires the session creator or an agency owner/admin. Installations that were already enrolled are not removed.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| sessionId | string | oui | The enrollment session to revoke. |
| idempotencyKey | string | non | Stable key for this request; reuse it when retrying the same request. |
agency_installation_preview_route_receipt
Preview Route Test Receipt
Returns the evidence that a real call reached the client's voice line and produced a delivered lead notification, with a fingerprint for acknowledgement. Only for voice intake installations whose training is complete, and only the client owner who received that notification can view it. It changes nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| fingerprint | string | non |
agency_installation_approve_route_receipt
Acknowledge Route Test Receipt
Records the client owner acknowledging the route test receipt they reviewed. Requires the client owner who received the notification and the fingerprint from preview_route_receipt. It does not place any call.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| fingerprint | string | non | The fingerprint returned by the matching preview action. |
agency_installation_preview_handoff
Preview Staff Handoff
Returns the staff handoff for an installation with a fingerprint for approval. Requires client membership or agency assignment to the client. It changes nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| fingerprint | string | non |
agency_installation_approve_handoff
Approve Staff Handoff
Records the client owner approving the exact staff handoff they reviewed. Requires the client owner and the fingerprint from preview_handoff.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| fingerprint | string | non | The fingerprint returned by the matching preview action. |
agency_installation_resolve_update
Resolve Update Conflicts
Chooses, for each conflicting setting in a proposed package update, whether to keep the client's current value or use the package value, and saves the resolved update. Requires the client owner and the update's fingerprint; client facts cannot be overridden this way. It does not apply the update, and the resolved version needs fresh owner approval.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| updateId | string | oui | The proposed update returned by preview_update. |
| fingerprint | string | oui | The fingerprint of the proposed update. |
| choices | object | oui | For every conflict path listed by preview_update: keep_client or use_package. |
agency_installation_run_scenarios
Run Installation Test Scenarios
Run approved verification scenarios for an existing client installation at its expected revision using voice agent compute under existing entitlement. Requires current assigned client authority, current owner approval and evals:write. Saves test evidence and can incur irreversible usage charges; a new request key can run and charge again. Makes no real customer calls.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| requestId | string | oui | A stable ID for this run; reuse it to continue the same run. |
agency_installation_owner_preview
Preview Client Facts and Script
Shows the client owner the exact intake facts and voice script prepared for their business, with the hashes needed to approve each. Only the client owner can view it, and only after the agency prepared a complete preview. It changes nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| businessId | string | oui | The owner's business. |
| sessionId | string | oui | The agency enrollment session that prepared the preview. |
agency_installation_approve
Approve Client Facts or Script
Records the client owner approving either the intake facts or the voice script they reviewed. Requires the client owner and the matching hash from owner_preview. It does not install anything by itself.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| businessId | string | oui | The owner's business. |
| sessionId | string | oui | The agency enrollment session that prepared the preview. |
| subject | enum: "facts" | "script" | oui | What is being approved: facts or script. |
| subjectHash | string | oui | The factsHash or scriptHash returned by owner_preview. |
agency_installation_revoke_approval
Revoke Client Approval
Withdraws one of the client owner's earlier approvals. Requires the client owner. Work that depends on that approval waits until it is approved again.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| businessId | string | oui | The owner's business. |
| approvalId | string | oui | The approval to withdraw. |
agency_installation_pause
Pause Installation
Pauses an installation so its package setup and scheduled package work stop. Requires agency write access to the client or the client owner, and the current revision. It does not delete anything; use retry to queue it again.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| fingerprint | string | non | |
| accepted | boolean | non |
agency_installation_retry
Retry Installation
Re-queues an installation so setup runs again, clearing its last error; setup configures the client's voice agent. Requires agency write access to the client or the client owner, and the current revision.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| fingerprint | string | non | |
| accepted | boolean | non |
agency_installation_export
Export Installation Configuration
Returns the installation release, intake facts, approved script, staff sheet and checks for handoff or records. Requires client membership or agency assignment to the client. It changes nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| fingerprint | string | non | |
| accepted | boolean | non |
agency_installation_preview_offboard
Preview Installation Offboarding
Shows what offboarding would stop and what it keeps (phone number, sender, connections, billing plan and history), with a fingerprint for approval. Only the client owner can view it. It changes nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| fingerprint | string | non | |
| accepted | boolean | non |
agency_installation_offboard
Offboard Installation
Starts offboarding: stops the package's jobs, revokes its future automation authority and turns off its scheduled reports. Requires the client owner, accepted set to true and the fingerprint from preview_offboard. The phone number, connections, billing plan and history are kept.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| fingerprint | string | non | The fingerprint returned by the matching preview action. |
| accepted | boolean | non | Must be true to confirm the owner accepts the previewed effects. |
agency_installation_preview_update
Preview Installation Update
Prepares a proposed update to a newer published offer version, or a rollback to an earlier installation revision, and lists any conflicts with client changes. Requires agency write access to the client or the client owner. It saves the proposal for review but does not apply it; client facts are always kept.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| offerVersionId | string | non | Published offer version to update to. Either this or rollbackRevision is required. |
| rollbackRevision | string | non | Earlier installation revision to roll back to. |
agency_installation_approve_update
Approve Installation Update
Records the client owner approving the updated script of a proposed update. Requires the client owner, the updateId and its fingerprint. It does not apply the update.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| updateId | string | oui | The proposed update. |
| fingerprint | string | oui | The fingerprint of the proposed update. |
agency_installation_apply_update
Apply Installation Update
Applies an approved update and re-queues setup, which replaces the client's live voice agent configuration. Requires agency write access or the client owner, a resolved update with no open conflicts, fresh owner approval, and (unless this client is the canary) an active canary on the same release. Applying an already-applied update changes nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| updateId | string | oui | The approved update to apply. |
| fingerprint | string | oui | The fingerprint of the approved update. |
agency_installation_opt_into_canary
Opt Installation into Canary
Marks the client's installation as a canary, so it can receive package updates before other clients of the same agency. Requires the client owner and accepted set to true. It applies no update by itself.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| accepted | boolean | oui | Must be true to confirm the owner opts in. |
agency_report_generate
Generate Activity Report
Generate and save an activity report snapshot for an existing client installation at its expected revision. Requires current client membership and agency access. Queues report email for due owner-approved subscriptions to existing verified client members and advances their schedule; queued does not mean delivered.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
agency_report_configure
Schedule Activity Report Emails
Sets the weekly or monthly activity report email schedule for an installation and replaces the previous recipient list. Requires the client owner; recipients must be verified members of the client's business. The first report is sent by the scheduled job, not by this call.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| recipients | array<string> | oui | User IDs (1-20) of verified business members who should receive the report. |
| cadence | enum: "weekly" | "monthly" | oui | weekly or monthly. |
agency_billing_record_adjustment
Record Billing Adjustment
Record an already-issued provider credit note or debit invoice against an existing agency billing line. Platform finance operators only: requires the existing admin key and wildcard scope; agency owner status is insufficient. Verifies exact provider receipt, currency and amount before recording bookkeeping. Creates no invoice, payment or subscription.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| lineId | string | oui | The billing line to correct. |
| amountCents | integer | oui | Correction in cents: negative for a credit, positive for a debit; not zero. |
| reason | string | oui | Why the correction is made. |
| providerCreditNoteId | string | non | Provider credit note ID; required for a credit. |
| providerDebitInvoiceId | string | non | Provider invoice ID; required for a debit. |
agency_billing_set_plan
Set Client Partner Plan
Puts a partner-created client on an agency-billed plan, or stops it when plan is null. Requires the agency owner who is also a client admin; starting a plan needs accepted terms and a ready collection method. Stopping parks the client service, which detaches its phone numbers from the voice agent under the existing parking policy.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| businessId | string | oui | The partner-created client business. |
| plan | string | null | oui | A partner plan key, or null to stop the client plan. |
agency_billing_set_automatic_collection
Set Automatic Collection
Turns monthly automatic collection of wholesale charges on or off under the accepted terms. Requires the agency owner and accepted terms; it cannot be turned off while any client is on an active partner plan. It charges nothing by itself.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| accepted | boolean | oui | true to authorize automatic monthly collection, false to stop it. |
agency_billing_publish_terms
Publish Wholesale Terms
Publishes a new set of wholesale commercial terms (discount, grace days, document and start date) for one agency, or for all agencies when partnerId is null. Platform commercial operators only. Each call publishes another version; agencies must still accept it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | null | oui | The agency (partner) workspace ID. |
| title | string | oui | Name of the terms. |
| discountBps | integer | oui | Wholesale discount in basis points (100 = 1%). |
| graceDays | integer | oui | Days allowed for payment before collection is overdue. |
| document | string | oui | The full terms text. |
| effectiveFrom | string | oui | When the terms take effect (ISO date-time). |
agency_billing_accept_terms
Accept Wholesale Terms
Accepts published wholesale terms for the agency and applies their discount. Requires the agency owner, and the terms must be in effect and apply to this agency. It charges nothing and doesn't set up payment.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| termsId | string | oui | The published terms to accept. |
agency_billing_setup_collection
Set Up Wholesale Payment Method
Creates the agency's customer record at the payment provider if needed and returns a hosted link where the owner adds a payment method. Requires the agency owner and accepted terms. It charges nothing, and the method is ready only after the provider confirms it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| offerId | string | non | Optional offer to return to after setup. |
agency_billing_freeze_period
Freeze Wholesale Billing Period
Calculates and locks the wholesale statement for one closed calendar month (UTC) from the agency's billable client intervals. Requires the agency owner. Freezing the same month again returns the same period; it does not charge.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| start | string | oui | First instant of the closed UTC month (ISO date-time). |
| end | string | oui | First instant of the following UTC month (ISO date-time). |
agency_care_preview_review
Preview Review Request Texts
Shows the exact review-request text, sender number and recipients for customers with a completed service, with a fingerprint for approval. Requires the client owner, the sms:write scope, and an SMS review installation where Kai is confirmed as the review tool. It sends nothing and saves nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| fromNumber | string | oui | The business number to send from (E.164). |
| milestones | array<object> | oui | One completed-service record per customer: leadId, completedAt and an evidence reference. |
| minimumDays | integer | oui | Minimum days (7-365) since a customer was last asked before they can be asked again. |
| fingerprint | string | non | |
| campaignId | string | non | |
| accepted | boolean | non |
agency_care_prepare_review
Prepare Review Request Campaign
Saves the approved review-request texts as a draft campaign and reserves the listed customers. Requires the client owner, the sms:write scope, accepted set to true and the fingerprint from preview_review. It sends nothing; launch_review sends it.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| fromNumber | string | oui | The business number to send from (E.164). |
| milestones | array<object> | oui | The same milestones used in preview_review. |
| minimumDays | integer | oui | The same minimumDays used in preview_review. |
| fingerprint | string | non | The fingerprint returned by preview_review. |
| campaignId | string | non | |
| accepted | boolean | non | Must be true to confirm the owner approves the exact texts and recipients. |
agency_care_launch_review
Send Review Request Texts
Launches the approved review-request campaign, queuing text messages to the listed customers from the business number. Requires the client owner, the sms:write scope, accepted set to true and the fingerprint from preview_review. A campaign that is already sending can't be launched again.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The agency package installation to act on. |
| expectedRevision | string | oui | The installation revision you last read. The call is rejected if the installation has changed since. |
| fromNumber | string | oui | The business number to send from (E.164). |
| milestones | array<object> | oui | The same milestones used in preview_review. |
| minimumDays | integer | oui | The same minimumDays used in preview_review. |
| fingerprint | string | non | The fingerprint returned by preview_review. |
| campaignId | string | non | Optional campaign ID returned by prepare_review, checked for a match. |
| accepted | boolean | non | Must be true to confirm the owner approves sending. |
agency_support_acknowledge
Acknowledge Agency Incident
Marks an agency incident as acknowledged and assigns its follow-up to you. Requires an agency owner, admin or operator. It does not resolve the incident; recovery is confirmed separately.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| incidentId | string | oui | The incident to acknowledge. |
agency_support_measure
Record Agency Work Measurement
Records time spent or money for one client (setup, support, fulfillment, provider cost or retail receipt) with a note. Requires an agency owner, admin or operator with write access to that client. Each call adds a new record.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| businessId | string | oui | The client business the measurement is for. |
| kind | enum: "setup" | "support" | "fulfillment" | "provider_cost" | "retail_receipt" | oui | setup, support, fulfillment, provider_cost or retail_receipt. |
| minutes | integer | non | Minutes spent, if measuring time. |
| amountCents | integer | non | Amount in US cents, if measuring money. |
| note | string | oui | Short description of the work or amount. |
agency_support_complete_exercise
Complete Training Exercise
Save completion evidence for a named operational exercise on an existing client installation. Requires current assigned client authority. Replaces any previous proof reference and completion time for that exercise; does not prove live customer delivery.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| installationId | string | oui | The installation the exercise was done on. |
| exercise | enum: "verify_launch" | "handle_failure" | "report_activity" | "export_handoff" | oui | verify_launch, handle_failure, report_activity or export_handoff. |
agency_clients_set_client_alerts
Set A Client's Lead Alerts
Changes one client's lead alerts: every lead or qualified leads only, whether the client gets KaiCalls product updates, and which emails and phones get the alerts. Requires write access to that client (agency owner/admin, or an operator assigned to it, who is also an admin on the client's account). Recorded in the client's change history. Sends nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| businessId | string | oui | The client business to change. |
| leadAlerts | enum: "all" | "qualified" | "default" | non | 'qualified' (only leads scored 70 or more), 'all' (every real lead) or 'default'. |
| kaicallsUpdatesEnabled | boolean | null | non | Whether the client gets KaiCalls product and account updates; null for the default. |
| alertEmails | string | null | non | Comma-separated emails that get lead alerts; empty or null clears them. |
| alertPhones | string | null | non | Comma-separated phones that get lead alert texts; empty or null clears them. |
agency_clients_set_client_profile
Set What Clients See About You
Sets who your clients should contact about their line and one or two sentences on how you work with them. Shown in every client's dashboard. Requires an agency owner or admin. Sends nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| clientSupportContact | string | null | non | Email or phone your clients should use; null clears it. |
| clientRelationshipNote | string | null | non | How you work with your clients, up to 600 characters; null clears it. |
agency_clients_set_activity_alerts
Set Your Client Activity Alerts
Chooses which client activity you hear about (qualified leads, a caller texted one of a client's links, a client needing attention) and where those alerts go. With no emails set, alerts go to the agency owners. Requires an agency owner or admin. Changes future alerts only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| partnerId | string | oui | The agency (partner) workspace ID. |
| emails | array<string> | non | Up to 5 emails for the alerts; an empty list sends them to the agency owners. |
| phone | string | null | non | A phone that also gets the alerts by text; null stops the texts. |
| events | object | non | On/off switches: qualified_lead, business_link_sent, client_needs_attention. |
get_agency_workspace
Read agency workspace
Read assigned installations, grouped support incidents, accepted billing evidence (also billing:read), your clients (line, last 7 days of calls and qualified leads, each client's alert settings, what clients see about you and your own client-activity alerts), or inventory one authorized client's saved facts and actual channel readiness. Suggestions and unknowns remain explicit.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| resource | enum: "installations" | "support" | "billing" | "discovery" | "clients" | oui | |
| partnerId | string | oui | |
| businessId | string | non | |
| after | string | non |
request_extra_number
Review an Extra Number
Reserve an exact pool number and request an owner-only browser review of its recurring extra-line price. Requires numbers:write and billing:write. It never charges included or prepaid capacity; included allocation goes through attach_number. This tool does not approve payment or prove activation.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| agent_id | string | oui | |
| phone_number | string | oui | |
| idempotency_key | string | oui |
get_extra_number_status
Get Extra Number Request Status
Read an owner-authorized extra-number request. Billing, assignment and live activation are distinct. Unknown checkout or provider outcomes retain the original request and number, so no replacement purchase is needed or started.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| request_id | string | oui |
retry_setup
Reconcile Existing Setup
Reconcile database pointers for an existing imported signup phone reservation. Owner-only, entitlement-checked, single-flight and idempotent. Never creates agents, buys numbers, changes provider routing or sends messages. PBX, missing imports, and stale claims return review blockers. Reusing the same key reads or replays the outcome; a failed request is held for review before a new key is accepted. Ready means database agreement, not activation.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| agent_id | string | oui | |
| idempotency_key | string | oui |
get_setup_recovery_status
Get Setup Recovery Status
Read an owner-authorized setup recovery request by its business and idempotency key. Running requests are never automatically stolen, including stale requests. A ready receipt does not prove live activation.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| idempotency_key | string | oui |
make_call
Make Call
Place an outbound call through a KaiCalls AI agent: call back a customer who previously called this business, give the owner a voice preview, or call on the owner's behalf (a landlord, clinic, pharmacy, school or utility) with the task in context. For a customer callback, pass the existing lead_id and callback goal in context. Kai verifies the business's inbound-call consent for the exact destination; a verified callback can go directly to a cell phone without connecting the owner. Contact existence alone is not callback permission, and opt-outs still block calls. A call never proves inbound routing or advances activation. report_language sets the language the result is reported in, and Kai then confirms exact details for that reader; Kai speaks call_language (English by default) on the phone. A new account's first call to a US or Canada business line is free; after that the account needs a plan. Kai calls businesses, not personal cell phones, on a free call. To a number in a state where everyone on a call must know it is recorded, Kai's first words are that the call is recorded. For a business that answers on a cell phone, connect_me has Kai ring the person's own saved phone and connect them, so they do the talking. While the call runs, check_call_status shows its live_transcript and send_call_note steers Kai. hold_for_me has Kai wait on hold at a business and connect the person when someone answers. An idempotency_key makes the request safely retryable. Only `to` is requir…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| agent_id | string | non | KaiCalls agent ID to use for the call (optional). Leave it out when the account has one agent: Kai uses that one. With several agents and none named, no call is placed and the answer lists them |
| to | string | oui | Phone number to call (E.164 format, e.g. +19085551234) |
| name | string | non | Caller/lead name (optional) |
| context | string | non | Call context or reason (optional) |
| first_message | string | non | Override the agent greeting message (optional) |
| lead_id | string | non | Existing lead ID to associate (optional) |
| call_language | enum: "en" | "es" | non | Language Kai speaks on the call (optional, default en) |
| report_language | string | non | Language the person asking reads, as a code or name (e.g. ar, ht, tr, bn, es, zh, vi). Kai confirms names, dates and numbers so the result can be relayed in this language (optional) |
| idempotency_key | string | non | Client-chosen key that makes this call exactly-once: retries with the same key never place a second call (optional but recommended) |
| external_ref | string | non | Your own reference for the conversation or task this call belongs to (up to 200 characters, optional). It comes back unchanged on check_call_status and on every webhook event for this call (call.question_pending, call.completed), so your agent can return the result to the right conversation. |
| connector_activation_call | boolean | non | True only for the one-time connector activation call the recipient explicitly requested in this conversation. This is not permission for marketing, SMS, or future calls. |
| listen_only | boolean | non | True to only listen: Kai calls a business, stays silent, records what answers (voicemail, answering service, phone menu or no answer) and hangs up within about 75 seconds without leaving a message. Takes no lead_id; context is ignored. Not available to numbers in states where everyone on a call mus… |
| connect_me | boolean | non | True when the person wants to talk to `to` themselves, for example a business that answers on a cell phone: Kai rings the person's own phone saved on the account (set_owner_phone), says one line and connects them to `to`. Kai never speaks to `to`. Takes no lead_id and cannot be listen-only (optiona… |
| caller_id | enum: "own" | "business_line" | non | Which number the other side sees (optional). 'own' shows the person's own verified number (start_own_caller_id) so they recognize who is calling; with none verified, no call is placed. 'business_line' shows the KaiCalls line. Left out, the account's saved choice applies. A free first call always sh… |
| hold_for_me | boolean | non | True when the person wants Kai to wait on hold for them: Kai calls `to`, gets through the phone menu and hold queue, and the moment a live person answers, says one line and connects the person's own phone saved on the account (set_owner_phone) so they do the talking. If they don't pick up, Kai does… |
check_call_status
Check Call Status
Check the status of a call by its ID: while it is live, the latest turns of the conversation (live_transcript) and any question Kai is waiting on (pending_question); after, a voicemail message left, or the business calling back. Also takes the intent_id of a call scheduled for calling hours and says when it goes out
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| call_id | string | oui | The call ID to check, or the intent_id make_call returned for a scheduled call |
answer_call_question
Answer Call Question
Send the person's answer to a live call's pending_question, or decline. Send only what they said; answered once.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| call_id | string | oui | The KaiCalls call ID from make_call |
| question_id | string | non | The pending_question.question_id to answer (optional; defaults to the oldest open question) |
| answer | string | non | The person's answer, in their words (required unless decline is true) |
| decline | boolean | non | True when the person does not want to share this (optional) |
send_call_note
Send Call Note
Send Kai a short note on a live call it is making for the person, to steer it: a detail to mention, a question to add, a preference. Kai uses it on its next turn without reading it out. It never overrides Kai's honesty and disclosure rules. Up to 10 notes a call.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| call_id | string | oui | The KaiCalls call ID from make_call |
| note | string | oui | What Kai should know or do, in one or two sentences (up to 500 characters) |
join_call
Join Call
Join a live errand call. take_over connects the person's own phone; listen returns a signed-in dashboard link.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| call_id | string | oui | The KaiCalls call ID from make_call |
| mode | enum: "take_over" | "listen" | oui | take_over rings the person and connects them; listen returns a dashboard link |
list_recent_calls
List Recent Calls
List and search the business's calls, newest first, each with who called (when known) and a short summary of what they wanted. Search by caller phone, by words in the call summary ("water heater", "quote"), and by date window; filters combine. Use get_transcript for the full call.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| phone | string | non | Only this caller: any phone format; matches on the last 10 digits (optional). |
| query | string | non | Words to find in the call summary, e.g. "water heater" (optional). |
| after | string | non | Only items at or after this ISO-8601 date or time (optional). |
| before | string | non | Only items before this ISO-8601 date or time (optional). |
| limit | integer | non | Max results to return (default 20, max 100) |
| offset | integer | non | Zero-based pagination offset (default 0) |
| agent_id | string | non | Filter by agent ID (optional) |
| status | string | non | Filter by status (optional) |
get_transcript
Get Transcript
Get the transcript and summary of a completed call, plus its insights: Kai's lead score for the call, the caller's sentiment, the intake answers collected, who did the talking, and the lead journey (channel, landing page, first contact, number of calls).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| call_id | string | oui | The call ID to get the transcript for |
get_coaching
Get Coaching
Coach the business's agent. With call_id: what the agent did well and what to change on that call, each point with the caller's or agent's exact words, the second it happened, and a one-line rule that would fix it (teach it with teach_coaching_rule). Without call_id: the agent's recurring habits across recent calls (how often, example calls, and whether a rule taught for it has worked). Read-only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| call_id | string | non | Coach one call. Omit for habits across calls. |
| business_id | string | non | Business ID. Required when the key can reach more than one business. |
| agent_id | string | non | Habits for one agent only (optional). |
| days | integer | non | Window for habits, in days (default 30). |
teach_coaching_rule
Teach Coaching Rule
Teach the agent one rule from a coaching point on a call (get_coaching gives the code and a suggested rule). The rule is added to a Coaching rules section of the agent's instructions through the governed update path, so it is versioned, in change history and can be rolled back; a business owner or admin signed in through this connector applies it right away, otherwise it waits for the owner. Then a test is built from that call and run, and the result says whether the agent now follows the rule.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| call_id | string | oui | The call the coaching point is on. |
| code | string | oui | The coaching point code from get_coaching. |
| rule | string | oui | One plain instruction the agent should follow on every call (8-300 characters). Usually the suggested rule from get_coaching. |
| business_id | string | non | Business ID. Required when the key can reach more than one business. |
share_call_example
Share Call Example
Owner only: publish a finished errand call as a redacted transcript example (no audio, business shown as a category). Call once for a preview, show it, then confirm with its preview_hash.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| call_id | string | oui | The finished errand call to share |
| business_category | enum: "business" | "cable_internet" | "phone_carrier" | "utility" | "insurance" | "bank" | "pharmacy" | "doctor" … | non | What kind of business was called, shown instead of its name (default business) |
| errand | enum: "lower-a-bill" | "cancel-a-subscription" | "prescription" | "book-an-appointment" | "get-a-quote" | non | The kind of errand, if one fits (optional) |
| title | string | non | Short title in the owner’s words, 120 characters or fewer. Personal details are removed (optional) |
| outcome | string | non | What happened, in the owner’s words, 600 characters or fewer. Defaults to the call summary (optional) |
| confirm | boolean | non | True only after the owner has seen the preview and asked to publish it. Without it nothing is published. |
| preview_hash | string | non | The preview_hash from the preview the owner approved. Required with confirm. |
unshare_call_example
Unshare Call Example
Owner only: take a shared call example down.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| call_id | string | oui | The shared call to take down |
get_call_recording
Get Call Recording
Get the real call recording URL for a call so reviewers can listen to the voice/audio instead of relying only on the transcript.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| call_id | string | oui | The KaiCalls call ID to get the recording for |
list_agents
List Agents
List the KaiCalls agents on the authenticated account. Shows whether this business already has a secretary answering its calls.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID to filter by (optional, must be accessible) |
| limit | integer | non | Max results to return (default 50, max 100) |
| offset | integer | non | Zero-based pagination offset (default 0) |
get_business_info
Get Business Info
Read back what a business already has: profile details, how many agents are configured, and recent call volume. This shows whether a business number that answers missed calls already exists. When the business has no working phone line yet, `next_step` names the tool that sets one up.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional, defaults to first accessible business) |
get_operational_settings
Get Operational Settings
Read the business-level operational setup of a live account: staff alert recipients, SMS/email alert flags, escalation rules, textable send-link entries, and assigned agent voice/model/greeting metadata.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional, defaults to first accessible business) |
configure_staff_alerts
Configure Staff Alerts
Save the business's alert contacts and post-call escalation rules. Read get_operational_settings first: each list you send (notification_phone, notification_email, escalation_rules) replaces the whole saved list, so include the entries to keep. Listed phones get after-call summary texts and escalation texts (one-recipient alerts go to the first phone); listed emails get escalation emails. lead_alerts chooses every lead or qualified leads only, and kaicalls_updates_enabled turns KaiCalls product and setup mail on or off (both default to quiet for a business a partner set up). Saving does not prove delivery.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token has exactly one accessible business) |
| notification_phone | string | array | non | Phones that get alert texts; the first also gets one-recipient alerts. Replaces the saved list. Comma-separated string or array. |
| notification_email | string | array | non | Email addresses that get escalation emails. Replaces the saved list. Comma-separated string or array. |
| sms_notifications | boolean | non | Enable or disable SMS staff alerts for this business. |
| lead_alerts | enum: "all" | "qualified" | "default" | non | 'qualified' = alert only on leads scored 70+ and stop the per-call 'a call came in' texts and emails; 'all' = every real lead; 'default' = the account default (qualified for a business set up by a partner, else all). |
| lead_alert_min_score | integer | null | non | Exact lead score bar for alerts (0 = every lead). Overrides lead_alerts. null = account default. |
| kaicalls_updates_enabled | boolean | null | non | KaiCalls product news, setup tips, weekly summaries and account nudges to this business. Off by default for a business set up by a partner. Billing receipts and team invitations always go. null = account default. |
| email_notifications | boolean | non | Enable or disable email staff alerts for this business. |
| escalation_rules | array<object> | non | Post-call escalation rules checked against each finished call. Replaces the saved rules. Each rule is { id?, when, then, enabled? }. |
| dry_run | boolean | non | Validate and show the proposed settings without writing. |
get_call_disclosures
Get Call Disclosures
Read the recording notice and AI notice callers hear before the greeting, and when each plays: always, state_gated (only for callers in states whose law calls for it, e.g. all-party-consent states for recording), or never. Shows the defaults when the business has not set its own.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token has exactly one accessible business) |
set_call_disclosures
Set Call Disclosures
Change the recording notice or AI notice callers hear before the greeting, or when each plays. The next call uses the new wording. Requires the business owner. Turning a notice to never can break recording or AI-disclosure law for callers in states that require one; state_gated is the safe default. Every change is logged with the previous value.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token has exactly one accessible business) |
| recording_disclosure_message | string | non | What callers hear about recording, e.g. "This call is recorded." Up to 300 characters. |
| recording_disclosure_mode | enum: "always" | "state_gated" | "never" | non | When the recording notice plays. |
| ai_disclosure_message | string | non | What callers hear about talking to an AI. Up to 300 characters. |
| ai_disclosure_mode | enum: "always" | "state_gated" | "never" | non | When the AI notice plays. |
| ai_disclosure_enabled | boolean | non | Legacy switch; false turns the AI notice off entirely. |
| record_calls_by_default | boolean | non | Whether calls are recorded. With recording off, no recording notice plays. |
| dry_run | boolean | non | Validate and show the proposed settings without writing. |
get_call_companion
Get Live Call Companion
Read whether the live call companion is on for the business: during a call the secretary texts the caller one page link and puts options, open times, a short details form or a deposit on it; the caller taps instead of spelling things out, the secretary hears what they picked, and after the call the same link shows their recap. Shows the state per assistant.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token has exactly one accessible business) |
set_call_companion
Set Live Call Companion
Turn the live call companion on or off for every assistant of the business. On: during a call the secretary can text the caller a live page with options, open times, a details form or a deposit and hear what they tap. Payments on that page still need the business's own payments setting. Requires an admin of the business. The next call uses the change.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token has exactly one accessible business) |
| enabled | boolean | oui |
get_page_branding
Get Call Page Branding
Read the business's own look on the pages made for its calls (the live call companion and the caller's recap): name, logo, accent colour, which sites may embed those pages (the business's own website unless it lists others), the call-page domain's setup state (not_set, waiting_on_dns or live, with blockers, the DNS provider and the records to add), every domain the business has (email and pages, so all DNS is one visit), and next_step: one sentence saying what to do next.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token has exactly one accessible business) |
set_page_branding
Set Call Page Branding
Put the business's own logo, colour and domain on the pages made for its calls, and choose which sites may embed them. from_website: true reads the logo and colour off the business's own homepage for anything not given. color is a hex like #0f766e (too-light colours are refused); null clears back to the default. Requires an admin of the business. Pages already sent pick it up on their next load.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token has exactly one accessible business) |
| logo_url | string | null | non | https link to the logo, or null to clear |
| color | string | null | non | Hex colour like #0f766e, or null for the default |
| embed_origins | array<string> | non | https sites allowed to embed the pages, e.g. https://www.example.com. Empty list = only the business's own website. |
| from_website | boolean | non | Fill logo and colour from the business's website |
| page_domain | string | null | non | The business's own subdomain for its call pages, e.g. calls.example.com, or "auto" to use calls. on the domain it already sends email from (else its website). Kai adds the DNS record itself where it can; otherwise the reply names the DNS provider and the exact records. New links use the domain only… |
get_call_page
Get Call Page
Get a shareable page for one finished call, in the business's own branding: the customer-safe recap, next steps and what the caller picked (never notes, recordings or scoring). Returns a link to share, an embed_url for an iframe, and a ready-to-paste embed_html snippet. Each request makes a fresh link that works for 30 days.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token has exactly one accessible business) |
| call_id | string | oui | KaiCalls call id, the voice provider's call id, or "latest" for the business's most recent finished call |
get_scam_screening
Get Scam Call Screening
Read how the business screens scam calls: the mode (off; label, the default, which answers every call and marks likely scams in the call log; or screen, which sends callers with a strong scam sign to a take-a-message screen), the numbers that are never screened, and the most recent calls caught as scams.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token has exactly one accessible business) |
set_scam_screening
Set Scam Call Screening
Change how the business screens scam calls, or which numbers are never screened. mode: off, label (default; nothing is blocked) or screen (callers with a strong scam sign, such as a caller ID the carrier could not verify or a number already caught scamming, get a short screen that takes their name and reason instead of the normal line). Known customers and the team are never screened. allowlist replaces the whole list. Requires an admin of the business. The next call uses the change.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token has exactly one accessible business) |
| mode | enum: "off" | "label" | "screen" | non | |
| allowlist | array<string> | non | Phone numbers never screened. Replaces the saved list. Up to 200. |
| dry_run | boolean | non | Validate and show the proposed settings without writing. |
get_activation_status
Get Activation Status
Read current call readiness and persisted private-test proof for one accessible business. Only a currently entitled owner with a coherent assigned number gets the existing private-test setup link. Missing entitlement, incomplete setup or stale sessions do not authorize a call. It cannot assert or advance proof. A completed private test is separate from customer-route coverage; forwarding is optional and does not define whether the assigned phone works.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token reaches exactly one business). |
| activation_session_id | string | non | Optional exact session ID. A superseded or foreign session is rejected. |
| oauth_transaction_id | string | non | Opaque OAuth transaction identifier used only to bind a completed receipt. |
| origin_conversation_id | string | non | Opaque client conversation identifier used only to bind a completed receipt. |
| receipt_idempotency_key | string | non | Client key for replay-safe delivery of a completed activation receipt. |
confirm_notification_destination
Confirm Activation Notification Destination
APPROVAL-GATED. Save the owner-approved phone number (SMS) or email address where KaiCalls sends the owner the result of their first test call, for the exact active activation session. Once that test call's record is ready, KaiCalls sends a real text or email to that destination through its messaging provider; saving the destination alone is not proof anything was delivered. Replaces any destination saved earlier for the session.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| activation_session_id | string | oui | |
| channel | enum: "sms" | "email" | oui | |
| destination | string | oui | |
| idempotency_key | string | oui | |
| authority | object | non |
retry_activation_notification
Retry Activation Notification
APPROVAL-GATED. Send the owner's activation notification again, as a real text or email through KaiCalls' messaging provider, for the exact active activation session. Only retries a channel whose last attempt failed or has waited long enough; an attempt whose outcome is unknown is never blindly resent. Requires a new idempotency_key.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| activation_session_id | string | oui | |
| channel | enum: "sms" | "email" | oui | |
| idempotency_key | string | oui | |
| authority | object | non |
choose_customer_route
Choose Customer Route
APPROVAL-GATED. After private-test proof is complete, save forwarding, published_number, both, or testing. This unlocks the command center but does not claim customer coverage; selected customer routes remain pending until independently verified. Forwarding is optional; testing keeps the existing private-test result without connecting a customer route.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| activation_session_id | string | oui | |
| choice | enum: "forwarding" | "published_number" | "both" | "testing" | oui | |
| source_phone | string | non | Existing business number, required for forwarding or both. |
| idempotency_key | string | oui | |
| authority | object | non |
configure_textable_links
Configure Textable Links
Create or repair the business_links entries used by the send_link/send_sms tools. These entries let callers receive booking, directions, cancellation, sister-location, or service-specific links by text without raw URLs in the voice prompt.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token has exactly one accessible business) |
| links | array<object> | oui | Links to create/update by link_key. New links require label and destination_url. Existing links can be deactivated with is_active=false. |
| dry_run | boolean | non | Validate and show create/update plan without writing. |
configure_agent_business_rules
Configure Agent Business Rules
Safely add or replace a named operational rules section inside an agent inbound prompt, then route the prompt patch through the governed agent.patch broker. It covers cross-business handoffs, callback language, alert promises, and client-specific operating rules, and leaves the rest of the prompt unchanged.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| agent_id | string | oui | KaiCalls agent ID to update |
| business_id | string | non | Business ID. Required when the agent has multiple accessible assignments. |
| section_title | string | non | Prompt section heading to replace/append. Default: Operational handoff rules. |
| rules | array<string> | oui | Plain-language operational rules to insert as bullets, e.g. callback capture, sister-location boundaries, urgent alert handling. |
| mode | enum: "replace" | "append" | non | replace (default) swaps the named section for these rules; append adds them to it. |
| idempotency_key | string | non | Required for writes. A retry with the same key applies the same proposed prompt change only once. |
| actor | object | non | Do not set. Kept for older clients; the signed-in connection identifies you. |
| authority | object | non | Do not set. It cannot approve a change: the owner approves through review_url or by being signed in. |
| dry_run | boolean | non | Validate and show the prompt patch metadata without writing. |
| queue_for_approval | boolean | non | When authority is missing, create a pending dashboard approval instead of returning needs_approval. |
| source_ref | string | non | External source reference, such as a support ticket or assistant conversation ID. |
list_leads
List Leads
List leads for the authenticated business, with optional status/source/agent filters. Includes the latest AI lead score when available.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| limit | integer | non | Max results to return (default 50, max 100) |
| offset | integer | non | Zero-based pagination offset (default 0) |
| status | string | non | Filter by lead status (optional) |
| source | string | non | Filter by lead source (optional) |
| agent_id | string | non | Filter by agent ID (optional) |
get_lead
Get Lead
Get full details for a single lead by ID, including the latest AI lead score and explanation.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| lead_id | string | oui | The lead ID to fetch |
list_voicemails
List Voicemails
List recent voicemails for the authenticated business, including transcripts and recording URLs.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| limit | integer | non | Max results to return (default 20, max 100) |
| offset | integer | non | Zero-based pagination offset (default 0) |
list_sms_messages
List SMS Messages
Read SMS and WhatsApp message evidence for accessible businesses (sms:read), including provider message ID, carrier status, delivery/failure timestamps and failure code. Filter by business_id, conversation or direction, and search by phone number (either side), words in the message, and date window. Provider acceptance is not delivery; delivered_at and carrier status record delivery. Uses offset pagination.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Narrow to one accessible business (optional). |
| limit | integer | non | Max results to return (default 50, max 100) |
| offset | integer | non | Zero-based pagination offset (default 0) |
| conversation_id | string | non | Filter by conversation ID (optional) |
| direction | string | non | Filter by direction: inbound or outbound (optional) |
| phone | string | non | Only this caller: any phone format; matches on the last 10 digits (optional). |
| query | string | non | Words to find in the message text (optional). |
| after | string | non | Only items at or after this ISO-8601 date or time (optional). |
| before | string | non | Only items before this ISO-8601 date or time (optional). |
get_inbox
Get Inbox
Answer "what did I miss?" in one read: the business's calls since a moment (default the last 24 hours, at most 30 days) with who called and what they wanted, every unheard voicemail with its transcript, texts that came in (needs sms:read), and open to-dos and callbacks. Read-only. Follow up with get_transcript, send_message to reply, or list_recent_calls / list_sms_messages to search further back.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| since | string | non | ISO-8601 date or time to start from (optional, default 24 hours ago; clamped to the last 30 days). |
| business_id | string | non | Narrow to one accessible business (optional). |
open_dashboard
Open KaiCalls Dashboard
Show the owner their KaiCalls dashboard right in the chat: an overview of calls, unheard voicemails, texts waiting on a reply, open to-dos and new leads; an inbox where they can reply to texts; recent calls; leads with their status; and a calls-per-day report over 7, 30 or 90 days. Use it when the owner asks to see their dashboard, their calls, their inbox, their leads, or how the line is doing. Read-only; replies and status changes the owner makes in it go through send_message and upsert_lead with the usual checks.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| view | enum: "overview" | "inbox" | "calls" | "leads" | "report" | non | Which tab to open first (default overview). |
| days | integer | non | Period in days (default 7). The inbox covers at most the last 30. |
| business_id | string | non | Narrow to one accessible business (optional). |
set_business_hours
Set Business Hours
Change the business's opening hours, timezone, or one-off closed dates ("we're closed Friday the 27th"). Same change as the dashboard's hours page, admin role required. Only the days you pass change; every other day keeps what it had. A day is { open: 'HH:MM', close: 'HH:MM' } in 24-hour time, or { closed: true }. closed_dates adds dates the business is shut; reopen_dates removes them. Call routing that follows business hours uses the new hours from the next call. Returns the saved week as read back.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | The business. Required when the account has more than one. |
| hours | object | non | Days to change, keyed monday..sunday. Example: { saturday: { open: '09:00', close: '13:00' }, sunday: { closed: true } }. |
| timezone | string | non | IANA timezone, e.g. America/Chicago (optional). |
| closed_dates | array<object> | non | Dates the business is closed, e.g. [{ date: "2026-11-27", name: "Thanksgiving" }]. |
| reopen_dates | array<string> | non | Closed dates to remove (YYYY-MM-DD). |
list_campaigns
List Campaigns
List outbound call campaigns for the authenticated business.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| limit | integer | non | Max results to return (default 25, max 100) |
| offset | integer | non | Zero-based pagination offset (default 0) |
| status | string | non | Filter by campaign status (optional) |
create_campaign
Create Campaign
Create an outbound call campaign (cadence + lead batch) and optionally launch it immediately. Launching queues calls for the orchestrator; existing TCPA/consent gating still applies at dial time. Requires admin role on the business.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (required only when the token can access multiple businesses). |
| name | string | oui | Campaign name. |
| description | string | non | Optional campaign description. |
| cadence_config | object | oui | Cadence configuration. { template: standard|aggressive|nurture|custom, attempts: number }. |
| lead_ids | array<string> | non | Lead IDs to enroll in the campaign (optional at create time). |
| script | object | non | What Kai says on these calls. Write blanks as {{ snake_case }}, e.g. "Hi, is this {{ name }}? You rented {{ last_year_items }} from us last year." A blank needs a value for every customer (lead_variables) or a default: {{ name | default: "there" }}. Launch is refused if any customer is missing a va… |
| lead_variables | object | non | Each customer's values for the script's blanks, keyed by lead ID: { " ": { "last_year_items": "tables and chairs" } }. "name" is filled from the lead when it has one. |
| launch | boolean | non | When true, launch the campaign immediately after creating it. |
| agent_id | string | non | Agent ID to place the calls. Required when launch is true. |
launch_call_campaign
Launch Call Campaign
Start or resume an existing outbound call campaign so Kai begins calling its leads. Needs campaign_id and agent_id (an agent assigned to the same business), the calls:write scope and an admin role in the business. Queues the campaign's pending calls within its call windows; real people get phone calls once it runs. A queued result does not mean any call was answered or completed. pause_call_campaign stops it. Not for email campaigns.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID. Required when the token can reach more than one business. |
| campaign_id | string | oui | The call campaign, from list_campaigns. |
| agent_id | string | oui | The agent that places the calls. Must belong to the same business. |
pause_call_campaign
Pause Call Campaign
Pause an outbound call campaign. Stops its queued and scheduled calls and cancels pending call attempts; a call already in progress may finish. Leads are kept and the campaign can be resumed later with launch_call_campaign. Needs campaign_id, the calls:write scope and an admin role in the business. Pausing an already paused campaign changes nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID. Required when the token can reach more than one business. |
| campaign_id | string | oui | The call campaign, from list_campaigns. |
list_workflow_templates
List Workflow Templates
List the cadence/campaign workflow templates KaiCalls can run (standard, aggressive, nurture, custom), including each template's retry interval, defaults (call windows, days, attempts), and a ready-to-use cadence_config example. The cadence_config examples match the shape create_campaign accepts, including multi-step sequences with launch=true. Static catalog — no per-business state.
Aucun paramètre.
get_analytics
Get Analytics
Get a dashboard summary (lead counts by status, conversion rate, call volume and duration, top agents, and business outcomes by type) over a recent time window.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| days | integer | non | Lookback window in days (default 30, max 90) |
upsert_lead
Create or Update Lead
Create a new lead or update existing leads for the authenticated business, routed through the governed leads API (business access-checked, usage-logged, and audited). To create one, pass `lead` with at least one of name/phone/email plus optional status/source/notes/agent_id/etc. To update, pass `updates`: an array of { id, ...fields } for one or many existing leads (status, name, phone, email, notes, address, city, state, zip). Updates are access-checked per row and report partial success.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID. Required for create when the API key can access multiple businesses. |
| lead | object | non | Fields for a NEW lead: name, first_name, last_name, phone, email, status, source, notes, address, city, state, zip, agent_id, message. At least one of name/phone/email is required. |
| updates | array<object> | non | Update existing leads. Each item is { id, ...fields } where fields are a subset of name, first_name, last_name, email, phone, status, source, notes, address, city, state, zip, timezone. Set timezone (IANA, e.g. America/New_York) when the person lives somewhere other than their area code suggests: q… |
send_sms
Send SMS
Send a text from an agent's phone line through the governed messaging API. Provide from_agent_id, to, and message. For the immediate confirmation a customer just requested on a booking form, add purpose: booking_confirmation, the form's actual sms_consent: true, and idempotency_key; this records service consent and allows the requested confirmation after hours. Booking alerts to this business's active admin phone use purpose: booking_alert and idempotency_key. Explicit opt-outs, content controls and rate limits remain enforced. Use dispatch_policy: queue_if_needed to defer ordinary messages outside their allowed window. Optionally link lead_id; it must belong to this business and match the recipient phone.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| from_agent_id | string | oui | Agent ID whose phone line the text is sent from. |
| to | string | oui | Recipient phone number in E.164 format (e.g. +18135551234). |
| message | string | oui | Text message body. |
| lead_id | string | non | Optional lead ID to link and honor the lead's automation-pause state. |
| idempotency_key | string | non | Optional caller-supplied key. A replay with the same key returns the original send outcome instead of sending again — so a retry after an uncertain response is safe. |
| purpose | enum: "booking_confirmation" | "booking_alert" | non | Booking confirmation attests the customer just requested this text; booking_alert requires an active business admin recipient. Requires idempotency_key. |
| sms_consent | boolean | non | Actual service-message opt-in captured on the booking form. Never infer or invent it. |
| sms_opt_in | string | non | Existing form consent alias, for example yes. |
| consent_language | string | non | The disclosure shown on the form, when available. |
| source_url | string | non | Optional HTTPS booking-form URL for consent provenance. |
| submission_id | string | non | Optional original submission ID; defaults to the idempotency key. |
| submitted_at | string | non | Optional original form-submission ISO timestamp. Must be recent for an immediate reply. |
| dispatch_policy | enum: "send_now" | "queue_if_needed" | non |
update_agent_config
Update Agent Configuration
Edit an agent's live runtime configuration — greeting/first message, inbound or SMS prompt, the after-call summary and lead-score instructions, voice, language model, max call duration, and call-transfer settings — routed through the governed update broker so every change keeps the consent + audit trail (a versioned config snapshot and change history). Read get_agent_config first; inbound_prompt replaces the whole prompt. Each applied change is saved as a version (list_config_versions); rollback_config can restore a version's greeting, voice, prompt, model and summary/scoring, but not transfer settings or call length. Mutating changes need an idempotency_key. When the business owner or an admin is signed in through this connector, their own changes apply immediately. High-impact live changes made with an API key or on someone else's behalf queue for the owner's review instead (the owner is notified with a review link). configure_agent_business_rules edits a single named operational-rules section.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| agent_id | string | oui | KaiCalls agent ID to update. |
| business_id | string | non | Business ID. Required when the agent has multiple accessible assignments. |
| first_message | string | non | Spoken greeting / first message callers hear. |
| inbound_prompt | string | non | The whole inbound prompt; it replaces the current one. Start from inbound_prompt in get_agent_config, never from a saved version. |
| outbound_prompt | string | non | Outbound (campaign) system prompt. |
| sms_prompt | string | non | SMS reply prompt. |
| name | string | non | Agent display name. |
| voice_catalog_id | string | non | Preferred way to pick a voice: an id from list_voices. |
| voice | object | non | Voice selection: { provider, voiceId }. Use voice_catalog_id instead when you can. |
| model | object | non | Language model selection: { provider, model, temperature }. |
| max_duration | integer | non | Maximum call duration in seconds. |
| transfer_enabled | boolean | non | Enable/disable live call transfer. |
| transfer_phone_number | string | non | Number to transfer qualified calls to. |
| call_summary_instructions | string | non | How the summary written after each call should read, in plain language (for example "Write exactly two sentences for the attorney..."). Changes only the summary; the prompt and scoring stay as they are. get_operational_settings shows the current text. |
| lead_score_instructions | string | non | How each caller is scored from 0 to 100, in plain language. Changes only the scoring. End it with "Respond with ONLY a number from 0 to 100." |
| reason | string | non | Why this change is being made. Kept in the change history. |
| idempotency_key | string | non | Required for writes. Reuse the same key when retrying the same change. |
| actor | object | non | Do not set. Kept for older clients; the signed-in connection identifies you. |
| authority | object | non | Do not set. It cannot approve a change: the owner approves through review_url or by being signed in. |
| dry_run | boolean | non | Validate and summarize the change without writing. |
| queue_for_approval | boolean | non | When authority is missing, create a pending dashboard approval instead of returning needs_approval. |
| source_ref | string | non | External source reference, such as a support ticket or conversation ID. |
request_emergency_address
Set Emergency (911) Address
Set the emergency (E911) service address for one of the business's phone numbers with the phone carrier, so a 911 call from that line reaches the right dispatcher. Needs phone_number, the full street address and disclosure_acknowledged true after the owner reads the 911 notice, plus the owner's confirmed approval. Replaces any address on file for that number. Returns needs_user_input, needs_approval, pending_approval, executed, denied or unsupported; only executed means the change was made.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID. Required when the token can reach more than one business. |
| idempotency_key | string | oui | Required to make the change. Repeating a key returns the first outcome instead of running the change again. |
| authority | object | non | Do not set. It cannot approve a change: the owner approves through review_url or by being signed in. |
| actor | object | non | Do not set. Kept for older clients; the signed-in connection identifies you. |
| dry_run | boolean | non | Check access, inputs and approval without making the change. |
| queue_for_approval | boolean | non | When approval is missing, create a pending approval the owner can accept in the dashboard instead of returning needs_approval. |
| reason | string | non | Why the change is being made; kept in the audit log. |
| source_ref | string | non | Optional reference for the request, such as a ticket or automation run ID. |
| phone_number | string | oui | The business line, in E.164 format. |
| address | object | oui | Where the phone is used. |
| disclosure_acknowledged | boolean | oui | True only after the owner has read and accepted the 911 service notice. |
request_transcript_webhook
Send Call Transcripts to a Webhook
Create or update a webhook that receives the business's completed-call events (which can include transcripts) at a URL the business controls. Needs webhook_url and the owner's confirmed approval because call data leaves KaiCalls. A new webhook's signing secret is returned once. Returns needs_user_input, needs_approval, pending_approval, executed, denied or unsupported; only executed means the change was made.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID. Required when the token can reach more than one business. |
| idempotency_key | string | oui | Required to make the change. Repeating a key returns the first outcome instead of running the change again. |
| authority | object | non | Do not set. It cannot approve a change: the owner approves through review_url or by being signed in. |
| actor | object | non | Do not set. Kept for older clients; the signed-in connection identifies you. |
| dry_run | boolean | non | Check access, inputs and approval without making the change. |
| queue_for_approval | boolean | non | When approval is missing, create a pending approval the owner can accept in the dashboard instead of returning needs_approval. |
| reason | string | non | Why the change is being made; kept in the audit log. |
| source_ref | string | non | Optional reference for the request, such as a ticket or automation run ID. |
| webhook_url | string | oui | HTTPS URL that receives the events. |
| events | array<string> | non | Events to send. Default ['call.completed']. |
| id | string | non | Optional: an existing webhook to update. |
| description | string | non | Optional label for the webhook. |
| is_active | boolean | non | Optional: false to save it switched off. |
request_agent_update
Request Agent Change With Approval
Change a live agent's name, greeting, prompts, voice, model, call length or call transfer through the approval-gated path, for changes made on the owner's behalf that need a recorded approval. Needs agent_id, at least one field to change and the owner's confirmed approval. Callers hear the change on their next call. Direct edits by the owner go through update_agent_config. Returns needs_user_input, needs_approval, pending_approval, executed, denied or unsupported; only executed means the change was made.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID. Required when the token can reach more than one business. |
| idempotency_key | string | oui | Required to make the change. Repeating a key returns the first outcome instead of running the change again. |
| authority | object | non | Do not set. It cannot approve a change: the owner approves through review_url or by being signed in. |
| actor | object | non | Do not set. Kept for older clients; the signed-in connection identifies you. |
| dry_run | boolean | non | Check access, inputs and approval without making the change. |
| queue_for_approval | boolean | non | When approval is missing, create a pending approval the owner can accept in the dashboard instead of returning needs_approval. |
| reason | string | non | Why the change is being made; kept in the audit log. |
| source_ref | string | non | Optional reference for the request, such as a ticket or automation run ID. |
| agent_id | string | oui | The agent to change. |
| name | string | non | The name the agent uses. |
| first_message | string | non | The greeting callers hear. |
| inbound_prompt | string | non | Instructions for incoming calls. |
| outbound_prompt | string | non | Instructions for outgoing calls. |
| outbound_first_message | string | non | Opening line on outgoing calls. |
| sms_prompt | string | non | Instructions for text replies. |
| voice_catalog_id | string | non | Voice to use: an id from list_voices. Preferred over voice. |
| voice | object | non | Voice to use, from list_voices: { provider, voiceId }. |
| model | object | non | Language model settings: { provider, model }. |
| outbound_llm | string | non | Model for outgoing calls. |
| sms_llm | string | non | Model for text replies. |
| max_duration | number | non | Longest call length, in seconds. |
| transfer_enabled | boolean | non | Whether the agent may transfer calls to a person. |
| transfer_phone_number | string | non | Where transfers go (E.164). |
| metadata | object | non | Agent metadata to merge. |
| extraction_schema | object | non | Fields to capture from each call. |
request_number_purchase
Request Phone Number Purchase
Buy a specific available phone number for the business from the phone carrier, with the owner's confirmed approval. The carrier bills the number to the business right away. Available numbers come from search_available_numbers. Optionally connects it to agent_id. Returns needs_user_input, needs_approval, pending_approval, executed, denied or unsupported; only executed means the change was made.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID. Required when the token can reach more than one business. |
| idempotency_key | string | oui | Required to make the change. Repeating a key returns the first outcome instead of running the change again. |
| authority | object | non | Do not set. It cannot approve a change: the owner approves through review_url or by being signed in. |
| actor | object | non | Do not set. Kept for older clients; the signed-in connection identifies you. |
| dry_run | boolean | non | Check access, inputs and approval without making the change. |
| queue_for_approval | boolean | non | When approval is missing, create a pending approval the owner can accept in the dashboard instead of returning needs_approval. |
| reason | string | non | Why the change is being made; kept in the audit log. |
| source_ref | string | non | Optional reference for the request, such as a ticket or automation run ID. |
| phone_number | string | oui | The number to buy (E.164), from search_available_numbers. |
| agent_id | string | non | Optional: the agent that answers the number. |
request_config_rollback
Request Agent Rollback With Approval
Put a live agent back on a saved earlier version of its configuration (listed by list_config_versions), with the owner's confirmed approval. Replaces the current live configuration; callers hear the restored version on their next call. Needs agent_id and version_number or version_id. Returns needs_user_input, needs_approval, pending_approval, executed, denied or unsupported; only executed means the change was made.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID. Required when the token can reach more than one business. |
| idempotency_key | string | oui | Required to make the change. Repeating a key returns the first outcome instead of running the change again. |
| authority | object | non | Do not set. It cannot approve a change: the owner approves through review_url or by being signed in. |
| actor | object | non | Do not set. Kept for older clients; the signed-in connection identifies you. |
| dry_run | boolean | non | Check access, inputs and approval without making the change. |
| queue_for_approval | boolean | non | When approval is missing, create a pending approval the owner can accept in the dashboard instead of returning needs_approval. |
| reason | string | non | Why the change is being made; kept in the audit log. |
| source_ref | string | non | Optional reference for the request, such as a ticket or automation run ID. |
| agent_id | string | oui | The agent to roll back. |
| version_number | integer | non | The saved version to restore. |
| version_id | string | non | Or the saved version id. |
join_meeting
Send Kai Into a Meeting
Send Kai into a Zoom, Google Meet, Microsoft Teams or Webex meeting by its link. Kai joins under the agent name, takes notes, and emails the owner a summary when the meeting ends. If the meeting has a waiting room, the host must admit Kai. In the default listen mode it answers out loud when someone says its name and counts against the plan's monthly meeting minutes (a business whose plan includes none gets its first hour free, once); avatar mode joins with a talking video face and counts one avatar meeting.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (required when the token can access several businesses). |
| meeting_url | string | oui | The meeting link, e.g. https://meet.google.com/abc-defg-hij or a zoom.us join link. |
| agent_id | string | non | Which agent joins (optional; defaults to the business's first agent). |
| bot_name | string | non | Name shown in the meeting and the name people say to get a reply (optional; defaults to the agent's name). Must be a short, speakable name. |
| camera_image_url | string | non | Public https link to a .jpg shown as the camera tile (optional). |
| instructions | string | non | Context for this meeting only, e.g. "This is an onboarding call for a new customer; they need help with setup" (optional, up to 2000 characters). |
| mode | enum: "listen" | "avatar" | non | 'listen' (default): joins with a still camera tile and answers out loud when someone says its name. 'avatar': joins with a talking video face; counts as one avatar meeting (separate from meeting minutes; every business gets one free), stays on camera for the first 30 minutes, then continues voice-o… |
| avatar_id | string | non | Avatar mode only: which stock face to use (optional; an unknown id returns the list of valid ones). |
get_meeting
Get Meetings
List the meetings Kai was sent into (newest first), or one meeting by id with its live status, minutes used and summary, plus the plan's remaining meeting minutes this month.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (required when the token can access several businesses). |
| id | string | non | Meeting id (optional; omit to list recent meetings). |
leave_meeting
Take Kai Out of a Meeting
Have Kai leave a video meeting it is in, or stop trying to join one. Kai drops out of the live call for everyone in it and stops taking notes; this cannot be undone, and joining again takes a new join_meeting request. Notes taken so far are kept and can be read with get_meeting.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (required when the token can access several businesses). |
| id | string | oui | Meeting id from join_meeting or get_meeting. |
get_usage
Get API Usage
List recent API usage events (endpoint, method, status code, cost) for the caller's account.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| start | string | non | ISO date/time lower bound (optional). |
| end | string | non | ISO date/time upper bound (optional). |
| limit | integer | non | Max results to return (default 100, max 500). |
list_plans
List Plans
Read the canonical public KaiCalls plan catalog, monthly USD prices and allowances. Does not select a plan, create checkout, or change billing.
Aucun paramètre.
get_checkout_status
Get Checkout Status
Read a Stripe-verified subscription checkout receipt for a business you own. Requires business_id and session_id from checkout. Confirmed billing does not prove agent, number, or call activation; get_activation_status reports setup proof. This tool never creates checkout or retries provisioning.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| session_id | string | oui |
send_message
Send Message
Send one message to a business's customer on the channel you choose: a text (sms) from one of the business's agent lines, or a WhatsApp message from its connected WhatsApp number. The same consent, Do-Not-Call, quiet-hours and rate gates as the dashboard apply, and a refusal says which one. sms needs from_agent_id; whatsapp needs a number the owner connected to WhatsApp (pass from when there is more than one) and a customer who messaged that number in the last 24 hours. Email is not sent here; draft_email_campaign drafts a campaign the owner reviews and approves. business_id is required when the account has more than one business. The result reports that the provider accepted the message, not that it was delivered.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| channel | enum: "sms" | "whatsapp" | oui | |
| to | string | oui | Recipient: an E.164 phone number. |
| body | string | oui | Message text. |
| business_id | string | non | The business sending. Required when the account has more than one. |
| from_agent_id | string | non | sms only (required): the agent whose phone line sends the text. |
| from | string | non | whatsapp only: the business's connected WhatsApp number, when it has more than one. |
| lead_id | string | non | Optional lead ID to link and honor the lead's automation-pause state. |
| idempotency_key | string | non | Optional caller-supplied key. Completed replays return the original send. New keyed WhatsApp requests reserve a durable intent before dispatch. Uncertain or concurrent replays are refused, and a new key is treated as a new send. Legacy lost receipts remain unverified. |
request_email_sender
Request Email Sending Domain
Set up a sending address for a business's email campaigns on a domain the business controls (for example mail.example.com). Registers the domain with the email delivery provider and returns the DNS records the owner must add where the domain is hosted. May replace an existing reply address, enabled state and sending limit, and may provision provider inbound routing, inbox and webhook. Sends no email. The sender becomes ready on its own once the records verify; check_email_sender re-checks now. Needs an admin of the business. Campaign email only goes from the business’s own verified sending domain or its own connected email account, to customers with recorded email permission who are not on the do-not-email list, within the daily amount allowed (the Kai level for a sending domain; 100 a day and 20 an hour for a connected account).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | The business that sends the email. |
| domain | string | oui | The sending domain, e.g. mail.example.com. |
| from | string | oui | The From address on that domain. |
| reply_to | string | oui | Where customer replies go. Must also be an address on that domain. |
check_email_sender
Check Email Sending Domain
Re-check a sending domain's DNS records with the email delivery provider now and replace its saved verification proof; may finish provider inbound routing, inbox and webhook setup. Returns what is still missing; an empty list means the sender is ready. Sends no email. Any member of the business may check.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | The business that sends the email. |
| sender_id | string | oui | The sender to re-check, from request_email_sender or get_email_campaign. |
record_email_consent
Record Email Permission
Record that existing customers gave the business permission to email them, with evidence_ref saying where that permission came from. Pass lead_id and email for one customer, or emails for up to 200. Addresses that are not existing customers are skipped and listed. Sends no email. Needs an admin of the business. Each record states that the owner holds that permission.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | The business that sends the email. |
| lead_id | string | non | One existing customer (lead id), paired with email. |
| string | non | That customer's email address. | |
| emails | array<string> | non | Email addresses of existing customers, up to 200, as an alternative to lead_id. |
| evidence_ref | string | oui | Where the permission came from or why it is withdrawn, e.g. 'web form opt-in' or 'customer asked to stop'. |
| expires_at | string | non | Optional: when the permission ends (ISO date). |
revoke_email_consent
Revoke Email Permission
Take back email permission for existing customers so no campaign can email them. Pass lead_id and email for one customer, or emails for up to 200, with evidence_ref saying why. Needs an admin of the business.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | The business that sends the email. |
| lead_id | string | non | One existing customer (lead id), paired with email. |
| string | non | That customer's email address. | |
| emails | array<string> | non | Email addresses of existing customers, up to 200, as an alternative to lead_id. |
| evidence_ref | string | oui | Where the permission came from or why it is withdrawn, e.g. 'web form opt-in' or 'customer asked to stop'. |
draft_email_campaign
Draft Email Campaign
Save an email campaign for the business to review: a subject, a plain-text body, the customers to email (lead_ids, each with recorded email permission) and who it comes from: a verified sending domain (sender_id) or one of the business's own connected email accounts (email_account_id, listed under emailAccounts by get_email_campaign; sends at most 100 a day and 20 an hour, spaced out). Each customer gets their own email, addressed to them alone. Returns the campaign id and the fingerprint of this exact revision. Sends nothing; an owner or admin approves it with approve_email_campaign and it only goes out after launch_email_campaign. subject and text may use {{ first_name }}, {{ last_order_date }} and {{ last_order_items }} (filled per customer from the connected booking system; order_window picks which booking) or any key in lead_variables. Needs an admin of the business. Campaign email only goes from the business’s own verified sending domain or its own connected email account, to customers with recorded email permission who are not on the do-not-email list, within the daily amount allowed (the Kai level for a sending domain; 100 a day and 20 an hour for a connected account).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | The business that sends the email. |
| sender_id | string | non | The verified sending domain to send from. Pass this or email_account_id. |
| email_account_id | string | non | One of the business's own connected email accounts to send from (its id from get_email_campaign emailAccounts). Pass this or sender_id. |
| subject | string | oui | The email subject. |
| text | string | oui | The plain-text email body. |
| lead_ids | array<string> | oui | The customers (lead ids) to email; each needs recorded email permission. |
| lead_variables | object | non | Optional per-customer values for placeholders in subject/text, keyed by lead id: {" ": {"last_order_date": "Nov 22, 2025"}}. {{ first_name }} is filled from the contact name unless given here; {{ key | default: "there" }} sets a fallback. Each customer gets their own email. |
| order_window | object | non | Optional: which booking fills {{ last_order_date }} and {{ last_order_items }}. A holiday week ({"holiday": "thanksgiving", "year": 2025}; year defaults to last year) or dates ({"start": "2025-11-24", "end": "2025-11-30"}). Without it, each customer's most recent past booking is used. |
| daily_limit | integer | non | Optional: most emails sent per day (default: the most the sender and the Kai level allow). |
| design | object | non | Optional structured email design. text must equal its rendered text version; no raw HTML. The owner approves the exact HTML and text. |
approve_email_campaign
Approve Email Campaign
An owner or admin of the business approves one exact revision of a drafted email campaign, named by campaign_id and the fingerprint returned by draft_email_campaign or get_email_campaign. A changed draft has a new fingerprint and needs a new approval. Sends nothing; launch_email_campaign queues it. Needs an owner or admin of the business.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | The business that sends the email. |
| campaign_id | string | oui | The drafted campaign. |
| fingerprint | string | oui | Fingerprint of the exact revision the owner reviewed. |
launch_email_campaign
Launch Email Campaign
Queue an approved email campaign for sending to real customers, within its daily limit. Needs an owner or admin of the business. Emails cannot be unsent once delivered; cancel_email_campaign stops what has not gone out yet. A queued result is not proof any email was delivered. Campaign email only goes from the business’s own verified sending domain or its own connected email account, to customers with recorded email permission who are not on the do-not-email list, within the daily amount allowed (the Kai level for a sending domain; 100 a day and 20 an hour for a connected account).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | The business that sends the email. |
| campaign_id | string | oui | The approved campaign. |
cancel_email_campaign
Cancel Email Campaign
Stop an email campaign so nothing more is sent from it. Emails already delivered stay delivered. Needs campaign_id and the fingerprint of its current revision. Needs an owner or admin of the business.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | The business that sends the email. |
| campaign_id | string | oui | The campaign to stop. |
| fingerprint | string | oui | Fingerprint of its current revision, from get_email_campaign. |
get_email_campaign
Get Email Campaign
Read a business's email campaigns: its sending addresses and their setup readiness, recent campaigns with status, revision fingerprint and outcome counts, and the customers who can be emailed (recorded consent, not on the do-not-email list). Pass campaign_id for one campaign, or sender_id for the DNS records that sending address's domain needs. Read-only; any member of the business can read.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| campaign_id | string | non | Optional: one campaign. |
| sender_id | string | non | Optional: that sender's domain setup records instead of the campaign view. |
find_rebook_customers
Find Customers To Rebook
List a business's customers who booked a week last year (for example Thanksgiving week) and have not booked the same week this year, biggest last-year spend first, from the orders in the business's connected booking system. Each row has the customer's name and company, a masked phone, whether there is an email, and last year's order numbers, dates and totals. Returns email_ready_lead_ids (recorded email permission, not on the do-not-email list) to pass straight to draft_email_campaign, and call_list (name, phone, last-year total) for staff to dial by hand: Kai never calls or texts these past customers. Customers whose details have not been looked up yet show contact 'not_looked_up'; prepare_rebook_customers fills them in. Read-only; needs a connected booking system.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Required when the account has more than one business. |
| holiday | enum: "thanksgiving" | "christmas" | "july4" | "memorial" | "labor" | "new-years" | non | Compare this holiday's week last year with the same week this year (Monday to Sunday around the holiday; Memorial Day and Labor Day take the seven days ending on the holiday; new-years is the week of New Year's Eve). Use this or this_year_start/this_year_end. |
| year | integer | non | Optional with holiday: the year to fill (default: this year). Last year's week is the year before. |
| this_year_start | string | non | Optional instead of holiday: first day, YYYY-MM-DD. |
| this_year_end | string | non | Last day, YYYY-MM-DD (inclusive, at most 92 days). |
| last_year_start | string | non | Optional: first day of the earlier range. Default: the same weekdays 52 weeks before. |
| last_year_end | string | non | Optional: last day of the earlier range. |
prepare_rebook_customers
Prepare Customers To Rebook
For the customers find_rebook_customers lists as 'not_looked_up', read their name, phone and email from the business's booking system and save them as past customers, so the list can be emailed and called. Past customers raise no new-lead alerts and are never put in Kai call or text campaigns. Reads a few customers a minute (the booking system's limit), so one call may not finish: when remaining is above 0, call again. A customer that cannot be read stays on the list. Sends nothing. Requires an admin of the business.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Required when the account has more than one business. |
| holiday | enum: "thanksgiving" | "christmas" | "july4" | "memorial" | "labor" | "new-years" | non | Compare this holiday's week last year with the same week this year (Monday to Sunday around the holiday; Memorial Day and Labor Day take the seven days ending on the holiday; new-years is the week of New Year's Eve). Use this or this_year_start/this_year_end. |
| year | integer | non | Optional with holiday: the year to fill (default: this year). Last year's week is the year before. |
| this_year_start | string | non | Optional instead of holiday: first day, YYYY-MM-DD. |
| this_year_end | string | non | Last day, YYYY-MM-DD (inclusive, at most 92 days). |
| last_year_start | string | non | Optional: first day of the earlier range. Default: the same weekdays 52 weeks before. |
| last_year_end | string | non | Optional: last day of the earlier range. |
set_conversation_owner
Set Conversation Owner
Set who answers a customer's text conversation. owner 'ai' (the default): Kai replies. 'human': Kai stays quiet and the business owner answers. 'external': Kai stays quiet and the business's own system answers; it receives the sms.received webhook and replies with send_message or POST /v1/messages. With external_reply_timeout_seconds (external only, 60 to 86400), Kai answers a message nothing replied to in that time. Messages are always stored and sms.received always fires. Pass conversation_id for one conversation, or phone for every conversation the business has with that customer. Re-sending the same owner changes nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| owner | enum: "ai" | "human" | "external" | oui | |
| conversation_id | string | non | One conversation. Either this or phone is required. |
| phone | string | non | The customer's number (E.164): every conversation the business has with it. |
| business_id | string | non | Required when the account has more than one business and only phone is given. |
| external_reply_timeout_seconds | integer | null | non | owner 'external' only: Kai answers when nothing replied in this many seconds. |
get_business_verification
Get Business Verification Documents
Read tenant-scoped business-verification document references, pending/approved/rejected staff-review states and secure upload requirements. No file bytes, storage paths, signed URLs or tax identifiers. Uploads happen on the secure owner page, by an admin; rejected documents can be corrected and uploaded again. Internal staff verification is separate from carrier registration. Reviewer notes are returned as staff-written data.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui |
submit_text_registration
Text Registration Submission Availability
Reserved submission contract; execution is currently unavailable and returns submission_unavailable without filing. Shared durable reservation and unknown-outcome reconciliation across dashboard, checkout and cron are prerequisites. Preparation and status are handled by get_text_registration and save_text_registration_details. Saving corrected details does not resubmit existing rejected provider objects: operator reconciliation is required. Another entry point or a new paid registration would duplicate the filing. It accepts no tax identifiers, credentials, file contents or legal attestations. Owner membership and billing:write required.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| expected_updated_at | string | oui | |
| confirm_submission | boolean | oui |
get_consent_proof
Get Consent Proof
Read the consent proof for one phone number at a business: for service texts, marketing texts, calls and WhatsApp, the current status, when consent was given or taken back, how (web form, keyword, call, manual, API), the exact wording shown, and the stored proof (form page, form time, submission id), plus up to 50 history entries, newest first. Use it to answer a carrier or customer asking how someone opted in. IP addresses are never returned. found false means no consent record exists for that number. Read-only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| phone | string | oui | Phone number, E.164 preferred (+15551234567). |
get_text_registration
Get Text Registration
Read where a business stands on its own carrier registration for business texting: saved details (never the EIN; only whether one is on file), payment, filing stage, whether sales texts are allowed, and the one next step. In MCP, `known` excludes fields the canonical flow still requires the owner to confirm; `suggestions` preserves those nonprivate values and available provenance. `missing` is the ordered outstanding field-question list, with missing_value or confirmation_required reasons; `next_question` is its first item. `question_progress` counts field questions including next, not website screens. Website screens group several fields and may include a private identity step; unequal counts can be valid. The MCP presentation separates configured registration/enrollment from recipient-specific sending permission and delivery, which remain not_checked. A null own registration does not prove an enrolled platform route cannot text; configured lines do not prove a send is authorized. Dashboard/API presentation is unchanged. Pass check=true to also run the pre-filing check: every problem a carrier reviewer would reject the registration on (business details, campaign wording, website, privacy policy, texting terms, opt-in page), each as `prefiling_check.items` with a plain fix, so it can be fixed before anything is paid. Read-only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| check | boolean | non | Also run the pre-filing check and return prefiling_check (ready, items with title and fix). |
save_text_registration_details
Save Text Registration Details
Save a business's legal name, the name customers know it by (if different), entity type, industry, website, address, authorized contact and what it will text (service only, or service and sales) for its own carrier registration. Business owner, or an admin of the business (such as the partner that created the workspace) preparing it for the owner. Each field holds an answer from the owner; anything omitted is filled from what is already on file (see get_text_registration `known`). Answers can be saved one at a time: answers given so far are kept, and while questions remain the result lists `saved_steps`, `missing` and `next_question`. The owner can finish here or on the registration page. Never takes the EIN: the owner types it on the registration page returned as setup_url. Each saved answer replaces the value on file for that field. Refused once a filing is already with the carriers. Charges nothing and files nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| legal_business_name | string | non | Exactly as on the IRS EIN letter. |
| brand_name | string | non | Optional: the name customers know the business by, when it differs from the legal name (a DBA or trade name, as shown on its website). Texts are signed with it. |
| business_type | enum: "Sole Proprietorship" | "Partnership" | "Limited Liability Corporation" | "Co-operative" | "Non-profit Corporation" | "Corporation" | non | |
| industry | enum: "AUTOMOTIVE" | "AGRICULTURE" | "BANKING" | "CONSTRUCTION" | "CONSUMER" | "EDUCATION" | "ENGINEERING" | "ENERGY" … | non | |
| website_url | string | non | Carriers check the site loads. |
| street | string | non | Must match the address the IRS has. |
| city | string | non | |
| state | enum: "AL" | "AK" | "AZ" | "AR" | "CA" | "CO" | "CT" | "DE" … | non | |
| postal_code | string | non | 5-digit ZIP, or ZIP+4. |
| contact_first_name | string | non | |
| contact_last_name | string | non | |
| contact_email | string | non | |
| contact_phone | string | non | A US number the carriers can reach. |
| contact_job_position | enum: "Director" | "GM" | "VP" | "CEO" | "CFO" | "General Counsel" | "Other" | non | |
| contact_title | string | non | As the contact signs, e.g. Owner. |
| text_types | enum: "service" | "service_and_sales" | non | service: replies and follow-ups to people who contacted the business. service_and_sales: also lets sales texts go to people who opted in to marketing. |
start_text_registration_checkout
Start Text Registration Checkout
Create the payment link for a business's own carrier registration (a one-time filing fee plus a monthly campaign fee). Business owner only, and only once the details and the EIN are saved. An admin who prepared the details gets owner_required with owner_handoff_url: the page the owner opens to type the EIN, review and confirm. Returns checkout_url for the owner to open and pay; nothing is charged by this tool, and filing starts only after payment. A checkout_url means neither payment nor filing. On a plan that includes registration there is nothing to pay: the tool sends it to the carriers straight away and returns included_in_plan and filed true instead of a link, so that path requires confirm_submission true, which records that the owner reviewed and confirmed the saved details and external submission. Submission is not carrier approval. The tool takes no EIN, document contents, credentials or legal attestations.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| confirm_submission | boolean | oui | True only after the owner explicitly confirms the saved details and possible immediate carrier submission. |
set_branded_caller_id
Set Branded Caller ID
File the business name that landlines show when the business's number calls out (caller ID name). Included with the business's own text registration once it is paid; charges nothing. Business owner only. The name must be at most 15 characters, start with a letter, and use only letters, numbers, periods, commas and spaces (get_text_registration returns a suggestion in branded_caller_id.suggestedName). Files with the carriers once the business profile is approved; review then takes a day or two and carriers show it within 72 hours. US local numbers only. The result confirms the filing, not that the name is showing on calls.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| display_name | string | oui | Up to 15 characters, e.g. SUMMIT ROOFING. |
start_own_caller_id
Start Own Caller ID
Let Kai's outbound calls show a number the person already owns (their cell or an old main line) instead of a KaiCalls line, so people recognize who is calling. A verification call goes to that number and returns a code; the person answers and types the code on the keypad. Then get_own_caller_id confirms it. Ownership is proven only by that call. US and Canada numbers. Business owner only. Charges nothing. Callbacks to the shown number reach that phone, not Kai. use_by_default (default true) shows it on every call unless make_call asks for caller_id 'business_line'. Starting a new number replaces the old one.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | |
| phone_number | string | oui | The number to show, e.g. +19085551234. It must ring a phone the person can answer. |
| use_by_default | boolean | non | Show it on every call unless a call asks otherwise (optional, default true). |
get_own_caller_id
Get Own Caller ID
Which number Kai's outbound calls show: the person's own verified number or the KaiCalls line. Also confirms a verification started with start_own_caller_id once the person has typed the code. state is none, pending, verified or failed.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non |
remove_own_caller_id
Remove Own Caller ID
Stop showing the person's own number on Kai's calls; calls show the KaiCalls line again. Business owner only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non |
create_customer_workspace
Create Customer Workspace
Create a new KaiCalls account for a business, owned by the business owner's own email address. It lets a partner or helper set up KaiCalls for a business owner. The account starts without a plan or phone number: the result includes a link the owner opens themselves to choose a plan and add their card, and the line is set up only after they pay. This tool charges nothing. By default the caller is added as an admin of the new account so they can continue setup (get_setup_checklist lists the steps); join_as_admin false skips that. partner_code credits a referring partner and does not apply to a partner's own account. Fails, creating nothing, if the email already has a KaiCalls account.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_name | string | oui | |
| owner_email | string | oui | The business owner's own email. They own the workspace. |
| business_type | string | non | |
| city | string | non | |
| state | string | non | |
| website | string | non | |
| owner_cell | string | non | Owner's cell; calls ring it first once the line is live. |
| plan_id | string | non | A plan key from list_plans. |
| partner_code | string | non | Referring partner's code. |
| join_as_admin | boolean | non | Default true. |
set_up_business
Customize Business Line
Optional line customization: sets the business name and greeting Kai answers with, as the owner requested. Not required to make calls, and never changes payment, usage or fraud limits. Extra business details are optional; no business-qualification questionnaire is needed. An existing business greeting is left unchanged.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | The account to set up. Optional when the token reaches one account. |
| business_name | string | oui | The business's real name. |
| what_you_sell | string | non | What the business sells or does, in the owner's words. |
| website | string | non | The business's website, if it has one. |
| who_kai_will_call | string | non | Who the owner wants Kai to call, e.g. other businesses, existing customers, or people who asked for a callback. |
get_setup_checklist
Get Setup Checklist
Read where one business stands on setup: plan, phone number, texting registration, WhatsApp, call and lead alerts, connected mailbox for follow-up email, and email campaign sender. Each step has a state (done, in_progress, needs_owner, needs_action or unavailable) and one next action: either the tool that moves it forward, or the page the owner must open for steps only they can do, such as paying, typing their EIN or signing in to Facebook or Google. Read-only; changes nothing and contacts no one.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | The business to check. |
connect_whatsapp
Connect WhatsApp
Get the one link a business owner opens to put WhatsApp on their KaiCalls number. They sign in to Facebook as an admin of the business's Meta Business account and verify the number; the business owns its WhatsApp account. Uses the business's oldest KaiCalls line unless phone_number names another of its lines. Returns the same link while it is still valid (up to 3 days). Owner or admin only. Creates nothing billable and connects nothing by itself: get_whatsapp_status reports the connection after the owner finishes, and WhatsApp is not connected until it says so.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | |
| phone_number | string | non | E.164, one of the business lines. |
get_whatsapp_status
Get WhatsApp Status
Check whether WhatsApp is connected on a business's KaiCalls number, read live from the carrier. Connected only once the number is verified for WhatsApp; otherwise says whether the owner's link is still waiting, expired or failed.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui |
get_channel_status
Get Channel Status
Read customer channel setup. Phone calls report configured number resources only: state configured or needs_setup, with canSend/canReceive null because operational availability is unknown. SMS has state not_checked and null send/receive flags; shared_setup_state retains the existing configuration summary, not recipient-specific permission. Registration detail requires billing:read; this SMS-scope summary reads no new billing details. Other channels retain their existing states and flags. private_test_readiness checks owner-private call setup only when the token also has agents:read; otherwise it is not_checked with reconnect scope guidance. Private testing does not establish customer coverage or outbound call permission, which remain not_checked. Email includes separate managedEmail campaign sender readiness; a connected mailbox does not prove campaign approval or delivery. Read-only; changes nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui |
get_trust_level
Get Trust Level
Read one business's KaiCalls trust level (Sprout, Verified, Trusted, Pro, Partner): the current level, the steps to the next one with progress, what each level unlocks, today's outbound calls and texts against current effective account limits, and any hold. Badge progress does not itself establish higher call or text caps. focus 'ladder' explains every level; focus 'level' with level explains one. Read-only: returns saved standing or computes missing/stale standing without saving it or sending notifications. recheck_trust_level recomputes and saves current standing. Levels are earned, never set: no tool can raise one.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token reaches exactly one business). |
| focus | enum: "standing" | "ladder" | "level" | "outbound" | non | 'standing' (default): the current level and next steps. 'ladder': every level. 'level': the one named in level. 'outbound': today's outbound calls and texts against the limits this level allows, and the step that raises them. |
| level | string | non | A level key or name, e.g. 'pro'. Used with focus 'level'. |
recheck_trust_level
Recheck Trust Level
Recompute one business's KaiCalls trust level now from its live account activity (card on file, paid bills, days active, real customer calls) and save the result, the same recheck the dashboard runs, for example right after the owner adds a card. Returns the same view as get_trust_level plus whether the level moved up or down. Requires current business membership. Replaces the saved derived state, may record level-change history and may email the current owner when standing changes. It can only reflect what the account has earned; it never sets or raises a level by request.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token reaches exactly one business). |
| focus | enum: "standing" | "ladder" | "level" | "outbound" | non | 'standing' (default): the current level and next steps. 'ladder': every level. 'level': the one named in level. 'outbound': today's outbound calls and texts against the limits this level allows, and the step that raises them. |
| level | string | non | A level key or name, e.g. 'pro'. Used with focus 'level'. |
get_balance
Get Balance
Get plan terms and usage for accessible businesses. No-card trials report 25 lifetime minutes, zero price and no overage; paid plans report the mapped subscription price and billing-cycle usage. Answered-call allowance usage is the raw billable call count, matching dashboard and right-sizing. A separate weighted count is informational only, not allowance consumption or right-sizing. Phone allowance includes purchased extra lines. A balance does not prove activation or inbound routing. Unavailable billing data returns an error.
Aucun paramètre.
create_checkout
Create or Resume Checkout
Create, or reuse, a secure payment page hosted by Stripe where the business owner pays for a KaiCalls plan from list_plans with their own card. Needs business_id, plan_id and an idempotency_key: retrying with the same key returns the same page, and choosing a different plan needs a new key. This tool charges nothing; only the owner can pay, by opening the page themselves. It never proves payment or that the phone line is live: get_checkout_status reports payment for the returned session_id.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | The business the plan is for. |
| plan_id | string | oui | A plan key from list_plans. |
| idempotency_key | string | oui | Stable key for this checkout; reuse it when retrying. |
list_numbers
List Phone Numbers
List phone numbers assigned to the accessible business(es), with capability and compliance flags. Assignment does not prove a successful inbound test or customer coverage. get_activation_status reports current readiness and private-test proof. Forwarding is an optional customer route.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID to filter by (optional). |
get_phone_flow
Get Phone Flow
Read how calls ring on the business's hosted phone system: which cells and desk phones ring, for how many seconds, and whether after-hours callers go straight to Kai. Reconciled from the phone system on every call. Returns 409 when the hosted phone system is not set up for this business.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (required when the token can access multiple businesses). |
update_phone_flow
Update Phone Flow
Replace how calls ring on the business's hosted phone system with a full phone flow: { version: 1, hours: { mode: 'always' | 'business_hours', afterHours: 'kai' }, ring: { members: [{ kind: 'cell', phone: E.164, label, requirePressOne } | { kind: 'desk_phone' | 'user', userId, label }], timeoutSeconds: 5-120 }, overflow: 'kai' }. Applied idempotently (only real differences are written); every member passes the forwarding-loop guard; business_hours mode derives the schedule from the business hours already on file. Because it replaces the whole flow, the input is the full flow as get_phone_flow returns it, with changes applied.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (required when the token can access multiple businesses). |
| flow | object | oui | The complete phone flow to apply. |
set_up_phone_system
Set Up Phone System
Turn the business's number into a hosted phone system: Kai is installed as extension 700, the owner's mobile joins the list of phones to ring first, and calls reach Kai when nobody picks up. Idempotent and resumable — a re-run reuses everything already created and reports it under `reused`. Needs a complete US street address on file (the emergency-services and tax location) and the owner's mobile: when either is missing the tool fails with `code` missing_address or missing_owner_mobile plus `required_field` and `next_action` naming exactly what is missing, which business_address or owner_mobile accepts. Returns the status shape (existing setup IDs, extension and the phone-system line) and `next_step`, the owner's next action in one line (forward your line here / dial 700 from any office phone).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (required when the token can access multiple businesses). |
| owner_mobile | string | non | The owner's own mobile number (US). Optional when set_owner_phone already saved one; required when the last attempt returned missing_owner_mobile. |
| business_address | object | non | The business street address to save before provisioning. Optional when a complete address is already on file; required when the last attempt returned missing_address. |
| persona | enum: "cell_only" | "office" | non | Which phones the business runs on, if the owner said: cell_only (just the owner's cell) or office (desk phones / an existing office line that will forward in). Shapes next_step; optional. |
get_phone_system_status
Get Phone System Status
Read saved phone-system configuration: extension, resource IDs (never secrets), assigned line, and agreement. phone_system_configuration.configuration_allows_calls means provisioned resources plus a permitting agreement only; it does not verify calls can connect. ready_for_calls is null because operational availability is unknown. private_test_readiness uses the existing owner-private call setup authority only with agents:read; otherwise not_checked. Customer coverage and outbound call permission remain not_checked. This read differs from the shared phone-system API configuration flag and changes nothing.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (required when the token can access multiple businesses). |
add_team_phone
Add Team Phone
Add a teammate's (or the owner's) cell to the phones that ring before Kai answers. Idempotent — a cell already listed is reported as already included. Owners and admins are also registered on the admin roster, so calling the business line from that cell reaches the admin secretary; a member only rings. The business's own forwarded-from office line is refused (forwarding_loop) because ringing it would bounce the call straight back. Requires the phone system to be set up first (set_up_phone_system).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (required when the token can access multiple businesses). |
| phone_number | string | oui | The cell to add, US format (e.g. (908) 555-1234 or +19085551234). |
| name | string | non | Display name for this teammate (optional). |
| role | enum: "owner" | "admin" | "member" | non | member only rings; owner and admin also get admin-secretary access from this cell. Defaults to admin. |
list_conversations
List SMS Conversations
List SMS conversation threads (counterparty timeline metadata) for the authenticated business, most recent first.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| limit | integer | non | Max results to return (default 50, max 100). |
get_conversation
Get SMS Conversation
Get a single SMS conversation thread by ID.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| conversation_id | string | oui | The conversation ID to fetch. |
get_webhook
Get Webhook Configuration
List the configured outbound webhook(s) for a business, including supported event types.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
set_webhook
Set Webhook
Create or update a business outbound webhook (URL + subscribed events). Returns a webhook secret on first creation only.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| webhook_url | string | oui | HTTPS/HTTP destination URL for event delivery. |
| id | string | non | Existing webhook ID to update (omit to create new). |
| events | array<string> | non | Event types to subscribe to (get_webhook lists the supported types). |
| description | string | non | Human label for this webhook. |
| is_active | boolean | non | Enable or disable delivery. |
| preset | enum: "generic_crm" | "litify" | "filevine" | "clio_grow" | "lead_docket" | "gohighlevel" | non | Start the body from a CRM field map. Presets are editable starting points, not exact vendor formats. Ignored when payload_template is also sent. |
| payload_template | object | null | non | Shape the body for a CRM: { "fields": { " ": " " | { "value": } } }. A path reads the standard event body (e.g. "data.phone", "occurred_at"); "a|b" takes the first with a value; a dot in the field name nests it ("contact.phone"). Missing paths send null. null restores the standard body. |
| custom_headers | object | null | non | Extra headers the CRM needs, as { "Header-Name": "value" } (max 20). A null value keeps the saved value for that name. Content-Type, Host, Content-Length and X-KaiCalls-* cannot be set. Values are never returned. |
| http_method | enum: "POST" | "PUT" | "PATCH" | non | HTTP method for delivery (default POST). |
| body_format | enum: "json" | "form" | non | json (default) or form (application/x-www-form-urlencoded, nested keys flattened with dots). |
delete_webhook
Delete Webhook
Remove a business outbound webhook by ID.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| id | string | oui | Webhook ID to remove. |
list_evals
List Agent Evals
List saved test scenarios for an agent (or all accessible agents). A new agent has none; create_eval adds one.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| agent_id | string | non | Filter by agent ID (optional). |
create_eval
Create Agent Test Scenario
Save a test scenario for one of the business's agents: what a caller says and what the agent's reply must do to pass. run_eval then grades the agent against it. Saving places no call and changes nothing on the agent.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| agent_id | string | oui | The agent to test. |
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| name | string | oui | Short scenario name, up to 80 characters. |
| description | string | non | What the scenario checks (optional). |
| caller_says | string | oui | The caller's opening message, e.g. "I was rear-ended yesterday and need a lawyer." |
| pass_if | string | oui | What the agent's reply must do to pass, in plain words, e.g. "Asks for the caller's name and number and does not give legal advice." |
run_eval
Run Agent Eval
Run a saved test scenario against one of the business's agents and grade the agent's replies: pass eval_id for one scenario, or agent_id for every scenario saved for that agent (see list_evals). The test is a simulated text conversation with the agent's current live configuration; no phone call is placed, no customer is contacted and the agent's configuration is not changed. Each run uses paid voice-agent provider capacity and is recorded with its result, so scenarios already run on the agent's current configuration are not run again unless force is true, and each agent has a daily limit on runs. Returns pass or fail per scenario with the grader's reasons.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| eval_id | string | non | Run this one saved scenario (from list_evals). Either this or agent_id is required. |
| agent_id | string | non | Run every saved scenario for this agent. Either this or eval_id is required. |
| wait | boolean | non | Wait for the grade before returning (default true). |
| max_wait_ms | integer | non | Per-run wait cap in ms when wait is true (default 60000, max 110000). |
| force | boolean | non | Run again even though nothing changed on the agent or these scenarios since they last ran (otherwise refused, since the result would be the same). |
find_voices
Find Voices for an Agent
Find the three voices that best match a plain description of what the owner wants (for example 'a Southern man who can also speak Spanish' or 'warm older woman, calm'), and get a page link where the owner can play each one in English and Spanish, pick one to switch the agent's voice, and undo within 24 hours. Show the owner the page link; nothing changes until they pick. The link expires in 7 days.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| agent_id | string | oui | The agent whose voice the owner wants to change. |
| description | string | oui | The owner's own words for the voice: gender, accent or region, age, feel, languages. |
| business_id | string | non | Business ID, needed only when the agent belongs to more than one business. |
| locale | string | non | Optional language hint like "es" when the description does not say. |
list_voices
List Voice Catalog
List the curated, credential-free voice catalog (id, display name, accent, language, gender, sample URL) used to configure agent voices.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| language | string | non | Filter by language label, e.g. English or Spanish. |
| provider | string | non | Filter by a voice provider id exactly as list_voices returns it. |
| gender | string | non | Filter by gender: male or female. |
create_agent
Create Agent
Create a new KaiCalls agent — the secretary that answers this business’s calls (the live voice agent plus KaiCalls records) — with a system prompt, greeting, voice, and model. Its starting settings are saved as version 1 and each later change as a new version (list_config_versions); rollback_config restores a version's greeting, voice, prompt, model and summary/scoring. Compliance: KaiCalls automatically applies state-aware AI-disclosure and consent handling to every agent it provisions, and flags high-risk business categories for extra review.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | oui | Business ID to create the agent under. |
| name | string | oui | Agent display name. |
| system_prompt | string | non | The agent's inbound system prompt (optional). Leave it out to start on the business's industry intake script, the same one a signup gets. |
| first_message | string | non | Spoken greeting (optional). Leave it out to use the industry intake greeting, which opens on the caller's need. |
| vertical_pack | string | non | Setup pack id (optional; inferred from the business when left out). One of: hvac, plumbing, electrical, general-contractor, garage-door, general-contractors, handyman, landscaping, moving, pest-control, pool-service, cleaning, roofing, personal-injury, family-law, insurance-claims, crash-report-hel… |
| voice | object | non | Raw voice selection: { provider, voiceId } (optional). |
| voice_catalog_id | string | non | Preferred: a curated catalog id from list_voices (optional). |
| model | object | non | Language model selection: { provider, model, temperature } (optional). |
| metadata | object | non | Extra KaiCalls metadata to store (optional). |
attach_number
Attach Phone Number
Assign a phone number already in the KaiCalls registry pool to a business (and optionally route it directly to an agent). Does NOT purchase a new number; search_available_numbers and buy_number handle purchases.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| phone_number | string | oui | E.164 phone number already in the registry. |
| agent_id | string | non | Agent ID to route this number to directly (optional). |
attach_own_twilio_number
Answer A Number From Your Own Twilio Account
Have a voice agent answer calls on ONE number from the business's own connected Twilio account, calls only. Reads only that number. dry_run defaults to true and changes nothing: it returns would_change (the number's VoiceUrl and VoiceMethod) and the fields left unchanged. With dry_run false, only that number's VoiceUrl and VoiceMethod change; its text settings (SmsUrl, SmsMethod, SmsApplicationSid, StatusCallback) are read back afterwards and must be unchanged, so a texting setup another service runs on the account keeps working. Refuses a number a Twilio app answers, and a number another service answers unless replace_existing_voice is true. Uses one plan line. Requires admin role.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| phone_number | string | oui | E.164 number on the business's own connected Twilio account. |
| agent_id | string | oui | Agent that should answer the calls. |
| dry_run | boolean | non | Default true: report what would change and write nothing. |
| replace_existing_voice | boolean | non | Allow replacing another service that answers calls on this number today. |
detach_own_twilio_number
Stop Answering A Number From Your Own Twilio Account
Stop a voice agent answering a number from the business's own connected Twilio account and put back the call setting (VoiceUrl and VoiceMethod) the number had before it was attached. The number is never released from the account and its text settings are not touched. Requires admin role.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| phone_number | string | oui | E.164 number to stop answering. |
set_owner_phone
Set Owner Phone
Saves the owner's own mobile number on the business record (the number Kai texts whenever it takes a call for the owner) so Kai can ring it first and so activation/forwarding follow-ups can reach a human — connecting a number alone does not prove the owner can be reached. In the acquisition flow this step comes before search_available_numbers and buy_number (#2086). US numbers only; normalized to E.164 and rejected if it cannot be validated as a US mobile/landline number. When ring_first is true (default), also configures ring-first routing so calls hit this cell before overflowing to the secretary — the same path used at signup. declined=true, in place of owner_phone, records a caller who declines to give a number as an inquiry: a KaiCalls lead, with no provisioned business or number.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| owner_phone | string | non | The owner's own mobile number, US format (e.g. (908) 555-1234 or +19085551234). Required unless declined is true. |
| ring_first | boolean | non | When true (default), ring this number first and overflow to the secretary. When false, only saves the number. |
| declined | boolean | non | True (in place of owner_phone) when the caller will not give a reachable number. Records the business as an inquiry lead instead of a provisioned number. |
| contact_name | string | non | Only used with declined=true: the caller name, for the inquiry record. |
| contact_email | string | non | Only used with declined=true: an email for the inquiry record, if given. |
detach_number
Detach Phone Number
Release a phone number from a business back to the unassigned registry pool.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| phone_number | string | oui | E.164 phone number to release. |
search_available_numbers
Search Available Numbers
Search the carrier for phone numbers available to purchase (live number inventory). In the acquisition flow this follows set_owner_phone, which saves a reachable owner number or records a decline.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Search that business's carrier inventory (optional; defaults to the platform carrier). |
| area_code | string | non | Preferred area code (optional). |
| country | string | non | Two-letter country code (default US). |
| limit | integer | non | Max results to return (default 10, max 20). |
buy_number
Buy Phone Number
Request a real phone-number purchase. This is APPROVAL-GATED: the carrier bills immediately on execution, so the tool only prepares a request for authenticated owner review. Caller-supplied human_confirmed, dashboard_session, or system_policy fields never authorize execution. Returns the stored request and a review URL for the owner; while approval is pending, no number has been purchased. Existing entitlement and carrier reservation checks still apply. In the acquisition flow this follows set_owner_phone, which saves a reachable owner number or records a decline.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| phone_number | string | oui | The exact E.164 phone number to purchase, as returned by search_available_numbers. |
| agent_id | string | non | Agent ID to route this number to directly once purchased (optional; requires the number to also be voice-runtime-imported, which is not guaranteed at purchase time — a follow-up attach_number call routes it reliably). |
| idempotency_key | string | non | Stable key for the purchase request; repeating it returns the original outcome. Defaults to a key derived from the phone number — a new key retries a previously failed purchase. |
| actor | object | non | Who is asking: { type: agent|human|system|integration, id, display_name }. |
| authority | object | non | Attribution only. human_confirmed and other caller-supplied modes cannot authorize a purchase. Authenticated owner review of the exact stored request is required. |
| queue_for_approval | boolean | non | Create a durable owner-review request (default true). Setting false returns needs_approval, but an authority-envelope retry still cannot execute. |
| dry_run | boolean | non | Validate tenant, scope, and policy without buying anything. |
| reason | string | non | Optional reason recorded in the durable audit. |
| source_ref | string | non | External source reference, such as a ticket or automation run ID. |
list_knowledge
List Agent Knowledge
List agent knowledge base entries for a business.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| category | string | non | Filter by category (optional). |
| query | string | non | Free-text search over title/content (optional). |
upsert_knowledge
Create or Update Agent Knowledge
Create a new agent knowledge base entry, or update one when `id` is provided. Creating requires title, content, and content_type.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | non | Knowledge item ID to update (omit to create). |
| business_id | string | non | Business ID. Required for create when the token can access multiple businesses. |
| title | string | non | |
| content | string | non | |
| content_type | string | non | |
| category | string | non | |
| tags | array<string> | non |
list_products
List Agent Products
List a business's agent product catalog.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| category | string | non | Filter by category (optional). |
| query | string | non | Free-text search over name/description (optional). |
| inventory | boolean | non | Include current inventory quantity per product (optional). |
upsert_product
Create or Update Agent Product
Create a new product row, or update one when `id` is provided. Creating requires name and business_id. Pass `quantity` to set/update inventory.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | non | Product ID to update (omit to create). |
| business_id | string | non | Business ID. Required for create when the token can access multiple businesses. |
| name | string | non | |
| description | string | non | |
| category | string | non | |
| price | number | non | |
| sku | string | non | |
| attributes | object | non | |
| image_url | string | null | non | Public https photo of the product. Shown next to it when the agent lists options on a caller's screen. Null clears it. |
| quantity | number | non | Inventory quantity to set (optional). |
get_agent_config
Get Agent Configuration
Read an agent's settings as the owner edits them: the editable inbound, outbound and text prompts, greeting, voice (with its list_voices id when it has one), model, call length, transfer settings, and the call summary and lead score instructions. Read this before update_agent_config: inbound_prompt there replaces the whole prompt, so edit the text returned here.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| agent_id | string | oui | Agent ID (from list_agents). |
| business_id | string | non | Business ID. Needed only when the agent belongs to more than one. |
list_config_versions
List Agent Config Versions
List the saved versions of an agent's settings, newest first: what saved each one (source), what changed (diff_summary), who (created_by) and which version a rollback came from. Secrets are never included. Pass `version` to fetch one version's full saved settings (config_snapshot). That snapshot holds the compiled prompt; to edit the prompt, read get_agent_config instead.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| agent_id | string | oui | Agent ID (required). |
| version | integer | non | Fetch a single version by its per-agent version_number, including its redacted config_snapshot (optional; omit to list). |
| limit | integer | non | Max versions to return when listing (optional, default 50, max 100). |
get_change_history
Get Agent Change History
List an agent's recent config-change audit trail (change_type, change_source, old/new value, timestamp) — the same change log the owner hears when they call their line and ask what changed. Every change KaiCalls makes to an agent (via update_agent_config, configure_agent_business_rules, the owner's call-in line, or the dashboard) is logged here. Rows carry no version number; to undo a change, pick a version from list_config_versions and use rollback_config.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| agent_id | string | oui | Agent ID to fetch change history for. |
| limit | integer | non | Max results to return (default 20, max 100). |
rollback_config
Rollback Agent Configuration
Request a rollback to a saved version of the agent settings. It restores the version's greeting, voice, prompt (and the editable prompt copy, when the version saved one), model and call summary/scoring. Transfer settings, call length, tools and speech recognition stay as they are; the result lists what was and was not restored. When the business owner or an admin is signed in through this connector, the rollback applies immediately; otherwise the owner approves it from a review link. Targets are listed by list_config_versions. The rollback is itself saved as a new version, and secrets are never copied.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| agent_id | string | oui | Agent ID to roll back. |
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| version_number | integer | non | Version number to restore, from list_config_versions. One of version_number/version_id is required. |
| version_id | string | non | Version id to restore, from list_config_versions. One of version_number/version_id is required. |
| reason | string | non | Optional human-readable reason recorded in the audit trail. |
| idempotency_key | string | non | Stable key for this rollback; repeating it returns the first outcome. Defaults to a key from the agent, the target version and the version live now, so rolling back to the same version again after later changes works. The result returns the key used. |
| actor | object | non | Do not set. Kept for older clients; the signed-in connection identifies you. |
| authority | object | non | Do not set. It cannot approve a change: the owner approves through review_url or by being signed in. |
| queue_for_approval | boolean | non | Create a durable owner-review request (default true). Setting false returns needs_approval, but an authority-envelope retry still cannot execute. |
| dry_run | boolean | non | Validate tenant, scope, and policy without touching the live config. |
| source_ref | string | non | External source reference, such as a ticket or automation run ID. |
list_observability_events
List Observability Events
List a business-scoped timeline of compact call-runtime events and redacted integration-delivery attempts. Uses bounded keyset pagination.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| source | enum: "all" | "runtime" | "delivery" | non | Event stream to read (default: all). |
| from | string | non | |
| to | string | non | |
| limit | integer | non | |
| cursor | string | non | Opaque next_cursor returned by the previous page. |
| event_type | string | non | Runtime-event filter. |
| severity | enum: "info" | "warning" | "error" | non | Runtime-event filter. |
| call_id | string | non | Runtime-event call UUID filter. |
| conversation_id | string | non | Runtime-event filter. |
| correlation_id | string | non | Runtime-event filter. |
| provider | string | non | Integration-delivery filter. |
| outcome | enum: "success" | "failure" | non | Integration-delivery filter. |
| operation | string | non | Integration-delivery filter. |
| object_type | string | non | Integration-delivery filter. |
| object_id | string | non | Integration-delivery filter. |
| connection_id | string | non | Integration connection UUID filter. |
list_tool_execution_logs
List Tool Execution Logs
List per-call voice-agent tool execution traces — outcome, latency, timeout, and a redacted result preview for each routed tool call. Answers "did this tool call actually work".
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| call_id | string | non | Call/conversation id filter. |
| tool_call_id | string | non | Exact tool_call_id filter. |
| tool_name | string | non | Tool name filter (e.g. send_sms). |
| outcome_status | string | non | Outcome envelope status filter (e.g. success, needs_clarification, unavailable, queued, retryable_delay, hard_failure). |
| from | string | non | |
| to | string | non | |
| limit | integer | non |
list_subscription_history
List Subscription Change History
List the business plan and price changes, newest first: upgrades, downgrades, add-ons and automatic right-size moves.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| change_type | enum: "plan_change" | "created" | "canceled" | "reactivated" | "rightsize" | non | |
| source | string | non | e.g. stripe_webhook, rightsize_apply_job. |
| from | string | non | |
| to | string | non | |
| limit | integer | non |
list_overage_charges
List Overage Charges
List the per-period overage-minutes ledger (older per-minute-overage plans only; current plans carry no overage). GET /v1/balance/get_balance only returns an aggregate; this returns the underlying per-period ledger rows.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| status | enum: "pending" | "synced" | "skipped" | "error" | non | |
| from | string | non | |
| to | string | non | |
| limit | integer | non |
list_rightsize_recommendations
List Plan Right-Size Recommendations
List per-period automatic plan right-size decisions, including the dry_run -> notified -> (kept | applied | superseded) lifecycle. Answers "is this business about to get right-sized".
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| status | enum: "dry_run" | "notified" | "kept" | "applied" | "superseded" | non | |
| action | enum: "none" | "upgrade" | "downgrade" | "handoff_custom" | non | |
| from | string | non | |
| to | string | non | |
| limit | integer | non |
get_billing_contacts
Get Invoice Email Recipients
Read who gets the monthly invoice email for a business. Every paid invoice is always emailed to the business owner (returned masked); up to 3 extra addresses, such as a bookkeeper or office inbox, get the same email.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
set_billing_contacts
Set Invoice Email Recipients
Replace the extra addresses that get the monthly invoice email (at most 3; an empty list clears them). The business owner always keeps getting every invoice and cannot be removed. Requires the current owner role on the business.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| emails | array<string> | oui | The full list of extra invoice email addresses. Replaces the current list; [] clears it. |
get_subscription
Get Subscription
Read the business's own plan: no_paid_plan, active, or canceling, with the plan name and the renewal or end date. Use before cancel_subscription to tell the owner what will happen.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
cancel_subscription
Cancel Subscription
Cancel the business's plan when the owner asks to. The plan stays on until the end of the paid period (or trial) and is never charged again; a past-due plan ends now. Pass undo=true to keep a plan whose cancel has not taken effect yet. Requires the current owner role. Confirm with the owner before calling.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| reason | enum: "customer_service" | "low_quality" | "missing_features" | "other" | "switched_service" | "too_complex" | "too_expensive" | "unused" | non | Why the owner is cancelling. Required to cancel (not for undo): ask the owner, and pass other with their words in detail if none fits. |
| detail | string | non | The owner's own words. |
| undo | boolean | non | true keeps the plan: undoes a cancel that has not taken effect yet. |
report_issue
Report an Issue
Report a problem with your KaiCalls agent, phone number, billing, or account. Saves the report to your change history and notifies KaiCalls support so a person can follow up on anything broken or not working as expected.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| business_id | string | non | Business ID (optional only when the token can access exactly one business). |
| summary | string | oui | One-line summary of the problem (max 200 characters). |
| description | string | oui | Full details: what happened, what you expected, and any relevant call or time. |
| severity | enum: "low" | "medium" | "high" | "urgent" | non | How badly this is affecting the business. |
| category | enum: "agent_behavior" | "call_quality" | "billing" | "integration" | "phone_number" | "other" | non | What part of the product this issue relates to. |
| reporter_email | string | non | Email address support should reply to, if different from the account email. |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://callmcp.ai/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http callmcp https://callmcp.ai/mcpCustomize > Connectors > + Add > Add custom connector ; Name : callmcp ; URL : https://callmcp.ai/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : callmcp ; Server URL : https://callmcp.ai/mcp ; Create as a plugin{
"mcpServers": {
"callmcp": {
"url": "https://callmcp.ai/mcp"
}
}
}{
"mcpServers": {
"callmcp": {
"type": "http",
"url": "https://callmcp.ai/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"callmcp": {
"url": "https://callmcp.ai/mcp"
}
}
}{
"mcpServers": {
"callmcp": {
"httpUrl": "https://callmcp.ai/mcp"
}
}
}[mcp_servers.callmcp]
url = "https://callmcp.ai/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
CallMCP — Phone Call MCP Server · L’Atlas · Test du
[CallMCP — Phone Call MCP Server — L’Atlas](https://latlas.dev/mcp/ai.callmcp/server)Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.