{"name":"LeadTitan Control API","origin":"https://leadtitan.pro","docs":"https://leadtitan.pro/api","openapi":"https://leadtitan.pro/api/openapi.json","auth":{"header":"X-Api-Key","alt":"Authorization: Bearer <LEADTITAN_API_KEY>","env":"Optional Hostinger fallback LEADTITAN_API_KEY. Prefer Settings → API in the CRM.","actorEnv":"LEADTITAN_API_USER_EMAIL","note":"The key acts as that approved admin. Same permissions as logging into the CRM as that user. Keep it secret — it can create jobs, text customers, and change settings.","rateLimit":"60 requests/minute per key (429 + Retry-After)","forbidden":"API keys cannot start phone calls, capture cards, or POST /api/stripe/create-checkout. Job payment links and payment-status sync are allowed per company. Platform create-bill returns payment links only.","audit":"Mutating requests append a row to control_api_audit_log (key prefix, path, actor).","companyHeader":"Optional X-Company-Id for routes scoped to “current company”. Per-company phone routes use :companyId in the path — company keys may only use their own id; platform admin may use any company id."},"loginFallback":{"path":"https://leadtitan.pro/api/session","method":"POST","body":{"email":"admin@example.com","password":"your-password"},"then":"Use session.access_token as Authorization: Bearer"},"endpoints":[{"method":"GET","path":"/api/control","purpose":"Who the API key is acting as","url":"https://leadtitan.pro/api/control"},{"method":"GET","path":"/api/control/key","purpose":"Show whether this admin has an API key (prefix only)","url":"https://leadtitan.pro/api/control/key"},{"method":"POST","path":"/api/control/key","purpose":"Generate or replace this admin API key (plaintext shown once)","url":"https://leadtitan.pro/api/control/key"},{"method":"DELETE","path":"/api/control/key","purpose":"Revoke this admin API key","url":"https://leadtitan.pro/api/control/key"},{"method":"GET","path":"/api/profiles/me","purpose":"Current actor profile","url":"https://leadtitan.pro/api/profiles/me"},{"method":"GET","path":"/api/profiles","purpose":"List team (admins + techs)","url":"https://leadtitan.pro/api/profiles"},{"method":"POST","path":"/api/profiles/create","purpose":"Create a user login","url":"https://leadtitan.pro/api/profiles/create"},{"method":"GET","path":"/api/jobs","purpose":"List open jobs","url":"https://leadtitan.pro/api/jobs"},{"method":"GET","path":"/api/jobs/search?q=","purpose":"Search jobs by name, phone, address, code","url":"https://leadtitan.pro/api/jobs/search?q="},{"method":"GET","path":"/api/jobs/:id","purpose":"Get one job","url":"https://leadtitan.pro/api/jobs/:id"},{"method":"POST","path":"/api/jobs","purpose":"Create a job (admin). Needs customer_name, job_type, assigned_tech_id unless draft (no phone).","url":"https://leadtitan.pro/api/jobs"},{"method":"PATCH","path":"/api/jobs/:id","purpose":"Update a job","url":"https://leadtitan.pro/api/jobs/:id"},{"method":"POST","path":"/api/jobs/:id/close","purpose":"Close a job","url":"https://leadtitan.pro/api/jobs/:id/close"},{"method":"GET","path":"/api/jobs/follow-ups","purpose":"Scheduled follow-ups","url":"https://leadtitan.pro/api/jobs/follow-ups"},{"method":"GET","path":"/api/jobs/appointments","purpose":"Appointments","url":"https://leadtitan.pro/api/jobs/appointments"},{"method":"GET","path":"/api/leads","purpose":"Lead inbox","url":"https://leadtitan.pro/api/leads"},{"method":"PATCH","path":"/api/leads/:id","purpose":"Update a lead","url":"https://leadtitan.pro/api/leads/:id"},{"method":"POST","path":"/api/leads/:id/approve","purpose":"Approve lead → job","url":"https://leadtitan.pro/api/leads/:id/approve"},{"method":"GET","path":"/api/companies/mine","purpose":"Companies you belong to + active company id","url":"https://leadtitan.pro/api/companies/mine"},{"method":"GET","path":"/api/companies/:id","purpose":"One company + review-replies add-on status/quote (admin)","url":"https://leadtitan.pro/api/companies/:id"},{"method":"GET","path":"/api/brands","purpose":"Companies / trade names (businesses)","url":"https://leadtitan.pro/api/brands"},{"method":"GET","path":"/api/marketing/status","purpose":"Google connection: Ads, GMB, locations for current business (?business=)","url":"https://leadtitan.pro/api/marketing/status"},{"method":"POST","path":"/api/marketing/lsa/ads/status","purpose":"Turn Google Ads on/off (ENABLED/PAUSED) — same path as UI","url":"https://leadtitan.pro/api/marketing/lsa/ads/status"},{"method":"POST","path":"/api/marketing/gbp/sync","purpose":"Sync Google Business Profile / Maps listings","url":"https://leadtitan.pro/api/marketing/gbp/sync"},{"method":"GET","path":"/api/marketing/review-auto-reply","purpose":"Review reply settings + add-on status","url":"https://leadtitan.pro/api/marketing/review-auto-reply"},{"method":"PATCH","path":"/api/marketing/review-auto-reply","purpose":"Update review reply settings (enabled, ai_enabled, reply_style, templates)","url":"https://leadtitan.pro/api/marketing/review-auto-reply"},{"method":"GET","path":"/api/marketing/review-auto-reply/replies","purpose":"Recent review_replies log","url":"https://leadtitan.pro/api/marketing/review-auto-reply/replies"},{"method":"POST","path":"/api/marketing/review-auto-reply/poll","purpose":"Run GBP review check now (shared throttle + cooldown)","url":"https://leadtitan.pro/api/marketing/review-auto-reply/poll"},{"method":"GET","path":"/api/platform/companies","purpose":"Platform admin: all companies + review add-on state","url":"https://leadtitan.pro/api/platform/companies"},{"method":"GET","path":"/api/platform/companies/:id/review-addon","purpose":"Platform admin: add-on quote/status for one company","url":"https://leadtitan.pro/api/platform/companies/:id/review-addon"},{"method":"PUT","path":"/api/platform/companies/:id/review-addon","purpose":"Platform admin: activate/deactivate add-on + pricing overrides","url":"https://leadtitan.pro/api/platform/companies/:id/review-addon"},{"method":"POST","path":"/api/platform/companies/:id/review-addon/create-bill","purpose":"Platform admin: Stripe payment link only (never auto-charge)","url":"https://leadtitan.pro/api/platform/companies/:id/review-addon/create-bill"},{"method":"PUT","path":"/api/platform/review-addon/pricing","purpose":"Platform admin: global review add-on pricing defaults","url":"https://leadtitan.pro/api/platform/review-addon/pricing"},{"method":"GET","path":"/api/platform/phone-number/pricing","purpose":"Platform admin: default phone number purchase/monthly fees (cents)","url":"https://leadtitan.pro/api/platform/phone-number/pricing"},{"method":"PUT","path":"/api/platform/phone-number/pricing","purpose":"Platform admin: update default phone number fees","url":"https://leadtitan.pro/api/platform/phone-number/pricing"},{"method":"GET","path":"/api/platform/companies/:id/phone-policy","purpose":"Platform admin: owned-number limit + billing exemptions for one company","url":"https://leadtitan.pro/api/platform/companies/:id/phone-policy"},{"method":"PUT","path":"/api/platform/companies/:id/phone-policy","purpose":"Platform admin: patch max_owned_phone_numbers, phone_billing_waived_until, billing/limit exempt, price overrides","url":"https://leadtitan.pro/api/platform/companies/:id/phone-policy"},{"method":"POST","path":"/api/platform/google-reviewer-demo/seed","purpose":"Platform admin: idempotent Google OAuth reviewer demo company (REVIEWER_PASSWORD env)","url":"https://leadtitan.pro/api/platform/google-reviewer-demo/seed"},{"method":"GET","path":"/api/leads?status=&source=","purpose":"Lead inbox with filters (new, contacted, booked, archived, source, …)","url":"https://leadtitan.pro/api/leads?status=&source="},{"method":"POST","path":"/api/leads/:id/approve","purpose":"Approve lead → job (booked flow)","url":"https://leadtitan.pro/api/leads/:id/approve"},{"method":"POST","path":"/api/leads/:id/archive","purpose":"Archive lead (+ Google LSA sync when linked)","url":"https://leadtitan.pro/api/leads/:id/archive"},{"method":"POST","path":"/api/marketing/lsa/lead-action","purpose":"LSA Booked / Archive / Rate on a CRM job (action, surveyAnswer, reason)","url":"https://leadtitan.pro/api/marketing/lsa/lead-action"},{"method":"GET","path":"/api/leads/messages/unassigned","purpose":"Inbound SMS threads not yet on a lead","url":"https://leadtitan.pro/api/leads/messages/unassigned"},{"method":"GET","path":"/api/settings","purpose":"Office settings","url":"https://leadtitan.pro/api/settings"},{"method":"PATCH","path":"/api/settings","purpose":"Update office settings","url":"https://leadtitan.pro/api/settings"},{"method":"GET","path":"/api/companies/:companyId/phone-lines","purpose":"List phone lines (extension + forward) for a company (own company or platform admin)","url":"https://leadtitan.pro/api/companies/:companyId/phone-lines"},{"method":"GET","path":"/api/companies/:companyId/phone-lines/:lineId","purpose":"Get one phone line","url":"https://leadtitan.pro/api/companies/:companyId/phone-lines/:lineId"},{"method":"POST","path":"/api/companies/:companyId/phone-lines","purpose":"Attach/create a phone line","url":"https://leadtitan.pro/api/companies/:companyId/phone-lines"},{"method":"PATCH","path":"/api/companies/:companyId/phone-lines/:lineId","purpose":"Update line (forward target, numbers, label); line_type main promotes extension","url":"https://leadtitan.pro/api/companies/:companyId/phone-lines/:lineId"},{"method":"POST","path":"/api/companies/:companyId/phone-lines/:lineId/make-main","purpose":"Set Extension (main) line — one per company","url":"https://leadtitan.pro/api/companies/:companyId/phone-lines/:lineId/make-main"},{"method":"POST","path":"/api/companies/:companyId/phone-lines/:lineId/make-caller-id","purpose":"Set Customer caller ID (notification_phone) from this line","url":"https://leadtitan.pro/api/companies/:companyId/phone-lines/:lineId/make-caller-id"},{"method":"POST","path":"/api/companies/:companyId/phone-lines/:lineId/disable","purpose":"Disable a forward line (not Extension)","url":"https://leadtitan.pro/api/companies/:companyId/phone-lines/:lineId/disable"},{"method":"GET","path":"/api/companies/:companyId/phone-settings","purpose":"Read company_phone, notification_phone (caller ID), assistant_phone","url":"https://leadtitan.pro/api/companies/:companyId/phone-settings"},{"method":"PATCH","path":"/api/companies/:companyId/phone-settings","purpose":"Patch phone settings fields (same rules as Settings UI)","url":"https://leadtitan.pro/api/companies/:companyId/phone-settings"},{"method":"GET","path":"/api/companies/:companyId/text-verification","purpose":"Text verification (10DLC) status and form state for a company","url":"https://leadtitan.pro/api/companies/:companyId/text-verification"},{"method":"PUT","path":"/api/companies/:companyId/text-verification","purpose":"Save text verification draft (EIN encrypted; campaign_phones = company-owned E.164 list)","url":"https://leadtitan.pro/api/companies/:companyId/text-verification"},{"method":"GET","path":"/api/companies/:companyId/text-verification/quote","purpose":"One-time 10DLC pass-through fee quote before submit","url":"https://leadtitan.pro/api/companies/:companyId/text-verification/quote"},{"method":"POST","path":"/api/companies/:companyId/text-verification/submit","purpose":"Submit brand/campaign to SignalWire (confirmFee: true required)","url":"https://leadtitan.pro/api/companies/:companyId/text-verification/submit"},{"method":"POST","path":"/api/companies/:companyId/text-verification/refresh","purpose":"Poll carrier status for text verification","url":"https://leadtitan.pro/api/companies/:companyId/text-verification/refresh"},{"method":"PUT","path":"/api/companies/:companyId/text-verification/billing","purpose":"Platform admin: waive/comp/override text verification fees for one company","url":"https://leadtitan.pro/api/companies/:companyId/text-verification/billing"},{"method":"GET","path":"/api/companies/:companyId/text-verification/charges","purpose":"Ledger of Text verification charges for one company","url":"https://leadtitan.pro/api/companies/:companyId/text-verification/charges"},{"method":"GET","path":"/api/settings/outbound-caller-id","purpose":"Caller ID options for Call via App (customer vs company line) and saved preference","url":"https://leadtitan.pro/api/settings/outbound-caller-id"},{"method":"PUT","path":"/api/settings/outbound-caller-id","purpose":"Save default outbound caller ID mode (customer | company) for the signed-in user","url":"https://leadtitan.pro/api/settings/outbound-caller-id"},{"method":"GET","path":"/api/company-sms/threads","purpose":"SMS threads for the company (grouped by customer + company line); platform admin may pass companyId","url":"https://leadtitan.pro/api/company-sms/threads"},{"method":"GET","path":"/api/company-sms/threads/messages","purpose":"Messages in one SMS thread (customerPhone + companyLine query params)","url":"https://leadtitan.pro/api/company-sms/threads/messages"},{"method":"POST","path":"/api/company-sms/threads/send","purpose":"Send SMS from the company approved line (403 texting_not_approved until verification Approved)","url":"https://leadtitan.pro/api/company-sms/threads/send"},{"method":"POST","path":"/api/media/sign","purpose":"Sign tenant-media refs or authorize legacy URLs for viewer access (session company)","url":"https://leadtitan.pro/api/media/sign"},{"method":"POST","path":"/api/media/sign-batch","purpose":"Hydrate media_urls array to short-lived signed viewer URLs","url":"https://leadtitan.pro/api/media/sign-batch"},{"method":"GET","path":"/api/jobs/:id/photos","purpose":"List private job photos with signed thumbnail/full URLs","url":"https://leadtitan.pro/api/jobs/:id/photos"},{"method":"POST","path":"/api/jobs/:id/photos","purpose":"Upload job photos (base64 imageData + optional thumbnailData)","url":"https://leadtitan.pro/api/jobs/:id/photos"},{"method":"DELETE","path":"/api/jobs/photos/:photoId","purpose":"Delete a job photo (admin only)","url":"https://leadtitan.pro/api/jobs/photos/:photoId"},{"method":"GET","path":"/api/companies/:companyId/admin-experience","purpose":"Settings sections enabled/locked for this company admin","url":"https://leadtitan.pro/api/companies/:companyId/admin-experience"},{"method":"GET","path":"/api/companies/:companyId/control-panel","purpose":"Platform admin: company control summary (plan, card, phones, Google, texting)","url":"https://leadtitan.pro/api/companies/:companyId/control-panel"},{"method":"PATCH","path":"/api/companies/:companyId/platform-controls","purpose":"Platform admin: toggle features, extend trial","url":"https://leadtitan.pro/api/companies/:companyId/platform-controls"},{"method":"GET","path":"/api/reports/summary","purpose":"Reports summary","url":"https://leadtitan.pro/api/reports/summary"},{"method":"GET","path":"/api/expenses","purpose":"Expenses (filter, month, category). Pending items are not in totals.","url":"https://leadtitan.pro/api/expenses"},{"method":"POST","path":"/api/expenses","purpose":"Add an expense. repeat_monthly also saves a recurring rule.","url":"https://leadtitan.pro/api/expenses"},{"method":"GET","path":"/api/expenses/rules","purpose":"Recurring expense rules","url":"https://leadtitan.pro/api/expenses/rules"},{"method":"POST","path":"/api/expenses/recurring/run","purpose":"Run the recurring expense job for this company (admin)","url":"https://leadtitan.pro/api/expenses/recurring/run"},{"method":"POST","path":"/api/expenses/:id/assign-brand","purpose":"Assign an expense to a brand (tenant-scoped, audited)","url":"https://leadtitan.pro/api/expenses/:id/assign-brand"},{"method":"POST","path":"/api/signalwire/sms/send","purpose":"Send SMS via SignalWire (admin). From is masked to +12398375392. Delivery can still fail until 10DLC is Approved.","url":"https://leadtitan.pro/api/signalwire/sms/send"},{"method":"POST","path":"/api/vonage/sms/send","purpose":"Deprecated alias — forwards to SignalWire. Vonage SMS is retired.","url":"https://leadtitan.pro/api/vonage/sms/send"},{"method":"GET","path":"/api/vonage/status","purpose":"Voice / numbers status","url":"https://leadtitan.pro/api/vonage/status"},{"method":"GET","path":"/api/settings/call-history","purpose":"Call history","url":"https://leadtitan.pro/api/settings/call-history"},{"method":"GET","path":"/api/health","purpose":"Uptime (no API key required)","url":"https://leadtitan.pro/api/health"},{"method":"POST","path":"/api/stripe/create-payment-link","purpose":"Create Checkout payment link(s) for a job (card + ACH when enabled); fees passed to customer","url":"https://leadtitan.pro/api/stripe/create-payment-link"},{"method":"POST","path":"/api/stripe/sync-job-payment","purpose":"Read-only Stripe payment status sync for a job (no card capture)","url":"https://leadtitan.pro/api/stripe/sync-job-payment"},{"method":"POST","path":"/api/stripe/override-paid-job-lock","purpose":"Admin: clear stale checkout lock when session expired/unpaid; audit-logged","url":"https://leadtitan.pro/api/stripe/override-paid-job-lock"},{"method":"POST","path":"/api/intake/extract","purpose":"AI read pasted text/photo into job fields (never saves; confirm with POST /api/jobs)","url":"https://leadtitan.pro/api/intake/extract"},{"method":"GET","path":"/api/intake/status","purpose":"AI intake configured + daily quota for active company","url":"https://leadtitan.pro/api/intake/status"},{"method":"GET","path":"/api/company-features/ai-catalog","purpose":"Hosted AI features: env model keys and platform defaults","url":"https://leadtitan.pro/api/company-features/ai-catalog"},{"method":"GET","path":"/api/company-features/ai-usage","purpose":"Per-company daily AI usage vs limits for all features","url":"https://leadtitan.pro/api/company-features/ai-usage"},{"method":"PATCH","path":"/api/company-features/ai-limits","purpose":"Platform admin: set per-company AI daily/monthly limits by feature","url":"https://leadtitan.pro/api/company-features/ai-limits"},{"method":"PATCH","path":"/api/company-features/intake-ai-quota","purpose":"Platform admin: set per-company daily AI intake limit (legacy alias)","url":"https://leadtitan.pro/api/company-features/intake-ai-quota"},{"method":"POST","path":"/api/company-features/follow-up-automation/suggest-wording","purpose":"AI suggest follow-up SMS wording (hosted model + daily cap)","url":"https://leadtitan.pro/api/company-features/follow-up-automation/suggest-wording"},{"method":"GET","path":"/api/company-features/entitlements","purpose":"SaaS tier feature flags for active company","url":"https://leadtitan.pro/api/company-features/entitlements"},{"method":"GET","path":"/api/company-features/analytics-report","purpose":"CRM + Google local ads analytics (report-only)","url":"https://leadtitan.pro/api/company-features/analytics-report"},{"method":"GET","path":"/api/company-features/missed-call-text","purpose":"Missed-call SMS auto-reply settings","url":"https://leadtitan.pro/api/company-features/missed-call-text"},{"method":"PATCH","path":"/api/company-features/missed-call-text","purpose":"Update missed-call SMS template and toggle","url":"https://leadtitan.pro/api/company-features/missed-call-text"},{"method":"GET","path":"/api/company-features/follow-up-automation","purpose":"Auto follow-up schedule and templates","url":"https://leadtitan.pro/api/company-features/follow-up-automation"},{"method":"PATCH","path":"/api/company-features/follow-up-automation","purpose":"Update auto follow-up automation","url":"https://leadtitan.pro/api/company-features/follow-up-automation"},{"method":"POST","path":"/api/company-features/follow-up-automation/enqueue","purpose":"Enqueue follow-up series for a job/lead","url":"https://leadtitan.pro/api/company-features/follow-up-automation/enqueue"},{"method":"GET","path":"/api/company-features/webhooks","purpose":"List outbound webhook endpoints (Zapier)","url":"https://leadtitan.pro/api/company-features/webhooks"},{"method":"POST","path":"/api/company-features/webhooks","purpose":"Create or update a webhook endpoint","url":"https://leadtitan.pro/api/company-features/webhooks"},{"method":"DELETE","path":"/api/company-features/webhooks/:id","purpose":"Delete a webhook endpoint","url":"https://leadtitan.pro/api/company-features/webhooks/:id"},{"method":"GET","path":"/api/company-features/activity-log","purpose":"Owner-only company activity log","url":"https://leadtitan.pro/api/company-features/activity-log"},{"method":"GET","path":"/api/company-features/booking","purpose":"Online booking page settings + public URL","url":"https://leadtitan.pro/api/company-features/booking"},{"method":"PATCH","path":"/api/company-features/booking","purpose":"Update online booking settings","url":"https://leadtitan.pro/api/company-features/booking"},{"method":"GET","path":"/api/company-features/review-requests/status","purpose":"Review-request send eligibility for a closed job","url":"https://leadtitan.pro/api/company-features/review-requests/status"},{"method":"POST","path":"/api/company-features/review-requests/send","purpose":"Send review link SMS for completed jobs (add-on)","url":"https://leadtitan.pro/api/company-features/review-requests/send"},{"method":"GET","path":"/api/jobs/:id/customer-photo-request","purpose":"Photo request readiness for a job (same as lead Ask for photos)","url":"https://leadtitan.pro/api/jobs/:id/customer-photo-request"},{"method":"POST","path":"/api/jobs/:id/customer-photo-request","purpose":"Send booking-style photo request SMS for a job","url":"https://leadtitan.pro/api/jobs/:id/customer-photo-request"},{"method":"POST","path":"/api/company-features/customers/reopen","purpose":"One-tap reopen past customer as new job","url":"https://leadtitan.pro/api/company-features/customers/reopen"},{"method":"GET","path":"/api/company-features/service-plans","purpose":"Recurring service plans","url":"https://leadtitan.pro/api/company-features/service-plans"},{"method":"POST","path":"/api/company-features/service-plans","purpose":"Create/update recurring service plan","url":"https://leadtitan.pro/api/company-features/service-plans"},{"method":"PATCH","path":"/api/company-features/saas-tier","purpose":"Platform admin: set company tier and comp overrides","url":"https://leadtitan.pro/api/company-features/saas-tier"},{"method":"PATCH","path":"/api/company-features/max-plan-limits","purpose":"Platform admin: per-company Max plan included calls and overage cents/call","url":"https://leadtitan.pro/api/company-features/max-plan-limits"}],"createJobExample":{"method":"POST","url":"https://leadtitan.pro/api/jobs","headers":{"Content-Type":"application/json","X-Api-Key":"<LEADTITAN_API_KEY>"},"body":{"customer_name":"Jane Doe","customer_phone":"+18135551212","customer_address":"123 Main St, Tampa, FL","job_type":"Locksmith","company_brand":"keys_now_locksmith","notes":"Locked out of Honda Civic","assigned_tech_id":"<tech profile uuid from GET /api/profiles>","source":"manual"}}}