API Documentation
RESTful API documentation for developers
https://api.lotscrm.comAPI Key (Bearer token or X-API-Key header)
51
Authentication
All API requests require authentication using an API key. You can create an API key from your dashboard.
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.lotscrm.com/api/v1/lotscrm/follow-upsactivities
/api/v1/lotscrm/follow-upsCreate follow-up
create_follow_upCreate a due task linked to a contact, company, or deal. This schedules work; it does not send outreach.
/api/v1/lotscrm/activitiesGet relationship timeline
get_timelineGet recent activities linked to any supplied contact, company, or deal.
/api/v1/lotscrm/follow-upsList follow-ups
list_follow_upsList due, overdue, completed, or owner-assigned follow-ups. Omitted completed returns open work.
/api/v1/lotscrm/activitiesRecord sales activity
record_activityRecord a call, meeting, email, message, note, other interaction, or a system event (signup, payment, cancellation). This records history and never sends a message.
/api/v1/lotscrm/follow-ups/:follow_up_idUpdate follow-up
update_follow_upReschedule, reassign, edit, complete, or reopen a follow-up.
companies
/api/v1/lotscrm/companies/:company_idArchive company
archive_companyRecoverably archive a company; associated contacts and deals remain intact.
/api/v1/lotscrm/companiesCreate company
create_companyCreate a company with provenance and optional custom fields.
/api/v1/lotscrm/companies/:company_idGet company
get_companyGet a company with its contacts and active deals.
/api/v1/lotscrm/companiesList companies
list_companiesList active companies with search, lifecycle, tag, creation date and pagination filters. Most recently updated first; sort created_at_desc lists the newest first. For companies added today, send created_after with today's date and the person's time_zone.
/api/v1/lotscrm/companies/:company_idUpdate company
update_companyUpdate a company in the selected workspace. Only the fields you send change; custom_fields merges (null removes a key).
contacts
/api/v1/lotscrm/contacts/:contact_idArchive contact
archive_contactRecoverably archive a contact. Existing deal and activity history remains intact.
/api/v1/lotscrm/contacts/bulkBulk upsert prospects
bulk_upsert_prospectsImport 1–100 researched or CSV-derived prospects. Email is the workspace deduplication key. Each row retains source and source_url provenance, and can carry tags and a company_name.
/api/v1/lotscrm/contactsCreate contact
create_contactCreate a contact with consent, provenance, and optional company relationship.
/api/v1/lotscrm/contacts/:contact_idGet contact
get_contactGet a contact with company relationships, deals, and channels.
/api/v1/lotscrm/contactsList contacts
list_contactsList active contacts with stage, lead status, owner, tag, exact email, search, creation date and pagination filters. Most recently updated first; sort created_at_desc lists the newest first. For contacts added today, send created_after with today's date and the person's time_zone.
/api/v1/lotscrm/contacts/:contact_idUpdate contact
update_contactUpdate contact qualification, consent, ownership, details, or company relationship. Only the fields you send change; custom_fields merges (null removes a key); add_tags / remove_tags change single tags, tags replaces the list.
deals
/api/v1/lotscrm/deals/:deal_idArchive deal
archive_dealRecoverably archive a deal using optimistic concurrency.
/api/v1/lotscrm/dealsCreate deal
create_dealCreate a deal in an owned pipeline and stage with optional company and contacts.
/api/v1/lotscrm/deals/:deal_idGet deal
get_dealGet a deal with its stage, company, contacts, and stage history.
/api/v1/lotscrm/dealsList deals
list_dealsList active deals by pipeline, stage, status, owner, search text or creation date. Most recently updated first; sort created_at_desc lists the newest first. For deals added today, send created_after with today's date and the person's time_zone.
/api/v1/lotscrm/deals/:deal_id/moveMove deal
move_dealMove a deal to another stage atomically with status and stage history. Lost deals require lost_reason.
/api/v1/lotscrm/deals/:deal_idUpdate deal
update_dealUpdate deal details using expected_version to prevent an agent overwriting newer work. Use move_deal for stage changes. custom_fields merges (null removes a key).
insights
/api/v1/lotscrm/crm-briefingGet CRM briefing
get_crm_briefingReturn the selected workspace, caller role, separately labelled public business truth and private guidance, pipeline configuration, and current sales priorities.
/api/v1/lotscrm/sales-briefGet daily sales brief
get_sales_briefReturn deterministic sales priorities together with separately labelled workspace business context projected from LotsNotes.
/api/v1/lotscrm/deals/:deal_id/briefGet deal briefing
get_deal_briefReturn complete pre-call context: workspace business context, deal, stage, company, contacts, recent activity, open follow-ups, and contact restrictions.
/api/v1/lotscrm/pipeline-summaryGet pipeline summary
get_pipeline_summaryReturn deal counts, raw value, and weighted value per stage and currency without mixing currencies.
/api/v1/lotscrm/deals/:deal_id/prepare-follow-upPrepare follow-up context
prepare_follow_upReturn grounded CRM and workspace business context plus safety instructions for drafting. It never sends and blocks opted-out or do-not-contact records.
/api/v1/lotscrm/searchSearch CRM
search_crmSearch contacts, companies, and deals in one accessible workspace.
pipeline
/api/v1/lotscrm/pipelinesCreate sales pipeline
create_pipelineCreate a custom pipeline with ordered open, won, and lost stages. Owner or admin required.
/api/v1/lotscrm/pipelinesList sales pipelines
list_pipelinesList pipelines and their ordered stages.
support
/api/v1/lotscrm/workspaces/:workspace_id/support-accessGrant Support Access
grant_support_accessLet LotsTech support (support@lotstech.com) into one workspace for a limited time so they can look at a problem and fix it. Support joins as Admin and can never change billing, payments, the owner or the team. Without confirmed: true it changes nothing and returns the consent text; grant only after the person has read it and said yes. duration is 24h, 7d (default) or 30d. may_publish (default false) lets support publish fixes live. Granting again while access is on changes the end time. It opens a support case for the person.
/api/v1/lotscrm/workspaces/:workspace_id/support-accessList Support Access
list_support_accessWhether LotsTech support has access to this workspace, until when, and what support did there. available false means support access is not set up yet.
/api/v1/lotscrm/workspaces/:workspace_id/support-accessRevoke Support Access
revoke_support_accessEnd LotsTech support's access to this workspace now. Support leaves the team at once.
workspace
/api/v1/lotscrm/invitations/acceptAccept CRM invitation
accept_invitationAccept an invitation with the token from its email link, as the signed-in person. The account email must match the invited email. Joining never lowers a role you already have.
/api/v1/lotscrm/workspaces/:workspace_id/membersAdd CRM member
add_memberAdd someone who already has a Lots account to a workspace by email, at once (no accept step); they get an email saying so. For anyone else, or to let them accept first, use invite_member. owner cannot be granted. Owner or admin required.
/api/v1/lotscrm/workspaces/:workspace_id/archiveArchive CRM workspace
archive_workspaceArchive a workspace you no longer need. Owner only. Nobody (members, agents or the owner) can open it until it is restored, it leaves every workspace list, and it stops counting toward your plan from the next daily charge. Nothing is deleted. The owner can restore it for 30 days. confirm_name must be the workspace name. Confirm with the person first.
/api/v1/lotscrm/workspaces/:workspace_id/invitations/:invitation_idCancel CRM invitation
cancel_invitationCancel a pending invitation; its link stops working. Owner or admin required.
/api/v1/lotscrm/workspacesCreate CRM workspace
create_workspaceCreate an isolated CRM workspace with a default six-stage sales pipeline. With no organization_id, it joins the organization you own or administer; if you have several, it returns ORGANIZATION_REQUIRED with their IDs. Pass organization_name to create a new organization instead (your first workspace always creates one). Retry with the same idempotency_key.
/api/v1/lotscrm/workspaces/:workspace_idGet CRM workspace
get_workspaceGet one accessible CRM workspace and the caller role.
/api/v1/lotscrm/workspaces/:workspace_id/invitationsInvite CRM member
invite_memberInvite someone to a workspace by email, with or without a Lots account. They get an email link, sign in or sign up with that email, and join with the role you chose. Inviting an email that already has a pending invitation sends a fresh link. owner cannot be invited. Owner or admin required. Members are unlimited on every plan.
/api/v1/lotscrm/workspaces/:workspace_id/leaveLeave CRM workspace
leave_workspaceLeave a workspace you were invited to; you lose access at once. The owner cannot leave their own workspace.
/api/v1/lotscrm/workspaces/:workspace_id/invitationsList CRM invitations
list_invitationsList a workspace's invitations (pending first by default; status all for history). Owner or admin required.
/api/v1/lotscrm/workspaces/:workspace_id/membersList CRM members
list_membersList people in an accessible CRM workspace (active and suspended), with email, name and role. Pending invitations are in list_invitations.
/api/v1/lotscrm/workspacesList CRM workspaces
list_workspacesList active CRM workspaces available to the authenticated user. archived true lists the archived workspaces you own instead, with restore_until and can_restore.
/api/v1/lotscrm/workspaces/:workspace_id/members/:user_idRemove CRM member
remove_memberRemove someone from a workspace: they lose access at once. Their records, history and assignments stay. The owner cannot be removed. Owner or admin required. To come back they need a new invitation.
/api/v1/lotscrm/workspaces/:workspace_id/invitations/:invitation_id/resendResend CRM invitation
resend_invitationEmail a pending invitation again with a fresh link (the old link stops working) and a new 7-day expiry. Owner or admin required.
/api/v1/lotscrm/workspaces/:workspace_id/restoreRestore CRM workspace
restore_workspaceRestore an archived workspace within 30 days of archiving it. Owner only. Everyone who had access can open it again and it counts toward your plan from today, so it needs a plan that covers it or credits, like a new workspace. list_workspaces with archived true lists archived workspaces and how long each can be restored.
/api/v1/lotscrm/workspaces/:workspace_id/members/:user_idUpdate CRM member
update_memberChange a workspace member's role, or suspend and reactivate them. owner can never be granted, and the owner cannot be changed. To take someone out of the workspace use remove_member. Owner or admin required.
/api/v1/lotscrm/workspaces/:workspace_idUpdate CRM workspace
update_workspaceUpdate workspace operating settings. Owner or admin required.
billing
/api/v1/lotscrm/checkoutChoose a LotsCRM plan or add credits
create_checkoutCreate a checkout link. Pass plan (starter, pro or business) and cycle (monthly or annual) for a plan, or amount_usd (10 to 1000) to add LotsTech Credits. Give the link to the person to pay in their browser; never ask for card details in chat.
/api/v1/lotscrm/billingGet LotsCRM billing
get_billingShow how the caller's LotsCRM workspaces are paid for: the plan (if any), whether today is covered or paid from credits, the credit balance, and the plans to choose from. A workspace nobody pays for is read-only, never deleted.