SetLuca Openapi API

The Luca API is the same surface the coach dashboard runs on. Every endpoint is

GitHub OpenAPI

Operations 437

Showing the first 250 of 437. The full set is in the contract, and via get_provider_operations.

POST /api/onboarding/pending-email Change the email on a sign-up that is waiting for confirmation #
GET /api/connect/{token} Read a client connect link #
POST /api/connect/{token}/start Start the client's login #
GET /api/connect/selection/{selection} Read the Pages a client can pick from #
POST /api/connect/selection/{selection}/pick Connect the Page the client picked #
GET /api/conversations/search Search message text across the coach's conversations #
GET /api/memory/recall Recall the coach-level facts that match a question #
GET /api/leads/{id}/best-send-time Suggest the hour a lead is most likely to reply #
GET /api/leads/count Count the coach's leads #
GET /api/analytics/top-leads List the highest-scoring leads #
GET /api/analytics/funnel-insights Get call outcomes and objections for a window #
GET /api/voice/signals Get how the coach reviewed Luca's drafts lately #
GET /api/voice/edit-distance Get the spread of the coach's edits to Luca's drafts #
GET /api/voice/heavy-edits List the drafts the coach rewrote the most #
GET /api/bookings/capabilities Get what the booking provider can do #
POST /api/replies/rewrite Rewrite a queued draft #
GET /api/ab-tests List the coach's A/B tests #
POST /api/ab-tests Create a sales-framework A/B test #
POST /api/ab-tests/objection Create an objection-strategy A/B test #
GET /api/ab-tests/{id} Get an A/B test with per-variant stats #
POST /api/ab-tests/{id}/start Start an A/B test #
POST /api/ab-tests/{id}/pause Pause an A/B test #
POST /api/ab-tests/{id}/stop Stop an A/B test #
POST /api/ab-tests/{id}/adopt Adopt a completed A/B test's winning framework #
GET /api/framework-performance Get the coach's framework objection-performance snapshot #
GET /api/learning-proposals List the coach's learning proposals #
POST /api/learning-proposals/{id}/dismiss Dismiss a learning proposal #
GET /api/coaches/me Read the current coach profile #
PATCH /api/coaches/me Update name, timezone, business hours, or tone slider #
GET /api/coaches/niche-profile Read the coach's niche & offer profile #
PUT /api/coaches/niche-profile Replace the coach's niche & offer profile #
GET /api/coaches/niche Read the coach's canonical niche (benchmark cohort key) #
PUT /api/coaches/niche Set the coach's canonical niche (benchmark cohort key) #
PUT /api/coaches/sell-framework Set (or clear) the coach's sales framework #
POST /api/coaches/niche-profile/extract-framework Parse a coach's free-text sales-process description into a candidate custom framework for preview #
GET /api/coaches/objection-playbook Read the coach's objection playbook #
PUT /api/coaches/objection-playbook Replace the coach's objection playbook #
GET /api/coaches/post-call-settings Read the coach's post-call preferences #
PUT /api/coaches/post-call-settings Update the coach's post-call preferences #
GET /api/coaches/post-call-crm-mapping Read the coach's post-call CRM field mapping #
PUT /api/coaches/post-call-crm-mapping Update the coach's post-call CRM field mapping #
GET /api/coaches/post-call-deal-sync Read the coach's post-call CRM deal-stage sync config #
PUT /api/coaches/post-call-deal-sync Update the coach's post-call CRM deal-stage sync config #
GET /api/analytics/call-intelligence Post-call intelligence: show rate, ratings, day-of-week, surprises #
GET /api/analytics/call-intelligence/calls Recent post-call summaries, most recent first #
GET /api/analytics/learning-insights Read-only rollup of agent-improvement signals from call feedback #
GET /api/analytics/crm-sync-health Aggregate CRM-sync health for the coach's call summaries #
GET /api/analytics/context Read safe PostHog analytics context #
GET /api/analytics/funnel Read the coach's lead funnel for a period #
GET /api/analytics/revenue Read the coach's AI-attributed revenue and plan ROI for a period #
GET /api/analytics/speed-impact Read fast-vs-slow first-reply booking-rate impact for a period #
GET /api/analytics/forecast Read a point-in-time pipeline revenue forecast #
GET /api/analytics/ghosted-leads Read ghosted-lead counts, recovery rate, and top conversation killers #
GET /api/analytics/trust-score Read draft approval/edit/rejection rates and auto-send gate state #
GET /api/analytics/trends Read the coach's weekly metrics as a trend series #
GET /api/analytics/lead-score/{leadId} Score one of the coach's leads against the trained predictive lead-scoring model #
GET /api/analytics/loss-reasons Read the category breakdown of automatic per-lead loss analyses for a period #
GET /api/analytics/recommendations Read the coach's active prescriptive recommendations for a week #
GET /api/analytics/content-attribution Read the per-content rollup (leads, qualified, booked, revenue) of attributed touches for a period #
GET /api/analytics/content-performance Read the per-post rollup (reach, engagement, leads, bookings, revenue) for a period #
GET /api/analytics/topic-performance Read the per-topic weekly rollup (engagement, leads, bookings, revenue) for a week #
GET /api/analytics/benchmarks Read the coach's cross-coach benchmark percentiles, if any #
GET /api/analytics/benchmark-consent Read the coach's cross-coach benchmark opt-in state #
PUT /api/analytics/benchmark-consent Set the coach's cross-coach benchmark opt-in state #
GET /api/analytics/objections Read the objection-bucket rollup over the review queue's signals #
GET /api/analytics/objections/{type} Read the per-conversation drilldown for one objection bucket #
GET /api/privacy/agreements/history Read your recorded terms acceptances #
GET /api/privacy/agreements Read your current terms acceptance #
POST /api/privacy/agreements Accept the published terms for your own account #
GET /api/privacy/advertising Read your account advertising choice #
PUT /api/privacy/advertising Change your account advertising choice #
GET /api/copilot/chats List recent copilot chats for the session coach #
POST /api/copilot/chats Create a persisted copilot chat after the first user message #
PATCH /api/copilot/chats/{chatId} Update copilot chat metadata #
DELETE /api/copilot/chats/{chatId} Archive a copilot chat #
POST /api/copilot/chats/{chatId}/token Mint a Cloudflare Think chat token #
POST /api/copilot/events Record safe client-side Copilot telemetry #
POST /api/copilot/threads/{threadId}/actions Stage an action proposal for the coach to approve #
GET /api/copilot/threads/{threadId}/actions List the action proposals of a thread #
PATCH /api/copilot/threads/{threadId}/actions/{actionId} Edit the fields of a staged action proposal #
GET /api/copilot/threads/{threadId}/actions/{actionId} Read the durable decision for an owned staged action #
POST /api/copilot/threads/{threadId}/actions/{actionId}/confirm Confirm a staged copilot action proposal #
POST /api/copilot/threads/{threadId}/actions/{actionId}/retry Retry the steps of a plan proposal that did not succeed #
POST /api/copilot/threads/{threadId}/actions/{actionId}/discard Discard a staged copilot action proposal #
GET /api/voice List the coach's voice corpus entries #
POST /api/voice Append a voice corpus entry #
GET /api/voice/profile Read a non-verbatim summary of the coach's voice fingerprint #
POST /api/voice/bulk Append multiple voice corpus entries for one channel #
DELETE /api/voice/{id} Remove a voice corpus entry #
PATCH /api/voice/{id} Edit a voice sample #
POST /api/voice/refresh Bump the voice fingerprint version #
GET /api/workspaces List every workspace the caller belongs to, regardless of the active workspace header #
POST /api/workspaces Create or recover the caller's personal workspace #
GET /api/workspaces/overview List the caller's workspaces with their connected channels and waiting drafts, for the workspace chooser #
GET /api/bootstrap/navigation Read the signed-in session, workspaces, coach profile, and terms status in one request #
GET /api/onboarding/status Check onboarding completion gates #
POST /api/onboarding/answer Save one discovery answer the moment it's given #
POST /api/onboarding/attribution Capture signup attribution once, on the first onboarding render #
POST /api/onboarding/step Record the furthest wizard step reached, for exact-step resume #
POST /api/onboarding/segment Save who the account is for #
POST /api/onboarding/client-name Name the client an agency sets Luca up for #
POST /api/onboarding/where-sell Save where leads message the coach #
POST /api/onboarding/what-sell Save what the coach sells and how people buy #
POST /api/onboarding/show-me-first Skip Connect and see an example first #
POST /api/onboarding/connect-telegram Connect a Telegram bot during onboarding #
POST /api/onboarding/instagram-preflight Check an Instagram handle before sending the coach through OAuth #
POST /api/onboarding/connection-check Check a connected channel again #
POST /api/onboarding/channel-waitlist Join a coming-soon channel waitlist #
POST /api/onboarding/channel-access Ask for access to a channel account another workspace holds #
POST /api/onboarding/seed-voice-corpus Seed the voice corpus from sample messages #
POST /api/onboarding/complete Collect a card for a seven-day trial through Autumn #
POST /api/onboarding/discount-code Check a discount code against the selected trial plan #
POST /api/onboarding/trial/activate Activate a trial after Stripe stores the card #
GET /api/onboarding/value The demo See Luca work shows #
POST /api/onboarding/value/try Ask Luca a question on See Luca work #
POST /api/onboarding/inbox-read Read the inbox of the newly connected channel #
GET /api/onboarding/inbox-read How far the inbox read has got #
POST /api/onboarding/volume Save the conversations-per-month band #
POST /api/onboarding/delegations Ask a client to connect a channel #
DELETE /api/onboarding/delegations/{id} Revoke a client connect link #
POST /api/onboarding/client-approval Ask the client to approve the setup #
GET /api/setup Set up Luca state #
POST /api/setup/start Start the Set up Luca first run #
GET /api/setup/steps/{step} One Set up Luca step #
PUT /api/setup/steps/{step} Save one Set up Luca step #
POST /api/setup/steps/{step}/confirm Confirm one Set up Luca step #
GET /api/setup/status Where the coach is in Set up Luca #
POST /api/setup/step Record the step the coach opened #
POST /api/setup/business/files Upload one file for Luca to read #
DELETE /api/setup/business/files/{id} Remove a file that is not part of a settled read #
POST /api/setup/business/reads Start reading the coach's links and files #
POST /api/setup/business/brief Save the no-link answers and read them #
GET /api/setup/business/reads/{id} How far a read has got #
GET /api/setup/business/sources Every source of the coach's reads, with what they found #
DELETE /api/setup/business/sources/{id} Take a source off the coach's reads #
GET /api/setup/business/review What Luca found about the business, ready to review #
POST /api/setup/business/confirm Confirm the business review #
GET /api/setup/booking Read the Booking step #
POST /api/setup/booking Save the Booking step #
GET /api/setup/step-in Read how Luca reaches the coach #
POST /api/setup/step-in Save how Luca reaches the coach #
POST /api/setup/preview Preview how Luca answers #
POST /api/setup/tell Turn a change in the coach's words into a draft of the step's fields #
GET /api/setup/versions Set up Luca versions #
GET /api/setup/versions/{version} One Set up Luca version #
POST /api/setup/versions/{version}/restore Restore one Set up Luca version #
POST /api/setup/versions/{version}/undo Undo a first-run confirm #
PUT /api/setup/send-modes/{channelAccountId} Change one channel's send mode #
GET /api/setup/go-live/summary What the coach set up, and the plan's reply allowance #
POST /api/setup/live-dialog-seen Mark the You're live dialog as seen #
GET /api/setup/go-live What Go live would send #
POST /api/setup/go-live Go live #
GET /api/setup/live Replies around Go live #
POST /api/setup/live/test Mark a conversation as a test #
POST /api/setup/live/test/undo Undo a test mark #
POST /api/setup/approve Approve the setup as the client #
GET /api/setup/first-week The first-week banner and next steps #
POST /api/setup/first-week/dismiss Hide the Get more from Luca list #
GET /api/setup/source-change Changes the weekly re-read found in the coach's sources #
POST /api/setup/source-change/ignore Set the weekly re-read's changes aside #
POST /api/setup/business/read-again Read the coach's links again #
POST /api/cancellation/start Open a cancellation-flow session #
GET /api/cancellation/context Everything the cancellation flow UI needs in one read #
POST /api/cancellation/survey Record the cancellation reason (and optional free text) #
POST /api/cancellation/confirm Execute the cancellation #
POST /api/cancellation/reactivate Un-cancel before period end, reactivate after churn, or resume a legacy pause #
POST /api/cancellation/founder-call Record that the coach clicked the founder-call link #
GET /api/first-run First-session state for the trial coach #
GET /api/first-run/value Real-time trial value dashboard metrics #
POST /api/first-run/growth-template-copied Record that the coach took a growth story template #
POST /api/first-run/pipeline-module-shown Record that the pipeline-building module reached this coach #
GET /api/capabilities Describe public API capabilities for external clients #
GET /api/leads List the coach's leads #
POST /api/leads Create or update a lead by external channel identity #
GET /api/leads/field-definitions List custom lead field definitions #
POST /api/leads/field-definitions Create or update a custom lead field definition #
POST /api/leads/imports/preview Preview a mapped CSV lead import #
POST /api/leads/imports/apply Apply a mapped CSV lead import #
GET /api/leads/{id}/explain Explain why a lead qualified the way it did #
GET /api/leads/{id} Get a lead's full timeline and notes #
PATCH /api/leads/{id} Update display name or tags #
POST /api/leads/{id}/draft Draft a voice-matched reply for a lead and queue it for review #
POST /api/leads/{id}/identities Attach a verified or claimed identity to a lead #
POST /api/leads/{id}/consents Grant explicit lead consent for a channel purpose #
POST /api/leads/{id}/consents/revoke Revoke lead consent for a channel purpose #
POST /api/leads/{id}/cadence/pause Pause (cancel) the lead's rescue cadence #
POST /api/leads/{id}/notes Append a coach note to a lead #
DELETE /api/leads/{id}/notes/{noteId} Delete a coach note #
POST /api/leads/{id}/drafting/pause Pause everything Luca drafts or sends for one lead #
POST /api/leads/{id}/drafting/resume Resume everything Luca drafts or sends for one lead #
GET /api/insights List the coach's proactive-insights feed #
GET /api/insights/unread-count Read the coach's unread-insights badge count #
POST /api/insights/{id}/read Mark an insight as read #
POST /api/insights/{id}/dismiss Dismiss an insight #
POST /api/insights/{id}/action Mark an insight as actioned #
GET /api/insights/settings Read the coach's alert-delivery settings #
PUT /api/insights/settings Merge-patch the coach's alert-delivery settings #
GET /api/integrations/provider-lab List dev-only Provider Lab scenarios #
POST /api/integrations/provider-lab/apply Apply a dev-only Provider Lab scenario #
POST /api/integrations/provider-lab/faults Arm a named dev-only Provider Lab fault #
POST /api/integrations/provider-lab/reset Reset dev-only Provider Lab state #
GET /api/integrations/connectors List automation connectors and CRM providers #
GET /api/integrations/crm/providers/{provider}/oauth-url Create a CRM provider OAuth URL #
POST /api/integrations/crm/oauth/callback Exchange a CRM OAuth code and store encrypted credentials #
POST /api/integrations/crm/connections/{id}/disconnect Disconnect a CRM account #
GET /api/integrations/crm/connections List CRM connections #
POST /api/integrations/crm/connections Create or update CRM connection #
GET /api/integrations/crm/connections/{id}/schema Discover CRM provider schema #
POST /api/integrations/crm/connections/{id}/health Probe CRM provider health #
POST /api/integrations/crm/connections/{id}/webhooks/setup Configure CRM provider webhook status #
POST /api/integrations/crm/connections/{id}/mappings/suggest Suggest CRM field mappings #
PUT /api/integrations/crm/connections/{id}/mappings Confirm CRM field mappings #
POST /api/integrations/crm/connections/{id}/sync-runs Create CRM sync preview #
GET /api/integrations/crm/connections/{id}/sync-runs List CRM sync history #
POST /api/integrations/crm/webhooks/{provider} Record an idempotent CRM provider webhook #
GET /api/integrations/events List integration event log #
GET /api/knowledge/sources List connected knowledge sources #
POST /api/knowledge/sources Connect a new knowledge source #
DELETE /api/knowledge/sources/{id} Disconnect a knowledge source #
POST /api/knowledge/sources/{id}/sync Request an on-demand sync for a knowledge source #
GET /api/knowledge/suggestions List profile suggestions produced from knowledge sources #
POST /api/knowledge/suggestions/{id}/approve Approve a profile suggestion and apply it to the coach profile #
POST /api/knowledge/suggestions/{id}/reject Reject a profile suggestion #
GET /api/webhook-events List recent webhook events of one type #
GET /api/webhook-subscriptions List webhook subscriptions #
POST /api/webhook-subscriptions Create webhook subscription #
PATCH /api/webhook-subscriptions/{id} Update webhook subscription #
DELETE /api/webhook-subscriptions/{id} Delete webhook subscription #
POST /api/webhook-subscriptions/test-delivery Queue a canonical test webhook event #
GET /api/webhook-subscriptions/deliveries List webhook deliveries #
GET /api/webhook-subscriptions/signature-guide Describe webhook HMAC verification #
POST /api/webhook-subscriptions/deliveries/{deliveryId}/replay Replay one webhook delivery #
POST /api/webhook-subscriptions/events/{eventId}/replay Replay one event to one or all matching active subscriptions #
POST /api/webhook-subscriptions/events/replay Bulk replay events by type and time range #
GET /api/memory List coach long-term memories #
POST /api/memory Add a long-term memory #
PATCH /api/memory/{id} Update a long-term memory #
DELETE /api/memory/{id} Archive a long-term memory #
POST /api/memory/bulk Archive or restore multiple long-term memories #
GET /api/memory/learned List what Luca learned #
POST /api/memory/learned/{id}/confirm Confirm a learned fact #
POST /api/memory/learned/{id}/reject Reject a learned fact #
GET /api/oauth-connections List the coach's connected agents (active OAuth connections) #
DELETE /api/oauth-connections/{id} Revoke a connected agent and kill its vended API key #
POST /api/mobile/devices Register or update a mobile push device #
DELETE /api/mobile/devices/{id} Disable a mobile push device #
GET /api/mobile/preferences Read mobile notification preferences #
PATCH /api/mobile/preferences Update mobile notification preferences #
GET /api/bookings/providers List booking provider capabilities and health #
POST /api/bookings/providers/{provider}/connection Connect or reconnect a booking provider #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/setluca-com:setluca-openapi-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

