Synq
Skip to content
[ synq / docs ]Synq home

Lead sessions (client view)

The outside client own view of their conversations.

The outside client is not a workspace member and never gets a workspace route. These routes show a client only the conversations bound to their own verified web identity; anyone else gets 404. Staff-only fields (internal notes, handling version, other leads) are never present. A client message moves no money: the agent replies only while handling is AGENT. The Idempotency-Key doubles as the message delivery key, so a retried send is stored once and answered once. Client messages are throttled to 30 a minute per principal.

Routes#

GET /v3/lead-sessions#

The client's own private conversations with businesses.

Route idleadSessions.list
AuthSession (bearer or cookie)
Who may callexternal client who redeemed a web lead invite
StatusIMPLEMENTED

Response (ClientLeadList)

FieldTypeRequiredNotes
leadsClientLeadSummary[]yes

Example response (synthetic fixture):

json
{
  "leads": [
    {
      "leadId": "00000000-0000-4000-8000-000000000003",
      "businessName": "Example Studio",
      "stage": "OFFER_SENT",
      "lastActivityAt": "2026-10-17T10:03:00.000Z"
    }
  ]
}

GET /v3/lead-sessions/{leadId}#

Transcript and sent offers, without staff-only fields.

Route idleadSessions.detail
AuthSession (bearer or cookie)
Who may callthe client bound to that lead (anyone else gets 404)
StatusIMPLEMENTED

Path parameters: leadId (UUIDs unless stated).

Response (ClientLeadDetail)

FieldTypeRequiredNotes
leadClientLeadSummaryyes
consentobjectyes
consent.grantedbooleanyes
consent.grantedAtISO-8601 time or nullyes
consent.scopestring (max 200)yes
messagesLeadMessage[]yes
olderMessagesCursorstring (max 200, min 1) or nullyes
offersClientOfferVersion[]yes

Example response (synthetic fixture):

json
{
  "lead": {
    "leadId": "00000000-0000-4000-8000-000000000003",
    "businessName": "Example Studio",
    "stage": "OFFER_SENT",
    "lastActivityAt": "2026-10-17T10:03:00.000Z"
  },
  "consent": {
    "granted": true,
    "grantedAt": "2026-10-17T10:01:00.000Z",
    "scope": "The business may read this private conversation."
  },
  "messages": [
    {
      "messageId": "00000000-0000-4000-8000-000000000014",
      "author": "LEAD",
      "text": "Can you do a logo and two banners by Friday?",
      "offerVersion": null,
      "createdAt": "2026-10-17T10:02:00.000Z"
    }
  ],
  "olderMessagesCursor": null,
  "offers": [
    {
      "offerId": "00000000-0000-4000-8000-000000000005",
      "version": 1,
      "termsHash": "0xc71c916768de28c0c224036e9c9fd7976ff24124a24445f4b37b571ff78d8075",
      "status": "SENT",
      "total": {
        "assetId": "arc-testnet:USDC",
        "symbol": "USDC",
        "chainId": 5042002,
        "decimals": 6,
        "units": "120000000"
      },
      "lines": [
        {
          "description": "Logo and two banners",
          "quantity": 1,
          "unitUnits": "120000000",
          "totalUnits": "120000000"
        }
      ],
      "milestones": [
        {
          "label": "Final files",
          "units": "120000000",
          "dueAt": null
        }
      ],
      "expiresAt": "2026-10-18T10:00:00.000Z",
      "createdAt": "2026-10-17T10:03:00.000Z"
    }
  ]
}

POST /v3/lead-sessions/{leadId}/message#

Client message; the sales agent replies only while handling is AGENT. Moves no money.

Route idleadSessions.message
AuthSession + Idempotency-Key (+ same origin for cookies)
Who may callthe client bound to that lead (anyone else gets 404)
StatusIMPLEMENTED

Path parameters: leadId (UUIDs unless stated).

Request body (LeadMessageRequest)

FieldTypeRequiredNotes
textstring (max 4000, min 1)yes

Response (LeadMessage)

FieldTypeRequiredNotes
messageIduuidyes
authorLEAD, AGENT, STAFF, SYSTEMyes
textstring (max 4000)yes
offerVersioninteger or nullyes
createdAtISO-8601 timeyesUTC ISO-8601 timestamp

Edit this page on GitHub