CloudFran Agents API
Power your franchise with 20+ AI agents, enterprise CRM, loyalty programs, inventory management, and an intelligent training platform — all through a single, unified REST API designed for multi-tenant franchise operations at any scale.
Introduction
The CloudFran Agents API provides programmatic access to every module on the platform. Whether you are building a custom franchise dashboard, connecting a mobile app, or automating workflows across hundreds of locations, this API is your single integration point.
https://api.cloudfran.com/v1/All requests use JSON and return JSON. Every request must include a valid API key and a
X-Tenant-Id header to scope data to the correct franchise. The API supports multi-tenant isolation — a single key can manage one location or one thousand.Authorization header, and make your first call in under two minutes.Authentication
All API requests require authentication via a Bearer token. Keys are issued per developer account and scoped to a specific tenant.
Request Headers
Include these with every request:
sk_live_ keys in client-side code. Use sk_test_ for development. Rotate keys via the Developer Portal.Key Types
| Prefix | Environment | Purpose |
|---|---|---|
sk_live_ | Production | Live data, real transactions, billed usage |
sk_test_ | Sandbox | Test data, unlimited calls, no billing |
sk_admin_ | Admin | Platform-level ops (CloudFran SuperAdmin only) |
Rate Limits & Tiers
Rate limits are enforced per API key. Exceeding your limit returns 429 Too Many Requests with a Retry-After header.
| Tier | Rate Limit | Monthly Calls | AI Tokens | Price |
|---|---|---|---|---|
| Starter | 30/min | 10,000 | 300K | $99/mo |
| Professional | 60/min | 25,000 | 1.5M | $299/mo |
| Enterprise | 200/min | Unlimited | Custom | $999+/mo |
Error Handling
Standard HTTP status codes with a consistent JSON error envelope.
| Status | Meaning | Common Codes |
|---|---|---|
200 | Success | — |
201 | Created | — |
400 | Bad Request | INVALID_INPUT, MISSING_FIELD |
401 | Unauthorized | INVALID_KEY, EXPIRED_KEY |
403 | Forbidden | INSUFFICIENT_ROLE, TENANT_MISMATCH |
404 | Not Found | RESOURCE_NOT_FOUND |
429 | Rate Limited | QUOTA_EXCEEDED, RATE_LIMITED |
500 | Server Error | INTERNAL_ERROR |
Webhooks
Receive real-time notifications when events occur. Configure endpoints in Webhook Management. All payloads include a signature header for verification.
Signature Verification
AI Agents
CloudFran's AI agents combine GPT-4 intelligence with franchise-specific business logic. Each agent specializes in a vertical task — from scheduling appointments to detecting fraud to coaching employees.
Parameters
| Name | Type | Description |
|---|---|---|
| queryrequired | string | Natural language question or command (max 4,000 chars) |
| contextoptional | object | Additional context: locationId, dateRange, industry |
| responseFormatoptional | string | Output format: text (default), json, html |
| voiceEnabledoptional | bool | If true, returns audio URL alongside text response |
Parameters
| Name | Type | Description |
|---|---|---|
| customerNamerequired | string | Full name of the customer |
| phonerequired | string | E.164 phone number for SMS confirmation |
| emailoptional | string | Email for calendar invite |
| requestrequired | string | Natural language: “Haircut next Tuesday at 2pm” |
| serviceTypeoptional | string | Service category for provider routing |
| locationIdoptional | string | Specific franchise location |
Parameters
| Name | Type | Description |
|---|---|---|
| campaignNamerequired | string | Name for tracking |
| recipientsrequired | array | Array of {phone, name, tags} objects |
| promptrequired | string | Campaign goal in natural language |
| variantsoptional | int | A/B variants to generate (1-5, default 2) |
| scheduleAtoptional | datetime | ISO 8601 datetime for scheduled send |
Parameters
| Name | Type | Description |
|---|---|---|
| torequired | string | E.164 phone number to call |
| scriptrequired | string | AI prompt: conversation objective and talking points |
| voiceIdoptional | string | TTS voice: alloy, echo, nova, shimmer |
| recordCalloptional | bool | Record for compliance/training (default: false) |
| callbackUrloptional | string | Webhook URL for call status updates |
Parameters
| Name | Type | Description |
|---|---|---|
| transactionIdrequired | string | Unique transaction identifier |
| amountrequired | decimal | Transaction amount in USD |
| typerequired | string | sale, refund, void, adjustment |
| employeeIdoptional | string | Employee who processed the transaction |
| customerIdoptional | string | Customer for pattern analysis |
Parameters
| Name | Type | Description |
|---|---|---|
| textrequired | string | Text to analyze (max 10,000 chars) |
| sourceoptional | string | sms, review, ticket, transcript |
Parameters
| Name | Type | Description |
|---|---|---|
| periodoptional | string | 30d, 60d, 90d (default: 30d) |
| locationIdoptional | string | Filter to specific location |
| industryoptional | string | Industry filter for benchmarking |
Parameters
| Name | Type | Description |
|---|---|---|
| companyNameoptional | string | Company name to research |
| domainoptional | string | Website domain for enrichment |
| phoneoptional | string | Phone for reverse lookup |
CRM & Lead Management
Complete customer lifecycle management with 30+ pages covering pipeline tracking, health scoring, commission analytics, bulk campaigns, media management, and AI-powered follow-ups.
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Full name |
| phonerequired | string | Phone (E.164) |
| emailoptional | string | Email address |
| sourceoptional | string | web, referral, social, partner, walk-in |
| autoNurtureoptional | bool | Auto-enroll in Autopilot (default: true) |
Communication (Twilio)
Send SMS, MMS, and voice calls with built-in compliance, opt-out management, A2P brand registration, and delivery tracking.
Parameters
| Name | Type | Description |
|---|---|---|
| torequired | string | Recipient phone (E.164) |
| messagerequired | string | Message body (max 1,600 chars) |
| mediaUrloptional | string | URL for MMS image attachment |
Training & LMS
A complete LMS with 1,300+ courses across 20 industries, AI tutoring, certificate generation, audio narration, quiz assessments, and manager reporting.
Parameters
| Name | Type | Description |
|---|---|---|
| industryoptional | string | Filter: restaurant, retail, fitness, healthcare... |
| categoryoptional | string | Filter: sales, compliance, onboarding, leadership... |
| pageoptional | int | Page number (default: 1) |
| pageSizeoptional | int | Results per page (max 50) |
Loyalty & Wallet
Full loyalty program with points, tiers, digital wallet, gift cards, peer transfers, QR check-ins, referral rewards, and automated promotions across all franchise locations.
Parameters
| Name | Type | Description |
|---|---|---|
| memberIdrequired | string | Loyalty member ID |
Loyalty — Extended
Advanced loyalty operations: member management, gift cards, QR login, referral tracking, automated promotions, streaks, and gamification badges.
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Member full name |
| phonerequired | string | Phone (E.164) |
| emailoptional | string | Email address |
| locationIdoptional | string | Joining location |
Parameters
| Name | Type | Description |
|---|---|---|
| amountrequired | decimal | Card value in USD |
| recipientNameoptional | string | Gift recipient name |
| recipientPhoneoptional | string | Send via SMS |
| recipientEmailoptional | string | Send via email |
| messageoptional | string | Personal message |
Parameters
| Name | Type | Description |
|---|---|---|
| memberIdrequired | string | Referring member |
| channeloptional | string | sms, email, link |
Parameters
| Name | Type | Description |
|---|---|---|
| memberIdrequired | string | Member ID |
| amountrequired | decimal | Amount to add |
| paymentMethodIdoptional | string | Stripe payment method |
| autoReloadoptional | object | {threshold, reloadAmount} for auto-reload |
Parameters
| Name | Type | Description |
|---|---|---|
| qrCoderequired | string | Scanned QR code value |
| locationIdrequired | string | Scanning location |
Parameters
| Name | Type | Description |
|---|---|---|
| memberIdrequired | string | Member ID |
| typeoptional | string | earn, redeem, transfer, all |
| pageoptional | int | Page number |
Parameters
| Name | Type | Description |
|---|---|---|
| locationIdoptional | string | Filter by location |
Inventory Management
Franchise-grade supply chain with multi-location stock tracking, inter-store transfers, barcode/QR support, audit trails, bulk CSV import/export, and AI-powered reorder suggestions.
Parameters
| Name | Type | Description |
|---|---|---|
| categoryoptional | string | Filter by category |
| storeIdoptional | string | Filter by store location |
| statusoptional | string | active, low_stock, out_of_stock, discontinued |
| searchoptional | string | Full-text search across name, SKU, barcode |
Franchise Exchange
B2B marketplace where franchise brands post projects and vetted service providers bid, deliver, and get paid. Features escrow, milestone billing, dispute resolution, and reputation management.
Franchise Exchange — Extended
Complete B2B marketplace operations: project posting, AI-powered negotiation, milestone delivery, escrow payments, reviews, and dispute resolution.
Parameters
| Name | Type | Description |
|---|---|---|
| titlerequired | string | Project title |
| descriptionrequired | string | Detailed requirements |
| budgetrequired | object | {min, max} range in USD |
| categoryrequired | string | marketing, IT, operations, design |
| milestonesoptional | array | Delivery milestones with amounts |
| deadlineoptional | datetime | Project deadline |
Parameters
| Name | Type | Description |
|---|---|---|
| projectIdrequired | string | Project ID |
| proposalIdrequired | string | Proposal to negotiate |
| positionoptional | string | Your negotiation stance and priorities |
Parameters
| Name | Type | Description |
|---|---|---|
| projectIdrequired | string | Project ID |
| milestoneIdrequired | string | Milestone being completed |
| filesrequired | file[] | Deliverable files (multipart) |
| notesoptional | string | Delivery notes for buyer |
Parameters
| Name | Type | Description |
|---|---|---|
| projectIdrequired | string | Project ID |
| milestoneIdrequired | string | Milestone to approve |
| ratingoptional | int | Quality rating 1-5 |
Parameters
| Name | Type | Description |
|---|---|---|
| projectIdrequired | string | Project ID |
| milestoneIdrequired | string | Approved milestone |
Parameters
| Name | Type | Description |
|---|---|---|
| projectIdrequired | string | Project ID |
| ratingrequired | int | Overall rating 1-5 |
| reviewrequired | string | Written review |
| categoriesoptional | object | {quality, communication, timeliness} ratings 1-5 |
Parameters
| Name | Type | Description |
|---|---|---|
| sellerIdrequired | string | Seller profile ID |
| returnUrlrequired | string | Return URL after onboarding |
Parameters
| Name | Type | Description |
|---|---|---|
| projectIdrequired | string | Project ID |
AI Workbench
Suite of AI-powered business tools including image generation (DALL-E), data analysis, business advisory, content writing, and employee coaching.
Google Business Profile
Manage Google Business Profile listings across all franchise locations. Sync business info, fetch and respond to reviews with AI, track analytics, and maintain consistent NAP data.
Parameters
| Name | Type | Description |
|---|---|---|
| tenantIdrequired | string | Tenant ID |
| periodoptional | string | 7d, 30d, 90d |
Compliance
TCPA, CCPA, and GDPR compliance tools including double opt-in recording, do-not-sell flags, data export, and data deletion with full audit trails.
Billing & Usage
Track API consumption, manage subscription plans, and report business outcomes for performance-based billing.
Parameters
| Name | Type | Description |
|---|---|---|
| monthoptional | string | YYYY-MM format (default: current month) |
Parameters
| Name | Type | Description |
|---|---|---|
| typerequired | string | booking, sale, conversion, lead_qualified |
| valuerequired | decimal | Revenue value in USD |
| agentIdoptional | string | Agent that drove the outcome |
| customerIdoptional | string | Customer associated with outcome |
Support & Help Desk
AI-powered support with ticket routing, knowledge base, and satisfaction tracking.
Parameters
| Name | Type | Description |
|---|---|---|
| questionrequired | string | Question in natural language |
| categoryoptional | string | billing, technical, account, general |
| userIdoptional | string | User ID for context |
Parameters
| Name | Type | Description |
|---|---|---|
| subjectrequired | string | Ticket subject |
| descriptionrequired | string | Issue description |
| categoryrequired | string | billing, technical, account |
| priorityoptional | string | low, medium, high, urgent |
Parameters
| Name | Type | Description |
|---|---|---|
| statusoptional | string | open, in_progress, resolved, closed |
| assignedTooptional | string | Filter by agent |
Parameters
| Name | Type | Description |
|---|---|---|
| ticketIdrequired | string | Ticket ID (URL path) |
| messagerequired | string | Reply content |
| isInternaloptional | bool | Internal note only |
Knowledge Base
AI-powered knowledge base with chat, search, and automated article generation.
Parameters
| Name | Type | Description |
|---|---|---|
| messagerequired | string | Help question |
| conversationIdoptional | string | Continue conversation |
| pageContextoptional | string | Current page URL |
Parameters
| Name | Type | Description |
|---|---|---|
| qrequired | string | Search query |
Parameters
| Name | Type | Description |
|---|---|---|
| topicrequired | string | Article topic |
| audienceoptional | string | admin, manager, employee, customer |
| detailoptional | string | brief, standard, comprehensive |
Email Verification
Validate emails before campaigns to reduce bounces and protect sender reputation. Single and batch processing.
Parameters
| Name | Type | Description |
|---|---|---|
| emailrequired | string | Email to validate |
Parameters
| Name | Type | Description |
|---|---|---|
| emailsrequired | array | Email array (max 10,000) |
| webhookUrloptional | string | Callback when complete |
Parameters
| Name | Type | Description |
|---|---|---|
| batchIdrequired | string | Batch ID |
Subscription Management
Manage tenant subscription lifecycles: suspend, reactivate, or cancel with Stripe billing integration.
Parameters
| Name | Type | Description |
|---|---|---|
| subscriptionIdrequired | string | Subscription ID (URL) |
| reasonoptional | string | Suspension reason |
Parameters
| Name | Type | Description |
|---|---|---|
| subscriptionIdrequired | string | Subscription ID |
Parameters
| Name | Type | Description |
|---|---|---|
| subscriptionIdrequired | string | Subscription ID |
| reasonoptional | string | Cancellation reason |
| feedbackoptional | string | Exit survey |
Autopilot (Lead Nurturing)
Automated multi-touch nurturing sequences powered by GPT-4 with A/B testing, outcome tracking, and performance billing.
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Campaign name |
| goalrequired | string | booking, sale, survey, reactivation |
| audiencerequired | string | Segment ID |
| touchpointsoptional | int | Follow-ups (1-10) |
| cadenceDaysoptional | array | Days between: [0,1,3,7] |
| channeloptional | string | sms, email, both |
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | string | Campaign ID |
Parameters
| Name | Type | Description |
|---|---|---|
| campaignIdrequired | string | Target campaign |
| namerequired | string | Lead name |
| phonerequired | string | Phone (E.164) |
| tagsoptional | array | Segmentation tags |
SMS Opt-Out Management
TCPA-compliant opt-out handling with suppression lists checked by all agents before sending.
Parameters
| Name | Type | Description |
|---|---|---|
| phonerequired | string | Phone (E.164) |
| reasonoptional | string | customer_request, complaint, bounce |
Parameters
| Name | Type | Description |
|---|---|---|
| phonerequired | string | Phone (URL path) |
Analytics Dashboard
Business intelligence with real-time dashboards, custom reports, and exportable data across all modules.
Parameters
| Name | Type | Description |
|---|---|---|
| periodoptional | string | today, 7d, 30d, 90d, ytd |
| locationIdoptional | string | Filter by location |
Parameters
| Name | Type | Description |
|---|---|---|
| metricsrequired | array | Metrics to include |
| groupByoptional | string | location, agent, day, week, month |
| formatoptional | string | csv, xlsx, pdf, json |
Parameters
| Name | Type | Description |
|---|---|---|
| periodoptional | string | 7d, 30d, 90d |
Twilio Compliance
A2P campaign registration, brand verification, toll-free verification, and number management.
Parameters
| Name | Type | Description |
|---|---|---|
| brandIdrequired | string | Registered brand ID |
| useCaserequired | string | marketing, notifications, two_factor |
| descriptionrequired | string | Campaign description |
| sampleMessagesrequired | array | 2-5 sample messages |
Parameters
| Name | Type | Description |
|---|---|---|
| serviceIdrequired | string | Service ID |
Parameters
| Name | Type | Description |
|---|---|---|
| monthoptional | string | YYYY-MM |
Inventory — Extended
AI smart reorder, pricing optimization, CSV import, supplier management, barcode scanning, and inventory AI assistant.
Parameters
| Name | Type | Description |
|---|---|---|
| locationIdrequired | string | Store location |
| budgetoptional | decimal | Max reorder budget |
| urgencyDaysoptional | int | Stockout threshold days |
Parameters
| Name | Type | Description |
|---|---|---|
| itemIdsoptional | array | Items to optimize |
| targetMarginoptional | decimal | Desired margin % |
Parameters
| Name | Type | Description |
|---|---|---|
| filerequired | file | CSV (multipart/form-data) |
| modeoptional | string | create_only, update_only, upsert |
| locationIdrequired | string | Target location |
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Supplier name |
| contactEmailoptional | string | Contact email |
| leadTimeDaysoptional | int | Avg delivery days |
Parameters
| Name | Type | Description |
|---|---|---|
| questionrequired | string | Question |
| locationIdoptional | string | Store context |
Checkout & Payments
Stripe-powered checkout for subscriptions, purchases, and wallet top-ups.
Parameters
| Name | Type | Description |
|---|---|---|
| planIdrequired | string | Plan/product ID |
| successUrlrequired | string | Success redirect |
| cancelUrlrequired | string | Cancel redirect |
| couponCodeoptional | string | Discount code |
| trialDaysoptional | int | Free trial days |
Parameters
| Name | Type | Description |
|---|---|---|
| customerIdrequired | string | Stripe customer ID |
| returnUrlrequired | string | Return URL |
Certificate Generation
Professional PDF certificates with QR verification codes for LMS course completions.
Parameters
| Name | Type | Description |
|---|---|---|
| courseNamerequired | string | Course name |
| studentIdoptional | string | Student ID |
AI Workbench — Extended
Advanced AI-powered business tools: content writing, employee coaching, operations optimization, and saved analysis management.
Parameters
| Name | Type | Description |
|---|---|---|
| typerequired | string | blog_post, email, social, product_desc, newsletter |
| topicrequired | string | Content topic or brief |
| toneoptional | string | professional, casual, persuasive, informative |
| lengthoptional | string | short (100 words), medium (300), long (800) |
| audienceoptional | string | Target audience description |
| brandVoiceoptional | string | Brand voice guidelines |
Parameters
| Name | Type | Description |
|---|---|---|
| employeeIdrequired | string | Employee to coach |
| focusoptional | string | sales, service, leadership, operations |
| performanceDataoptional | object | Recent metrics: sales, satisfaction scores, attendance |
| formatoptional | string | summary, detailed_plan, quick_tips |
Parameters
| Name | Type | Description |
|---|---|---|
| locationIdrequired | string | Store location |
| metricsoptional | object | Operational metrics to analyze |
| periodoptional | string | Analysis period: 7d, 30d, 90d |
Parameters
| Name | Type | Description |
|---|---|---|
| typeoptional | string | data, image, advice, content, coaching |
| pageoptional | int | Page number |
CRM — Extended Operations
Advanced CRM capabilities: contact import, workflow automation, drip sequences, form management, smart segments, commission tracking, and revenue analytics.
Parameters
| Name | Type | Description |
|---|---|---|
| filerequired | file | CSV file (multipart) |
| mappingoptional | object | Column-to-field mapping |
| duplicateStrategyoptional | string | skip, update, create_new (default: skip) |
| defaultTagsoptional | array | Tags to apply to all imported contacts |
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Workflow name |
| triggerrequired | object | {event, conditions} that start the workflow |
| actionsrequired | array | Ordered action sequence |
| isActiveoptional | bool | Activate immediately (default: false) |
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Sequence name |
| channelrequired | string | email, sms, both |
| stepsrequired | array | Array of {content, delayDays, condition} |
| exitConditionoptional | string | When to stop: converted, unsubscribed, completed |
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Segment name |
| rulesrequired | array | Filter rules: [{field, operator, value}] |
| combineWithoptional | string | AND or OR logic (default: AND) |
Parameters
| Name | Type | Description |
|---|---|---|
| periodoptional | string | 7d, 30d, 90d, ytd |
| repIdoptional | string | Filter by sales rep |
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Form name |
| fieldsrequired | array | Form fields with types and validation |
| redirectUrloptional | string | Post-submission redirect |
| notifyEmailoptional | string | Email on new submission |
Parameters
| Name | Type | Description |
|---|---|---|
| periodoptional | string | monthly, quarterly, ytd |
| repIdoptional | string | Filter by rep |
Template Marketplace
Browse, purchase, install, and create agent templates and workflow automations. Revenue share model for template creators.
Parameters
| Name | Type | Description |
|---|---|---|
| categoryoptional | string | agent, workflow, email, campaign, bundle |
| industryoptional | string | restaurant, retail, fitness, healthcare... |
| sortoptional | string | popular, newest, price_asc, price_desc, rating |
| pageoptional | int | Page number |
Parameters
| Name | Type | Description |
|---|---|---|
| templateIdrequired | string | Template ID (URL path) |
| locationIdoptional | string | Target location (or all) |
| customSettingsoptional | object | Override default template settings |
Parameters
| Name | Type | Description |
|---|---|---|
| templateIdrequired | string | Template ID |
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Template name |
| descriptionrequired | string | Detailed description |
| categoryrequired | string | agent, workflow, email, campaign |
| industryrequired | array | Target industries |
| pricerequired | decimal | Price (0 for free) |
| configurationrequired | object | Template configuration data |
Tenant Administration
Manage your franchise tenant: team members, billing settings, usage quotas, location configuration, and platform settings.
Parameters
| Name | Type | Description |
|---|---|---|
| roleoptional | string | Filter: admin, manager, agent, viewer |
Parameters
| Name | Type | Description |
|---|---|---|
| emailrequired | string | Invitee email |
| rolerequired | string | admin, manager, agent, viewer |
| permissionsoptional | array | Specific permissions to grant |
| locationsoptional | array | Locations they can access |
Parameters
| Name | Type | Description |
|---|---|---|
| businessNameoptional | string | Business display name |
| timezoneoptional | string | IANA timezone (e.g., America/New_York) |
| notificationEmailoptional | string | Admin notification email |
| brandColoroptional | string | Hex color for branding |
Compliance — Extended
Full data governance: GDPR data export, right-to-deletion, consent audit trail, and compliance dashboard metrics.
Parameters
| Name | Type | Description |
|---|---|---|
| customerIdrequired | string | Customer ID |
| formatoptional | string | json, csv (default: json) |
Parameters
| Name | Type | Description |
|---|---|---|
| customerIdrequired | string | Customer ID |
| reasonoptional | string | customer_request, legal_requirement |
| retainAnonymizedoptional | bool | Keep anonymized records for analytics (default: true) |
Parameters
| Name | Type | Description |
|---|---|---|
| customerIdoptional | string | Filter by customer |
| typeoptional | string | opt_in, opt_out, deletion, ccpa, all |
| fromoptional | datetime | Start date |
| tooptional | datetime | End date |
Autopilot — Extended
Advanced Autopilot operations: A/B variant management, conversation threading, campaign editing, and lead conversation history.
Parameters
| Name | Type | Description |
|---|---|---|
| campaignIdrequired | string | Parent campaign |
| tonerequired | string | friendly, professional, urgent, casual |
| contentoptional | string | Message template with merge fields |
| trafficPercentoptional | int | Traffic allocation (auto-balanced if omitted) |
Parameters
| Name | Type | Description |
|---|---|---|
| leadIdrequired | string | Lead ID |
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | string | Campaign ID |
| statusoptional | string | active, paused, draft |
| audienceoptional | string | Updated segment ID |
| cadenceDaysoptional | array | Updated cadence |
LMS — Extended
Advanced training: curriculum tracks, prerequisite chains, team assignments, gradebook management, audio narration generation, and quiz assessment APIs.
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Track name |
| descriptionrequired | string | Track description |
| coursesrequired | array | Ordered array of course IDs |
| targetRoleoptional | string | new_hire, manager, all_staff |
| certificationOnCompleteoptional | bool | Issue certificate on completion |
Parameters
| Name | Type | Description |
|---|---|---|
| courseIdsrequired | array | Courses or track IDs to assign |
| assignTorequired | object | {roles, locations, employeeIds} filter |
| deadlineoptional | datetime | Completion deadline |
| mandatoryoptional | bool | Mark as required training |
Parameters
| Name | Type | Description |
|---|---|---|
| locationIdoptional | string | Filter by location |
| courseIdoptional | string | Filter by course |
| studentIdoptional | string | Single student detail |
Parameters
| Name | Type | Description |
|---|---|---|
| textrequired | string | Content to narrate |
| voiceoptional | string | en-US-Neural2-F, en-US-Neural2-D, etc. |
| speedoptional | decimal | Playback speed (0.5 - 2.0, default: 1.0) |
| languageoptional | string | Language code (default: en-US) |
Parameters
| Name | Type | Description |
|---|---|---|
| locationIdoptional | string | Filter by location |
| periodoptional | string | 7d, 30d, 90d, all |
| exportoptional | string | csv, pdf (omit for JSON) |
Parameters
| Name | Type | Description |
|---|---|---|
| quizIdrequired | string | Quiz ID |
| studentIdrequired | string | Student ID |
| answersrequired | array | Array of {questionId, selectedOption} |
Calendar Integration
Google Calendar sync for appointment management, availability checking, and .ics file generation.
Parameters
| Name | Type | Description |
|---|---|---|
| locationIdrequired | string | Franchise location |
| serviceTypeoptional | string | Service to book |
| dateFromrequired | date | Start date (YYYY-MM-DD) |
| dateTorequired | date | End date |
| providerIdoptional | string | Specific provider |
Parameters
| Name | Type | Description |
|---|---|---|
| locationIdrequired | string | Location to sync |
| directionoptional | string | push, pull, bidirectional (default: bidirectional) |
Marketing Hub
Centralized marketing command center: AI marketing advisor, campaign orchestration, asset management, competitive analysis, and multi-channel performance tracking.
Parameters
| Name | Type | Description |
|---|---|---|
| questionrequired | string | Marketing question |
| industryoptional | string | Your industry for context |
| budgetoptional | decimal | Marketing budget for recommendations |
Parameters
| Name | Type | Description |
|---|---|---|
| competitorsrequired | array | Competitor names or domains |
| analysisTypeoptional | string | pricing, social, reviews, comprehensive |
Franchise Locations
Manage franchise locations: add, update, and configure store settings, business hours, service areas, and staff assignments.
Parameters
| Name | Type | Description |
|---|---|---|
| statusoptional | string | active, inactive, coming_soon |
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Location name |
| addressrequired | object | {street, city, state, zip, country} |
| phoneoptional | string | Location phone |
| hoursoptional | object | Business hours by day of week |
| servicesoptional | array | Services offered at this location |
Alerts & Real-Time Monitoring
Configurable alert rules for inventory thresholds, revenue targets, fraud detection, appointment no-shows, and system health. Delivered via SMS, email, or in-app push.
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Alert name |
| metricrequired | string | revenue, inventory, fraud_score, no_shows, api_errors |
| conditionrequired | string | gt, lt, eq, change_pct |
| thresholdrequired | decimal | Threshold value |
| channelsrequired | array | sms, email, push |
| recipientsoptional | array | Phone/email of alert recipients |
Parameters
| Name | Type | Description |
|---|---|---|
| severityoptional | string | critical, warning, info |
Response Intelligence
AI-powered response suggestions for customer communications. Analyzes incoming messages and generates context-aware reply recommendations.
Parameters
| Name | Type | Description |
|---|---|---|
| messagerequired | string | Incoming customer message |
| customerIdoptional | string | Customer ID for context |
| channeloptional | string | sms, email, review, chat |
Revenue Tracking
Multi-source revenue aggregation across Stripe payments, POS transactions, agent-driven bookings, and marketplace sales.
Parameters
| Name | Type | Description |
|---|---|---|
| periodoptional | string | today, 7d, 30d, 90d, ytd |
| groupByoptional | string | source, location, product, day |
Smart Follow-Ups
AI-generated follow-up recommendations based on customer behavior, appointment history, and engagement patterns.
Parameters
| Name | Type | Description |
|---|---|---|
| limitoptional | int | Max recommendations (default: 25) |
| typeoptional | string | lapsed, post_visit, birthday, upsell |
SuperAdmin Platform APIs
Platform-level administration for CloudFran operators. Manage tenants, monitor platform health, track SaaS revenue, and configure global settings. Requires sk_admin_ API key.
Parameters
| Name | Type | Description |
|---|---|---|
| statusoptional | string | active, suspended, trial, cancelled |
| planoptional | string | starter, pro, enterprise |
Parameters
| Name | Type | Description |
|---|---|---|
| periodoptional | string | monthly, quarterly, yearly |
Parameters
| Name | Type | Description |
|---|---|---|
| tenantIdrequired | string | Tenant ID |
| planoptional | string | New plan |
| customQuotasoptional | object | Override default quotas |
| statusoptional | string | active, suspended |
Audio & Text-to-Speech
Generate high-quality voice audio for courses, agent responses, IVR prompts, and customer communications using Google Cloud TTS and OpenAI TTS.
Parameters
| Name | Type | Description |
|---|---|---|
| textrequired | string | Text to convert to speech |
| provideroptional | string | google_tts, openai_tts (default: google_tts) |
| voiceoptional | string | Voice ID (provider-specific) |
| formatoptional | string | mp3, wav, ogg (default: mp3) |
| speedoptional | decimal | Speed: 0.5-2.0 (default: 1.0) |
📞 Voice AI Receptionist
Inbound call handling with AI-powered voice receptionist. Google Neural2 voices, GPT-4 conversation intelligence, 22 industries, SMS confirmations, live dashboard, call recording, and multilingual auto-detection.
/api/voice-receptionist/inboundMain Twilio webhook — answers incoming calls with Neural2 voice greeting and speech gathering.
Form Parameters (from Twilio)
| Parameter | Type | Description |
|---|---|---|
CallSid | string | Twilio unique call identifier |
From | string | Caller phone (E.164) |
To | string | Called number (resolves tenant) |
Response: TwiML (application/xml)
<Response>
<Pause length="1"/>
<Gather input="speech dtmf" action="/api/voice-receptionist/respond?callSid=..."
speechTimeout="auto" language="en-US" speechModel="experimental_conversations">
<Say voice="Google.en-US-Neural2-F">Thank you for calling BigBurger! How may I help you?</Say>
</Gather>
<Redirect>/api/voice-receptionist/no-input?callSid=...</Redirect>
</Response>curl -X POST https://yourdomain.com/api/voice-receptionist/inbound \ -d "CallSid=test-001&From=+15551234567&To=+15559876543" \ -H "Content-Type: application/x-www-form-urlencoded"
/api/voice-receptionist/respond?callSid={id}Processes caller speech/DTMF during conversation. Detects intent (reservation, order, question, message, transfer, goodbye), manages conversation state, auto-switches language if non-English detected.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
callSid | string | Call identifier from inbound |
Form Parameters
| Parameter | Type | Description |
|---|---|---|
SpeechResult | string | Transcribed speech |
Confidence | decimal | Recognition confidence (0-1) |
Digits | string | DTMF digits (alternative) |
/api/voice-receptionist/statusCall completion callback. Saves transcript to VoiceCallSessions, broadcasts CallEnded via SignalR.
Form Parameters
| Parameter | Type | Description |
|---|---|---|
CallSid | string | Call identifier |
CallStatus | string | completed, failed, no-answer, busy |
CallDuration | string | Duration in seconds |
/api/voice-receptionist/recording-statusRecording completion callback. Stores MP3 recording URL in VoiceCallSessions for call log playback.
Form Parameters
| Parameter | Type | Description |
|---|---|---|
RecordingSid | string | Twilio recording ID |
RecordingUrl | string | URL to MP3 file |
RecordingStatus | string | completed, failed |
/api/voice-receptionist/active-calls?tenantId={id}Returns active calls for live dashboard. REST fallback when SignalR unavailable.
Response (JSON)
[{
"callSid": "CA1234567890abcdef",
"callerPhone": "+15551234567",
"intent": "MakeReservation",
"turnCount": 3,
"durationSeconds": 45,
"lastMessage": "Could you provide the name for the reservation?",
"language": "en"
}]/voicecallhubReal-time WebSocket hub for live call monitoring. Tenant-scoped groups.
Server → Client Events
| Event | Data | Trigger |
|---|---|---|
CallStarted | callSid, callerPhone, intent, turns, startedAt | New call answered |
CallUpdated | callSid, intent, turns, durationSeconds, lastMessage | Each turn |
CallEnded | callSid, outcome, durationSeconds, turns | Call completed |
Client → Server Methods
| Method | Parameters | Purpose |
|---|---|---|
JoinTenantGroup | tenantId (string) | Subscribe to call events |
LeaveTenantGroup | tenantId (string) | Unsubscribe |
Voice Receptionist Webhook Events
voice.receptionist.call_started voice.receptionist.booking_confirmed voice.receptionist.order_confirmed voice.receptionist.message_captured voice.receptionist.transfer_requested voice.receptionist.call_ended voice.receptionist.language_switched
HR & Payroll
Complete human resources management: employee directory, payroll processing, timeclock, benefits enrollment, FMLA/COBRA/Workers Comp tracking, I-9/W-4 compliance, staff scheduling, HR billing, and role-based access control (RBAC) with 108 granular permissions.
Parameters
| Name | Type | Description |
|---|---|---|
| statusoptional | string | active, inactive, terminated, onleave |
| departmentoptional | string | Filter by department name |
| locationoptional | string | Filter by franchise location |
| typeoptional | string | fulltime, parttime, contractor, seasonal |
Body Parameters
| Name | Type | Description |
|---|---|---|
| firstNamerequired | string | Employee first name |
| lastNamerequired | string | Employee last name |
| emailrequired | string | Employee email address |
| positionrequired | string | Job title |
| departmentrequired | string | Department name |
| payRaterequired | decimal | Pay rate (hourly or annual) |
| payTyperequired | string | hourly, salary |
| employmentTypeoptional | string | fulltime, parttime, contractor, seasonal |
| locationoptional | string | Franchise location assignment |
| startDateoptional | string | Start date (ISO 8601, default: today) |
Parameters
| Name | Type | Description |
|---|---|---|
| statusoptional | string | draft, processing, completed, voided |
| periodoptional | string | weekly, biweekly, semimonthly, monthly |
| afteroptional | string | Runs after date (ISO 8601) |
Body Parameters
| Name | Type | Description |
|---|---|---|
| payDaterequired | string | Pay date (ISO 8601) |
| periodStartrequired | string | Period start date |
| periodEndrequired | string | Period end date |
| includeEmployeesoptional | array | Employee IDs (default: all active) |
| autoProcessoptional | bool | Auto-process (default: false = draft) |
Body Parameters
| Name | Type | Description |
|---|---|---|
| employeeIdrequired | string | Employee ID |
| actionrequired | string | clock_in, clock_out, break_start, break_end |
| locationoptional | string | Franchise location |
| timestampoptional | string | Override time (ISO 8601, default: now) |
| noteoptional | string | Manager note or reason |
Parameters
| Name | Type | Description |
|---|---|---|
| weekOfoptional | string | Week start date (default: current) |
| locationoptional | string | Filter by location |
| departmentoptional | string | Filter by department |
Parameters
| Name | Type | Description |
|---|---|---|
| typeoptional | string | medical, dental, vision, life, retirement, hsa |
| statusoptional | string | active, pending, waived, cobra |
Parameters
| Name | Type | Description |
|---|---|---|
| categoryoptional | string | i9, w4, fmla, cobra, workers_comp, garnishments |
| urgencyoptional | string | critical, warning, info |
Parameters
| Name | Type | Description |
|---|---|---|
| periodoptional | string | current, last_month, ytd |
| includeInvoicesoptional | bool | Include Stripe invoices (default: false) |
Parameters
| Name | Type | Description |
|---|---|---|
| userIdoptional | string | Permissions for specific user |
| roleoptional | string | Permissions for a role |
Parameters
| Name | Type | Description |
|---|---|---|
| statusoptional | string | Filter: active, pending, suspended |
| tieroptional | string | Filter: starter, growth, enterprise |
Body Parameters
| Name | Type | Description |
|---|---|---|
| fullNamerequired | string | Applicant full name |
| emailrequired | string | Contact email |
| requestedTierrequired | string | Tier: starter, growth, enterprise |
| financingRequestedoptional | boolean | Request financing for setup fee |
Parameters
| Name | Type | Description |
|---|---|---|
| partnerIdrequired | string | Partner ID (e.g., BP-A1B2C3D4) |
Parameters
| Name | Type | Description |
|---|---|---|
| partnerIdrequired | string | Partner ID |
| periodoptional | string | Filter by period (YYYY-MM) |
Webhook Event Catalog
Subscribe to any of these events in your Webhook Management settings. Events are delivered as POST requests with JSON payloads and signature headers.
Agent Events
appointment.booked appointment.cancelled appointment.reminder sms.delivered sms.failed sms.opt_out voice.completed voice.failed fraud.alert superagent.query_complete
CRM Events
lead.created lead.qualified lead.converted customer.updated deal.stage_changed deal.won deal.lost campaign.completed
Loyalty Events
loyalty.points_earned loyalty.reward_redeemed loyalty.tier_changed loyalty.checkin loyalty.referral_complete wallet.funds_loaded wallet.transfer
Inventory Events
inventory.low_stock inventory.out_of_stock transfer.requested transfer.completed transfer.rejected
Exchange Events
project.posted proposal.submitted proposal.accepted milestone.completed dispute.filed payment.released
LMS Events
course.enrolled course.completed quiz.passed quiz.failed certificate.issued
HR & Payroll Events
hr.employee.hired hr.employee.terminated hr.employee.status_changed hr.payroll.run_completed hr.payroll.run_voided hr.timeclock.clock_in hr.timeclock.clock_out hr.timeclock.overtime_alert hr.benefits.enrolled hr.benefits.open_enrollment_start hr.fmla.leave_started hr.fmla.leave_ended hr.cobra.election_deadline hr.compliance.i9_expiring hr.compliance.document_due hr.workers_comp.claim_filed hr.scheduling.shift_published hr.scheduling.coverage_gap hr.billing.invoice_created hr.onboarding.task_overdue
HR & Payroll Events
hr.employee.hired hr.employee.terminated hr.employee.status_changed hr.payroll.run_completed hr.payroll.run_voided hr.timeclock.clock_in hr.timeclock.clock_out hr.timeclock.overtime_alert hr.benefits.enrolled hr.benefits.open_enrollment_start hr.fmla.leave_started hr.fmla.leave_ended hr.cobra.election_deadline hr.compliance.i9_expiring hr.compliance.document_due hr.workers_comp.claim_filed hr.scheduling.shift_published hr.scheduling.coverage_gap hr.billing.invoice_created hr.onboarding.task_overdue
Buildara Partner Events
buildara.application.submitted buildara.application.approved buildara.partner.activated buildara.revenue.recorded buildara.payout.completed buildara.financing.payment_due buildara.customer.onboarded
Billing Events
subscription.created subscription.renewed subscription.cancelled invoice.paid quota.warning quota.exceeded
Social Media
Omni-channel social management: schedule posts, analyze engagement, and manage brand presence across Facebook, Instagram, LinkedIn, and GBP.
Parameters
Parameters