Skip to content
v1

Reference Leads, boards and activities

Leads, boards and activities

List, fetch and search a team's leads and clients, read each lead's activities, and list the boards and stages they move through.

Overview

A lead is a person or company in a team's pipeline: their contact details, where they stand (board and stage), their status and their contact_permissions. A record with record_kind: "client" is a client rather than a lead: it has no pipeline status, so its status is null. Leads and clients come from the same endpoints.

The eight statuses are new, contacted, qualified, negotiating, converted, lost, archived and unreachable. converted does not mean "won". A lead whose status this version of the API does not know keeps record_kind: "lead" and reads status: null. An archived lead says why in archive_reason, including merged and family_transfer for the leads that merges and transfers leave behind.

Apply contact_permissions before any of your systems contacts the person: Keep a copy in sync explains each one.

Date of birth

date_of_birth is the lead's saved date of birth as a YYYY-MM-DD string, or null when no usable date is recorded. It is a calendar date, for example 1988-02-29, with no time or time zone. Keep it as a date rather than converting it to a timestamp. The same field is part of the Lead objects returned by lists, detail, search and the changes feed.

With crm:write, conditional PATCH can set date_of_birth to a valid calendar date or clear it with null. The API does not enable birthday greetings or configure their schedule. Birthday automation settings, internal lookup fields and pending delivery state are not exported. A saved birthday does not grant permission to contact the person; continue to apply contact_permissions.

Attribution and response

GET /v1/leads/{id} returns the lead with two facets: attribution, where it came from, and response, how the team has answered it across its conversations and calls. Each facet has its own version, so a new message changes the lead's response without changing the lead. A facet is null while Totem is still preparing it. Lists return the lead alone. The changes feed delivers the facets as items of their own, lead_attribution and lead_response, with the lead's id. Data coverage explains what each facet can and cannot tell you.

Search by phone or email

POST /v1/leads/search finds a team's leads by exact phone or email. Send exactly one of phone or email in the JSON body, never in a URL:

cURL
curl https://api.totemstudio.ai/v1/leads/search \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Content-Type: application/json" \
  -d '{"email": "alex.rivera@example.com"}'

Matching is exact on the number as Totem stores it, not on the normalized phone a lead shows. A phone matches a record stored in E.164, with or without its leading +; a record stored with spaces or without its country prefix is not found, even by the phone the API returns for it. An email matches the address as you sent it or in lower case. Records Totem has not delivered to the API yet are skipped until it does. Search returns archived, merged and client records too; follow merged_into to the lead that was kept. It returns at most 10 leads, in one response that never pages, so when many records share a phone number or an email address, it may not return them all.

Activities

GET /v1/leads/{id}/activities returns a lead's history, a page at a time: each change of its stage, status or assigned members, and when it happened. actor_kind says who made it: a person (human), the AI (ai), Totem automation (system), an API caller (api), or unknown. Totem knows who made a change only when the same save wrote the lead's status, so a stage or assignee change made on its own reads unknown. Pages are not in date order, so sort by occurred_at. Activities never change once written, but they are removed together with their lead, and new ones also arrive in the changes feed.

Boards and stages

A board is a pipeline, with its stages in order. A lead's stage names the step it is on. Each stage has a mode that says who moves leads: people only (standard), people and the AI, which may move leads in (supervised), or the AI, which runs outreach and moves leads in and out (automated).

GET /v1/boards returns a team's boards with their stages, a page at a time. Boards also travel in the changes feed; read this list when a lead names a stage you have not seen yet. A stage with no stored position is left out of its board, so do not re-read the list for a stage it did not include last time.

CRM writes and note contents

The reference below includes conditional CRM mutations, current operational context, requested contacts, configured office handoffs, referrals and separately granted note content. Start with CRM writes and notes for import versus inbound, fill-missing upsert, ETags, 48-hour retries and note tombstones. website is stored contact data; Totem does not fetch it.

Operational CRM actions

POST /v1/crm/context returns current source-backed context under its explicit operational permission. Optional notes, custom values, messages, calls and payments each require their own current content grant; missing content is reported through coverage instead of fabricated. A source ETag is distinct from an inventory version.

POST /v1/crm/scheduled-contact records a customer-requested future contact within its allowed window, using the reviewed current source validator. POST /v1/crm/handoff routes through a currently configured office of the organization; it does not accept arbitrary destination teams. POST /v1/referrals/totem records a consented referral to the fixed Totem destination without disclosing whether a destination contact already exists.

POST /v1/crm/quote-outcomes records externally attested calculator and delivery facts through the configured commercial policy. Totem does not independently certify those external facts. Each action requires its explicitly selected capability; a general CRM permission or key rotation does not silently grant all of them.

List leads

GET /v1/leads

Returns a page of the team's leads and clients, in a stable order that carries no meaning. Filter by at most one of board, stage or status; a board or stage the team does not have returns an empty page. To keep a copy up to date, follow the changes feed instead of re-reading this list.

Scopes
crm:read
Rate limit
Sync

Query parameters

  • limit integer Range 1–100 Default 25

    Items per page, 1–100. Defaults to 25.

  • cursor string 1–512 chars

    The next_cursor of the previous page. Omit it for the first page.

  • board string ID prefix brd_…

    Only leads on this board. At most one of board, stage and status.

  • stage string ID prefix stg_…

    Only leads in this stage. At most one of board, stage and status.

  • status string

    Only leads with this status. At most one of board, stage and status.

    Possible values
    • new
    • contacted
    • qualified
    • negotiating
    • converted
    • lost
    • archived
    • unreachable

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

Returns

Returns a list of Lead objects.

  • object string

    Always list.

  • data Array<Lead>

    The items of this page.

  • has_more boolean

    true when another page follows: fetch it with next_cursor, even if this page holds fewer items than limit.

  • next_cursor string Nullable

    Opaque cursor for the next page, or null on the last page. Never parse it.

Errors

+ 12 common errors

