---
title: "List message event history for a lead"
method: POST
path: "/events/sms/lead/{leadId}"
tags: ["SmsEvents"]
---

# List message event history for a lead

`POST /events/sms/lead/{leadId}`

## Request

- Base URL: `https://api.leadping.ai`
- URL: `https://api.leadping.ai/events/sms/lead/{leadId}`
- Auth: HTTP bearer

Lists SMS events for one lead with paging, helping users review sent messages, scheduled messages, and delivery outcomes.

## Path parameters

- `leadId` string, required

## Request body

- RequestDataOptions
  - `pageSize` integer
  - `continuationToken` string, nullable
  - `orderBy` OrderByOption[], nullable
    - `field` string, required
    - `direction` 'asc' | 'desc', nullable
  - `includeCount` boolean, nullable
  - `search` string, nullable
  - `searchFields` string[], nullable
  - `filters` ExactMatchFilter[], nullable
    - `value` unknown
    - `field` string, required
  - `rangeFilters` RangeFilter[], nullable
    - `greaterThan` unknown
    - `greaterThanOrEqual` unknown
    - `lessThan` unknown
    - `lessThanOrEqual` unknown
    - `field` string, required

## Response `200`

Returns the paged SMS event table row.

- PagedResultOfSmsEventTableRow
  - `items` SmsEventTableRow[]
    - `automation` IdNamePair, nullable: User summary connected to this automation configuration response.
      - `id` string, required
      - `name` string, required
    - `isDemo` boolean: Whether this record belongs to demo data.
    - `id` string: Unique Leadping identifier for this SMS event table row.
    - `conversationId` string, nullable: Conversation ID that links this SMS event table row to the Leadping inbox thread.
    - `lead` IdNamePair: User summary connected to this automation configuration response.
      - `id` string, required
      - `name` string, required
    - `leadAvatarUrl` string, uri, nullable
    - `fromPhoneNumberId` string: Sender phone number ID used for this outbound SMS or call.
    - `outboundPhoneNumberId` string: Phone number ID selected for outbound delivery.
    - `fromPhoneNumber` string: Sender phone number used for this communication.
    - `toPhoneNumber` string: Recipient phone number used for this communication.
    - `text` string: Body text for the SMS message or communication represented by this SMS event table row.
    - `media` MessageMediaAttachment[]: Media attached to this SMS/MMS event.
      - `fileId` string, nullable: The durable Media record containing this attachment's scanned bytes.
      - `url` string, uri: URL from which the media attachment can be retrieved.
      - `contentType` string, nullable: MIME content type of the media attachment.
      - `size` integer, nullable: Size of the media attachment in bytes.
      - `sha256` string, nullable: SHA-256 digest of the media content, when available.
      - `fileName` string, nullable: Original file name of the media attachment, when available.
    - `status` 'draft' | 'scheduled' | 'queued' | 'sending' | 'sent' | 'received' | 'delivered' | 'failed' | 'undeliverable' | 'opted_out' | 'blocked_compliance' | 'blocked_billing' | 'blocked_missing_campaign' | 'canceled', nullable: Describes the normalized lifecycle of an SMS or MMS message from scheduling through delivery or failure.
    - `statusReason` string, nullable: Human-readable reason explaining the current status of this SMS event table row.
    - `direction` string: Communication direction for this SMS event table row, such as inbound or outbound.
    - `createdAt` string, date-time: UTC timestamp when this SMS event table row was created.
    - `queuedAt` string, date-time, nullable: UTC timestamp when Leadping queued this SMS event table row for processing.
    - `scheduledFor` string, date-time, nullable: UTC timestamp when this SMS event is scheduled to send.
    - `scheduledReason` string, nullable: Reason Leadping scheduled this delivery for a later time.
    - `isBudgetDelayed` boolean: Whether the scheduled send is waiting for spending capacity to reset.
    - `sendingStartedAt` string, date-time, nullable: UTC timestamp when Leadping began sending this message.
    - `sentAt` string, date-time, nullable: UTC timestamp when Leadping sent this message to the provider.
    - `deliveredAt` string, date-time, nullable: UTC timestamp when the provider confirmed delivery.
    - `failedAt` string, date-time, nullable: UTC timestamp when processing failed for this SMS event table row.
    - `undeliverableAt` string, date-time, nullable: UTC timestamp when the provider marked the message undeliverable.
    - `receivedAt` string, date-time, nullable: UTC timestamp when Leadping received this inbound event or message.
    - `blockedAt` string, date-time, nullable: UTC timestamp when Leadping blocked this communication.
    - `canceledAt` string, date-time, nullable: UTC timestamp when this delivery or workflow was canceled.
    - `cancelReason` string, nullable: Reason this delivery, run, or request was canceled.
    - `errorCode` string, nullable: Machine-readable error code returned while processing this SMS event table row.
    - `errorMessage` string, nullable: Human-readable error message returned while processing this SMS event table row.
    - `isAutomated` boolean: Indicates whether automation created or triggered this SMS event table row.
    - `outboundSource` 'manual' | 'automation' | 'campaign' | 'import' | 'api' | 'system_notification' | 'warmup' | 'retry', nullable: Defines the source that requested outbound delivery.
    - `trafficType` 'RealLead' | 'Warmup' | 'Test' | 'SystemInternal' | 'FailedAttempt', nullable: Classifies messaging traffic by conversational, informational, marketing, or other compliance-relevant purpose.
    - `billableAmount` number, double, nullable: Monetary amount billed for this Leadping communication or transaction.
    - `billingStatus` string, nullable: Billing state for this communication, charge, or transaction.
    - `complianceAction` string, nullable: Compliance action applied to this message, lead, or sender.
    - `consoleEntries` CommunicationConsoleEntry[]: Ordered diagnostic entries recorded while Leadping processed this message.
      - `adminOnly` boolean: Restricts this diagnostic entry to platform administrators.
      - `id` string: Unique identifier of this diagnostic console entry.
      - `stage` string: Communication-processing stage that produced the entry, such as validation, routing, or provider delivery.
      - `status` string: Outcome or state recorded for this processing stage.
      - `message` string: User-safe diagnostic message describing what occurred at this stage.
      - `occurredAt` string, date-time: UTC timestamp when this communication-processing event occurred.
    - `user` string, nullable: User summary connected to this SMS event table row.
    - `actorUserId` string, nullable: User ID for the actor that performed the action.
    - `actorLeadId` string, nullable: The lead who performed this action.
    - `actorDisplayName` string, nullable: Display name for the actor that performed the action.
    - `userName` string, nullable: Display name for the user connected to this SMS event table row.
    - `senderName` string, nullable: Display name for the sender of this message.
    - `organization` string, nullable: Organization summary connected to this SMS event table row.
    - `organizationName` string, nullable: Organization display name shown for this SMS event.
  - `pageSize` integer
  - `totalCount` integer, nullable
  - `continuationToken` string, nullable

