Skip to content

IntegrationsCRM · Beta

LeadPerfection API integration

Put LeadPerfection in your product or your AI agent. Truto handles the sign-in and the token refresh, and keeps the connection working after launch.

Built for specific customer use cases. Issues are resolved quickly.

Elaichi

From the team behind Truto

Control plane for MCP servers

Put your team’s own apps to work in their AI. Connect an app once, and everyone’s AI can use it.

Works in

  • Each person’s AI gets exactly their access. Nothing more.
  • Share an app with your team, not a password.
  • Every call is checked and logged.

No credit card required · 1000+ apps

01Proxy API

Call the LeadPerfection API directly. Every endpoint, through Truto.

Truto’s Proxy API is a 1-to-1 mapping of the LeadPerfection API. You call us, we call LeadPerfection, and pass the response back in the same cycle. Truto handles authentication and token refresh.

On every plan, including Free.

How the Proxy API works

Proxy APILeadPerfection

GEThttps://api.truto.one/proxy/leads?integrated_account_id=…

  • GET/proxy/jobs
  • GET/proxy/employees
  • GET/proxy/customers

LeadPerfection’s own response, passed back

02MCP server

LeadPerfection tools for any AI agent. Any MCP client, or the agent you build.

Whatever your agent runs on, it gets LeadPerfection tools for each customer’s account: through an MCP server, or straight from the tools API.

On every plan, including Free.

What an agent can doin LeadPerfection
  • TokenCreate
  • LeadsList, Create, List inbound history, Data list deprecated
  • Lead forward lookList
  • Lead lookup tablesList
  • Lead appointmentsCreate, Create with sales rep
  • Sales lookup tablesList
  • JobsList, Find id, Find id v2, Get sales detail, Update sales detail, Add image, List images, List status changes
  • Job notesList, Create
  • Job commissionCreate
  • Job paymentCreate
  • Job costsCreate, Update cost
  • Sales openList
  • Sales scheduleList
  • EmployeesList
  • CustomersList, List v2, List v3, List by prospect id, List lead info, Update customer, Update prospect info, Update dnc status
  • Call historyCreate, Process xml
  • NotesCreate, Process xml
  • Prospect dataList, List lead, List milestones, List sales appointments, List service appointments
  • Dialer queue leadsList, List long
  • SalesAppointments list calendar, Appointments list by day, Appointments get detail, Appointments list details by date range, Appointments update results, Appointments add image
  • InstallerAppointments list calendar, Appointments list by day, Appointments get detail, Jobs get detail, Jobs list open
  • WebFiles download