GET /v1/leads
curl 'https://api.totemstudio.ai/v1/leads?limit=25' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID"
Response · 200JSON
{
  "object": "list",
  "data": [
    {
      "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
      "object": "lead",
      "livemode": false,
      "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
      "record_kind": "lead",
      "name": "Alex",
      "surname": "Rivera",
      "date_of_birth": "1990-04-23",
      "email": "alex.rivera@example.com",
      "company": "Example Dental",
      "website": null,
      "phone": "+12025550123",
      "phone_status": "valid",
      "status": "contacted",
      "status_set_by": "ai",
      "archive_reason": null,
      "archived_from_status": null,
      "contact_permissions": {
        "do_not_contact": false,
        "email_opt_out": false,
        "email_opt_out_at": null,
        "whatsapp_consent": null,
        "provenance": {
          "do_not_contact": null,
          "email_opt_out": null,
          "whatsapp_consent": null
        }
      },
      "merged_into": null,
      "transferred_to": null,
      "revived_at": null,
      "pipeline_cleared": false,
      "converted_at": null,
      "value_at_conversion": null,
      "priority": "high",
      "tags": [
        "spring-check-up"
      ],
      "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
      "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
      "assignees": [
        "mem_h548E7UiYhutHhucVrQCzkM0eaea0"
      ],
      "estimated_value": 1200,
      "estimated_value_currency": null,
      "source": "meta_lead_ads",
      "source_channel": null,
      "source_detail": null,
      "source_provenance": "member_editable",
      "created_at": "2026-09-28T10:15:00.000Z",
      "version": 3,
      "updated_at": "2026-09-28T10:20:01.250Z"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ2IjoxLCJrIjoibGVhZCIsImEiOiJsZWFkX3I3MkVmYlJOVXp1cU9SRkpSME84SHhBd0VYZDkzakdVVFlNYU1NWEtTRjBRYkxTOENpVUtKcEVQMzRMRlFHIiwicyI6ImYzNTI3NzI2MTkwYiJ93iHyRg"
}

Upsert a lead by identity

POST /v1/leads

Creates a lead with supplied CRM fields (201) or fills only missing contact details on an existing identity (200), appending an optional note in the same idempotent transaction; changing an existing pipeline value requires conditional PATCH or returns 400 invalid_request. Import never revives or arms outreach; inbound requires its separate capability and a phone supplied by the person, with destination, consent and durable outreach guards. A validate_only dry run returns 200 without writes, conflicting identities return 409 ambiguous_identity, and external ids never cross integration namespaces.

Scopes
crm:write
Rate limit
write

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

  • Idempotency-Key string Required 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

Request body

Strict CRM intake body. An external id alone must already resolve in this integration’s namespace; conflicting phone/email identities are never silently merged.

  • origin string Required

    Required contact contract: import never arms outreach; inbound requires an explicitly enabled principal and a phone supplied by the person.

    Possible values
    • import
    • inbound
  • response_view string

    Request a source-backed metadata receipt rather than an export capture version; operational source authorization still applies.

  • phone string Pattern ^\+[1-9][0-9]{6,14}$

    Phone supplied by the person in E.164 format.

  • email string Format email ≤ 254 chars Pattern ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$

    Contact email address.

  • name string 1–200 chars

    First name or display name.

  • surname string 1–200 chars

    Surname.

  • company string 1–300 chars

    Company name.

  • website string Format uri ≤ 2048 chars

    Contact website; it is stored without fetching it.

  • board string ID prefix brd_…

    Destination board belonging to the selected team.

  • stage string ID prefix stg_…

    Destination stage belonging to the selected board and team; a move never bypasses outreach guards.

  • tags Array<string> ≤ 50 items

    Business tags, replacing the editable set; system tags cannot be set or removed.

  • priority string

    Lead priority.

    Possible values
    • low
    • medium
    • high
    • urgent
  • estimated_value number Range 0–1000000000000

    Estimated value in major units, without an implied currency.

  • assignees Array<string> ID prefix mem_… ≤ 100 items

    Assigned team members, replacing the previous editable set.

  • external_id string 1–200 chars

    Your integration’s external id, scoped to this principal and team; never another integration’s namespace.

  • validate_only boolean

    Validate without creating, updating or contacting anyone; the response is a lead_validation object.

  • consent object

    Explicit consent evidence; omitted consent is never treated as granted and import does not record it.

  • note string ≤ 5000 chars

    Optional qualification note appended atomically to a created or authorized existing lead. Blank text writes no note; replaying the same Idempotency-Key does not append again. Reading note content still requires its separate grant.

  • intake object

    Optional route for external inbound submissions only. Reuse the original submission ID as the Idempotency-Key across retries (up to 191 characters). Hosted assistant requests cannot select intake routes.

  • initial_custom_values Array<object> 1–50 items

    Initial exact-name values set only when this request creates a new lead; existing or revived leads ignore them. Requires current crm:custom_values:write in addition to crm:write; hosted assistant/source requests cannot supply this field. Provenance is server-owned; editing existing values still requires the independent custom-values If-Match.

Returns

Returns a LeadUpsertResult object.

  • object string

    Always lead_validation.

    Possible values
    • lead_mutation
    • lead_source_mutation
    • lead_validation
  • created boolean Conditional

    True only when this call created a new lead. True only when this operation created the retained lead.

  • lead Lead | LeadSourceReceipt Conditional Nullable

    Current authorized source receipt, or null when an unverified duplicate must remain unlinked.

  • intake_notification string May be absent

    Status of the team notification requested for this submission. Queueing does not confirm push delivery.

    Possible values
    • queued
    • already_queued
  • outreach object May be absent

    Intake outreach disposition, present on upsert responses.

  • changed boolean Conditional

    Whether the source values changed; an inert repeat is false.

  • registered_lead_linked boolean May be absent

    For voice registration, whether the genuinely created contact was linked to this execution. A different stated contact stays held and grants no subsequent source access.

  • valid boolean Conditional

    The request passed validation; no mutation or outreach was performed.

    Value
    • true

Errors

+ 12 common errors

POST /v1/leads
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/leads' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "Content-Type: application/json" \
  --data '{"origin": "import", "email": "alex.rivera@example.com", "name": "Alex"}'
Response · 200JSON
{
  "object": "lead_mutation",
  "created": true,
  "lead": {
    "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "object": "lead",
    "livemode": false,
    "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
    "record_kind": "lead",
    "name": "Alex",
    "surname": "Rivera",
    "date_of_birth": "1990-04-23",
    "email": "alex.rivera@example.com",
    "company": "Example Dental",
    "website": null,
    "phone": "+12025550123",
    "phone_status": "valid",
    "status": "contacted",
    "status_set_by": "ai",
    "archive_reason": null,
    "archived_from_status": null,
    "contact_permissions": {
      "do_not_contact": false,
      "email_opt_out": false,
      "email_opt_out_at": null,
      "whatsapp_consent": null,
      "provenance": {
        "do_not_contact": null,
        "email_opt_out": null,
        "whatsapp_consent": null
      }
    },
    "merged_into": null,
    "transferred_to": null,
    "revived_at": null,
    "pipeline_cleared": false,
    "converted_at": null,
    "value_at_conversion": null,
    "priority": "high",
    "tags": [
      "spring-check-up"
    ],
    "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
    "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
    "assignees": [
      "mem_h548E7UiYhutHhucVrQCzkM0eaea0"
    ],
    "estimated_value": 1200,
    "estimated_value_currency": null,
    "source": "meta_lead_ads",
    "source_channel": null,
    "source_detail": null,
    "source_provenance": "member_editable",
    "created_at": "2026-09-28T10:15:00.000Z",
    "version": 3,
    "updated_at": "2026-09-28T10:20:01.250Z"
  },
  "outreach": {
    "status": "not_armed",
    "reason": null
  }
}

Get a lead with its attribution and response

GET /v1/leads/{id}

Returns one lead with its two facets: attribution (where it came from) and response (how the team has answered it), each with its own version. A lead created moments ago can answer 404 resource_missing until Totem has prepared it; the changes feed delivers it then.

Scopes
crm:read
Rate limit
Read

Path parameters

  • id string Required ID prefix lead_…

    The lead's public id.

Returns

Returns a LeadDetail object.

Errors

+ 12 common errors

GET /v1/leads/{id}
curl 'https://api.totemstudio.ai/v1/leads/lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG' \
  -H "Authorization: Bearer $TOTEM_API_KEY"
Response · 200JSON
{
  "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "object": "lead",
  "livemode": false,
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "record_kind": "lead",
  "name": "Alex",
  "surname": "Rivera",
  "date_of_birth": "1990-04-23",
  "email": "alex.rivera@example.com",
  "company": "Example Dental",
  "website": null,
  "phone": "+12025550123",
  "phone_status": "valid",
  "status": "contacted",
  "status_set_by": "ai",
  "archive_reason": null,
  "archived_from_status": null,
  "contact_permissions": {
    "do_not_contact": false,
    "email_opt_out": false,
    "email_opt_out_at": null,
    "whatsapp_consent": null,
    "provenance": {
      "do_not_contact": null,
      "email_opt_out": null,
      "whatsapp_consent": null
    }
  },
  "merged_into": null,
  "transferred_to": null,
  "revived_at": null,
  "pipeline_cleared": false,
  "converted_at": null,
  "value_at_conversion": null,
  "priority": "high",
  "tags": [
    "spring-check-up"
  ],
  "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
  "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
  "assignees": [
    "mem_h548E7UiYhutHhucVrQCzkM0eaea0"
  ],
  "estimated_value": 1200,
  "estimated_value_currency": null,
  "source": "meta_lead_ads",
  "source_channel": null,
  "source_detail": null,
  "source_provenance": "member_editable",
  "created_at": "2026-09-28T10:15:00.000Z",
  "version": 3,
  "updated_at": "2026-09-28T10:20:01.250Z",
  "attribution": {
    "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "object": "lead_attribution",
    "livemode": false,
    "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
    "original_capture": {
      "capture": "at_creation",
      "captured_at": "2026-09-28T10:15:00.000Z",
      "source": "meta_lead_ads",
      "source_hint": null,
      "source_channel": null,
      "external_provider": null,
      "received_at": "2026-09-28T10:15:00.000Z",
      "submitted_at": "2026-09-28T10:14:30.000Z",
      "origin": null,
      "campaign": {
        "id": {
          "value": "120210000000000101",
          "provenance": "provider"
        },
        "name": {
          "value": "Spring check-up",
          "provenance": "provider"
        }
      },
      "ad": {
        "id": {
          "value": "120210000000000303",
          "provenance": "provider"
        },
        "name": {
          "value": "Free first visit",
          "provenance": "provider"
        }
      },
      "ad_set": {
        "id": {
          "value": "120210000000000202",
          "provenance": "provider"
        },
        "name": {
          "value": "Families nearby",
          "provenance": "provider"
        }
      },
      "ad_group": {
        "id": {
          "value": null,
          "provenance": "not_captured"
        }
      },
      "form": {
        "id": {
          "value": "900000000000000404",
          "provenance": "provider"
        },
        "name": {
          "value": "Book a check-up",
          "provenance": "provider"
        }
      },
      "creative": {
        "id": {
          "value": null,
          "provenance": "not_captured"
        }
      },
      "asset_group": {
        "id": {
          "value": null,
          "provenance": "not_captured"
        }
      },
      "page": {
        "id": {
          "value": "100000000000000505",
          "provenance": "provider"
        },
        "name": {
          "value": "Example Dental",
          "provenance": "provider"
        }
      },
      "utm": null,
      "click_network": {
        "value": null,
        "provenance": "not_captured"
      },
      "ad_referral": null,
      "family_origin": null,
      "audience": {
        "value": null,
        "missing_reason": "unsupported"
      }
    },
    "original_capture_missing_reason": null,
    "latest_submission": null,
    "latest_submission_missing_reason": "not_captured",
    "version": 1,
    "updated_at": "2026-09-28T10:15:02.100Z"
  },
  "response": {
    "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "object": "lead_response",
    "livemode": false,
    "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
    "last_inbound_at": "2026-10-01T08:58:00.000Z",
    "last_outbound_at": "2026-10-01T08:59:30.000Z",
    "awaiting_reply": false,
    "last_answered_call_at": "2026-09-28T10:17:00.000Z",
    "last_whatsapp_delivery_status": "read",
    "coverage": {
      "conversations": 2,
      "calls": 1,
      "channels_without_delivery_data": [
        "email"
      ],
      "truncated": false
    },
    "version": 7,
    "updated_at": "2026-10-01T08:59:31.040Z"
  }
}

Update editable CRM fields

PATCH /v1/leads/{id}

Updates only the declared CRM fields using the strong ETag from the current lead in If-Match; a stale version returns 412 version_conflict. Omitted fields remain unchanged, opt-outs can only be added, contact changes never arm outreach and an empty diff writes nothing. System, assistant, automation and billing fields are refused.

Scopes
crm:write
Rate limit
write

Path parameters

  • id string Required ID prefix lead_…

    The lead's public id.

Headers

  • Idempotency-Key string 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

  • If-Match string Required 1–300 chars Pattern ^"(?:lrs1_[a-f0-9]{64}|lead_[A-Za-z0-9]+:[1-9][0-9]{0,15})"$

    The current strong resource ETag, including its quotes; weak tags, wildcards, lists and another resource’s validator are refused.

Request body

Allowlisted CRM patch. Omitted fields are unchanged; contact changes remain inert and never arm outreach.

  • phone string Nullable Pattern ^\+[1-9][0-9]{6,14}$

    E.164 contact phone, or null to clear it without arming outreach.

  • email string Nullable Format email ≤ 254 chars Pattern ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$

    Contact email address, or null to clear it without arming outreach.

  • name string 1–200 chars

    First name or display name.

  • surname string Nullable 1–200 chars

    Surname, or null to clear it. Omission preserves the current value.

  • company string Nullable 1–300 chars

    Company name, or null to clear it.

  • website string Nullable Format uri ≤ 2048 chars

    Contact website, or null to clear it; it is never fetched.

  • board string ID prefix brd_…

    Destination board belonging to the selected team.

  • stage string ID prefix stg_…

    Destination stage belonging to the selected board and team; a move never bypasses outreach guards.

  • tags Array<string> ≤ 50 items

    Business tags, replacing the editable set; system tags cannot be set or removed.

  • priority string

    Lead priority.

    Possible values
    • low
    • medium
    • high
    • urgent
  • estimated_value number Nullable Range 0–1000000000000

    Estimated value in major units, or null to remove the optional value; omission preserves it.

  • assignees Array<string> ID prefix mem_… ≤ 100 items

    Assigned team members, replacing the previous editable set.

  • status string

    Current pipeline status. A transition into archived, converted or lost requires its dedicated action; an existing terminal status may be restated. An opted-out archived lead cannot be revived automatically. Cannot be combined with board/stage.

    Possible values
    • new
    • contacted
    • qualified
    • negotiating
    • converted
    • lost
    • archived
    • unreachable
  • follow_up_preference string

    The person’s explicit automated follow-up choice. Omission preserves it. ai never clears global opt-outs, human ownership, pauses, incidents or manual callbacks.

    Possible values
    • ai
    • human
    • none
  • date_of_birth string Nullable Format date Pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$

    Civil birth date, or null to clear it.

  • external_id string 1–200 chars

    Your integration’s external id, scoped to this principal and team; never another integration’s namespace.

  • do_not_contact boolean

    Record an opt-out on every channel; the API cannot clear one.

    Value
    • true
  • email_opt_out boolean

    Record an email opt-out; the API cannot clear one.

    Value
    • true

Returns

Returns a LeadMutation object.

  • object string
    Possible values
    • lead_mutation
    • lead_source_mutation
  • created boolean

    True only when this call created a new lead. True only when this operation created the retained lead.

  • lead Lead | LeadSourceReceipt Nullable

    Current authorized source receipt, or null when an unverified duplicate must remain unlinked.

  • intake_notification string May be absent

    Status of the team notification requested for this submission. Queueing does not confirm push delivery.

    Possible values
    • queued
    • already_queued
  • outreach object May be absent

    Intake outreach disposition, present on upsert responses.

  • changed boolean Conditional

    Whether the source values changed; an inert repeat is false.

  • registered_lead_linked boolean May be absent

    For voice registration, whether the genuinely created contact was linked to this execution. A different stated contact stays held and grants no subsequent source access.

Errors

+ 12 common errors

PATCH /v1/leads/{id}
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X PATCH 'https://api.totemstudio.ai/v1/leads/lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "If-Match: ${TOTEM_IF_MATCH:?Set the current quoted resource ETag}" \
  -H "Content-Type: application/json" \
  --data '{"company": "Example Company"}'
Response · 200JSON
{
  "object": "lead_mutation",
  "created": true,
  "lead": {
    "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "object": "lead",
    "livemode": false,
    "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
    "record_kind": "lead",
    "name": "Alex",
    "surname": "Rivera",
    "date_of_birth": "1990-04-23",
    "email": "alex.rivera@example.com",
    "company": "Example Dental",
    "website": null,
    "phone": "+12025550123",
    "phone_status": "valid",
    "status": "contacted",
    "status_set_by": "ai",
    "archive_reason": null,
    "archived_from_status": null,
    "contact_permissions": {
      "do_not_contact": false,
      "email_opt_out": false,
      "email_opt_out_at": null,
      "whatsapp_consent": null,
      "provenance": {
        "do_not_contact": null,
        "email_opt_out": null,
        "whatsapp_consent": null
      }
    },
    "merged_into": null,
    "transferred_to": null,
    "revived_at": null,
    "pipeline_cleared": false,
    "converted_at": null,
    "value_at_conversion": null,
    "priority": "high",
    "tags": [
      "spring-check-up"
    ],
    "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
    "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
    "assignees": [
      "mem_h548E7UiYhutHhucVrQCzkM0eaea0"
    ],
    "estimated_value": 1200,
    "estimated_value_currency": null,
    "source": "meta_lead_ads",
    "source_channel": null,
    "source_detail": null,
    "source_provenance": "member_editable",
    "created_at": "2026-09-28T10:15:00.000Z",
    "version": 3,
    "updated_at": "2026-09-28T10:20:01.250Z"
  },
  "outreach": {
    "status": "not_armed",
    "reason": null
  }
}

Find leads by exact phone or email

POST /v1/leads/search

Finds the team's leads whose phone or email matches exactly, including archived, merged and client records (follow merged_into to the lead that was kept). Send exactly one of phone or email in the JSON body, never in the URL. Returns at most 10 leads, chosen from the first 20 records that match, in one response that never paginates.

Scopes
crm:read
Rate limit
Read

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

Request body

Exactly one of phone or email, in the JSON body and never in the URL.

  • phone string Conditional 3–40 chars

    A phone number in E.164 (+12025550123). It finds the number stored in E.164, with or without the +, and in the layouts phone libraries write: +1 202-555-0123, (202) 555-0123 and 2025550123. Other layouts, such as 202 555 0123, are not found.

  • email string Conditional 3–254 chars

    An email address. It finds records stored exactly as sent, or stored in lowercase.

Returns

Returns a list of Lead objects.

  • object string

    Always list.

  • data Array<Lead> ≤ 10 items

    The matching leads: at most 10.

  • has_more boolean

    Always false, even when more records match: search returns at most 10 leads and has no next page.

  • next_cursor null Nullable

    Always null: search does not paginate.

Errors

+ 12 common errors

POST /v1/leads/search
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/leads/search' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Content-Type: application/json" \
  --data '{"phone": "+12025550123"}'
Response · 200JSON
{
  "object": "list",
  "data": [
    {
      "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
      "object": "lead",
      "livemode": false,
      "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
      "record_kind": "lead",
      "name": "Alex",
      "surname": "Rivera",
      "date_of_birth": "1990-04-23",
      "email": "alex.rivera@example.com",
      "company": "Example Dental",
      "website": null,
      "phone": "+12025550123",
      "phone_status": "valid",
      "status": "contacted",
      "status_set_by": "ai",
      "archive_reason": null,
      "archived_from_status": null,
      "contact_permissions": {
        "do_not_contact": false,
        "email_opt_out": false,
        "email_opt_out_at": null,
        "whatsapp_consent": null,
        "provenance": {
          "do_not_contact": null,
          "email_opt_out": null,
          "whatsapp_consent": null
        }
      },
      "merged_into": null,
      "transferred_to": null,
      "revived_at": null,
      "pipeline_cleared": false,
      "converted_at": null,
      "value_at_conversion": null,
      "priority": "high",
      "tags": [
        "spring-check-up"
      ],
      "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
      "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
      "assignees": [
        "mem_h548E7UiYhutHhucVrQCzkM0eaea0"
      ],
      "estimated_value": 1200,
      "estimated_value_currency": null,
      "source": "meta_lead_ads",
      "source_channel": null,
      "source_detail": null,
      "source_provenance": "member_editable",
      "created_at": "2026-09-28T10:15:00.000Z",
      "version": 3,
      "updated_at": "2026-09-28T10:20:01.250Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

List a lead's activities

GET /v1/leads/{id}/activities

Returns a page of the lead's activities: each change of its stage, status or assigned members, with when it happened and, when Totem recorded it, who made it. Pages are not in date order, so sort by occurred_at. Activities never change once written, and new ones also arrive in the changes feed.

Scopes
crm:read
Rate limit
Sync

Path parameters

  • id string Required ID prefix lead_…

    The lead's public id.

Query parameters

  • limit integer Range 1–100 Default 25

    Items per page, 1–100. Defaults to 25.

  • cursor string 1–512 chars

    The next_cursor of the previous page. Omit it for the first page.

Returns

Returns a list of Activity objects.

  • object string

    Always list.

  • data Array<Activity>

    The items of this page.

  • has_more boolean

    true when another page follows: fetch it with next_cursor, even if this page holds fewer items than limit.

  • next_cursor string Nullable

    Opaque cursor for the next page, or null on the last page. Never parse it.

Errors

+ 12 common errors

GET /v1/leads/{id}/activities
curl 'https://api.totemstudio.ai/v1/leads/lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG/activities?limit=25' \
  -H "Authorization: Bearer $TOTEM_API_KEY"
Response · 200JSON
{
  "object": "list",
  "data": [
    {
      "id": "act_aBgzeetVKDEjpAAkXfEFF53ZGd2ZMmGhUDKgagqLbh6c7R1GqOl0xsFw7pyRhD3SqqYWGMdb371xxj",
      "object": "activity",
      "livemode": false,
      "type": "stage_changed",
      "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
      "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
      "occurred_at": "2026-09-28T10:20:00.000Z",
      "actor_kind": "ai",
      "stage_snapshot": {
        "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
        "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
        "name": "Contacted"
      },
      "value_snapshot": 1200,
      "from": {
        "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVR3422Yg",
        "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst"
      },
      "to": {
        "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
        "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst"
      },
      "version": 1,
      "updated_at": "2026-09-28T10:20:01.500Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

List a lead’s note content

GET /v1/leads/{id}/notes

Returns a cursor-paged list of this lead’s notes only when this principal has the separate explicit note-content grant and crm:notes:read scope. Existing read-only keys never gain note content automatically, and sector restrictions still apply. Cursors are bound to this principal, team and lead incarnation.

Scopes
crm:readcrm:notes:read
Rate limit
Sync

Path parameters

  • id string Required ID prefix lead_…

    The lead's public id.

Query parameters

  • limit integer Range 1–100 Default 25

    Items per page, 1–100. Defaults to 25.

  • cursor string 1–512 chars

    Opaque note-page cursor bound to the current lead.

  • view string

    Select the unversioned current source representation.

Returns

Returns a LeadNoteList object.

  • object string

    Always list.

  • data Array<object> | Array<LeadNoteSource>

    The items of this page.

  • has_more boolean

    true when another page follows: fetch it with next_cursor, even if this page holds fewer items than limit.

  • next_cursor string Nullable

    Opaque cursor for the next page, or null on the last page. Never parse it.

Errors

+ 12 common errors

GET /v1/leads/{id}/notes
curl 'https://api.totemstudio.ai/v1/leads/lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG/notes?limit=25' \
  -H "Authorization: Bearer $TOTEM_API_KEY"
Response · 200JSON
{
  "object": "list",
  "data": [
    {
      "id": "note_m3S3yY53i0GJwNn0UPsl4jp3BubIW",
      "object": "lead_note",
      "livemode": false,
      "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
      "body": "Requested an updated proposal for the appointment.",
      "created_at": "2026-10-01T09:30:00.000Z",
      "external_id": "crm-note-123",
      "version": 1,
      "updated_at": "2026-10-01T09:30:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Add a lead note

POST /v1/leads/{id}/notes

Appends one integration-authored plain-text note and returns only its metadata, never note content. An external id is scoped to this integration and lead, and Idempotency-Key safely replays the same logical request. Reading any note body requires the separate explicit note-content grant.

Scopes
crm:write
Rate limit
write

Path parameters

  • id string Required ID prefix lead_…

    The lead's public id.

Headers

  • Idempotency-Key string 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

Request body

Append one integration-authored note. An external id deduplicates within this integration and lead.

  • body string Required 1–20000 chars

    Plain-text note body; stored with the integration as its author.

  • external_id string 1–200 chars

    Your integration’s external id, scoped to this principal and team; never another integration’s namespace.

  • response_view string

    Return metadata for the current source without an inventory capture version.

Returns

Returns a LeadNoteReceipt object.

  • object string
    Possible values
    • lead_note_receipt
    • lead_note_source_mutation
  • Live source metadata or the deleted note identity, never content.

  • created boolean Conditional

    Whether this logical operation created the note.

  • deleted boolean Conditional

    Whether this operation deleted its reviewed note incarnation.

Errors

+ 12 common errors

POST /v1/leads/{id}/notes
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/leads/lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG/notes' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "Content-Type: application/json" \
  --data '{"body": "Requested an updated proposal.", "external_id": "crm-note-123"}'
Response · 201JSON
{
  "object": "lead_note_receipt",
  "note": {
    "id": "note_m3S3yY53i0GJwNn0UPsl4jp3BubIW",
    "object": "lead_note",
    "livemode": false,
    "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "created_at": "2026-10-01T09:30:00.000Z",
    "external_id": "crm-note-123",
    "version": 1,
    "updated_at": "2026-10-01T09:30:00.000Z"
  }
}

Archive a lead

POST /v1/leads/{id}/archive

Archives the lead with a closed business reason using its current strong ETag in If-Match; stale versions return 412 version_conflict. The destructive-change budget applies and an opt_out reason suppresses every contact channel. This route cannot merge, transfer or erase a lead.

Scopes
crm:write
Rate limit
write

Path parameters

  • id string Required ID prefix lead_…

    The lead's public id.

Headers

  • Idempotency-Key string 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

  • If-Match string Required 1–300 chars Pattern ^"(?:lrs1_[a-f0-9]{64}|lead_[A-Za-z0-9]+:[1-9][0-9]{0,15})"$

    The current strong resource ETag, including its quotes; weak tags, wildcards, lists and another resource’s validator are refused.

Request body

Archive this lead with a closed business reason; never delete its data.

  • reason string Required

    Public archive reason; merging and transfers within an organization are separate privileged operations.

    Possible values
    • opt_out
    • no_consent
    • not_interested
    • not_qualified
    • no_contact
    • other
  • detail string 1–2000 chars

    Optional explanation of the archive reason.

Returns

Returns a LeadMutation object.

  • object string
    Possible values
    • lead_mutation
    • lead_source_mutation
  • created boolean

    True only when this call created a new lead. True only when this operation created the retained lead.

  • lead Lead | LeadSourceReceipt Nullable

    Current authorized source receipt, or null when an unverified duplicate must remain unlinked.

  • intake_notification string May be absent

    Status of the team notification requested for this submission. Queueing does not confirm push delivery.

    Possible values
    • queued
    • already_queued
  • outreach object May be absent

    Intake outreach disposition, present on upsert responses.

  • changed boolean Conditional

    Whether the source values changed; an inert repeat is false.

  • registered_lead_linked boolean May be absent

    For voice registration, whether the genuinely created contact was linked to this execution. A different stated contact stays held and grants no subsequent source access.

Errors

+ 12 common errors

POST /v1/leads/{id}/archive
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/leads/lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG/archive' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "If-Match: ${TOTEM_IF_MATCH:?Set the current quoted resource ETag}" \
  -H "Content-Type: application/json" \
  --data '{"reason": "not_interested"}'
Response · 200JSON
{
  "object": "lead_mutation",
  "created": true,
  "lead": {
    "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "object": "lead",
    "livemode": false,
    "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
    "record_kind": "lead",
    "name": "Alex",
    "surname": "Rivera",
    "date_of_birth": "1990-04-23",
    "email": "alex.rivera@example.com",
    "company": "Example Dental",
    "website": null,
    "phone": "+12025550123",
    "phone_status": "valid",
    "status": "contacted",
    "status_set_by": "ai",
    "archive_reason": null,
    "archived_from_status": null,
    "contact_permissions": {
      "do_not_contact": false,
      "email_opt_out": false,
      "email_opt_out_at": null,
      "whatsapp_consent": null,
      "provenance": {
        "do_not_contact": null,
        "email_opt_out": null,
        "whatsapp_consent": null
      }
    },
    "merged_into": null,
    "transferred_to": null,
    "revived_at": null,
    "pipeline_cleared": false,
    "converted_at": null,
    "value_at_conversion": null,
    "priority": "high",
    "tags": [
      "spring-check-up"
    ],
    "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
    "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
    "assignees": [
      "mem_h548E7UiYhutHhucVrQCzkM0eaea0"
    ],
    "estimated_value": 1200,
    "estimated_value_currency": null,
    "source": "meta_lead_ads",
    "source_channel": null,
    "source_detail": null,
    "source_provenance": "member_editable",
    "created_at": "2026-09-28T10:15:00.000Z",
    "version": 3,
    "updated_at": "2026-09-28T10:20:01.250Z"
  },
  "outreach": {
    "status": "not_armed",
    "reason": null
  }
}

Read named lead custom values

GET /v1/leads/{id}/custom-values

Requires the independent current custom-value content grant; exact names identify fields and current customFields override legacy formFields. Returns its own strong ETag, bound to the complete current snapshot and lead incarnation. Merged, erased and ambiguous duplicate-name sources are refused.

Scopes
crm:custom_values:read
Rate limit
Sync

Path parameters

  • id string Required ID prefix lead_…

    The lead's public id.

Query parameters

  • view string

    Select the unversioned current source representation.

Returns

Returns a LeadCustomValues object.

Errors

+ 12 common errors

GET /v1/leads/{id}/custom-values
curl 'https://api.totemstudio.ai/v1/leads/lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG/custom-values' \
  -H "Authorization: Bearer $TOTEM_API_KEY"
Response · 200JSON
{
  "object": "lead_custom_values",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "values": [
    {
      "name": "boat_type",
      "label": "Boat type",
      "value": "Sailboat",
      "source": "manual"
    }
  ]
}

Set or remove named lead custom values

PATCH /v1/leads/{id}/custom-values

Changes up to 50 distinct exact names using the custom-values ETag in If-Match even for no-op requests; omitted values and unknown row attributes remain unchanged, while touched legacy values are migrated or removed atomically. Separate write permission never exports values: the receipt contains counts and a fresh ETag only. Retry the same logical write with the same Idempotency-Key; a replay renders current metadata without restoring old content.

Scopes
crm:custom_values:write
Rate limit
write

Path parameters

  • id string Required ID prefix lead_…

    The lead's public id.

Query parameters

  • view string

    Select the unversioned current source representation.

Headers

  • Idempotency-Key string Required 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

  • If-Match string Required 1–300 chars Pattern ^"lcv_[a-f0-9]{64}"$

    The current strong resource ETag, including its quotes; weak tags, wildcards, lists and another resource’s validator are refused.

Request body

Targeted custom-value patch, protected by its own strong If-Match validator.

  • set Array<object> ≤ 50 items

    Set these exact names; omitted fields remain unchanged.

  • remove Array<string> ≤ 50 items

    Remove these exact names, including legacy copies.

Returns

Returns a LeadCustomValuesReceipt object.

Errors

+ 12 common errors

PATCH /v1/leads/{id}/custom-values
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X PATCH 'https://api.totemstudio.ai/v1/leads/lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG/custom-values' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "If-Match: ${TOTEM_IF_MATCH:?Set the current quoted resource ETag}" \
  -H "Content-Type: application/json" \
  --data '{"set": [{"name":"boat_type","label":"Boat type","value":"Sailboat"}]}'
Response · 200JSON
{
  "object": "lead_custom_values_receipt",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "changed": true,
  "set_count": 1,
  "removed_count": 0
}

Update a lead note

PATCH /v1/leads/{id}/notes/{note}

Updates the note under this lead incarnation using its current strong note ETag in If-Match; stale versions return 412 version_conflict. Only the note body and this integration’s external id can change, and the response contains metadata without content. An unchanged body creates no new note version.

Scopes
crm:write
Rate limit
write

Path parameters

  • id string Required ID prefix lead_…

    The note’s parent lead id.

  • note string Required ID prefix note_… ≤ 256 chars

    The opaque note id within this lead incarnation.

Headers

  • Idempotency-Key string 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

  • If-Match string Required 1–300 chars Pattern ^"(?:lns1_[a-f0-9]{64}|note_[A-Za-z0-9]+:[1-9][0-9]{0,15})"$

    The current strong resource ETag, including its quotes; weak tags, wildcards, lists and another resource’s validator are refused.

Request body

Append one integration-authored note. An external id deduplicates within this integration and lead.

  • body string Required 1–20000 chars

    Plain-text note body; stored with the integration as its author.

  • external_id string 1–200 chars

    Your integration’s external id, scoped to this principal and team; never another integration’s namespace.

  • response_view string

    Return metadata for the current source without an inventory capture version.

Returns

Returns a LeadNoteReceipt object.

  • object string
    Possible values
    • lead_note_receipt
    • lead_note_source_mutation
  • Live source metadata or the deleted note identity, never content.

  • created boolean Conditional

    Whether this logical operation created the note.

  • deleted boolean Conditional

    Whether this operation deleted its reviewed note incarnation.

Errors

+ 12 common errors

PATCH /v1/leads/{id}/notes/{note}
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X PATCH 'https://api.totemstudio.ai/v1/leads/lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG/notes/note_m3S3yY53i0GJwNn0UPsl4jp3BubIW' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "If-Match: ${TOTEM_IF_MATCH:?Set the current quoted resource ETag}" \
  -H "Content-Type: application/json" \
  --data '{"body": "Requested an updated proposal for next week."}'
Response · 200JSON
{
  "object": "lead_note_receipt",
  "note": {
    "id": "note_m3S3yY53i0GJwNn0UPsl4jp3BubIW",
    "object": "lead_note",
    "livemode": false,
    "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "created_at": "2026-10-01T09:30:00.000Z",
    "external_id": "crm-note-123",
    "version": 1,
    "updated_at": "2026-10-01T09:30:00.000Z"
  }
}

Delete a lead note

DELETE /v1/leads/{id}/notes/{note}

Deletes only the named note under this lead incarnation using its current strong note ETag in If-Match; a stale version returns 412 version_conflict. Success returns 204 with no JSON body and the changes feed retains a deletion marker. It never deletes or archives the parent lead.

Scopes
crm:write
Rate limit
write

Path parameters

  • id string Required ID prefix lead_…

    The note’s parent lead id.

  • note string Required ID prefix note_… ≤ 256 chars

    The opaque note id within this lead incarnation.

Headers

  • Idempotency-Key string 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

  • If-Match string Required 1–300 chars Pattern ^"(?:lns1_[a-f0-9]{64}|note_[A-Za-z0-9]+:[1-9][0-9]{0,15})"$

    The current strong resource ETag, including its quotes; weak tags, wildcards, lists and another resource’s validator are refused.

Returns

Errors

+ 12 common errors

DELETE /v1/leads/{id}/notes/{note}
curl -X DELETE 'https://api.totemstudio.ai/v1/leads/lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG/notes/note_m3S3yY53i0GJwNn0UPsl4jp3BubIW' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "If-Match: ${TOTEM_IF_MATCH:?Set the current quoted resource ETag}"

List boards with their stages

GET /v1/boards

Returns a page of the team's boards, each with its stages in pipeline order. Boards also arrive in the changes feed; read this list when you need them at once, for example when a lead names a stage you have not seen yet.

Scopes
crm:read
Rate limit
Sync

Query parameters

  • limit integer Range 1–100 Default 25

    Items per page, 1–100. Defaults to 25.

  • cursor string 1–512 chars

    The next_cursor of the previous page. Omit it for the first page.

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

Returns

Returns a list of Board objects.

  • object string

    Always list.

  • data Array<Board>

    The items of this page.

  • has_more boolean

    true when another page follows: fetch it with next_cursor, even if this page holds fewer items than limit.

  • next_cursor string Nullable

    Opaque cursor for the next page, or null on the last page. Never parse it.

Errors

+ 12 common errors

GET /v1/boards
curl 'https://api.totemstudio.ai/v1/boards?limit=25' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID"
Response · 200JSON
{
  "object": "list",
  "data": [
    {
      "id": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
      "object": "board",
      "livemode": false,
      "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
      "name": "New patients",
      "is_default": true,
      "is_archived": false,
      "appointment_booked_stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVT1QpfZ5",
      "stages": [
        {
          "object": "stage",
          "id": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVR3422Yg",
          "name": "New",
          "position": 0,
          "is_default": true,
          "is_final": false,
          "is_archive": false,
          "mode": "automated"
        },
        {
          "object": "stage",
          "id": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
          "name": "Contacted",
          "position": 1,
          "is_default": false,
          "is_final": false,
          "is_archive": false,
          "mode": "supervised"
        },
        {
          "object": "stage",
          "id": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVT1QpfZ5",
          "name": "Visit booked",
          "position": 2,
          "is_default": false,
          "is_final": true,
          "is_archive": false,
          "mode": "standard"
        }
      ],
      "version": 4,
      "updated_at": "2026-09-02T16:40:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Read current CRM context

POST /v1/crm/context

Reads the current canonical lead and bounded team context without an export capture version. Hosted executions resolve only their retained source lead. Notes and custom values require their own explicit current content permission before any content read; the business authoring profile is never included.

Scopes
crm:context:read
Rate limit
Read

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

Request body

Read-only operational CRM context. Caller-supplied phones, sender ids and authority are not accepted.

  • lead_id string ID prefix lead_…

    Own-team retained lead. Hosted executions may name only their current canonical source lead; omit to resolve it.

  • conversation_id string ID prefix conv_…

    Optional owned retained conversation. Tenant keys may use it for current-message context; hosted executions may name only their exact signed source.

  • holded_records object

    Live hosted customer request only, with a separate Holded content grant.

  • include_notes boolean

    Explicitly request bounded note content; requires its separate content grant before any note read.

  • include_custom_values boolean

    Explicitly request custom values with their independent content permission.

  • include_messages boolean

    Request bounded messages of the exact current signed conversation with its independent content grant.

  • include_calls boolean

    Request bounded current lead call transcript/summary evidence with its independent transcript grant.

  • include_payments boolean

    Request current exact-lead merchant evidence with the separate payments content permission.

  • include_recordings boolean

    Request recording coverage with its separate grant; content stays unavailable until a retained reference adapter exists.

  • include_attachments boolean

    Request attachment coverage with its separate grant; no provider media URL is disclosed.

  • representation string

    Additionally return the canonical bounded model projections, using the same sanitizer as the existing assistants.

Returns

Returns a CrmContext object.

Errors

+ 12 common errors

POST /v1/crm/context
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/crm/context' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Content-Type: application/json" \
  --data '{"lead_id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG"}'
Response · 200JSON
{
  "object": "crm_context",
  "source_contact": {
    "phone": null
  },
  "conversation_id": null,
  "call_id": null,
  "lead": null,
  "team": {
    "name": "Example Dental",
    "timezone": "Europe/Madrid",
    "default_country": "ES",
    "id": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
    "extra_info": null,
    "business_hours_source": "configured",
    "business_hours": {
      "monday": [
        {
          "start": "09:00",
          "end": "18:00"
        }
      ],
      "tuesday": [
        {
          "start": "09:00",
          "end": "18:00"
        }
      ],
      "wednesday": [
        {
          "start": "09:00",
          "end": "18:00"
        }
      ],
      "thursday": [
        {
          "start": "09:00",
          "end": "18:00"
        }
      ],
      "friday": [
        {
          "start": "09:00",
          "end": "18:00"
        }
      ],
      "saturday": [],
      "sunday": []
    },
    "now_business": "2026-10-01T11:30:00+02:00"
  },
  "notes": null,
  "notes_has_more": false,
  "custom_values": null,
  "automation": null,
  "pipeline": null,
  "runtime": {
    "preferred_language": "en",
    "notification_language_instruction": "Use English.",
    "notification_departments": [],
    "default_department_id": null,
    "notifications_enabled": false,
    "controller_name": null,
    "privacy_policy_url": null
  },
  "messages": null,
  "calls": null,
  "payments": null,
  "coverage": {
    "notes": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    },
    "custom_values": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    },
    "messages": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    },
    "calls": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    },
    "payments": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    },
    "recordings": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    },
    "attachments": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    }
  },
  "model_context": null
}

Schedule a requested contact

POST /v1/crm/scheduled-contact

Persists a requested callback after current recipient, consent, hold, channel and thirty-day checks; select an owned lead or a genuinely new contact, while hosted execution may derive its exact source. New registration and scheduling share the canonical transaction, and the receipt proves a saved promise without claiming delivery. Reuse Idempotency-Key; optional current source If-Match protects a reviewed existing lead.

Scopes
crm:writecrm:scheduled_contacts:write
Rate limit
write

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

  • Idempotency-Key string Required 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

  • If-Match string 1–300 chars Pattern ^"lrs1_[a-f0-9]{64}"$

    The current strong resource ETag, including its quotes; weak tags, wildcards, lists and another resource’s validator are refused.

Request body

Schedule the existing canonical delayed-contact action. Hosted executions can omit lead_id to resolve their current source. No caller-supplied provider, sender, raw source or authority is accepted.

  • lead_id string ID prefix lead_…

    Current own-team lead. Hosted executions may only name their canonical current source lead.

  • new_contact object

    Create a genuinely new contact and schedule through the same canonical intake operation; cannot be combined with lead_id.

  • contact_at string Required Format date-time

    Requested future contact time, strictly within thirty days of admission.

  • channel string Required

    Requested business channel; current recipient and delivery configuration are validated by the server.

    Possible values
    • call
    • whatsapp
  • note string ≤ 500 chars

    Operational callback note only; never a model prompt or call objective.

  • customer_confirmed boolean Required

    Explicit attestation that the person requested this contact time; it never overrides opt-outs or current holds.

    Value
    • true

Returns

Returns a ScheduledContactReceipt object.

Errors

+ 12 common errors

POST /v1/crm/scheduled-contact
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/crm/scheduled-contact' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "If-Match: ${TOTEM_IF_MATCH:?Set the current quoted resource ETag}" \
  -H "Content-Type: application/json" \
  --data '{"lead_id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG", "contact_at": "2026-11-05T10:00:00.000Z", "channel": "call", "customer_confirmed": true}'
Response · 200JSON
{
  "object": "scheduled_contact_receipt",
  "lead": {
    "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "etag": "\"lrs1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"",
    "updated_at": "2026-10-01T09:30:00.000Z",
    "object": "lead_source_receipt"
  },
  "contact_at": "2026-10-02T09:30:00.000Z",
  "channel": "call",
  "created": false
}

Hand off to a configured organization office

POST /v1/crm/handoff

Uses the configured organization directory and current owned source; tenant integrations select their lead while hosted execution derives its retained conversation, call or voice session. An unverified identity cannot take over an existing destination contact, and ambiguity follows human review. The content-free receipt grants no general cross-team access and does not claim delivery of a queued notification.

Scopes
crm:writecrm:handoff:write
Rate limit
write

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

  • Idempotency-Key string Required 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

Request body

Use the existing configured organization handoff. No arbitrary destination team, source identifier or assistant authority can be supplied.

  • automation_mode string

    Preserve the existing idle automation cursor, callbacks and follow-ups when the configured destination is compatible; otherwise fail without moving. Omit for existing handoff behavior.

    Possible values
    • preserve
    • default
  • lead_id string ID prefix lead_…

    Owned retained source lead, required for tenant keys; hosted execution may derive its current source without a lead yet.

  • office string 1–128 chars

    Exact configured organization office slug; omit for the current office.

  • board_id string ID prefix brd_…

    Opaque current board from that configured office; omit for its canonical default.

  • summary string Required 1–4000 chars

    Qualified need for the receiving office, preserving relevant customer statements.

  • name string ≤ 200 chars

    Name supplied by the person; existing canonical identity stays authoritative.

  • phone string ≤ 80 chars

    Phone supplied by the person for the referral; never proof of authority over an existing contact.

  • email string Format email ≤ 254 chars Pattern ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$

    Email supplied by the person; ambiguity is routed to canonical human review.

Returns

Returns a FamilyHandoffReceipt object.

Errors

+ 12 common errors

POST /v1/crm/handoff
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/crm/handoff' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "Content-Type: application/json" \
  --data '{"lead_id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG", "summary": "Requested a consultation with the current office."}'
Response · 200JSON
{
  "object": "family_handoff_receipt",
  "status": "accepted",
  "office": "example",
  "moved_source": false,
  "notification_queued": true
}

Submit a consented referral to Totem Studio

POST /v1/referrals/totem

Submits a consented referral through the canonical CRM engine to the fixed Totem intake; the source lead provides provenance without selecting or granting destination access. The neutral received acknowledgement reveals neither destination identity nor existing matches, and unverified matching records remain unchanged. Attest consent and reuse Idempotency-Key for retries.

Scopes
referrals:write
Rate limit
write

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

  • Idempotency-Key string Required 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

Request body

Refer an interested person to the one fixed Totem product destination. Caller-supplied destination teams, channels, provider ids and authority are forbidden.

  • name string Required 1–200 chars

    Real name supplied by the person; placeholder names are rejected.

  • phone string Pattern ^\+[1-9][0-9]{6,14}$

    Contact phone in E.164. Hosted execution may omit it only when its actual retained transport supplies a current verified phone; hidden source identifiers never become phones.

  • note string Required 1–5000 chars

    Qualified context for the fixed Totem referral; source provenance is attached only by the server.

  • tags Array<string> ≤ 50 items

    Business tags for a genuinely new referred contact. Existing destination tags remain authoritative.

  • consent boolean Required

    Explicit attestation that the person wants Totem AI/automation contact. It is not WhatsApp marketing consent and never overrides the destination review policy.

    Value
    • true
  • lead_id string ID prefix lead_…

    Optional owned source lead for provenance. Hosted execution may name only its current lead; this never selects or grants access to a Totem destination contact.

Returns

Returns a ReferralReceipt object.

Errors

+ 12 common errors

POST /v1/referrals/totem
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/referrals/totem' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "Content-Type: application/json" \
  --data '{"name": "Alex Rivera", "phone": "+12025550123", "note": "Requested information about Totem automation.", "consent": true}'
Response · 200JSON
{
  "object": "referral_receipt",
  "status": "received"
}

Record an attested external quote outcome

POST /v1/crm/quote-outcomes

Records the caller’s external calculator and delivery attestation against its current owned source, reusing configured commercial disposition and one-shot review or closure effects. Totem does not independently verify those external facts; callers cannot select destination teams, providers, private effects or attempt tokens. Current source, configuration and authority are rechecked before effects; reuse Idempotency-Key and reconcile outcome_unknown before repeating.

Scopes
quotes:write
Rate limit
write

Headers

  • Totem-Team string Conditional ID prefix team_…

    The team to read, as a team_… id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets 400 invalid_request, and a team outside the key gets 404 team_not_accessible, as does a request without it once the key reads no team at all.

  • Idempotency-Key string Required 1–255 chars Pattern ^[\x21-\x7e]+$

    One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.

Request body

Attest external calculator and delivery facts, then apply the existing configured quote disposition and one-shot effects. No caller-selected provider, destination, attempt token or raw source identifier is accepted.

  • lead_id string ID prefix lead_…

    Current own-team lead; hosted execution may only name its current canonical source lead.

  • conversation_id string ID prefix conv_…

    Exact current owned conversation for tenant integrations; hosted executions derive their retained source.

  • call_id string ID prefix call_…

    Exact current owned call, as an alternative to conversation_id.

  • quote_reference string Required 1–256 chars

    Stable reference from the external calculator, scoped to this lead and source.

  • quote_revision_hash string Required Pattern ^[a-f0-9]{64}$

    SHA-256 of the exact external calculator revision attested by the caller.

  • quoted boolean Required

    Whether the external calculator produced a numeric offer accepted for delivery.

  • reason string

    Canonical refusal or review reason. Omit for a numeric offer.

    Possible values
    • BELOW_MINIMUM
    • BELOW_MINIMUM_REQUIRES_REVIEW
    • ABOVE_MAXIMUM
    • ABOVE_MAXIMUM_REQUIRES_REVIEW
    • PERSONAL_STUDY_REQUIRED
  • summary string ≤ 1500 chars Default

    Qualified quote summary for canonical CRM history or configured review email; never a model prompt.

  • deliveries Array<object> ≤ 2 items

    At most one attested receipt per supported channel. Numeric quotes require a receipt; refusals cannot carry proposal deliveries.

Returns

Returns an Operation object.

Errors

+ 12 common errors

POST /v1/crm/quote-outcomes
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/crm/quote-outcomes' \
  -H "Authorization: Bearer $TOTEM_API_KEY" \
  -H "Totem-Team: $TOTEM_TEAM_ID" \
  -H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
  -H "Content-Type: application/json" \
  --data '{"lead_id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG", "conversation_id": "conv_m3GhGjRHmFbww1g10oqOp7j3gWqPJ", "quote_reference": "example-quote-123", "quote_revision_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "quoted": false, "reason": "PERSONAL_STUDY_REQUIRED"}'
Response · 202JSON
{
  "object": "operation",
  "id": "op_m3yGe1tkVy6hn3m9LH9m7e640wg0O",
  "status": "queued",
  "endpoint": "quotes.recordOutcome",
  "created_at": "2026-10-01T09:30:00.000Z",
  "updated_at": "2026-10-01T09:30:00.000Z",
  "result": null,
  "error": null
}

The Lead object

A lead or client record: lead fields only.

Attributes

  • id string ID prefix lead_…

    Public id of the record.

  • object string

    Always lead.

  • livemode boolean

    true for real data; false in example data.

  • team string ID prefix team_…

    The team the record belongs to.

  • record_kind string

    lead when the record has a pipeline status, otherwise client. A lead whose status this version does not know reads status: null.

    Possible values
    • lead
    • client
  • name string Nullable

    First name or display name, or null.

  • surname string Nullable

    Surname, or null.

  • date_of_birth string Nullable Format date Pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$

    Civil date of birth in YYYY-MM-DD, without a time or timezone; null when missing, cleared or invalid.

  • email string Nullable

    Email address as stored, or null.

  • company string Nullable

    Company, or null.

  • website string Nullable

    Contact website as stored, without fetching it, or null.

  • phone string Nullable

    Phone in E.164, only when the stored number validates; otherwise null.

  • phone_status string

    valid (see phone), invalid (a number is stored but does not validate, for example one stored without its country prefix) or missing.

    Possible values
    • valid
    • invalid
    • missing
  • status string Nullable

    Pipeline status; null for a client record, or for a status this version does not know. converted is not "won".

    Possible values
    • new
    • contacted
    • qualified
    • negotiating
    • converted
    • lost
    • archived
    • unreachable
  • status_set_by string Nullable

    Who set the current status: a person, the AI, Totem automation, an API caller, or unknown (no recorded transition lands on it). Null when status is null.

    Possible values
    • human
    • ai
    • system
    • api
    • unknown
  • archive_reason string Nullable

    Why the record was archived, as a closed code; stored free text is other. Null when none is stored.

    Possible values
    • opt_out
    • no_consent
    • not_interested
    • not_qualified
    • no_contact
    • merged
    • family_transfer
    • other
  • archived_from_status string Nullable

    The status the lead had before its current archive; null while it is not archived or when unknown.

    Possible values
    • new
    • contacted
    • qualified
    • negotiating
    • converted
    • lost
    • archived
    • unreachable
  • contact_permissions object

    Contact permissions. Apply them before any outreach from your own systems.

  • merged_into string Nullable ID prefix lead_…

    The lead this record was merged into, or null (also when that lead no longer exists).

  • transferred_to object Nullable

    Where a transfer to another team of your organization sent this lead, or null. The team may be one your key does not read.

  • revived_at string Nullable Format date-time

    When the contact last came back on their own and revived an archived lead, or null.

  • pipeline_cleared boolean

    True when the lead was converted with "clear pipeline data": board, stage, priority, assignees, estimated value and the source fields other than source_channel are null because they were cleared.

  • converted_at string Nullable Format date-time

    When the lead was converted, while its status is converted; otherwise null.

  • value_at_conversion number Nullable

    The estimated value when it was converted, in major units. Survives "clear pipeline data".

  • priority string Nullable

    Priority, or null.

    Possible values
    • low
    • medium
    • high
    • urgent
  • tags Array<string>

    Labels as stored. lead and booking are system labels.

  • board string Nullable ID prefix brd_…

    The board, resolved through the stage when it has one; or null.

  • stage string Nullable ID prefix stg_…

    The stage, or null.

  • assignees Array<string> Nullable ID prefix mem_…

    Assigned members, sorted. Null when the record has no pipeline data.

  • estimated_value number Nullable

    Estimated value in major units as stored (decimals allowed), or null.

  • estimated_value_currency null Nullable

    Always null: Totem stores no currency with the value.

  • source string Nullable

    The stored lead source; api also covers leads created by Totem itself (for example from a conversation or a call), see source_detail. Null when none is stored.

    Possible values
    • meta_lead_ads
    • manual
    • website_form
    • booking_page
    • csv_import
    • api
  • source_channel string Nullable

    The channel the record started on (for example whatsapp, phone, widget), or null. Team members can edit it.

  • source_detail string Nullable

    conversation, call, external:<provider>, gated_ad:<source>, family_handoff, api_intake or unknown; null when source needs no detail.

  • source_provenance string Nullable

    server_written when Totem set the source from what the ad platform reported; otherwise member_editable (team members can change it). Null with source.

    Possible values
    • server_written
    • member_editable
  • created_at string Format date-time

    When the record was created.

  • version integer Range ≥ 1

    Increases every time one of the record's exported fields changes. Apply a change only when its version is greater than the one you hold.

  • updated_at string Format date-time

    When Totem recorded this version (UTC). It is not the time the business event happened.

Lead · exampleJSON
{
  "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "object": "lead",
  "livemode": false,
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "record_kind": "lead",
  "name": "Alex",
  "surname": "Rivera",
  "date_of_birth": "1990-04-23",
  "email": "alex.rivera@example.com",
  "company": "Example Dental",
  "website": null,
  "phone": "+12025550123",
  "phone_status": "valid",
  "status": "contacted",
  "status_set_by": "ai",
  "archive_reason": null,
  "archived_from_status": null,
  "contact_permissions": {
    "do_not_contact": false,
    "email_opt_out": false,
    "email_opt_out_at": null,
    "whatsapp_consent": null,
    "provenance": {
      "do_not_contact": null,
      "email_opt_out": null,
      "whatsapp_consent": null
    }
  },
  "merged_into": null,
  "transferred_to": null,
  "revived_at": null,
  "pipeline_cleared": false,
  "converted_at": null,
  "value_at_conversion": null,
  "priority": "high",
  "tags": [
    "spring-check-up"
  ],
  "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
  "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
  "assignees": [
    "mem_h548E7UiYhutHhucVrQCzkM0eaea0"
  ],
  "estimated_value": 1200,
  "estimated_value_currency": null,
  "source": "meta_lead_ads",
  "source_channel": null,
  "source_detail": null,
  "source_provenance": "member_editable",
  "created_at": "2026-09-28T10:15:00.000Z",
  "version": 3,
  "updated_at": "2026-09-28T10:20:01.250Z"
}

The LeadDetail object

A lead with its attribution and response facets, each with its own version. A facet is null only while Totem is still preparing it.

Attributes

  • id string ID prefix lead_…

    Public id of the record.

  • object string

    Always lead.

  • livemode boolean

    true for real data; false in example data.

  • team string ID prefix team_…

    The team the record belongs to.

  • record_kind string

    lead when the record has a pipeline status, otherwise client. A lead whose status this version does not know reads status: null.

    Possible values
    • lead
    • client
  • name string Nullable

    First name or display name, or null.

  • surname string Nullable

    Surname, or null.

  • date_of_birth string Nullable Format date Pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$

    Civil date of birth in YYYY-MM-DD, without a time or timezone; null when missing, cleared or invalid.

  • email string Nullable

    Email address as stored, or null.

  • company string Nullable

    Company, or null.

  • website string Nullable

    Contact website as stored, without fetching it, or null.

  • phone string Nullable

    Phone in E.164, only when the stored number validates; otherwise null.

  • phone_status string

    valid (see phone), invalid (a number is stored but does not validate, for example one stored without its country prefix) or missing.

    Possible values
    • valid
    • invalid
    • missing
  • status string Nullable

    Pipeline status; null for a client record, or for a status this version does not know. converted is not "won".

    Possible values
    • new
    • contacted
    • qualified
    • negotiating
    • converted
    • lost
    • archived
    • unreachable
  • status_set_by string Nullable

    Who set the current status: a person, the AI, Totem automation, an API caller, or unknown (no recorded transition lands on it). Null when status is null.

    Possible values
    • human
    • ai
    • system
    • api
    • unknown
  • archive_reason string Nullable

    Why the record was archived, as a closed code; stored free text is other. Null when none is stored.

    Possible values
    • opt_out
    • no_consent
    • not_interested
    • not_qualified
    • no_contact
    • merged
    • family_transfer
    • other
  • archived_from_status string Nullable

    The status the lead had before its current archive; null while it is not archived or when unknown.

    Possible values
    • new
    • contacted
    • qualified
    • negotiating
    • converted
    • lost
    • archived
    • unreachable
  • contact_permissions object

    Contact permissions. Apply them before any outreach from your own systems.

  • merged_into string Nullable ID prefix lead_…

    The lead this record was merged into, or null (also when that lead no longer exists).

  • transferred_to object Nullable

    Where a transfer to another team of your organization sent this lead, or null. The team may be one your key does not read.

  • revived_at string Nullable Format date-time

    When the contact last came back on their own and revived an archived lead, or null.

  • pipeline_cleared boolean

    True when the lead was converted with "clear pipeline data": board, stage, priority, assignees, estimated value and the source fields other than source_channel are null because they were cleared.

  • converted_at string Nullable Format date-time

    When the lead was converted, while its status is converted; otherwise null.

  • value_at_conversion number Nullable

    The estimated value when it was converted, in major units. Survives "clear pipeline data".

  • priority string Nullable

    Priority, or null.

    Possible values
    • low
    • medium
    • high
    • urgent
  • tags Array<string>

    Labels as stored. lead and booking are system labels.

  • board string Nullable ID prefix brd_…

    The board, resolved through the stage when it has one; or null.

  • stage string Nullable ID prefix stg_…

    The stage, or null.

  • assignees Array<string> Nullable ID prefix mem_…

    Assigned members, sorted. Null when the record has no pipeline data.

  • estimated_value number Nullable

    Estimated value in major units as stored (decimals allowed), or null.

  • estimated_value_currency null Nullable

    Always null: Totem stores no currency with the value.

  • source string Nullable

    The stored lead source; api also covers leads created by Totem itself (for example from a conversation or a call), see source_detail. Null when none is stored.

    Possible values
    • meta_lead_ads
    • manual
    • website_form
    • booking_page
    • csv_import
    • api
  • source_channel string Nullable

    The channel the record started on (for example whatsapp, phone, widget), or null. Team members can edit it.

  • source_detail string Nullable

    conversation, call, external:<provider>, gated_ad:<source>, family_handoff, api_intake or unknown; null when source needs no detail.

  • source_provenance string Nullable

    server_written when Totem set the source from what the ad platform reported; otherwise member_editable (team members can change it). Null with source.

    Possible values
    • server_written
    • member_editable
  • created_at string Format date-time

    When the record was created.

  • version integer Range ≥ 1

    Increases every time one of the record's exported fields changes. Apply a change only when its version is greater than the one you hold.

  • updated_at string Format date-time

    When Totem recorded this version (UTC). It is not the time the business event happened.

  • attribution LeadAttribution Nullable

    The lead's attribution facet, or null while Totem is still preparing it.

  • response LeadResponse Nullable

    The lead's response facet, or null while Totem is still preparing it.

LeadDetail · exampleJSON
{
  "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "object": "lead",
  "livemode": false,
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "record_kind": "lead",
  "name": "Alex",
  "surname": "Rivera",
  "date_of_birth": "1990-04-23",
  "email": "alex.rivera@example.com",
  "company": "Example Dental",
  "website": null,
  "phone": "+12025550123",
  "phone_status": "valid",
  "status": "contacted",
  "status_set_by": "ai",
  "archive_reason": null,
  "archived_from_status": null,
  "contact_permissions": {
    "do_not_contact": false,
    "email_opt_out": false,
    "email_opt_out_at": null,
    "whatsapp_consent": null,
    "provenance": {
      "do_not_contact": null,
      "email_opt_out": null,
      "whatsapp_consent": null
    }
  },
  "merged_into": null,
  "transferred_to": null,
  "revived_at": null,
  "pipeline_cleared": false,
  "converted_at": null,
  "value_at_conversion": null,
  "priority": "high",
  "tags": [
    "spring-check-up"
  ],
  "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
  "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
  "assignees": [
    "mem_h548E7UiYhutHhucVrQCzkM0eaea0"
  ],
  "estimated_value": 1200,
  "estimated_value_currency": null,
  "source": "meta_lead_ads",
  "source_channel": null,
  "source_detail": null,
  "source_provenance": "member_editable",
  "created_at": "2026-09-28T10:15:00.000Z",
  "version": 3,
  "updated_at": "2026-09-28T10:20:01.250Z",
  "attribution": {
    "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "object": "lead_attribution",
    "livemode": false,
    "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
    "original_capture": {
      "capture": "at_creation",
      "captured_at": "2026-09-28T10:15:00.000Z",
      "source": "meta_lead_ads",
      "source_hint": null,
      "source_channel": null,
      "external_provider": null,
      "received_at": "2026-09-28T10:15:00.000Z",
      "submitted_at": "2026-09-28T10:14:30.000Z",
      "origin": null,
      "campaign": {
        "id": {
          "value": "120210000000000101",
          "provenance": "provider"
        },
        "name": {
          "value": "Spring check-up",
          "provenance": "provider"
        }
      },
      "ad": {
        "id": {
          "value": "120210000000000303",
          "provenance": "provider"
        },
        "name": {
          "value": "Free first visit",
          "provenance": "provider"
        }
      },
      "ad_set": {
        "id": {
          "value": "120210000000000202",
          "provenance": "provider"
        },
        "name": {
          "value": "Families nearby",
          "provenance": "provider"
        }
      },
      "ad_group": {
        "id": {
          "value": null,
          "provenance": "not_captured"
        }
      },
      "form": {
        "id": {
          "value": "900000000000000404",
          "provenance": "provider"
        },
        "name": {
          "value": "Book a check-up",
          "provenance": "provider"
        }
      },
      "creative": {
        "id": {
          "value": null,
          "provenance": "not_captured"
        }
      },
      "asset_group": {
        "id": {
          "value": null,
          "provenance": "not_captured"
        }
      },
      "page": {
        "id": {
          "value": "100000000000000505",
          "provenance": "provider"
        },
        "name": {
          "value": "Example Dental",
          "provenance": "provider"
        }
      },
      "utm": null,
      "click_network": {
        "value": null,
        "provenance": "not_captured"
      },
      "ad_referral": null,
      "family_origin": null,
      "audience": {
        "value": null,
        "missing_reason": "unsupported"
      }
    },
    "original_capture_missing_reason": null,
    "latest_submission": null,
    "latest_submission_missing_reason": "not_captured",
    "version": 1,
    "updated_at": "2026-09-28T10:15:02.100Z"
  },
  "response": {
    "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "object": "lead_response",
    "livemode": false,
    "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
    "last_inbound_at": "2026-10-01T08:58:00.000Z",
    "last_outbound_at": "2026-10-01T08:59:30.000Z",
    "awaiting_reply": false,
    "last_answered_call_at": "2026-09-28T10:17:00.000Z",
    "last_whatsapp_delivery_status": "read",
    "coverage": {
      "conversations": 2,
      "calls": 1,
      "channels_without_delivery_data": [
        "email"
      ],
      "truncated": false
    },
    "version": 7,
    "updated_at": "2026-10-01T08:59:31.040Z"
  }
}

The LeadAttribution object

Where a lead came from: its original capture and latest submission.

Attributes

  • id string ID prefix lead_…

    Public id of the record.

  • object string

    Always lead_attribution.

  • livemode boolean

    true for real data; false in example data.

  • team string ID prefix team_…

    The team the lead belongs to.

  • original_capture object Nullable

    How the lead first entered the CRM, frozen once; null when it was not captured. "Original" is the first time the contact entered the CRM, not the first ad it answered.

  • original_capture_missing_reason string Nullable

    not_captured when original_capture is null, otherwise null.

    Possible values
    • not_captured
  • latest_submission object Nullable

    The newest ad submission recorded for this lead, including a repeat on an existing contact; null when none is recorded. A submission the ad platform reports deleted (a LinkedIn member deleting their form response) is no longer shown, and once the newest one expires or is withdrawn an older one can show instead.

  • latest_submission_missing_reason string Nullable

    not_captured when latest_submission is null, otherwise null.

    Possible values
    • not_captured
  • version integer Range ≥ 1

    Increases every time one of the record's exported fields changes. Apply a change only when its version is greater than the one you hold.

  • updated_at string Format date-time

    When Totem recorded this version (UTC). It is not the time the business event happened.

LeadAttribution · exampleJSON
{
  "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "object": "lead_attribution",
  "livemode": false,
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "original_capture": {
    "capture": "at_creation",
    "captured_at": "2026-09-28T10:15:00.000Z",
    "source": "meta_lead_ads",
    "source_hint": null,
    "source_channel": null,
    "external_provider": null,
    "received_at": "2026-09-28T10:15:00.000Z",
    "submitted_at": "2026-09-28T10:14:30.000Z",
    "origin": null,
    "campaign": {
      "id": {
        "value": "120210000000000101",
        "provenance": "provider"
      },
      "name": {
        "value": "Spring check-up",
        "provenance": "provider"
      }
    },
    "ad": {
      "id": {
        "value": "120210000000000303",
        "provenance": "provider"
      },
      "name": {
        "value": "Free first visit",
        "provenance": "provider"
      }
    },
    "ad_set": {
      "id": {
        "value": "120210000000000202",
        "provenance": "provider"
      },
      "name": {
        "value": "Families nearby",
        "provenance": "provider"
      }
    },
    "ad_group": {
      "id": {
        "value": null,
        "provenance": "not_captured"
      }
    },
    "form": {
      "id": {
        "value": "900000000000000404",
        "provenance": "provider"
      },
      "name": {
        "value": "Book a check-up",
        "provenance": "provider"
      }
    },
    "creative": {
      "id": {
        "value": null,
        "provenance": "not_captured"
      }
    },
    "asset_group": {
      "id": {
        "value": null,
        "provenance": "not_captured"
      }
    },
    "page": {
      "id": {
        "value": "100000000000000505",
        "provenance": "provider"
      },
      "name": {
        "value": "Example Dental",
        "provenance": "provider"
      }
    },
    "utm": null,
    "click_network": {
      "value": null,
      "provenance": "not_captured"
    },
    "ad_referral": null,
    "family_origin": null,
    "audience": {
      "value": null,
      "missing_reason": "unsupported"
    }
  },
  "original_capture_missing_reason": null,
  "latest_submission": null,
  "latest_submission_missing_reason": "not_captured",
  "version": 1,
  "updated_at": "2026-09-28T10:15:02.100Z"
}

The LeadResponse object

How the team has answered a lead across its conversations and calls: the latest messages each way and whether a reply is due. It uses its lead's id.

Attributes

  • id string ID prefix lead_…

    Public id of the record.

  • object string

    Always lead_response.

  • livemode boolean

    true for real data; false in example data.

  • team string ID prefix team_…

    The team this record belongs to.

  • last_inbound_at string Nullable Format date-time

    The latest message from the customer on any of the lead's conversations (UTC), or null. Not counted: erased messages, imported WhatsApp history and web-chat visitor turns. Instagram shares cannot be told apart and count.

  • last_outbound_at string Nullable Format date-time

    The latest message sent to the customer that did not fail, on any of the lead's conversations and whoever sent it (UTC), or null. Imported WhatsApp history counts.

  • awaiting_reply boolean

    True when last_inbound_at is newer than the latest reply on any of the lead's conversations. A reply is a sent message that did not fail and was recorded as a conversation reply or with no purpose; outreach, transactional messages (such as reminders) and imported history do not count. Most stored messages carry no purpose, so an automated send recorded without one also counts as a reply. False when the customer has never written.

  • last_answered_call_at string Nullable Format date-time

    When the latest of the lead's calls whose outcome is answered_human or answered_ai started (UTC), or null. A connected outbound call on Totem's phone lines reads unknown, so it is not counted.

  • last_whatsapp_delivery_status string Nullable

    delivered, read or failed for the latest message sent to the lead on WhatsApp. Null when that message has no receipt yet (sent is never stored) or the lead has no message sent on WhatsApp.

    Possible values
    • delivered
    • read
    • failed
  • coverage object

    What these facts were computed from.

  • version integer Range ≥ 1

    Increases every time one of the record's exported fields changes. Apply a change only when its version is greater than the one you hold.

  • updated_at string Format date-time

    When Totem recorded this version (UTC). It is not the time the business event happened.

LeadResponse · exampleJSON
{
  "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "object": "lead_response",
  "livemode": false,
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "last_inbound_at": "2026-10-01T08:58:00.000Z",
  "last_outbound_at": "2026-10-01T08:59:30.000Z",
  "awaiting_reply": false,
  "last_answered_call_at": "2026-09-28T10:17:00.000Z",
  "last_whatsapp_delivery_status": "read",
  "coverage": {
    "conversations": 2,
    "calls": 1,
    "channels_without_delivery_data": [
      "email"
    ],
    "truncated": false
  },
  "version": 7,
  "updated_at": "2026-10-01T08:59:31.040Z"
}

The LeadNote object

Lead note body.

Attributes

  • id string ID prefix note_…

    Public id of the record.

  • object string

    Always lead_note.

  • livemode boolean

    true for real data; false in example data.

  • lead string ID prefix lead_…

    The parent lead.

  • body string ≤ 50000 chars

    CRM note text; requires the explicit note-content grant.

  • created_at string Format date-time

    When this note was created.

  • external_id string Nullable ≤ 200 chars

    The caller’s own external id, or null. Canonical feed objects withhold all integration namespaces.

  • version integer Range ≥ 1

    Increases every time one of the record's exported fields changes. Apply a change only when its version is greater than the one you hold.

  • updated_at string Format date-time

    When Totem recorded this version (UTC). It is not the time the business event happened.

LeadNote · exampleJSON
{
  "id": "note_m3S3yY53i0GJwNn0UPsl4jp3BubIW",
  "object": "lead_note",
  "livemode": false,
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "body": "Requested an updated proposal for the appointment.",
  "created_at": "2026-10-01T09:30:00.000Z",
  "external_id": null,
  "version": 1,
  "updated_at": "2026-10-01T09:30:00.000Z"
}

The LeadNoteMetadata object

Lead note metadata without its content; safe for a write-only receipt or replay.

Attributes

  • id string ID prefix note_… ≤ 256 chars

    Opaque stable note id, bound to this team and lead incarnation; never parse it.

  • object string

    Always lead_note.

  • livemode boolean

    True for real data; false only in fictional example data.

  • lead string ID prefix lead_…

    The lead this note belongs to.

  • version integer Range ≥ 1

    The current note version; use the matching strong note ETag for conditional writes.

  • created_at string Format date-time

    When the note was created.

  • updated_at string Format date-time

    When the current version was recorded.

  • external_id string Nullable ≤ 200 chars

    Your integration’s external id for this note, or null; other integrations’ ids are withheld.

LeadNoteMetadata · exampleJSON
{
  "id": "note_m3S3yY53i0GJwNn0UPsl4jp3BubIW",
  "object": "lead_note",
  "livemode": false,
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "created_at": "2026-10-01T09:30:00.000Z",
  "external_id": "crm-note-123",
  "version": 1,
  "updated_at": "2026-10-01T09:30:00.000Z"
}

The LeadCustomValues object

Custom values with a separate opaque ETag in the response header.

Attributes

  • object string

    Always lead_custom_values.

  • lead string ID prefix lead_…

    Owning lead.

  • values Array<object>

    Current exact-name values; requires the separate content-read grant.

LeadCustomValues · exampleJSON
{
  "object": "lead_custom_values",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "values": [
    {
      "name": "boat_type",
      "label": "Boat type",
      "value": "Sailboat",
      "source": "manual"
    }
  ]
}

The LeadCustomValuesReceipt object

Content-free mutation receipt; the response ETag reflects the current source even on replay.

Attributes

  • object string

    Always lead_custom_values_receipt.

  • lead string ID prefix lead_…

    Owning lead.

  • changed boolean

    Whether this logical request changed stored custom values.

  • set_count integer Range 0–50

    Exact names set by this logical request.

  • removed_count integer Range 0–50

    Existing exact names removed by this logical request.

LeadCustomValuesReceipt · exampleJSON
{
  "object": "lead_custom_values_receipt",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "changed": true,
  "set_count": 1,
  "removed_count": 0
}

The Activity object

One stage, status or assignee transition of a lead. Activities never change once written.

Attributes of every variant

  • id string ID prefix act_…

    Public id of the record.

  • object string

    Always activity.

  • livemode boolean

    true for real data; false in example data.

  • team string ID prefix team_…

    The team the lead belongs to.

  • lead string Nullable ID prefix lead_…

    The lead that moved. Null only while Totem has not yet assigned the lead its id.

  • occurred_at string Format date-time

    When the change was saved.

  • actor_kind string

    Who made the change: a person, the AI, Totem automation, an API caller, or unknown. Totem knows who made a change only when the same save wrote the lead's status, so a stage or assignee change made on its own reads unknown.

    Possible values
    • human
    • ai
    • system
    • api
    • unknown
  • stage_snapshot object Nullable

    The stage the lead was in after the change (for "clear pipeline data", the stage it left), or null.

  • value_snapshot number Nullable

    The estimated value at that moment, in major units, or null.

  • version integer Range ≥ 1

    Increases every time one of the record's exported fields changes. Apply a change only when its version is greater than the one you hold.

  • updated_at string Format date-time

    When Totem recorded this version (UTC). It is not the time the business event happened.

Variants

Each Activity is exactly one of these 3 variants.

A status transition

When type is one of status_changed archived unarchived revived

  • type string

    status_changed, archived, unarchived, or revived (the contact came back on their own and reopened an archived lead).

    Possible values
    • status_changed
    • archived
    • unarchived
    • revived
  • from string Nullable

    The status before, or null when there was none.

    Possible values
    • new
    • contacted
    • qualified
    • negotiating
    • converted
    • lost
    • archived
    • unreachable
  • to string

    The status after.

    Possible values
    • new
    • contacted
    • qualified
    • negotiating
    • converted
    • lost
    • archived
    • unreachable

A stage move

When type is stage_changed

  • type string

    Always stage_changed.

  • from object Nullable

    The stage and board before, or null when the lead had neither.

  • to object

    The stage and board after.

A change of assigned members

When type is assignees_changed

  • type string

    Always assignees_changed.

  • from Array<string> ID prefix mem_…

    The assigned members before, sorted.

  • to Array<string> ID prefix mem_…

    The assigned members after, sorted.

Activity · exampleJSON
{
  "id": "act_aBgzeetVKDEjpAAkXfEFF53ZGd2ZMmGhUDKgagqLbh6c7R1GqOl0xsFw7pyRhD3SqqYWGMdb371xxj",
  "object": "activity",
  "livemode": false,
  "type": "stage_changed",
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "occurred_at": "2026-09-28T10:20:00.000Z",
  "actor_kind": "ai",
  "stage_snapshot": {
    "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
    "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
    "name": "Contacted"
  },
  "value_snapshot": 1200,
  "from": {
    "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVR3422Yg",
    "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst"
  },
  "to": {
    "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
    "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst"
  },
  "version": 1,
  "updated_at": "2026-09-28T10:20:01.500Z"
}

The Board object

A board with its stages in pipeline order.

Attributes

  • id string ID prefix brd_…

    Public id of the record.

  • object string

    Always board.

  • livemode boolean

    true for real data; false in example data.

  • team string ID prefix team_…

    The team this record belongs to.

  • name string Nullable ≥ 1 chars

    The board's name, or null when none is stored.

  • is_default boolean

    True for the team's default board, where new leads land unless routed elsewhere.

  • is_archived boolean

    True when the board is archived (hidden from the board selector). Its leads still export.

  • appointment_booked_stage string Nullable ID prefix stg_…

    The stage of this board a lead moves to when its first appointment is confirmed, or null when none is set or it names no stage of this board.

  • stages Array<object>

    The board's stages, ordered by position, then by id. A stage with no position stored at all is left out, although a lead can still name it.

  • version integer Range ≥ 1

    Increases every time one of the record's exported fields changes. Apply a change only when its version is greater than the one you hold.

  • updated_at string Format date-time

    When Totem recorded this version (UTC). It is not the time the business event happened.

Board · exampleJSON
{
  "id": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
  "object": "board",
  "livemode": false,
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "name": "New patients",
  "is_default": true,
  "is_archived": false,
  "appointment_booked_stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVT1QpfZ5",
  "stages": [
    {
      "object": "stage",
      "id": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVR3422Yg",
      "name": "New",
      "position": 0,
      "is_default": true,
      "is_final": false,
      "is_archive": false,
      "mode": "automated"
    },
    {
      "object": "stage",
      "id": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
      "name": "Contacted",
      "position": 1,
      "is_default": false,
      "is_final": false,
      "is_archive": false,
      "mode": "supervised"
    },
    {
      "object": "stage",
      "id": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVT1QpfZ5",
      "name": "Visit booked",
      "position": 2,
      "is_default": false,
      "is_final": true,
      "is_archive": false,
      "mode": "standard"
    }
  ],
  "version": 4,
  "updated_at": "2026-09-02T16:40:00.000Z"
}

The CrmContext object

Current source-bound CRM metadata and independently requested content. No export capture version or business authoring profile is included.

Attributes

  • object string

    Always crm_context.

  • source_contact object

    Current source contact evidence, independently of whether the conversation is linked to a lead. A tenant without a signed source receives null phone.

  • conversation_id string Nullable ID prefix conv_…

    Current authorized execution conversation, or null for a lead-only tenant context; never an unrelated thread.

  • call_id string Nullable ID prefix call_…

    Current authorized voice call, or null when no call source exists. A browser session never invents a conversation or premature call.

  • lead LeadSource Nullable

    Current authorized source lead, or null when this conversation is still unlinked.

  • team object

    Bounded team runtime facts; no assistant prompt or business profile.

  • notes Array<object> Nullable ≤ 20 items

    Up to twenty current retained notes when explicitly requested and authorized; otherwise null.

  • notes_has_more boolean

    More notes exist beyond this bounded context; use the separately authorized notes endpoint for a full export.

  • custom_values Array<object> Nullable

    Current custom values only when requested with their independent content permission; otherwise null.

  • automation object Nullable

    Current CRM automation metadata, separate from permission and consent.

  • pipeline object Nullable

    Current authorized pipeline facts; opaque ids can be used with the public business operations.

  • runtime object

    Named current operational language, routing and verified legal/privacy facts; no destination members or authoring profile.

  • family_routing object May be absent Nullable

    Current configured organization routing only with the separately issued handoff capability; omitted for older or context-only grants.

  • messages ConversationMessages Nullable

    Explicitly granted exact current conversation messages, or null when not requested/unavailable.

  • calls Array<object> Nullable ≤ 10 items

    Explicitly granted current lead call evidence, or null when not requested/unavailable.

  • payments object Nullable

    Explicitly granted canonical customer payment evidence. Opaque display ids never authorize an action; incomplete never means unpaid.

  • holded_records object May be absent

    Only records explicitly shared with this verified customer. No Holded contact ID, internal case notes or attachments.

  • coverage object

    Explicit coverage for every independently authorized content section.

  • model_context object Nullable

    Optional canonical model-facing projections with the existing sanitizer and exact total budgets; typed context remains separate.

CrmContext · exampleJSON
{
  "object": "crm_context",
  "source_contact": {
    "phone": null
  },
  "conversation_id": null,
  "call_id": null,
  "lead": null,
  "team": {
    "name": "Example Dental",
    "timezone": "Europe/Madrid",
    "default_country": "ES",
    "id": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
    "extra_info": null,
    "business_hours_source": "configured",
    "business_hours": {
      "monday": [
        {
          "start": "09:00",
          "end": "18:00"
        }
      ],
      "tuesday": [
        {
          "start": "09:00",
          "end": "18:00"
        }
      ],
      "wednesday": [
        {
          "start": "09:00",
          "end": "18:00"
        }
      ],
      "thursday": [
        {
          "start": "09:00",
          "end": "18:00"
        }
      ],
      "friday": [
        {
          "start": "09:00",
          "end": "18:00"
        }
      ],
      "saturday": [],
      "sunday": []
    },
    "now_business": "2026-10-01T11:30:00+02:00"
  },
  "notes": null,
  "notes_has_more": false,
  "custom_values": null,
  "automation": null,
  "pipeline": null,
  "runtime": {
    "preferred_language": "en",
    "notification_language_instruction": "Use English.",
    "notification_departments": [],
    "default_department_id": null,
    "notifications_enabled": false,
    "controller_name": null,
    "privacy_policy_url": null
  },
  "messages": null,
  "calls": null,
  "payments": null,
  "coverage": {
    "notes": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    },
    "custom_values": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    },
    "messages": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    },
    "calls": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    },
    "payments": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    },
    "recordings": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    },
    "attachments": {
      "status": "not_requested",
      "included": 0,
      "total": null,
      "reason": null
    }
  },
  "model_context": null
}

The LeadSource object

Current canonical CRM lead projection, available through the explicit operational context permission without inventing a capture version.

Attributes

  • team string ID prefix team_…

    The team the record belongs to.

  • record_kind string

    lead when the record has a pipeline status, otherwise client. A lead whose status this version does not know reads status: null.

    Possible values
    • lead
    • client
  • name string Nullable

    First name or display name, or null.

  • surname string Nullable

    Surname, or null.

  • date_of_birth string Nullable Format date Pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$

    Civil date of birth in YYYY-MM-DD, without a time or timezone; null when missing, cleared or invalid.

  • email string Nullable

    Email address as stored, or null.

  • company string Nullable

    Company, or null.

  • website string Nullable

    Contact website as stored, without fetching it, or null.

  • phone string Nullable

    Phone in E.164, only when the stored number validates; otherwise null.

  • phone_status string

    valid (see phone), invalid (a number is stored but does not validate, for example one stored without its country prefix) or missing.

    Possible values
    • valid
    • invalid
    • missing
  • status string Nullable

    Pipeline status; null for a client record, or for a status this version does not know. converted is not "won".

    Possible values
    • new
    • contacted
    • qualified
    • negotiating
    • converted
    • lost
    • archived
    • unreachable
  • status_set_by string Nullable

    Who set the current status: a person, the AI, Totem automation, an API caller, or unknown (no recorded transition lands on it). Null when status is null.

    Possible values
    • human
    • ai
    • system
    • api
    • unknown
  • archive_reason string Nullable

    Why the record was archived, as a closed code; stored free text is other. Null when none is stored.

    Possible values
    • opt_out
    • no_consent
    • not_interested
    • not_qualified
    • no_contact
    • merged
    • family_transfer
    • other
  • archived_from_status string Nullable

    The status the lead had before its current archive; null while it is not archived or when unknown.

    Possible values
    • new
    • contacted
    • qualified
    • negotiating
    • converted
    • lost
    • archived
    • unreachable
  • contact_permissions object

    Contact permissions. Apply them before any outreach from your own systems.

  • merged_into string Nullable ID prefix lead_…

    The lead this record was merged into, or null (also when that lead no longer exists).

  • transferred_to object Nullable

    Where a transfer to another team of your organization sent this lead, or null. The team may be one your key does not read.

  • revived_at string Nullable Format date-time

    When the contact last came back on their own and revived an archived lead, or null.

  • pipeline_cleared boolean

    True when the lead was converted with "clear pipeline data": board, stage, priority, assignees, estimated value and the source fields other than source_channel are null because they were cleared.

  • converted_at string Nullable Format date-time

    When the lead was converted, while its status is converted; otherwise null.

  • value_at_conversion number Nullable

    The estimated value when it was converted, in major units. Survives "clear pipeline data".

  • priority string Nullable

    Priority, or null.

    Possible values
    • low
    • medium
    • high
    • urgent
  • tags Array<string>

    Labels as stored. lead and booking are system labels.

  • board string Nullable ID prefix brd_…

    The board, resolved through the stage when it has one; or null.

  • stage string Nullable ID prefix stg_…

    The stage, or null.

  • assignees Array<string> Nullable ID prefix mem_…

    Assigned members, sorted. Null when the record has no pipeline data.

  • estimated_value number Nullable

    Estimated value in major units as stored (decimals allowed), or null.

  • estimated_value_currency null Nullable

    Always null: Totem stores no currency with the value.

  • source string Nullable

    The stored lead source; api also covers leads created by Totem itself (for example from a conversation or a call), see source_detail. Null when none is stored.

    Possible values
    • meta_lead_ads
    • manual
    • website_form
    • booking_page
    • csv_import
    • api
  • source_channel string Nullable

    The channel the record started on (for example whatsapp, phone, widget), or null. Team members can edit it.

  • source_detail string Nullable

    conversation, call, external:<provider>, gated_ad:<source>, family_handoff, api_intake or unknown; null when source needs no detail.

  • source_provenance string Nullable

    server_written when Totem set the source from what the ad platform reported; otherwise member_editable (team members can change it). Null with source.

    Possible values
    • server_written
    • member_editable
  • created_at string Format date-time

    When the record was created.

  • id string ID prefix lead_…

    Opaque current lead id, scoped to the authorized team and incarnation.

  • etag string Pattern ^"lrs1_[a-f0-9]{64}"$

    Strong ETag of the exact retained lead source shown here; never an export capture version.

  • updated_at string Format date-time

    Actual source update time of this retained snapshot.

  • object string

    Always lead_source; this is not a captured Lead version.

LeadSource · exampleJSON
{
  "team": "team_r9uYrIW4gSFJJ6hZQ9ip1UIpPaAD1CF7NR",
  "record_kind": "lead",
  "name": "Alex",
  "surname": "Rivera",
  "date_of_birth": "1990-04-23",
  "email": "alex.rivera@example.com",
  "company": "Example Dental",
  "website": null,
  "phone": "+12025550123",
  "phone_status": "valid",
  "status": "contacted",
  "status_set_by": "ai",
  "archive_reason": null,
  "archived_from_status": null,
  "contact_permissions": {
    "do_not_contact": false,
    "email_opt_out": false,
    "email_opt_out_at": null,
    "whatsapp_consent": null,
    "provenance": {
      "do_not_contact": null,
      "email_opt_out": null,
      "whatsapp_consent": null
    }
  },
  "merged_into": null,
  "transferred_to": null,
  "revived_at": null,
  "pipeline_cleared": false,
  "converted_at": null,
  "value_at_conversion": null,
  "priority": "high",
  "tags": [
    "spring-check-up"
  ],
  "board": "brd_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMX3trzsVUZQuHcMSuDh1aRIst",
  "stage": "stg_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXWBYWcKwVTY3CRZlVS3oYvs0",
  "assignees": [
    "mem_h548E7UiYhutHhucVrQCzkM0eaea0"
  ],
  "estimated_value": 1200,
  "estimated_value_currency": null,
  "source": "meta_lead_ads",
  "source_channel": null,
  "source_detail": null,
  "source_provenance": "member_editable",
  "created_at": "2026-09-28T10:15:00.000Z",
  "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "etag": "\"lrs1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"",
  "updated_at": "2026-10-01T09:30:00.000Z",
  "object": "lead_source"
}

The LeadSourceReceipt object

Write receipt metadata only: no contact details or CRM content.

Attributes

  • id string ID prefix lead_…

    Opaque current lead id, scoped to the authorized team and incarnation.

  • etag string Pattern ^"lrs1_[a-f0-9]{64}"$

    Strong ETag of the exact retained lead source shown here; never an export capture version.

  • updated_at string Format date-time

    Actual source update time of this retained snapshot.

  • object string

    Always lead_source_receipt.

LeadSourceReceipt · exampleJSON
{
  "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "etag": "\"lrs1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"",
  "updated_at": "2026-10-01T09:30:00.000Z",
  "object": "lead_source_receipt"
}

The LeadSourceMutation object

Source-backed CRM mutation metadata. It never invents an inventory version or grants read access through a write.

Attributes

  • object string

    Always lead_source_mutation.

  • created boolean

    True only when this operation created the retained lead.

  • changed boolean

    Whether the source values changed; an inert repeat is false.

  • registered_lead_linked boolean May be absent

    For voice registration, whether the genuinely created contact was linked to this execution. A different stated contact stays held and grants no subsequent source access.

  • lead LeadSourceReceipt Nullable

    Current authorized source receipt, or null when an unverified duplicate must remain unlinked.

LeadSourceMutation · exampleJSON
{
  "object": "lead_source_mutation",
  "created": false,
  "changed": true,
  "lead": {
    "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "etag": "\"lrs1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"",
    "updated_at": "2026-10-01T09:30:00.000Z",
    "object": "lead_source_receipt"
  }
}

The LeadNoteSource object

Current retained note content under its independent read grant, without an inventory version.

Attributes

  • lead string ID prefix lead_…

    Current authorized parent lead.

  • body string ≤ 50000 chars

    CRM note text; requires the explicit note-content grant.

  • created_at string Format date-time

    When this note was created.

  • external_id string Nullable ≤ 200 chars

    The caller’s own external id, or null. Canonical feed objects withhold all integration namespaces.

  • id string ID prefix note_…

    Opaque id of this exact note incarnation.

  • object string

    Always lead_note_source.

  • etag string Pattern ^"lns1_[a-f0-9]{64}"$

    Strong validator bound to the current note and parent lead incarnations and source values.

  • updated_at string Format date-time

    Actual source update time of this note.

LeadNoteSource · exampleJSON
{
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "body": "Requested the service guide.",
  "created_at": "2026-10-01T09:30:00.000Z",
  "external_id": null,
  "id": "note_m3S3yY53i0GJwNn0UPsl4jp3BubIW",
  "object": "lead_note_source",
  "etag": "\"lns1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"",
  "updated_at": "2026-10-01T09:30:00.000Z"
}

The LeadNoteSourceReceipt object

Metadata-only source write receipt; no note text or other notes.

Attributes

  • id string ID prefix note_…

    Opaque id of this exact note incarnation.

  • lead string ID prefix lead_…

    Current authorized parent lead.

  • object string

    Always lead_note_source_receipt.

  • etag string Pattern ^"lns1_[a-f0-9]{64}"$

    Strong validator bound to the current note and parent lead incarnations and source values.

  • updated_at string Format date-time

    Actual current source update time.

LeadNoteSourceReceipt · exampleJSON
{
  "id": "note_m3S3yY53i0GJwNn0UPsl4jp3BubIW",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "object": "lead_note_source_receipt",
  "etag": "\"lns1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"",
  "updated_at": "2026-10-01T09:30:00.000Z"
}

The LeadNoteSourceDeletion object

Content-free proof that this operation deleted the reviewed note incarnation.

Attributes

  • id string ID prefix note_…

    Opaque id of this exact note incarnation.

  • lead string ID prefix lead_…

    Current authorized parent lead.

  • object string

    Always lead_note_source_deletion; it names the deleted incarnation only.

LeadNoteSourceDeletion · exampleJSON
{
  "id": "note_m3S3yY53i0GJwNn0UPsl4jp3BubIW",
  "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
  "object": "lead_note_source_deletion"
}

The LeadNoteSourceMutation object

Current source note mutation metadata; safe for write-only integrations and replay.

Attributes

  • object string

    Always lead_note_source_mutation.

  • created boolean

    Whether this logical operation created the note.

  • deleted boolean

    Whether this operation deleted its reviewed note incarnation.

  • Live source metadata or the deleted note identity, never content.

LeadNoteSourceMutation · exampleJSON
{
  "object": "lead_note_source_mutation",
  "created": false,
  "deleted": false,
  "note": {
    "id": "note_m3S3yY53i0GJwNn0UPsl4jp3BubIW",
    "lead": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "object": "lead_note_source_receipt",
    "etag": "\"lns1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"",
    "updated_at": "2026-10-01T09:30:00.000Z"
  }
}

The ScheduledContactReceipt object

Metadata of a persisted callback promise, without customer contact details or provider selectors.

Attributes

  • object string

    Always scheduled_contact_receipt.

  • contact_at string Format date-time

    The time committed to the existing delayed-contact dispatcher.

  • channel string

    Committed contact channel. This receipt does not claim provider delivery.

    Possible values
    • call
    • whatsapp
  • created boolean

    Whether this operation genuinely created the contact.

ScheduledContactReceipt · exampleJSON
{
  "object": "scheduled_contact_receipt",
  "lead": {
    "id": "lead_r72EfbRNUzuqORFJR0O8HxAwEXd93jGUTYMaMMXKSF0QbLS8CiUKJpEP34LFQG",
    "etag": "\"lrs1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"",
    "updated_at": "2026-10-01T09:30:00.000Z",
    "object": "lead_source_receipt"
  },
  "contact_at": "2026-10-02T09:30:00.000Z",
  "channel": "call",
  "created": false
}

The FamilyHandoffReceipt object

Content-free organization handoff result; destination contacts, source content and provider selectors remain private.

Attributes

  • object string

    Always family_handoff_receipt.

  • status string

    Canonical accepted disposition, or identity ambiguity awaiting human review.

    Possible values
    • accepted
    • needs_review
  • office string

    Configured receiving office slug; no internal destination team id.

  • moved_source boolean

    Whether the canonical source lead was transferred, preserving pending-work fences.

  • notification_queued boolean

    True only when the canonical notification and push outbox were committed. This does not claim delivery.

FamilyHandoffReceipt · exampleJSON
{
  "object": "family_handoff_receipt",
  "status": "accepted",
  "office": "example",
  "moved_source": false,
  "notification_queued": true
}

The ReferralReceipt object

Content-free receipt with no destination existence or identity disclosure.

Attributes

  • object string

    Always referral_receipt.

  • status string

    Submission received. Unverified duplicates are acknowledged neutrally without changing or identifying an existing contact. This does not claim approval, outreach or provider delivery.

ReferralReceipt · exampleJSON
{
  "object": "referral_receipt",
  "status": "received"
}

The QuoteOutcomeReceipt object

Content-free quote outcome receipt; no customer, provider, stage or private effect selectors.

Attributes

  • object string

    Always quote_outcome_receipt.

  • status string

    Canonical commercial disposition was recorded. This does not claim independent verification of the external quote or delivery.

  • delivery_evidence string

    External delivery evidence was attested by the caller.

    Value
    • caller_attested
QuoteOutcomeReceipt · exampleJSON
{
  "object": "quote_outcome_receipt",
  "status": "recorded",
  "delivery_evidence": "caller_attested"
}

API version 1.0.0