# SetLuca Openapi API

**Canonical:** https://apis.io/apis/setluca-com/setluca-openapi-api/  
**Provider:** SetLuca — https://apis.io/providers/setluca-com/  
**Base URL:** https://api.setluca.com  
**Documentation:** https://github.com/setluca/luca-mcp

SetLuca Openapi API is one of 2 APIs that [SetLuca](https://apis.io/providers/setluca-com/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 6 JSON Schemas.

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

## Operations (60 of 437)

| Method | Path | Summary |
|---|---|---|
| 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 |

…and 377 more operations. The page lists the first 250; the full set of 437 is in the OpenAPI linked below.

## Machine-readable artifacts (7)

- **OpenAPI** — https://artifacts.apis.io/setluca-com/openapi/_original/setluca-com-openapi-openapi.json
- **JSONSchema** — https://artifacts.apis.io/setluca-com/json-schema/setluca-com-conversation-detail-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/setluca-com/json-schema/setluca-com-broadcast-detail-schema.json
- **JSONSchema** — https://artifacts.apis.io/setluca-com/json-schema/setluca-com-review-list-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/setluca-com/json-schema/setluca-com-provider-lab-fault-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/setluca-com/json-schema/setluca-com-campaign-detail-schema.json
- **JSONSchema** — https://artifacts.apis.io/setluca-com/json-schema/setluca-com-campaign-generate-response-schema.json

## Other SetLuca APIs (1)

- [SetLuca API](https://apis.io/apis/setluca-com/setluca-com-api/)

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/setluca-com` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/setluca-com/setluca-openapi-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/setluca-com/.
