LotsCRM

API Documentation

RESTful API documentation for developers

Quick Info
Base URL
https://api.lotscrm.com
Authentication

API Key (Bearer token or X-API-Key header)

Total Endpoints

51

Getting Started

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-ups

activities

POST
/api/v1/lotscrm/follow-ups

Create follow-up

create_follow_up

Create a due task linked to a contact, company, or deal. This schedules work; it does not send outreach.

GET
/api/v1/lotscrm/activities

Get relationship timeline

get_timeline

Get recent activities linked to any supplied contact, company, or deal.

GET
/api/v1/lotscrm/follow-ups

List follow-ups

list_follow_ups

List due, overdue, completed, or owner-assigned follow-ups. Omitted completed returns open work.

POST
/api/v1/lotscrm/activities

Record sales activity

record_activity

Record a call, meeting, email, message, note, other interaction, or a system event (signup, payment, cancellation). This records history and never sends a message.

PATCH
/api/v1/lotscrm/follow-ups/:follow_up_id

Update follow-up

update_follow_up

Reschedule, reassign, edit, complete, or reopen a follow-up.

companies

DELETE
/api/v1/lotscrm/companies/:company_id

Archive company

archive_company

Recoverably archive a company; associated contacts and deals remain intact.

POST
/api/v1/lotscrm/companies

Create company

create_company

Create a company with provenance and optional custom fields.

GET
/api/v1/lotscrm/companies/:company_id

Get company

get_company

Get a company with its contacts and active deals.

GET
/api/v1/lotscrm/companies

List companies

list_companies

List 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.

PATCH
/api/v1/lotscrm/companies/:company_id

Update company

update_company

Update a company in the selected workspace. Only the fields you send change; custom_fields merges (null removes a key).

contacts

DELETE
/api/v1/lotscrm/contacts/:contact_id

Archive contact

archive_contact

Recoverably archive a contact. Existing deal and activity history remains intact.

POST
/api/v1/lotscrm/contacts/bulk

Bulk upsert prospects

bulk_upsert_prospects

Import 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.

POST
/api/v1/lotscrm/contacts

Create contact

create_contact

Create a contact with consent, provenance, and optional company relationship.

GET
/api/v1/lotscrm/contacts/:contact_id

Get contact

get_contact

Get a contact with company relationships, deals, and channels.

GET
/api/v1/lotscrm/contacts

List contacts

list_contacts

List 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.

PATCH
/api/v1/lotscrm/contacts/:contact_id

Update contact

update_contact

Update 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

DELETE
/api/v1/lotscrm/deals/:deal_id

Archive deal

archive_deal

Recoverably archive a deal using optimistic concurrency.

POST
/api/v1/lotscrm/deals

Create deal

create_deal

Create a deal in an owned pipeline and stage with optional company and contacts.

GET
/api/v1/lotscrm/deals/:deal_id

Get deal

get_deal

Get a deal with its stage, company, contacts, and stage history.

GET
/api/v1/lotscrm/deals

List deals

list_deals

List 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.

POST
/api/v1/lotscrm/deals/:deal_id/move

Move deal

move_deal

Move a deal to another stage atomically with status and stage history. Lost deals require lost_reason.

PATCH
/api/v1/lotscrm/deals/:deal_id

Update deal

update_deal

Update 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

GET
/api/v1/lotscrm/crm-briefing

Get CRM briefing

get_crm_briefing

Return the selected workspace, caller role, separately labelled public business truth and private guidance, pipeline configuration, and current sales priorities.

GET
/api/v1/lotscrm/sales-brief

Get daily sales brief

get_sales_brief

Return deterministic sales priorities together with separately labelled workspace business context projected from LotsNotes.

GET
/api/v1/lotscrm/deals/:deal_id/brief

Get deal briefing

get_deal_brief

Return complete pre-call context: workspace business context, deal, stage, company, contacts, recent activity, open follow-ups, and contact restrictions.

GET
/api/v1/lotscrm/pipeline-summary

Get pipeline summary

get_pipeline_summary

Return deal counts, raw value, and weighted value per stage and currency without mixing currencies.