setluca-com-openapi-openapi.json Raw ↑
{
  "openapi": "3.1.0",
  "info": {
    "title": "Luca API",
    "version": "1.0.0",
    "description": "The Luca API is the same surface the coach dashboard runs on. Every endpoint is\nscoped to one coach, and every response is JSON.\n\n## Authentication\n\nTwo credentials work. A Better Auth session cookie (`luca.session_token`) is\nwhat the dashboard uses. An organization API key is what everything else uses.\nsend it as `x-api-key`, or as `Authorization: Bearer <key>`.\n\nThe two are not interchangeable. An API key only reaches the endpoints on the\npublished allowlist, and only with the scopes granted to that key. Endpoints\ndocumented as session-only exist for the dashboard and return 403 to a key, no\nmatter its scopes. Each operation below lists which credentials it accepts.\n\nMint and revoke keys under **API keys**. `GET /api/capabilities` returns the\nlive list of what the calling credential can reach, which is cheaper than\nprobing.\n\n## Workspaces\n\nA user in more than one workspace picks one per request with\n`x-luca-workspace-id` or `x-luca-workspace-slug`. Omit both and the request\nresolves to the caller's default workspace.\n\n## Errors\n\nEvery failure returns the same envelope, on every status:\n\n```json\n{\n  \"error\": {\n    \"code\": \"lead_not_found\",\n    \"message\": \"lead not found\",\n    \"requestId\": \"01JD…\",\n    \"details\": null\n  }\n}\n```\n\nBranch on `error.code`, never on `error.message`. The message is written for\na human and can change. Quote `requestId` in a support ticket and we can find\nthe exact request.\n\nThe statuses worth handling specifically:\n\n| Status | What it means |\n| --- | --- |\n| 401 | No usable credential. |\n| 402 | The workspace is unpaid, past due, or cannot fund the requested work. |\n| 403 | The plan tier or the key's scopes do not include this endpoint. |\n| 409 | An idempotency key was reused with a different request body. |\n| 429 | Rate limited. 120 requests per coach per minute, sliding window. |\n\n## Idempotency\n\nMutations that create or launch something accept an `Idempotency-Key` header,\nand some require it. A replayed key returns the original response with\n`Idempotency-Replayed: true` instead of acting twice. Keys are held for 24\nhours.\n\n## Rate limits\n\n120 requests per coach per minute, per endpoint, on a sliding window.\n\nEvery response under `/api` carries the quota policy. Every response that\nreached the counter also carries the live state:\n\n| Header | Meaning |\n| --- | --- |\n| `RateLimit-Policy` | The quota in effect, as `\"default\";q=120;w=60`. |\n| `RateLimit` | What is left, as `\"default\";r=<remaining>;t=<seconds to reset>`. |\n| `RateLimit-Limit` | The same quota as a bare integer. |\n| `RateLimit-Remaining` | Requests left in the current window. |\n| `RateLimit-Reset` | Seconds until the current window rolls over. |\n| `Retry-After` | On a 429 only. Seconds to wait before retrying. |\n\n`RateLimit-Policy` and `RateLimit` follow the IETF RateLimit header fields\ndraft. The `-Limit`/`-Remaining`/`-Reset` triple ships alongside them because\nmost SDKs still read that spelling. A request refused before it is attributed\nto a coach, such as an unauthenticated 401, carries the policy without the live\nstate: there is no counter to report yet.\n\n`RateLimit-Reset` and `Retry-After` count the seconds left in the current\nwindow rather than a whole window, so a client that waits does not wait longer\nthan the limiter would have held it.\n\n## Webhooks\n\nSubscribe to events under **Webhooks** instead of polling.\n`GET /api/webhook-subscriptions/signature-guide` returns the signing scheme\nand a verification example.\n\n## Versioning\n\nThis is version 1 of the API. Every response carries `Luca-API-Version: 1`, and\n`info.version` in this document is the spec revision within that major version.\n\nInside a major version we only make additive changes: new endpoints, new\noptional request fields, new properties on an existing response. Treat unknown\nresponse properties as forgiving — do not fail a parse because a field you have\nnot seen appeared. Anything that would break a correct client (removing a field,\nnarrowing a type, changing a status code, tightening validation) ships as a new\nmajor version on a new path prefix, and version 1 keeps serving.\n\nSend `Luca-API-Version: 1` on a request to assert the major version you built\nagainst. Naming any other major version is refused with 400\n`unsupported_api_version`, rather than served by a version that does not match\nwhat the client expects. Omit the header and the request is served by version 1.\n\n## Deprecation\n\nA retiring endpoint is announced on the endpoint itself, so a running\nintegration finds out without anyone reading a changelog. Two response headers\ncarry it:\n\n| Header | Meaning |\n| --- | --- |\n| `Deprecation` | An HTTP date. The endpoint is deprecated as of this date and still works. |\n| `Sunset` | An HTTP date. After this the endpoint stops answering. |\n\n`Deprecation` follows RFC 9745, `Sunset` follows RFC 8594. A deprecated\noperation is also marked `deprecated: true` in this document, so a generated\nclient can surface it at build time. Watch for both headers and alert on them."
  },
  "externalDocs": {
    "description": "Luca developer documentation",
    "url": "https://setluca.com/developers"
  },
  "tags": [
    {
      "name": "Capabilities",
      "description": "What the calling credential can actually reach. Read this first. It answers the scope and plan-tier question for the current key without probing every endpoint for a 403."
    },
    {
      "name": "Debug",
      "description": "Inspect how a recent inbound message moved through the pipeline. Diagnostic only, and session-only."
    },
    {
      "name": "Leads",
      "description": "People who messaged the coach. A lead carries the score, stage, consents, notes, and custom fields, and is the anchor every conversation, booking, and campaign enrollment hangs off. Bulk import lives here too. Preview first, then apply."
    },
    {
      "name": "Conversations",
      "description": "Message threads with a lead, across every connected channel. Sending here writes to the real channel, so an auto-send-disabled workspace should queue a draft through the review queue instead."
    },
    {
      "name": "Review queue",
      "description": "Drafts waiting for the coach: approve, reject, or restore them. Luca-drafted DM replies auto-send by default, so a reply lands here when its channel is in review mode, the message is urgent, the account's health blocks sending, or the coach drafted it on demand. `explain` returns why Luca wrote what it wrote."
    },
    {
      "name": "Memory",
      "description": "Durable facts Luca carries between conversations about a coach or a lead. Editing memory changes future drafts."
    },
    {
      "name": "Bookings",
      "description": "Scheduled calls and their outcomes. Covers the booking record, the pre-call brief, guest links, and the outcome each call is closed with."
    },
    {
      "name": "Booking types",
      "description": "The call types a coach offers: duration, attendees, and the schedule each one is bookable on."
    },
    {
      "name": "Booking providers",
      "description": "Connections to Calendly, Cal.com, iClosed, GoHighLevel, or a manual link, plus the calendars and availability they expose."
    },
    {
      "name": "Call events",
      "description": "What happened on a call: recording-derived summaries, feedback, CRM push, and outcome corrections."
    },
    {
      "name": "Campaigns",
      "description": "Multi-step outreach a lead is enrolled into. Draft, simulate against real provider capabilities, publish, then read per-enrollment timelines."
    },
    {
      "name": "Broadcasts",
      "description": "One message to a segment. Preview and approve before launch. You can pause a launched broadcast, but sent messages don't come back."
    },
    {
      "name": "Cadences",
      "description": "Silent-lead rescue. Starts the follow-up sequence for leads who went quiet."
    },
    {
      "name": "A/B tests",
      "description": "Split tests over drafted replies and objection handling. A winner can be adopted into the live playbook."
    },
    {
      "name": "Voice",
      "description": "The voice fingerprint: the corpus of the coach's own writing that every draft is matched against. This is a visible product surface, not backend plumbing: changing it visibly changes how Luca sounds."
    },
    {
      "name": "Knowledge",
      "description": "Source material Luca can cite: offers, program details, and FAQs. Suggestions are Luca proposing new knowledge it inferred; they take effect only once approved."
    },
    {
      "name": "Objections",
      "description": "The objection playbook: recurring objections and the responses that work on them."
    },
    {
      "name": "Learning",
      "description": "What Luca has learned from outcomes: proposed prompt changes awaiting review, and how each sales framework is performing."
    },
    {
      "name": "Copilot",
      "description": "Ask Luca, the in-app chat agent. Chats, streaming tokens, and the confirm/discard step for actions it proposes taking."
    },
    {
      "name": "Analytics",
      "description": "The measurement surface: funnel, revenue, forecast, speed-to-lead, objections, call intelligence, content attribution, and cross-workspace benchmarks. Benchmarks require explicit consent."
    },
    {
      "name": "Insights",
      "description": "The proactive feed. Luca surfaces something worth acting on, and the coach reads, acts on, or dismisses it."
    },
    {
      "name": "Reports",
      "description": "Prepared rollups: the morning report and the scorecard."
    },
    {
      "name": "Audit log",
      "description": "Who changed what, and when. Every mutation that touches coach-visible state writes a row here."
    },
    {
      "name": "Channels",
      "description": "Telegram, Instagram, Messenger, and WhatsApp connections."
    },
    {
      "name": "Integrations",
      "description": "The connector catalog and the integration event stream."
    },
    {
      "name": "CRM",
      "description": "CRM connections: OAuth, field mappings, schema discovery, sync runs, and connection health."
    },
    {
      "name": "OAuth connections",
      "description": "Third-party authorizations granted to this workspace, and revoking them."
    },
    {
      "name": "Webhooks",
      "description": "Outbound event delivery. Subscribe, inspect deliveries, replay a failed one, and verify signatures with the signing guide."
    },
    {
      "name": "Coach profile",
      "description": "The coach record and how they sell: niche, sales framework, objection playbook, and post-call CRM behavior."
    },
    {
      "name": "Onboarding",
      "description": "First-time setup: profile, channel connection, voice corpus seeding, and preferences."
    },
    {
      "name": "Workspaces",
      "description": "List the workspaces the signed-in user belongs to, and create or recover their personal workspace."
    },
    {
      "name": "First run",
      "description": "The trial coach's first-session state and the value Luca has produced so far."
    },
    {
      "name": "Settings",
      "description": "Workspace behavior toggles: auto-send, multi-part drafts, the tool belt, and voice settings."
    },
    {
      "name": "Team members",
      "description": "Invite people to a workspace, change their role and extra permissions, remove them, and accept or decline an invitation."
    },
    {
      "name": "Privacy",
      "description": "The signed-in user's own choices: terms acceptance and the account advertising choice. API keys cannot call these routes."
    },
    {
      "name": "API keys",
      "description": "Create, scope, and revoke the organization API keys this API accepts. A key is shown once, at creation."
    },
    {
      "name": "Mobile",
      "description": "Push device registration and notification preferences. Notifications carry routing metadata only, never message or draft text."
    },
    {
      "name": "Account safety",
      "description": "The health of a workspace's channel connections against platform rate limits and behavioral limits."
    },
    {
      "name": "Billing",
      "description": "Subscription state, Stripe Checkout, the customer portal, and message top-up packs."
    },
    {
      "name": "Usage",
      "description": "Month-to-date operational usage. Customer allowances and remaining capacity are available from the billing usage projection."
    },
    {
      "name": "Cancellation",
      "description": "The cancel flow: context, retention offer, survey, confirmation, and reactivation."
    }
  ],
  "x-tagGroups": [
    {
      "name": "Platform",
      "tags": [
        "Capabilities",
        "Debug"
      ]
    },
    {
      "name": "Leads & conversations",
      "tags": [
        "Leads",
        "Conversations",
        "Review queue",
        "Memory"
      ]
    },
    {
      "name": "Booking & calls",
      "tags": [
        "Bookings",
        "Booking types",
        "Booking providers",
        "Call events"
      ]
    },
    {
      "name": "Outreach",
      "tags": [
        "Campaigns",
        "Broadcasts",
        "Cadences",
        "A/B tests"
      ]
    },
    {
      "name": "Voice & training",
      "tags": [
        "Voice",
        "Knowledge",
        "Objections",
        "Learning"
      ]
    },
    {
      "name": "Ask Luca",
      "tags": [
        "Copilot"
      ]
    },
    {
      "name": "Insights & reporting",
      "tags": [
        "Analytics",
        "Insights",
        "Reports",
        "Audit log"
      ]
    },
    {
      "name": "Channels & integrations",
      "tags": [
        "Channels",
        "Integrations",
        "CRM",
        "OAuth connections",
        "Webhooks"
      ]
    },
    {
      "name": "Account & setup",
      "tags": [
        "Coach profile",
        "Workspaces",
        "Onboarding",
        "First run",
        "Settings",
        "Team members",
        "Privacy",
        "API keys",
        "Mobile",
        "Account safety"
      ]
    },
    {
      "name": "Billing",
      "tags": [
        "Billing",
        "Usage",
        "Cancellation"
      ]
    }
  ],
  "components": {
    "schemas": {
      "PendingEmailResponse": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          }
        },
        "required": [
          "email"
        ]
      },
      "PendingEmailRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "format": "email"
          }
        },
        "required": [
          "email"
        ],
        "additionalProperties": false
      },
      "ConnectLinkResponse": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "active",
              "used",
              "revoked",
              "expired",
              "invalid"
            ]
          },
          "workspaceName": {
            "type": [
              "string",
              "null"
            ]
          },
          "channel": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "instagram",
              "messenger",
              null
            ]
          },
          "expiresAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        },
        "required": [
          "state",
          "workspaceName",
          "channel",
          "expiresAt"
        ]
      },
      "ConnectLinkStartResponse": {
        "type": "object",
        "properties": {
          "authorizationUrl": {
            "type": "string"
          }
        },
        "required": [
          "authorizationUrl"
        ]
      },
      "ConnectLinkPagesResponse": {
        "type": "object",
        "properties": {
          "workspaceName": {
            "type": [
              "string",
              "null"
            ]
          },
          "channel": {
            "type": "string",
            "enum": [
              "instagram",
              "messenger"
            ]
          },
          "pages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ]
            }
          }
        },
        "required": [
          "workspaceName",
          "channel",
          "pages"
        ]
      },
      "ConnectLinkPickResponse": {
        "type": "object",
        "properties": {
          "result": {
            "type": "string",
            "enum": [
              "connected"
            ]
          }
        },
        "required": [
          "result"
        ]
      },
      "ConnectLinkPickRequest": {
        "type": "object",
        "properties": {
          "pageId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "pageId"
        ],
        "additionalProperties": false
      },
      "ConversationSearchResponse": {
        "type": "object",
        "properties": {
          "hits": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "messageId": {
                  "type": "string"
                },
                "leadId": {
                  "type": "string"
                },
                "leadName": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "channel": {
                  "type": "string"
                },
                "direction": {
                  "type": "string"
                },
                "body": {
                  "type": "string"
                },
                "at": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "messageId",
                "leadId",
                "leadName",
                "channel",
                "direction",
                "body",
                "at"
              ]
            }
          }
        },
        "required": [
          "hits"
        ]
      },
      "CopilotRecallResponse": {
        "type": "object",
        "properties": {
          "hits": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "trustLevel": {
                  "type": "string",
                  "enum": [
                    "manual",
                    "trusted_pipeline"
                  ]
                }
              },
              "required": [
                "id",
                "content",
                "source",
                "trustLevel"
              ]
            }
          }
        },
        "required": [
          "hits"
        ]
      },
      "LeadBestSendTimeResponse": {
        "type": "object",
        "properties": {
          "suggestedHourUtc": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "maximum": 23
          },
          "sampleSize": {
            "type": "integer"
          },
          "confidence": {
            "type": "string",
            "enum": [
              "none",
              "low",
              "medium"
            ]
          },
          "histogram": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "hourUtc": {
                  "type": "integer"
                },
                "count": {
                  "type": "integer"
                }
              },
              "required": [
                "hourUtc",
                "count"
              ]
            }
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "suggestedHourUtc",
          "sampleSize",
          "confidence",
          "histogram",
          "note"
        ]
      },
      "LeadsCountResponse": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          }
        },
        "required": [
          "count"
        ]
      },
      "TopLeadsResponse": {
        "type": "object",
        "properties": {
          "leads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "channel": {
                  "type": "string"
                },
                "displayName": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "stage": {
                  "type": "string"
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "score": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "lastSeenAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "channel",
                "displayName",
                "stage",
                "tags",
                "score",
                "createdAt",
                "lastSeenAt"
              ]
            }
          }
        },
        "required": [
          "leads"
        ]
      },
      "FunnelInsightsResponse": {
        "type": "object",
        "properties": {
          "outcomesByChannel": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "channel": {
                  "type": "string"
                },
                "won": {
                  "type": "number"
                },
                "lost": {
                  "type": "number"
                },
                "notAFit": {
                  "type": "number"
                }
              },
              "required": [
                "channel",
                "won",
                "lost",
                "notAFit"
              ]
            }
          },
          "objectionBuckets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bucket": {
                  "type": "string"
                },
                "count": {
                  "type": "number"
                }
              },
              "required": [
                "bucket",
                "count"
              ]
            }
          }
        },
        "required": [
          "outcomesByChannel",
          "objectionBuckets"
        ]
      },
      "VoiceSignalsResponse": {
        "type": "object",
        "properties": {
          "signalCounts": {
            "type": "object",
            "properties": {
              "approved": {
                "type": "integer"
              },
              "edited": {
                "type": "integer"
              },
              "rejected": {
                "type": "integer"
              }
            },
            "required": [
              "approved",
              "edited",
              "rejected"
            ]
          },
          "avgEditDistance": {
            "type": [
              "number",
              "null"
            ]
          },
          "recentVoiceCorpus": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "content": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "source",
                "content",
                "createdAt"
              ]
            }
          }
        },
        "required": [
          "signalCounts",
          "avgEditDistance",
          "recentVoiceCorpus"
        ]
      },
      "VoiceEditDistanceResponse": {
        "type": "object",
        "properties": {
          "sampleSize": {
            "type": "integer"
          },
          "avgDistance": {
            "type": [
              "number",
              "null"
            ]
          },
          "medianDistance": {
            "type": [
              "number",
              "null"
            ]
          },
          "p90Distance": {
            "type": [
              "number",
              "null"
            ]
          },
          "windowDays": {
            "type": "integer"
          }
        },
        "required": [
          "sampleSize",
          "avgDistance",
          "medianDistance",
          "p90Distance",
          "windowDays"
        ]
      },
      "VoiceHeavyEditsResponse": {
        "type": "object",
        "properties": {
          "heavyEdits": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "reviewQueueId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "editDistance": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "draftBody": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "reviewQueueId",
                "editDistance",
                "draftBody",
                "createdAt"
              ]
            }
          }
        },
        "required": [
          "heavyEdits"
        ]
      },
      "BookingCapabilitiesResponse": {
        "type": "object",
        "properties": {
          "capabilities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "provider": {
                  "type": "string"
                },
                "operations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "operation": {
                        "type": "string"
                      },
                      "support": {
                        "type": "string",
                        "enum": [
                          "direct",
                          "handoff",
                          "unsupported"
                        ]
                      }
                    },
                    "required": [
                      "operation",
                      "support"
                    ]
                  }
                },
                "editableFields": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "provider",
                "operations",
                "editableFields"
              ]
            }
          }
        },
        "required": [
          "capabilities"
        ]
      },
      "ReplyRewriteResponse": {
        "type": "object",
        "properties": {
          "reviewItemId": {
            "type": "string"
          },
          "leadId": {
            "type": "string"
          },
          "originalBody": {
            "type": "string"
          },
          "proposedBody": {
            "type": "string"
          },
          "voiceMatch": {
            "type": "number"
          },
          "criticFlags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "reviewItemId",
          "leadId",
          "originalBody",
          "proposedBody",
          "voiceMatch",
          "criticFlags"
        ]
      },
      "ReplyRewriteRequest": {
        "type": "object",
        "properties": {
          "reviewItemId": {
            "type": "string",
            "format": "uuid"
          },
          "instruction": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          }
        },
        "required": [
          "reviewItemId",
          "instruction"
        ]
      },
      "AbTestListResponse": {
        "type": "object",
        "properties": {
          "tests": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "coachId": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string"
                },
                "description": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "draft",
                    "running",
                    "paused",
                    "completed",
                    "archived"
                  ]
                },
                "testType": {
                  "type": "string",
                  "enum": [
                    "message_copy",
                    "objection_strategy",
                    "tone",
                    "opening",
                    "cta_type",
                    "offer_presentation",
                    "voice_vs_text",
                    "sales_framework",
                    "multi_stage"
                  ]
                },
                "variantA": {
                  "type": "object",
                  "properties": {
                    "frameworkId": {
                      "type": "string"
                    },
                    "objectionType": {
                      "type": "string"
                    },
                    "strategy": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                },
                "variantB": {
                  "type": "object",
                  "properties": {
                    "frameworkId": {
                      "type": "string"
                    },
                    "objectionType": {
                      "type": "string"
                    },
                    "strategy": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                },
                "trafficSplit": {
                  "type": "integer"
                },
                "successMetric": {
                  "type": "string",
                  "enum": [
                 

# --- truncated at 32 KB (2565 KB total) ---
# Full source: https://artifacts.apis.io/setluca-com/openapi/_original/setluca-com-openapi-openapi.json