Show tool names58 tools, for developers
  • create_a_lead_perfection_tokenCreate an authentication token required by all other LeadPerfection REST API requests. The token expires 24 hours after generation and must be refreshed periodically.
  • create_a_lead_perfection_leadAdd a lead to the inbound lead queue in LeadPerfection, the preferred API method with access to all lead fields including contact info, phones, product interest, and appointment details. Returns the created lead record with content-type-specific fields (id, attributes).
  • list_all_lead_perfection_leadsRetrieve limited information on all leads added to the inbound leads queue during the current day in LeadPerfection. Returns inbound lead records with content-type-specific fields (id, attributes). Deprecated — use GetInboundLeadInfo instead.
  • lead_perfection_leads_list_inbound_historyRetrieve inbound lead history from LeadPerfection within a date range, optionally filtered by promoter or log number. Returns: data (array of inbound lead status records for the Source codes you have access to). Dates must be in MM/DD/YYYY format.
  • lead_perfection_lead_data_list_deprecatedRetrieve a list of leads from LeadPerfection by date range or Issued Lead ID. Returns: data. This endpoint is deprecated; use Customers/GetLead for the current version.
  • list_all_lead_perfection_lead_forward_lookRetrieve Forward Look data in LeadPerfection for sales rep appointment availability over the upcoming 14 days. Returns: SDate, TMS_Descr1–TMS_Descr6 (time slot descriptions), T1–T6 (appointments needed per slot with overbooking), X1–X6 (appointments needed without overbooking). Specify either branchid (Market) or productid and zip.
  • list_all_lead_perfection_lead_lookup_tablesRetrieve lists of valid values from LeadPerfection lookup tables (SubSources, Promoters, Branches, or Products) for use during lead capture. Returns records with id and table-specific attributes. The type parameter selects the source table and defaults to S (SubSources).
  • create_a_lead_perfection_lead_appointmentSet a new appointment on an existing data lead in LeadPerfection. The lead must be in a set-able status, cannot be out of area, and must not have an existing future appointment. Returns an empty response on success. The upstream spec specifies an empty response schema.
  • lead_perfection_lead_appointments_create_with_sales_repSet a new appointment on an existing data lead in LeadPerfection with an optional sales rep and product assignment. The lead must be in a set-able status, cannot be out of area, and must not have an existing future appointment. Returns an empty response on success. The upstream spec specifies an empty response schema.
  • lead_perfection_sales_appointments_list_calendarView the appointment calendar for the logged-in sales rep in LeadPerfection. For the current month, lists each day that the rep has at least one appointment scheduled, along with the total number of appointments for each day. Returns the appointment calendar with day-level appointment counts via attributes. Limited to the current month only.
  • lead_perfection_sales_appointments_list_by_dayList all appointments for a specified day for the logged-in sales rep in LeadPerfection. Returns: id.
  • lead_perfection_sales_appointments_get_detailGet detailed information about a single sales appointment in LeadPerfection by specifying a date and issued lead id. The upstream spec does not document the response fields. Required: apptdate, issuedleadid.
  • lead_perfection_sales_appointments_list_details_by_date_rangeRetrieve a list of issued sales appointments within a specified date range from LeadPerfection, spanning all sales reps rather than just the logged-in user. The upstream API does not document the response body fields.
  • lead_perfection_sales_appointments_update_resultsUpdate the results of an issued sales appointment in LeadPerfection (version 3, adding sale type and vendor parameters over version 2). Returns an empty 200 response on success. Follow-up date/time fields require the IncludeFollowUpinPresentation config key set to Y. The upstream spec specifies an empty response schema.
  • lead_perfection_sales_appointments_add_imageAdd an image to a sales appointment in LeadPerfection. If the appointment disposition is SALE the image attaches to the associated job record, otherwise it attaches to the prospect. Returns an empty 200 response on success. The upstream spec specifies an empty response schema.
  • list_all_lead_perfection_sales_lookup_tablesEnumerate static lookup tables in LeadPerfection by specifying a type code. Returns records with id and type-specific attributes whose field structure varies by the requested data type (e.g., dispositions, products, sales reps, call results).
  • list_all_lead_perfection_jobsPull basic information about a job in LeadPerfection by providing at least one search criterion. Returns the job detail data object. At least one of JobID, JobNumber, IssuedAppointmentID, StartContractDate, or EndContractDate must be provided.
  • lead_perfection_jobs_find_idSearch for jobs in LeadPerfection by prospect id or job number and receive back a list of matching JobIDs. Returns: JobID. At least one of prospectid or contractid should be supplied.
  • lead_perfection_jobs_find_id_v2Search for jobs in LeadPerfection by prospect id, job number (contractid), or issued lead id. Returns a list of matching JobIDs. At least one of prospectid, contractid, or issued_appt_id should be provided.
  • lead_perfection_jobs_get_sales_detailGet sales job detail information in LeadPerfection for a given JobID. Returns job detail info about the job; the upstream spec does not enumerate individual response fields. Required: jobid.
  • lead_perfection_jobs_update_sales_detailUpdate the paperwork status, commission type, total commission amount, and user fields (job_user_11, job_user_12) on a LeadPerfection job record. Returns an empty 200 response on success. The upstream spec specifies an empty response schema.
  • lead_perfection_jobs_add_imageAdd an image to a job in LeadPerfection by uploading the file's raw byte array along with the target job id and filename. The filename must exactly match the original file's name and extension or the file may be flagged as improperly saved. Optional: docdescr, dtyid. Use /api/SalesApi/GetSalesApptDispProd with type=y to enumerate valid dtyid values. Returns…. The upstream spec specifies an empty response schema.
  • lead_perfection_jobs_list_imagesGet documents associated with a job in LeadPerfection. Returns a list of documents that appear on the DOCS tab for the specified job, customer, or issued lead record.
  • lead_perfection_jobs_list_status_changesSearch for jobs with status changes in LeadPerfection within a specified date range, optionally filtering by customer, job, or job status ID. Returns job status change records for matching jobs; the specific response fields are not documented in the API specification.
  • list_all_lead_perfection_job_notesGet notes associated with a job in LeadPerfection. For a given job ID and appointment date, returns the notes that appear on the Notes tab for that job. Returns: notes.
  • create_a_lead_perfection_job_noteAdd notes to a job in LeadPerfection matching a given jobid number. Returns an empty 200 response on success. The upstream spec specifies an empty response schema.
  • create_a_lead_perfection_job_commissionAdd a commission record on a job in LeadPerfection. Returns an empty 200 response on success. The upstream spec specifies an empty response schema.
  • create_a_lead_perfection_job_paymentAdd a payment record on a job in LeadPerfection. Returns an empty 200 response on success. The upstream spec specifies an empty response schema.
  • create_a_lead_perfection_job_costAdd a job cost record to a job in LeadPerfection, including quantity, cost, price, commission and invoice details. Returns an empty response on success. The upstream spec specifies an empty response schema.
  • lead_perfection_job_costs_update_costUpdate a job cost record for a job in LeadPerfection. Returns an empty 200 response on success. invoiceDate must be in YYYY-MM-DD format. The upstream spec specifies an empty response schema.
  • list_all_lead_perfection_sales_openList recent sales for the logged-in sales rep in LeadPerfection. Returns: status for each sale. No request parameters are required.
  • list_all_lead_perfection_sales_scheduleGet the sales schedule in LeadPerfection broken down by day and then by rep, showing each rep's available time slots and whether an appointment is already scheduled. Returns: day, rep (including slots and appointment-scheduled status for each slot). If no date range is supplied, defaults to the current month; SlrID 0 returns all reps and BrnID 'ALL' returns all markets.
  • list_all_lead_perfection_employeesGet a list of employees in LeadPerfection. Returns employee records with EmpID, FirstName, LastName, Active, and Email. Pagination is handled via StartIndex and PageSize parameters.
  • list_all_lead_perfection_customersSearch customers in LeadPerfection by last name or prospect ID. Returns: name. At least one of custnumber or lastname should be provided. This endpoint is deprecated.
  • lead_perfection_customers_list_v2Search for prospects in LeadPerfection by last name, phone, job number, or prospect ID. Returns: custnumber, name, phone. This endpoint is deprecated.
  • lead_perfection_customers_list_v3Search prospects in LeadPerfection by last name, phone, job number, prospect ID, or email. Returns matching records with custnumber, name, and phone for any found matches. All search criteria are optional.
  • lead_perfection_customers_list_by_prospect_idSearch for prospects in LeadPerfection by Prospect ID, job number, first name, last name, or phone. Returns matching prospects with prospectid, name, address, and phone.
  • lead_perfection_customers_list_lead_infoSearch for prospects in LeadPerfection by lastname, phone, jobnumber, or prospectid. Returns lead information including EntryDate, PromoterName, Source, SubSourceDescription, and Disposition. Provide at least one search criterion.
  • lead_perfection_customers_update_customerUpdate basic prospect information in LeadPerfection — first name, last name, and phone for a given prospect ID. Returns an empty 200 response on success. The upstream spec specifies an empty response schema.
  • lead_perfection_customers_update_prospect_infoUpdate basic prospect information in LeadPerfection by prospect ID. Supports updating first name, last name, address, address2, city, state, zip, phone, and email. Returns an empty 200 response on success. The upstream spec specifies an empty response schema.
  • lead_perfection_customers_update_dnc_statusUpdate the internal DNC (Do Not Call) status on a prospect in LeadPerfection. The newDncStatus parameter accepts C (Do Not Call), M (Do Not Mail), T (Do Not Text), E (Do Not Email), or P (Do Not Promote). Returns an empty 200 response on success. The upstream spec specifies an empty response schema.
  • create_a_lead_perfection_call_historyAdd call history results back into LeadPerfection. Returns an empty 200 response on success. Valid values for these fields can be enumerated via the GetSalesApptDispProd API. The upstream spec specifies an empty response schema.
  • lead_perfection_call_history_process_xmlImport call history records into LeadPerfection by submitting an XML payload. Returns an empty 200 response on success. The upstream spec specifies an empty response schema.
  • create_a_lead_perfection_noteAdd a note to a Prospect, Issued Lead, or Job record in LeadPerfection. The note appears on the Notes tab for the specified record. Returns an empty 200 response on success. The upstream spec specifies an empty response schema.
  • lead_perfection_notes_process_xmlImport note records into LeadPerfection by submitting a call history XML payload. Returns an empty 200 response on success. The upstream spec specifies an empty response schema.
  • list_all_lead_perfection_prospect_dataRetrieve full prospect, lead, appointment, and job data from LeadPerfection by prospect id, lead id, issued lead id, or date range. Returns a data array of prospect records, each potentially including hundreds of elements such as alternate contacts, lead history, appointment history, job history, milestones, payments, and notes. Specify at least one selector: cst_id, lds_id, ils_id, or a date…
  • lead_perfection_prospect_data_list_leadRetrieve full prospect, lead, appointment, and job data from LeadPerfection by prospect id, lead id, issued lead id, or date range. Returns a full set of data for each matching prospect, potentially including hundreds of data elements such as alternate contacts, lead history, appointment history, job history, milestones, payments, and notes.
  • lead_perfection_prospect_data_list_milestonesRetrieve prospect, lead, appointment, and job milestone data from LeadPerfection by specifying a prospect ID, lead ID, issued lead ID, or date range. Returns the data array of full prospect records including milestones, lead history, appointment history, job history, and notes.
  • lead_perfection_prospect_data_list_sales_appointmentsGet sales appointments with full prospect, lead, appointment, and job data from LeadPerfection by specifying a date range and optional prospect, lead, or issued lead IDs. Returns the data array containing full prospect records including alternate contacts, lead history, appointment history, job history, milestones, payments, and notes.
  • lead_perfection_prospect_data_list_service_appointmentsRetrieve full prospect, lead, appointment, and job data from LeadPerfection by prospect id, lead id, issued lead id, or date range. Returns the prospect data object with id and content-specific attributes including alternate contacts, lead history, appointment history, job history, milestones, payments, service, and notes.
  • lead_perfection_installer_appointments_list_calendarGet the installer appointment calendar for the current month in LeadPerfection, listing each day the installer has at least one appointment scheduled along with the total appointment count for that day. Returns: apptdate. No request parameters are required.
  • lead_perfection_installer_appointments_list_by_dayList installer appointments for a given day in LeadPerfection. For the specified date, returns all appointments for the logged-in sales rep; the LeadPerfection API does not document the specific response fields.
  • lead_perfection_installer_appointments_get_detailGet detailed information about a single installer appointment in LeadPerfection by specifying an appointment date and job ID. Returns a 200 response; the upstream spec does not document specific response fields. Required: apptdate, jobid.
  • lead_perfection_installer_jobs_get_detailGet detailed information about a single installer job appointment in LeadPerfection by specifying an appointment date and job ID. The upstream API does not document the response schema for this endpoint. Required: apptdate, jobid.
  • lead_perfection_installer_jobs_list_openGet a list of open installs assigned to the logged-in user in LeadPerfection. Returns: id. No required parameters.
  • list_all_lead_perfection_dialer_queue_leadsRetrieve a list of leads to dial from a specified call queue in LeadPerfection. Returns a list of leads in the given queue that are available to be dialed; the response shape is not documented in the upstream API specification. Pulls are restricted to a max of 1000 records at a time.
  • lead_perfection_dialer_queue_leads_list_longRetrieve a list of leads available to be dialed from a specific call queue in LeadPerfection, optionally filtered by a call filter. The upstream API does not document the response field structure. Pulls are restricted to a max of 1000 records at a time.
  • lead_perfection_web_files_downloadDownload a web file from a URL in LeadPerfection. If the account has an associated Amazon S3 account, uploads the file to S3 and returns the final storage path. Returns: path.