## Other responses

- `400`: The request was invalid or failed validation.
- `401`: Authentication credentials are missing or invalid.
- `403`: The caller does not have permission to perform this operation.
- `404`: The requested resource or required account context was not found.
- `415`: The request content type is not supported by this endpoint.
- `429`: The client or account rate limit was exceeded. Retry after the interval in the Retry-After header.
- `500`: An unexpected error prevented the server from completing the request.

## Changes

- **2026-11-26** `7b8105eaec3d`: 1 info
  - added the optional property `items/items/allOf[#/components/schemas/SmsEventTableRow]/isBudgetDelayed` to the response with the `200` status
- **2026-11-19** `40c46df2d867`: 1 info
  - added the optional property `items/items/allOf[#/components/schemas/SmsEventTableRow]/leadAvatarUrl` to the response with the `200` status
- **2026-11-13** `976fcbe2850b`: 1 info
  - added the optional property `items/items/allOf[#/components/schemas/SmsEventTableRow]/automation` to the response with the `200` status
- **2026-11-11** `81aed8c9afb7`: 3 info
  - added the non-success response with the status `404`
  - added the non-success response with the status `415`
  - added the non-success response with the status `500`
- **2026-11-10** `abf3e8e62b6d`: 1 info
  - added the optional property `items/items/allOf[#/components/schemas/SmsEventTableRow]/consoleEntries/items/allOf[#/components/schemas/CommunicationConsoleEntry]/adminOnly` to the response with the `200` status

[Operation history](https://skmtc.dev/leadping/apis/leadping-api/changes/events/sms/lead/:leadId/post.md)

---

[API](https://skmtc.dev/leadping/apis/leadping-api.md) - [All operations](https://skmtc.dev/leadping/apis/leadping-api/llms.txt) - [OpenAPI document](https://skmtc.dev/leadping/apis/leadping-api/revisions/bf1852acaf45?raw)
