Skip to content
ShopAssist Docs
APIAPI referenceLeads and back in stock

Get Lead

One lead.

GET/v1/stores/{store_id}/leads/{lead_id}Scope leads:read

One lead.

Parameters

Parameters of Get Lead
NameInTypeDescription
store_idrequiredpathstring
lead_idrequiredpathstring

Example request

curl -X GET "https://api.shopassist.coec.dk/v1/stores/sto_01j8000000e008000000000000/leads/lead_01j8000000e008000000000000" \
  -H "Authorization: Bearer $SHOPASSIST_API_KEY"

Response 200 (Lead)

Response of Get Lead
FieldTypeDescription
confirmed_atrequiredstring | nullformat date-time
consentsrequiredConsentRecordView[]
consents[].confirmed_atrequiredstring | nullformat date-time
consents[].consent_textrequiredstring
consents[].consent_text_versionrequiredstring
consents[].created_atrequiredstringformat date-time
consents[].idrequiredstringpattern `^cns_[0-9a-hjkmnp-tv-z]{26}$`
consents[].is_grantedrequiredboolean
consents[].localerequiredstring
consents[].purposerequiredstring (enum)one of newsletter, marketing_email, back_in_stock, transcript_email, handoff_share, analytics, preferences
consents[].sourcerequiredstring (enum)one of widget_form, chat, cmp, double_opt_in, unsubscribe, dashboard, api
consents[].withdrawn_atrequiredstring | nullformat date-time
conversation_idrequiredstring | nullpattern `^conv_[0-9a-hjkmnp-tv-z]{26}$`
created_atrequiredstringformat date-time
emailrequiredstring
idrequiredstringpattern `^lead_[0-9a-hjkmnp-tv-z]{26}$`
localerequiredstring | null
namerequiredstring | null
newsletter_statusrequired"none" | "pending_confirmation" | "confirmed" | "unsubscribed"
platform_sync_statusrequired"not_required" | "pending" | "synced" | "failed"
purposesrequired("newsletter" | "contact_request" | "back_in_stock" | "transcript")[]
sourcerequired"lead_form" | "chat_tool" | "handoff" | "back_in_stock"
unsubscribed_atrequiredstring | nullformat date-time
{
  "confirmed_at": "2026-09-28T10:15:30.123Z",
  "consents": [
    {
      "confirmed_at": "2026-09-28T10:15:30.123Z",
      "consent_text": "string",
      "consent_text_version": "string",
      "created_at": "2026-09-28T10:15:30.123Z",
      "id": "cns_01j8000000e008000000000000",
      "is_granted": true,
      "locale": "da-DK",
      "purpose": "newsletter",
      "source": "widget_form",
      "withdrawn_at": "2026-09-28T10:15:30.123Z"
    }
  ],
  "conversation_id": "conv_01j8000000e008000000000000",
  "created_at": "2026-09-28T10:15:30.123Z",
  "email": "string",
  "id": "lead_01j8000000e008000000000000",
  "locale": "da-DK",
  "name": "string",
  "newsletter_status": "none",
  "platform_sync_status": "not_required",
  "purposes": [
    "newsletter"
  ],
  "source": "lead_form",
  "unsubscribed_at": "2026-09-28T10:15:30.123Z"
}

Errors

Every error uses the error envelope; the code field is stable.

  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found
  • 422 Unprocessable Content
  • 429 Too Many Requests

Last updated on