POST
/api/v1/lotscrm/deals/:deal_id/prepare-follow-up

Prepare follow-up context

prepare_follow_up

Return grounded CRM and workspace business context plus safety instructions for drafting. It never sends and blocks opted-out or do-not-contact records.

GET
/api/v1/lotscrm/search

Search CRM

search_crm

Search contacts, companies, and deals in one accessible workspace.

pipeline

POST
/api/v1/lotscrm/pipelines

Create sales pipeline

create_pipeline

Create a custom pipeline with ordered open, won, and lost stages. Owner or admin required.

GET
/api/v1/lotscrm/pipelines

List sales pipelines

list_pipelines

List pipelines and their ordered stages.

support

POST
/api/v1/lotscrm/workspaces/:workspace_id/support-access

Grant Support Access

grant_support_access

Let 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.

GET
/api/v1/lotscrm/workspaces/:workspace_id/support-access

List Support Access

list_support_access

Whether LotsTech support has access to this workspace, until when, and what support did there. available false means support access is not set up yet.

DELETE
/api/v1/lotscrm/workspaces/:workspace_id/support-access

Revoke Support Access

revoke_support_access

End LotsTech support's access to this workspace now. Support leaves the team at once.

workspace

POST
/api/v1/lotscrm/invitations/accept

Accept CRM invitation

accept_invitation

Accept 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.

POST
/api/v1/lotscrm/workspaces/:workspace_id/members

Add CRM member

add_member

Add 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.

POST
/api/v1/lotscrm/workspaces/:workspace_id/archive

Archive CRM workspace

archive_workspace

Archive 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.

DELETE
/api/v1/lotscrm/workspaces/:workspace_id/invitations/:invitation_id

Cancel CRM invitation

cancel_invitation

Cancel a pending invitation; its link stops working. Owner or admin required.

POST
/api/v1/lotscrm/workspaces

Create CRM workspace

create_workspace

Create 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.

GET
/api/v1/lotscrm/workspaces/:workspace_id

Get CRM workspace

get_workspace

Get one accessible CRM workspace and the caller role.

POST
/api/v1/lotscrm/workspaces/:workspace_id/invitations

Invite CRM member

invite_member

Invite 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.

POST
/api/v1/lotscrm/workspaces/:workspace_id/leave

Leave CRM workspace

leave_workspace

Leave a workspace you were invited to; you lose access at once. The owner cannot leave their own workspace.

GET
/api/v1/lotscrm/workspaces/:workspace_id/invitations

List CRM invitations

list_invitations

List a workspace's invitations (pending first by default; status all for history). Owner or admin required.

GET
/api/v1/lotscrm/workspaces/:workspace_id/members

List CRM members

list_members

List people in an accessible CRM workspace (active and suspended), with email, name and role. Pending invitations are in list_invitations.

GET
/api/v1/lotscrm/workspaces

List CRM workspaces

list_workspaces

List active CRM workspaces available to the authenticated user. archived true lists the archived workspaces you own instead, with restore_until and can_restore.

DELETE
/api/v1/lotscrm/workspaces/:workspace_id/members/:user_id

Remove CRM member

remove_member

Remove 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.

POST
/api/v1/lotscrm/workspaces/:workspace_id/invitations/:invitation_id/resend

Resend CRM invitation

resend_invitation

Email a pending invitation again with a fresh link (the old link stops working) and a new 7-day expiry. Owner or admin required.

POST
/api/v1/lotscrm/workspaces/:workspace_id/restore

Restore CRM workspace

restore_workspace

Restore 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.

PATCH
/api/v1/lotscrm/workspaces/:workspace_id/members/:user_id

Update CRM member

update_member

Change 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.

PATCH
/api/v1/lotscrm/workspaces/:workspace_id

Update CRM workspace

update_workspace

Update workspace operating settings. Owner or admin required.

billing

POST
/api/v1/lotscrm/checkout

Choose a LotsCRM plan or add credits

create_checkout

Create 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.

GET
/api/v1/lotscrm/billing

Get LotsCRM billing

get_billing

Show 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.