AMCP serverno code

For any MCP client

One URL per connected LeadPerfection account. Paste it into Claude, ChatGPT, Cursor, Windsurf, VS Code, Cline, Zed or a custom agent.

Server URLhttps://api.truto.one/mcp/<token>

BTools APIfor developers

For the agent you build

One call returns every LeadPerfection tool for an account, with its description and JSON schema, ready for any LLM framework.

GEThttps://api.truto.one/integrated-account/<id>/tools

Tools come as JSON schema, so they plug into any agent framework.

  • Always up to date

    Tools are generated from curated documentation, not hand-coded. As the integration changes, the tools stay current.

  • You set the limits

    Scope each MCP server to read-only, write-only, specific methods or tagged tool groups. Expose only what the agent needs.

  • One customer each

    Each MCP server is scoped to one connected account with its own credentials. Nothing leaks across tenants.

  • Tools you can edit

    Tool descriptions and schemas are editable in your Truto account. A change updates at once, with no deploy.

  • Sign-in handled

    Tool calls run through Truto’s proxy layer, with OAuth refresh, rate-limit handling and normalized errors.

  • Access can expire

    Create time-limited servers for contractors or automated workflows. Optionally require a Truto API token as well.

How MCP servers work

03Unified API

One API for LeadPerfection and every other CRM app. One mapping to go.

