search_members
Search Members
Search and filter members/accounts. Supports text search, date ranges, booking/activity history, membership tier, tags, and more. Use lastBookingBefore/inactiveDays to find inactive members.
输入参数sortlimitordersearchsourcetagIdstierIdlifeStagehasBookingcreatedAfterinactiveDayscreatedBefore另有 6 个
get_member_profile
Get Member Profile
Get detailed profile for a specific member/account by ID.
输入参数accountId必填
preview_customer_import
Preview Customer Import
Preview a bulk customer import (max 2000 rows). Matches existing accounts by phone/email and shows create vs update actions plus points/stamps/credit deltas. Use commit_customer_import with the returned sessionId to apply.
输入参数rows必填filename
commit_customer_import
Commit Customer Import
Commit a previewed customer import. Pass the same rows and sessionId returned by preview_customer_import. Creates/updates accounts and applies points, stamps, and credit deltas.
输入参数rows必填sessionId必填
create_account
Create Account
Create a CRM account/customer with a primary contact. Optionally enroll the account as a member; use enrol_membership later when the account already exists.
输入参数name必填typeemailnotesphonesourcetierIdaddresslastNameexpiresAtfirstNamelifeStage另有 1 个
update_account
Update Account
Update CRM account/customer profile fields such as name, phone, email, life stage, owner, notes, or member code.
输入参数nametypeemailnotesphonegendersourcelastNameaccountId必填firstNamelifeStageassignedTo另有 3 个
delete_account
Delete Account
Soft-delete a CRM account/customer. This releases the primary phone for future reuse while keeping account history for audit.
输入参数accountId必填
List all available tags for the merchant.
输入参数search
Create a CRM tag for customer segmentation and organization.
输入参数name必填color
Rename or recolor an existing CRM tag.
输入参数namecolortagId必填
Delete a CRM tag and remove it from all tagged entities.
输入参数tagId必填
Attach one or more tags to a member/account. Useful for segmenting members after filtering.
输入参数tagId必填accountIds必填
Detach one tag from one or more member/account records.
输入参数tagId必填accountIds必填
List all membership tiers with member counts and stats.
无需输入参数。
get_membership_tier
Get Membership Tier
Get a specific membership tier by ID.
输入参数tierId必填
issue_rewards
Issue Rewards
Issue a gift/reward to multiple members. Requires a gift offer ID and member IDs.
输入参数expiresAtmemberIds必填giftOfferId必填
enrol_membership
Enrol Membership
Enrol a member into a membership tier. Free tiers enrol immediately; paid tiers return PAYMENT_REQUIRED unless skipPriceCheck is set. Use list_tiers first to find the target tier.
输入参数tierIdaccountId必填expiresAt
get_loyalty_balance
Get Loyalty Balance
Get a member's current loyalty balance — points, stamps, credits, lifetime totals, and active membership tier. Returns null if the member is not enrolled.
输入参数accountId必填
earn_loyalty_points
Earn Loyalty Points
Credit loyalty points or stamps to a member. Use field="points" for points, "stamps" for stamps. Server records a transaction with the reason as audit context.
输入参数field必填amount必填reasonaccountId必填
get_dashboard_stats
Get Dashboard Stats
Get high-level business KPIs: member count, new members this week, active subscriptions, total points issued, active promotions, rewards redeemed, messages sent.
无需输入参数。
list_bookings
List Bookings
List bookings with filters for date range, status, service, staff, or member.
输入参数limitdateTostatusstaffIddateFromaccountIdserviceId
get_booking_detail
Get Booking Detail
Get full booking details including line items, status history, and participants.
输入参数bookingId必填
get_booking_stats
Get Booking Stats
Get booking counts: today, this week, this month, and breakdown by status.
无需输入参数。
get_available_slots
Get Available Slots
Find available booking slots for a service on a specific date.
输入参数date必填staffIdserviceId必填resourceId
list_services
List Services
List booking services with name, price, duration, and status.
输入参数limitsearchstatus
get_service_detail
Get Service Detail
Get full service details including addons, staff, resources, and tier pricing.
输入参数serviceId必填
get_service_tier_pricing
Get Service Tier Pricing
Read every membership-tier pricing configuration for one booking service.
输入参数serviceId必填
set_service_tier_pricing
Set Service Tier Pricing
Set the complete pricing and booking-policy configuration for one membership tier on a booking service.
输入参数tierId必填serviceId必填bookingLimits必填priceOverride必填discountPercent必填timeSlotPricing必填advanceBookingDays必填
copy_service_tier_pricing
Copy Service Tier Pricing
Copy the complete pricing and booking-policy configuration from one membership tier to another on the same booking service.
输入参数serviceId必填sourceTierId必填targetTierId必填
create_service
Create Service
Create a bookable service. Sets duration, price, capacity, and policies. Use list_service_categories first if you want to attach to an existing category.
输入参数name必填typepricestatuscapacitycurrencysortOrdercategoryIdvisibilitydescriptionrequireLoginrequiresStaff另有 8 个
update_service
Update Service
Update an existing booking service. Pass only the fields you want to change.
输入参数namepricestatuscapacityserviceId必填categoryIdvisibilitydescriptionrequireLoginrequiresStaffcommissionTypecommissionValue另有 5 个
create_service_schedule
Create Service Schedule
Create a bookable schedule window for a service, including recurring weekly/daily availability.
输入参数date必填notesendTime必填staffIdbyWeekdayserviceId必填startTime必填recurrenceresourceIdmaxCapacityrecurrenceEndDaterecurrenceInterval
list_service_schedules
List Service Schedules
List schedule windows for booking services.
输入参数limitdateTostaffIddateFromserviceIdisOverrideresourceId
update_service_schedule
Update Service Schedule
Update a service schedule window. Pass only fields to change.
输入参数datenotesendTimestaffIdbyWeekdaystartTimerecurrenceresourceIdscheduleId必填maxCapacityrecurrenceEndDaterecurrenceInterval
assign_staff_to_service
Assign Staff To Service
Assign a staff member to a booking service. Pass users.id from list_staff.userId.
输入参数userId必填serviceId必填
link_resource_to_service
Link Resource To Service
Link a room/resource to a booking service.
输入参数serviceId必填resourceId必填
list_service_categories
List Service Categories
List service categories (groups for booking services like "Treatments", "Classes").
无需输入参数。
create_service_category
Create Service Category
Create a service category (e.g. "Treatments", "Classes") to group bookable services.
输入参数name必填sortOrderdescription
create_resource
Create Resource
Create a bookable resource (room, equipment, vehicle). Used by services that have requiresResource=true.
输入参数name必填type必填statuscapacitydescription
set_resource_availability
Set Resource Availability
Add an availability window for a resource. Use day-of-week + recurring=true for weekly schedules, or a specific date for one-off blocks.
输入参数datetypeendTime必填dayOfWeekstartTime必填resourceId必填isRecurring
set_staff_availability
Set Staff Availability
Add an availability window for a staff member (companyMembers.id). Use day-of-week + recurring for weekly schedules, or a specific date for one-off changes.
输入参数datetypeendTime必填memberId必填dayOfWeekstartTime必填isRecurring
get_booking_settings
Get Booking Settings
Get global booking settings for the customer booking flow, cancellation rules, visibility options, and confirmation requirements.
无需输入参数。
update_booking_settings
Update Booking Settings
Update global booking settings. Pass only the fields you want to change.
输入参数showCouponcalendarStyleshowAccessPasscooldownMessageblockUntilFinishedglobalCooldownDaysaccessPassAfterMinutesbookingReminderEnabledmemberReschedulingModesameDayReminderEnabledaccessPassBeforeMinutesallowMemberCancellation另有 6 个
List support tickets with optional filters.
输入参数limitsearchstatuscategorypriorityaccountId
get_ticket_stats
Get Ticket Stats
Get ticket counts grouped by status.
无需输入参数。
create_ticket
Create Ticket
Create a support ticket for a member issue.
输入参数sourcesubject必填categorypriorityaccountIdcontactNamedescriptioncontactEmailcontactPhone
update_ticket_status
Update Ticket Status
Update the status of an existing support ticket.
输入参数status必填ticketId必填
List surveys with optional status/search filters.
输入参数limitsearchstatus
create_survey
Create Survey
Create a survey with custom question blocks. Publish it later or set status to published for immediate portal access.
输入参数slugtitle必填openAtstatuscloseAtsettingsvisibilitydescriptionquestionBlocks必填
Get survey detail, including blocks, publishing status, visibility, settings, and response count.
输入参数surveyId必填
update_survey
Update Survey
Update a survey draft or publishing configuration. Use questionBlocks to replace the ordered form block list.
输入参数slugtitleopenAtstatuscloseAtsettingssurveyId必填visibilitydescriptionquestionBlocks
archive_survey
Archive Survey
Archive a survey and remove it from active survey lists.
输入参数surveyId必填
get_survey_stats
Get Survey Stats
Get response and invitation metrics for a survey overview dashboard.
输入参数surveyId必填
get_survey_responses
Get Survey Responses
List responses for a survey.
输入参数limitsurveyId必填
list_survey_invitations
List Survey Invitations
List survey invitation history without exposing token hashes or old invitation tokens.
输入参数limitsurveyId必填
create_survey_invitation
Create Survey Invitation
Create a token-auth survey invitation for a specific member/account or contact.
输入参数channelmetadatasurveyId必填accountIdcontactIdexpiresAtrecipientNamerecipientEmailrecipientPhone
list_survey_workflows
List Survey Workflows
List automation workflows attached to a survey.
输入参数surveyId必填
upsert_survey_workflow
Upsert Survey Workflow
Create or update a survey automation workflow, usually triggered by survey_response_submitted.
输入参数name必填graph必填statustriggersurveyId必填workflowId
List CRM deals (sales pipeline) with optional filters.
输入参数pagelimitstagesearchdealTypeaccountId
Get detailed CRM deal information by ID.
输入参数dealId必填
Create a CRM sales pipeline deal, optionally linked to a customer account and contact.
输入参数name必填stageamountownerIddealTypeaccountIdcontactIdclosingDatedescriptionprobability
Update a CRM deal. Pass only fields to change; use null for nullable links/fields to clear them.
输入参数namestageamountdealId必填ownerIddealTypeaccountIdcontactIdclosingDatedescriptionprobability
Soft-delete a CRM deal from the sales pipeline.
输入参数dealId必填
update_deal_stage
Update Deal Stage
Move a deal to a different pipeline stage.
输入参数stage必填dealId必填lostReasonprobability
mark_deal_won
Mark Deal Won
Mark a CRM deal as won and set close date.
输入参数dealId必填closingDate
mark_deal_lost
Mark Deal Lost
Mark a CRM deal as lost. Requires a lost reason.
输入参数dealId必填reason必填
Convert an account: qualify its open lead (creating one if needed) and link exactly one pipeline deal. Also promotes lifeStage lead -> active. Safe to repeat — a second call lands on the same lead and deal. Works on accounts that are already active.
输入参数dealNameaccountId必填dealStagelifeStagecreateDealdealAmountdealClosingDate
list_contacts
List Contacts
List contacts (people linked to CRM accounts), optionally filtered by account or search.
输入参数limitsearchaccountId
Fetch a single contact by ID.
输入参数contactId必填
create_contact
Create Contact
Create a contact on an existing CRM account.
输入参数name必填emailphonejobTitleaccountId必填isPrimary
update_contact
Update Contact
Update fields on an existing contact.
输入参数nameemailphonejobTitlecontactId必填isPrimary
set_primary_contact
Set Primary Contact
Set a contact as the primary contact for its CRM account and demote other contacts on that account.
输入参数contactId必填
delete_contact
Delete Contact
Delete a secondary contact. Primary contacts are protected; set another primary contact or delete the account instead.
输入参数contactId必填
list_custom_fields
List Custom Fields
List custom field definitions for CRM entities such as account, contact, deal, or booking.
输入参数entityType必填
get_custom_field
Get Custom Field
Get a custom field definition by ID.
输入参数definitionId必填
create_custom_field
Create Custom Field
Create a custom field definition for CRM entities. Use options for select or multiselect fields.
输入参数optionsfieldName必填fieldType必填sortOrderentityType必填fieldLabel必填isRequired
update_custom_field
Update Custom Field
Update a custom field definition label, type, options, required flag, or sort order.
输入参数optionsfieldTypesortOrderfieldLabelisRequireddefinitionId必填
delete_custom_field
Delete Custom Field
Delete a custom field definition and its stored values.
输入参数definitionId必填
get_custom_field_values
Get Custom Field Values
Get custom field values for a CRM entity such as an account, contact, deal, or booking.
输入参数entityId必填entityType必填
set_custom_field_values
Set Custom Field Values
Set or clear custom field values for a CRM entity. Values are stored as strings; pass null to clear a value.
输入参数values必填entityId必填entityType必填
List tasks with optional status, assignee, and account filters.
输入参数limitstatusaccountIdassigneeId
Get detailed task information by ID.
输入参数taskId必填
Create a task. Optionally link to a CRM account or assign to a team member.
输入参数title必填statusdueDatepriorityaccountIdassigneeIddescription
Update a task (status, priority, assignee, due date, completion).
输入参数titlestatustaskId必填dueDatepriorityassigneeIddescription
Soft-delete a CRM task.
输入参数taskId必填
Search across CRM accounts and contacts by name, email, or phone.
输入参数limitquery必填
list_invoices
List Invoices
List invoices with optional filters. Use status "OVERDUE" to find unpaid invoices past due date.
输入参数sortlimitordersearchstatus
Fetch a single invoice with line items, payment history, and customer detail.
输入参数invoiceId必填
create_invoice
Create Invoice
Create a new invoice for a customer. Optionally include line items inline. Returns the new invoiceId.
输入参数notesdueDatecurrencyaccountId必填lineItems
record_invoice_payment
Record Invoice Payment
Record a manual payment against an invoice (cash, bank transfer, cheque, card terminal). Updates invoice status to PARTIAL or PAID based on the running total.
输入参数noteamount必填method必填invoiceId必填reference
mark_invoice_sent
Mark Invoice Sent
Mark an invoice as sent to the customer (transitions DRAFT → OPEN). Use after delivering the invoice via email or share link. Idempotent.
输入参数invoiceId必填
Void an invoice. Destructive — invoice can no longer be paid or edited; existing payments are preserved as history. Cannot void invoices that are already PAID or VOIDED.
输入参数invoiceId必填
delete_invoice
Delete Invoice
Delete a DRAFT invoice. Only invoices that have never been sent can be deleted; otherwise use void_invoice.
输入参数invoiceId必填
restore_invoice
Restore Invoice
Restore a previously deleted DRAFT invoice.
输入参数invoiceId必填
get_invoice_stats
Get Invoice Stats
Outstanding totals, overdue counts, and revenue this period. Used by the weekly-snapshot playbook.
无需输入参数。
list_event_registrations
List Event Registrations
List registrations for an event in the active company, including CRM account IDs for campaign exclusions.
输入参数limitoffseteventId必填statuses
get_event_campaign_exclusions
Get Event Campaign Exclusions
Resolve pending, confirmed, and paid event registrations into unique CRM account IDs for campaign exclusions. Pass accountIds to audienceExclusions only when ready=true; cancelled registrations are omitted and unmatched guests make the result not ready.
输入参数eventId必填
list_subscriptions
List Subscriptions
List member subscriptions. Filter by status to find active, cancelled, or past-due subscriptions.
输入参数limitstatus
get_subscription
Get Subscription
Fetch a single subscription with customer, tier, billing cycle, and renewal info.
输入参数subscriptionId必填
create_subscription
Create Subscription
Create a manual, non-renewing subscription record for a member. Use a subscription action link for provider-backed recurring billing.
输入参数amounttierIdcurrencyaccountId必填autoRenewbillingCyclecurrentPeriodEndcurrentPeriodStart
pause_subscription
Pause Subscription
Pause an active subscription (status → past_due, no further auto-renew). Use resume_subscription to reactivate.
输入参数subscriptionId必填
resume_subscription
Resume Subscription
Resume a paused subscription back to active.
输入参数subscriptionId必填
cancel_subscription
Cancel Subscription
Cancel a subscription. Destructive — turns off auto-renew and prevents further billing cycles. Existing paid periods stay valid until end.
输入参数subscriptionId必填
list_campaigns
List Campaigns
List marketing campaigns (email, SMS, WhatsApp, or push) with delivery stats. Use the returned IDs when excluding recipients of previous campaigns.
输入参数sortlimitordersearchchannel
Get a campaign by ID, including its recipient source, audience exclusions, channel configuration, and delivery stats.
输入参数campaignId必填
create_campaign
Create Campaign
Create an email, SMS, WhatsApp, or push campaign in DRAFT. audienceExclusions can omit specific account IDs and recipients of previous campaign IDs. For email channelConfig, use subject + htmlBody + optional plainTextBody. recipientSource="list" is accepted as an alias for "individual".
输入参数name必填statuschannel必填segmentIdscheduledAtrecipientIdschannelConfigrecipientSourceaudienceExclusions
update_campaign
Update Campaign
Update an existing campaign, including audience exclusions. Channel cannot be changed after creation. Pass only fields to change.
输入参数namestatussegmentIdcampaignId必填scheduledAtrecipientIdschannelConfigrecipientSourceaudienceExclusions
delete_campaign
Delete Campaign
Delete a campaign. Only allowed in DRAFT status; sent campaigns are kept for audit history.
输入参数campaignId必填
restore_campaign
Restore Campaign
Restore a previously deleted campaign.
输入参数campaignId必填
undo_campaign_send
Undo Campaign Send
Undo a campaign send during its one-minute safety buffer. Use immediately when the merchant says to stop or undo a submitted campaign.
输入参数campaignId必填
validate_campaign
Validate Campaign
Validate a campaign before sending. Resolves contactable recipient count and previews the final email subject/body without sending.
输入参数campaignId必填
list_notification_logs
List Notification Logs
List notification delivery logs for the current company. Recipients are masked by default for incident-response safety.
输入参数limitdateTostatuschanneldateFromentityIdeventTyperecipient
list_conversations
List Conversations
List messaging conversations across WhatsApp, Messenger, Instagram, Threads, SMS, email, and other enabled channels. Threads items are public conversations. Shows unread counts and last message time.
输入参数pagelimitsearchstatuschannelassigneeassignedToId
list_audit_logs
List Audit Logs
List recent audit log entries for this company. Filter by action, resource, resourceId, user, source, outcome, destructive flag, and created date range.
输入参数limitactionsourceuserIdoutcomeresourceresourceIddestructivecreatedAftercreatedBefore
search_audit_logs
Search Audit Logs
Search audit logs by free text across action, resource, resource ID, changes JSON, and metadata JSON.
输入参数limitquery必填createdAftercreatedBefore
get_audit_log
Get Audit Log
Fetch a single audit log entry by ID, including before/after snapshots when available.
输入参数auditLogId必填
revert_audit_action
Revert Audit Action
Revert an audited action by restoring the captured before snapshot. Only works for allowlisted target tables with full before/after audit snapshots.
输入参数reasonauditLogId必填
Duplicate an existing record (product, tier, campaign, post, service package, promotion, gift offer). Creates a copy in DRAFT status with "(Copy)" appended to the name.
输入参数nameentityId必填entityType必填
List notes attached to a member/account, booking, or ticket.
输入参数limitentityId必填entityType必填
Add a note to a member/account, booking, ticket, or invoice.
输入参数body必填entityId必填isPinnedentityType必填
confirm_booking
Confirm Booking
Confirm a pending booking.
输入参数bookingId必填
cancel_booking
Cancel Booking
Cancel a booking and create a durable refund receipt. Uses the merchant refund setting unless refundMethod is provided.
输入参数reasonbookingId必填refundMethodidempotencyKey必填
complete_booking
Complete Booking
Mark a booking as completed. Triggers commission calculation if configured.
输入参数bookingId必填
Mark a booking as no-show when the customer did not attend.
输入参数bookingId必填
list_promotions
List Promotions
List promotion/coupon codes with optional status filter.
输入参数limitsearchstatus
get_promotion
Get Promotion
Get details of a specific promotion/coupon code.
输入参数promotionId必填
create_promotion
Create Promotion
Create a promotion / discount code. type=percentage or fixed_amount; value is the discount as a string ("10" = 10% or 10 currency units). Codes are uppercased server-side.
输入参数code必填name必填typevalue必填endsAtstatusstartsAtposEnableddescriptioneventEnabledminimumAmountonlineEnabled另有 5 个
update_promotion
Update Promotion
Update an existing promotion. Pass only the fields you want to change.
输入参数codenametypevalueendsAtstatusstartsAtpromotionId必填usageLimitTotalusageLimitPerCustomer
delete_promotion
Delete Promotion
Delete a promotion. Past usage records are preserved.
输入参数promotionId必填
restore_promotion
Restore Promotion
Restore a previously deleted promotion.
输入参数promotionId必填
validate_promotion
Validate Promotion
Check if a promotion code is valid for a given order. Returns isValid, discount amount, and an error code/message if invalid. Use before applying to a checkout.
输入参数amount必填channel必填accountIdpromotionCode必填
list_reward_schemes
List Reward Schemes
List loyalty reward schemes (points/stamps programs) configured for this business.
输入参数limitsearch
List staff/team members in the business.
输入参数limit
list_resources
List Resources
List booking resources (rooms, equipment, etc.).
输入参数limit
list_service_packages
List Service Packages
List service packages/prepaid session bundles with optional search, status, sorting, and pagination.
输入参数sortlimitordersearchstatus
get_service_package
Get Service Package
Get service package detail including applicability and selected booking service/event items.
输入参数packageId必填
create_service_package
Create Service Package
Create a service package/prepaid session bundle. Use applicableType=SELECTED with applicableItems to limit the package to specific booking services or events.
输入参数name必填price必填statusvalidDays必填descriptionsessionCount必填applicableTypeapplicableItems
update_service_package
Update Service Package
Update an existing service package. Pass only the fields you want to change.
输入参数namepricestatuspackageId必填validDaysdescriptionsessionCountapplicableTypeapplicableItems
delete_service_package
Delete Service Package
Delete a service package by ID.
输入参数packageId必填
restore_service_package
Restore Service Package
Restore a previously deleted service package by ID.
输入参数packageId必填
get_plan_status
Get Plan Status
Show the current organisation plan, subscription/payment state, enabled modules, and quota usage. Use before deciding whether an agentic operation is allowed.
无需输入参数。
check_plan_operation
Check Plan Operation
Preflight whether an intended operation is allowed by token scopes, enabled modules, subscription state, and quota. Provide toolName, quotaCode, or moduleCode.
输入参数deltatoolNamequotaCodemoduleCode
list_plan_options
List Plan Options
List active FavCRM plans with prices, quotas, included modules, and whether each is the current plan.
无需输入参数。
create_plan_upgrade_link
Create Plan Upgrade Link
Create a Stripe Checkout link for a new paid subscription, or a Stripe Billing Portal link for an existing Stripe subscription. Use only after the user explicitly asks to upgrade or fix billing.
输入参数planIdconfirmplanCodereturnUrlbillingCycle
create_team_member_invite
Create Team Member Invite
Invite a team member to this company and return a one-time MCP accept token. The invited user must verify an email code through accept_team_invite_request and accept_team_invite_verify before membership and API key issuance.
输入参数nameroleemail必填modulespermissionsexpiresInHours
accept_team_invite_request
Accept Team Invite — Request Code
Step 1 of agentic team invite acceptance. Validates an invite token and sends a 6-digit verification code to the invited email. Then call accept_team_invite_verify with the code to join and receive an MCP API key.
输入参数token必填
accept_team_invite_verify
Accept Team Invite — Verify Code
Step 2 of agentic team invite acceptance. Verifies the emailed code, joins the invited user to the company, and returns a one-time MCP API key for that user.
输入参数code必填nametoken必填
get_whatsapp_connection_status
Get Whatsapp Connection Status
Check whether WhatsApp Business is connected for this company, including WABA/phone metadata and the latest agentic connect session state.
无需输入参数。
create_whatsapp_connect_link
Create WhatsApp Connect Link
Create a short-lived browser link for WhatsApp Business Embedded Signup. The user must open the link because Meta requires a browser popup to authorize and choose the WABA/phone number.
输入参数ttlMinutesonboardingMode
list_my_companies
List My Companies
List all companies/organisations the current user has access to. Use this to see available orgs before switching.
无需输入参数。
switch_company
Switch Company
Issue a new MCP access token scoped to another company/organisation. This does not mutate the current MCP connection: the client must use the returned token on later /mcp requests. Platform operators should prefer explicit-company admin tools when available.
输入参数companyId必填
List CMS posts (blog posts and/or pages) with optional filters.
输入参数typelimitsearchstatus
Get detailed CMS post including content blocks, categories, and tags.
输入参数postId必填
Create a new CMS post (blog_post, page, or any custom post type). The post type must already exist — use list_post_types to discover, create_post_type to add a new one. excerpt = plain-text summary only (auto-derived from blocks if omitted). Structured custom fields go in meta, keyed by the field schema defined with create_post_type_field.
输入参数metaslugtype必填title必填blocksstatustagIdsexcerptparentIdseoTitlesortOrdervisibility另有 4 个
Update an existing CMS post (any post type). Only provided fields are changed.
输入参数metaslugtypetitleblockspostId必填statustagIdsexcerptparentIdseoTitlesortOrder另有 5 个
Delete a CMS post by ID. Soft-deleted posts can be restored with restore_post.
输入参数postId必填
Restore a previously deleted CMS post.
输入参数postId必填
list_image_models
List Image Models
List AI image-generation models exposed to merchants (sanitized — provider/cost details hidden). Use to pick a `modelCode` for `generate_post_cover`.
无需输入参数。
generate_image
Generate Image
Generate an AI image via kie.ai and return its public R2 URL. Use to mint reusable URLs for content blocks (image, gallery), product photos, or any field that takes an image URL — does NOT attach to a post by itself. Costs credits (see list_image_models). On poll timeout the job continues running; pass `jobId` from the response to merchant ai-media APIs to retrieve it later.
输入参数seedprompt必填modelCode必填aspectRatiopollTimeoutMsnegativePromptpollIntervalMs
generate_post_cover
Generate Post Cover
Generate an AI image and attach it as a post's featuredImage. Submits a kie.ai job, polls until complete, copies the result into the canonical post-asset R2 folder, and writes the public URL onto the post. Costs credits (see list_image_models). On poll timeout, the job continues — call attach_post_cover_from_job(postId, jobId) once it finishes to attach without paying again.
输入参数seedpostId必填prompt必填modelCode必填aspectRatiopollTimeoutMsnegativePromptpollIntervalMs
attach_post_cover_from_job
Attach Post Cover From Job
Attach a previously generated ai-media job's output as the post's featuredImage. Use when generate_post_cover timed out (job kept running) or when reusing the same generation across multiple posts. Verifies the job belongs to your company and succeeded. Does NOT charge credits — credits were charged at submit time.
输入参数jobId必填postId必填assetIndexpollIfRunningpollTimeoutMs
upload_post_cover_from_url
Upload Post Cover From Url
Download an external image URL into R2 and attach it as the post's featuredImage. Replaces the manual flow of pasting external URLs (which break when the source goes down). Validates content-type starts with `image/` and rejects payloads larger than 20 MB. No AI credits charged — only standard storage.
输入参数postId必填sourceUrl必填
list_categories
List Categories
List CMS post categories.
无需输入参数。
create_category
Create Category
Create a CMS post category (e.g. "Equipment", "Injection — Botox"). For sub-categories, use namespaced names — the table is flat.
输入参数name必填slugsortOrderdescription
update_category
Update Category
Update a CMS post category.
输入参数nameslugsortOrdercategoryId必填description
delete_category
Delete Category
Delete a CMS post category. Posts in the category are not deleted; they are simply unlinked.
输入参数categoryId必填
restore_category
Restore Category
Restore a previously deleted CMS post category.
输入参数categoryId必填
list_post_types
List Post Types
List all post types defined for this company (built-in: blog_post, page; plus any custom types).
无需输入参数。
create_post_type
Create Post Type
Define a new custom post type (e.g. "treatment", "service"). Required before creating posts of that type. After creating a post type, use create_post_type_field to define its structured field schema. Those fields are stored in meta on each post — do not use excerpt for structured data.
输入参数iconslug必填label必填sortOrderlabelPlural必填supportsBlockssupportsExcerptsupportsNestingsupportsCategoriessupportsFeaturedImage
list_post_type_fields
List Post Type Fields
List the custom field schema for a post type. Use this before creating posts to know which keys to pass in meta and what types they expect.
输入参数postTypeId必填
create_post_type_field
Create Post Type Field
Add a custom field to a post type schema. The field key becomes the key in meta when creating/updating posts. Use fieldType="repeater" with fields=[...] for repeatable structured rows. Use this instead of storing structured data in excerpt.
输入参数keylabel必填fieldsoptionshelpTextrequiredfieldType必填sortOrderpostTypeId必填
update_post_type
Update Post Type
Update a custom post type. Built-in types (blog_post, page) cannot be modified.
输入参数iconlabelsortOrderpostTypeId必填labelPluralsupportsBlockssupportsExcerptsupportsNestingsupportsCategoriessupportsFeaturedImage
delete_post_type
Delete Post Type
Delete a custom post type. Built-in types cannot be deleted. Fails if any posts of this type still exist — delete those first.
输入参数postTypeId必填
restore_post_type
Restore Post Type
Restore a previously deleted custom post type.
输入参数postTypeId必填
update_post_type_field
Update Post Type Field
Update a field on a post type schema. Changing fieldType or flipping required=true is blocked when posts already use the field unless force=true is passed.
输入参数forcelabelfieldsfieldId必填optionshelpTextrequiredfieldTypesortOrderpostTypeId必填
delete_post_type_field
Delete Post Type Field
Remove a field from a post type schema. Blocked when posts of this type still have data in the field unless force=true is passed (orphans the data).
输入参数forcefieldId必填postTypeId必填
restore_post_type_field
Restore Post Type Field
Restore a previously deleted field on a post type schema.
输入参数fieldId必填postTypeId必填
reorder_post_type_fields
Reorder Post Type Fields
Reorder fields on a post type. Pass field IDs in the desired display order; sortOrder is updated to match.
输入参数postTypeId必填orderedFieldIds必填
append_post_block
Append Post Block
Append one or more blocks to the end of a post. Each block must be a valid block object: { id, version, type, data }. Types: paragraph, heading, image, list, quote, code, divider, spacer, embed, html, youtube, file, faq, callout, gallery, cta, accordion, product.
输入参数blocks必填postId必填
replace_post_block
Replace Post Block
Replace a single block at the given index (0-based). Avoids fetching the full post and re-sending all blocks via update_post.
输入参数block必填index必填postId必填
remove_post_block
Remove Post Block
Remove the block at the given index (0-based). All subsequent blocks shift up by one.
输入参数index必填postId必填
reorder_post_blocks
Reorder Post Blocks
Reorder blocks by passing block IDs in the desired order. The id list must contain every existing block id exactly once.
输入参数postId必填orderedBlockIds必填
create_booking
Create Booking
Create a new booking for a member. Use get_available_slots first to find valid times, then create the booking with the service, member, date, and time.
输入参数notesendTime必填staffIdaccountId必填serviceId必填startTime必填resourceIdbookingDate必填
get_conversation_messages
Get Conversation Messages
Get messages from a specific conversation thread. Shows the chat history between the merchant and a contact.
输入参数pagelimitsearchconversationId必填
find_or_create_workroom_thread
Find Or Create Workroom Thread
Find or create a Workroom DM thread between a merchant user and an AI colleague. Use this when an inbound event deserves owner attention but no threadId was provided. This only prepares an internal Workroom channel.
输入参数titleuserIdagentId必填
get_attachment_text
Get Attachment Text
Read the text/Markdown content of a file attached to a Workroom thread or sent by a customer (PDF, image, or document). Extracts on first read and caches the result. Returns status "ready" with markdown, or "skipped"/"failed"/"not_found" with a reason. Use when a message references an attachment you need to read.
输入参数attachmentId必填
post_workroom_message
Post Workroom Message
Post an internal message from an AI colleague into a Workroom thread. Use this to report findings, ask the owner for approval, or share source links after reading CRM/Inbox data. This does not send anything to customers.
输入参数agentId必填content必填metadatathreadId必填
create_inbox_reply_suggestion
Create Inbox Reply Suggestion
Create a draft reply suggestion that appears inline in the FavCRM Inbox composer. Use this for message.inbound events with replyPolicy="suggest"; it does not send anything to the customer.
输入参数body必填agentId必填subjectmetadataconversationId必填sourceMessageId
request_send_approval
Request Send Approval
Create a merchant-owned Workroom approval request for a customer-facing send. The agent must not call send_message, send_whatsapp_message, send_test_campaign, or send_campaign directly.
输入参数agentId必填payload必填summary必填threadId必填actionType必填
list_segments
List Segments
List customer segments. Segments group members by criteria for targeted campaigns.
输入参数limitsearch
Get customer segment details including type, criteria, and live member count.
输入参数segmentId必填
get_segment_members
Get Segment Members
Get the members that belong to a specific segment.
输入参数limitsegmentId必填
create_segment
Create Segment
Create a new customer segment. Use STATIC for manual member lists, DYNAMIC for criteria-based auto-filtering.
输入参数name必填criteriadescriptionsegmentType
update_segment
Update Segment
Update an existing customer segment by id. Pass only the fields to change; criteria replaces the existing rules.
输入参数namecriteriasegmentId必填descriptionsegmentType
preview_segment_count
Preview Segment Count
Preview how many customers would match dynamic segment criteria before creating or updating a segment.
输入参数criteria
set_segment_members
Set Segment Members
Replace the members of a STATIC customer segment with the given account IDs. The segment is converted to STATIC.
输入参数segmentId必填accountIds必填
delete_segment
Delete Segment
Delete a customer segment.
输入参数segmentId必填
list_templates
List Templates
List the company's WhatsApp message templates with their Meta approval status (PENDING / APPROVED / REJECTED). Check this to see which templates are approved before referencing one in a campaign.
输入参数limit
create_template
Create Template
Create and submit a WhatsApp message template to Meta for approval. Text templates only (header text, body with {{1}} variables, footer) — add buttons in the app. The template is NOT usable until Meta approves it (check with list_templates). Submitting consumes the store’s Meta template allowance.
输入参数name必填footermessage必填category必填languageheaderTextvariableSamples
List shop outlets/locations for the company.
输入参数activeOnly