The Unified CRM API gives every CRM app the same call and the same data shape. LeadPerfection is not mapped to it yet. Map it yourself, or ask us.

LeadPerfectionon Truto
  1. Sign-in and tokensTruto handles themReady
  2. Proxy APIWorks today, on FreeReady
  3. Unified CRM APIOne mapping to goTo do

Then: one call for every CRM app

  • Path 1 Self-serve

    Map it yourself

    • Mapping editor, with version history
    • Live for every connected account
    • No deploy

    Start free

  • Path 2 We do it

    Ask Truto

    • Tell us the LeadPerfection data you need
    • We add the mapping

    Talk to us

  • Price Add-on

    $499 per category a month

    • 30-day trial on Free
    • Your own unified models: Pro add-on, $499 a month

    See pricing

04Sync and webhooks

Sync LeadPerfection data on a schedule. Sent to your webhook.

A sync job reads LeadPerfection records on a schedule and sends each page to your webhook or your datastore. Signed webhooks tell you when an account connects or needs to sign in again.

On every plan, including Free.

05Custom actions

Add any LeadPerfection endpoint. With the Truto CLI.

Need a LeadPerfection endpoint or method that is not here yet? Add it with the Truto CLI and your coding agent, or call any LeadPerfection path through the Custom API.

On every plan, including Free. Truto CLI

For your own AI tools

Use LeadPerfection in ChatGPT, Claude or Cursor with Elaichi.

Truto puts LeadPerfection in the product you build. To use LeadPerfection yourself, in the AI your team already has, we recommend Elaichi.

For your product

Ship LeadPerfection tools in your product

Give the AI in your product access to each customer’s own LeadPerfection account, with one MCP server per connected account.

Elaichi

For your own team

Use LeadPerfection in your own AI

Connect your company’s LeadPerfection once, then ask in the AI you already use, with exactly your own access.

Works in

LeadPerfection on Elaichi

From the team behind Truto · 14-day free trial

Use cases

Why integrate with LeadPerfection.

  1. Embed LeadPerfection in AI voice and SMS platforms

    Conversational AI vendors serving home improvement contractors need to create leads, book appointments against live rep availability, and log transcripts back to the CRM. Truto lets them ship this integration without learning LeadPerfection's forward-look capacity model or XML-based call history endpoints.

  2. Power in-home CPQ and contracting apps

    Quoting and estimation tools used by field reps need to pull daily schedules, push signed contracts as image blobs, and write back finalized job costs and commissions. Offering a LeadPerfection integration is table stakes for selling into roofing, windows, and HVAC contractors.

  3. Build marketing attribution and BI dashboards

    Analytics platforms that report on marketing ROI for home services companies need continuous access to lead sources, job milestones, and status changes. Truto handles the polling, pagination, and namespace fragmentation across LeadPerfection's Lead, Sales, and Customer APIs.

  4. Ship field service apps for installer crews

    Photo management and job tracking apps built for installers need a separate view of the installer calendar, job details, and note history — distinct from sales rep data. Truto exposes the installer namespace so SaaS vendors can build persona-specific mobile experiences.

  5. Enable outbound dialer and call center tooling

    Dialer and contact center platforms need to pull batches of leads from LeadPerfection's dialing queues, sync call history, and update DNC compliance status. Truto abstracts the CQDID batching and XML payload formatting required to make this reliable at scale.

What you can build

Ship these with Truto and LeadPerfection.

  • Automated appointment booking with capacity checks

    Query a sales rep's 14-day availability via forward-look data and book appointments directly onto the correct rep's calendar based on zip code routing.

  • Lead intake with source attribution

    Create new leads in LeadPerfection with promoter and sub-promoter tagging so downstream marketing analytics can attribute revenue back to the originating campaign.

  • Two-way call history and DNC sync

    Pull leads from dialing queues in batches, push call outcomes back via the call history endpoint, and flag opted-out prospects with a DNC status update.

  • Contract and photo upload from the field

    Attach signed contracts, site photos, and salesman images to jobs directly from a tablet or mobile app, tied to the correct prospect and job ID.

  • Sales-to-job conversion workflow

    Dispose appointments as sold, push finalized job costs and commission splits, and update job detail records to move prospects through the Prospect → Appointment → Job funnel.

  • Milestone and status change polling for BI

    Continuously sync job status changes and milestone events to close the loop between marketing spend and installed revenue in a reporting dashboard.

Security

Your customers’ LeadPerfection data stays theirs. Truto passes it through.

  • Records pass through

    Customer records are not kept. Truto fetches them when your product asks and passes them on.

  • Our OAuth apps or yours

    Where an app signs in with OAuth, use Truto’s OAuth apps or your own, on every plan. Each customer’s login is kept encrypted (AES-256) while connected.

  • SOC 2 · TYPE IIAUDITEDISO/IEC 27001CERTIFIEDGDPRHIPAACASA · TIER 2TAC SECURITY

    Audited and certified

    SOC 2 Type II, ISO 27001, GDPR and HIPAA. CASA Tier 2, verified by TAC Security. Trust Centre

How it works

From zero to integrated. Start free, no card.

  1. Link your customer’s LeadPerfection account

    Use Truto’s frontend SDK to connect your customer’s LeadPerfection account. We handle all OAuth and API key flows — you don’t need to create the OAuth app.

  2. We handle authentication

    Don’t spend time refreshing access tokens or figuring out secure storage. We handle it and inject credentials into every API request.

  3. Call our API, we call LeadPerfection

    Truto’s Proxy API is a 1-to-1 mapping of the LeadPerfection API. You call us, we call LeadPerfection, and pass the response back in the same cycle.

  4. Unified response format

    Every response follows a single format across all integrations. We translate LeadPerfection’s pagination into unified cursor-based pagination. Data is always in the result attribute.

FAQs

Common questions about LeadPerfection on Truto.

How does authentication work with LeadPerfection?

LeadPerfection uses token-based authentication generated from customer credentials. Truto handles the token lifecycle for each of your end users via the create token endpoint, so you don't need to manage credential storage or refresh logic yourself.

Can we separate sales rep calendars from installer calendars?

Yes. LeadPerfection exposes distinct endpoints for sales appointment calendars and installer appointment calendars, and both are available through Truto. This lets you build persona-specific views without mixing the two datasets.

How do we handle high-volume lead syncs for dialer use cases?

LeadPerfection supports batched lead retrieval from dialing queues (CQDIDs) of up to 1,000 records per call. Truto exposes these list endpoints with standard pagination so you can build reliable, incremental sync jobs.

How do we write call activity back to LeadPerfection?

Call history is written via an XML payload endpoint, and standalone notes can be added via a separate endpoint. Truto normalizes the request format so you send structured JSON and we handle the XML transformation.

Can we upload contract PDFs and photos to a job?

Yes. LeadPerfection accepts image and file uploads tied to a job ID via the add job image and add salesman image endpoints. Files are transmitted as byte payloads, which Truto passes through directly.

How fresh is the data — is there webhook support?

LeadPerfection's public API is polling-based rather than webhook-driven. For status changes, milestones, and new leads, you'll poll the relevant list endpoints on an interval that matches your product's freshness requirements.

LeadPerfection

Get LeadPerfection integrated into your app

Sign up free, connect a test LeadPerfection account and make your first call today. No card and no sales call.