Skip to main content
POST
Cancel a scheduled SMS message for a lead

Authorizations

Authorization
string
header
required

Authorization header using the Bearer scheme. Accepted values are Leadping user JWT access tokens and WorkOS organization API keys beginning with sk_.

Path Parameters

smsEventId
string
required

The SMS event identifier.

Response

Returns the SMS response.

Describes an SMS or MMS message, including participants, delivery state, scheduling, media, and billing details.

conversationId
string

Conversation ID that links this SMS message to the Leadping inbox thread.

leadId
string

Lead ID associated with the SMS conversation or outreach attempt.

fromPhoneNumberId
string

Sender phone number ID used for this outbound SMS or call.

outboundPhoneNumberId
string

Phone number ID selected for outbound delivery.

fromPhoneNumber
null | string

Sender phone number used for this communication.

selectionReason
null | enum<string>

Explains why Leadping selected, rejected, or substituted an outgoing caller or messaging number.

Available options:
StickyConversation,
LeadAssigned,
CampaignOrSource,
Preferred,
LocalArea,
HealthyPool,
FallbackDefault,
ManualOverride
wasManuallyOverridden
boolean

Indicates whether a user manually overrode Leadping's automatic number selection for this SMS message.

campaignId
null | string

Messaging campaign identifier associated with this SMS message.

sourceId
null | string

Lead source ID used for attribution and sender selection on this SMS message.

text
string

Body text for the SMS message or communication represented by this SMS message.

media
object[]

Media attached to this message. A non-empty collection identifies an MMS message.

status
null | enum<string>

Describes the normalized lifecycle of an SMS or MMS message from scheduling through delivery or failure.

Available options:
draft,
scheduled,
queued,
sending,
sent,
received,
delivered,
failed,
undeliverable,
opted_out,
blocked_compliance,
blocked_billing,
blocked_missing_campaign,
canceled
statusReason
null | string

Human-readable reason explaining the current status of this SMS message.

queuedAt
null | string<date-time>

UTC timestamp when Leadping queued this SMS message for processing.

scheduledFor
null | string<date-time>

UTC timestamp when Leadping is scheduled to send this SMS message.

scheduledReason
null | string

Reason Leadping scheduled this delivery for a later time.

sendingStartedAt
null | string<date-time>

UTC timestamp when Leadping began sending this message.

sentAt
null | string<date-time>

UTC timestamp when Leadping sent this message to the provider.

deliveredAt
null | string<date-time>

UTC timestamp when the provider confirmed delivery.

receivedAt
null | string<date-time>

UTC timestamp when Leadping received this inbound event or message.

failedAt
null | string<date-time>

UTC timestamp when processing failed for this SMS message.

undeliverableAt
null | string<date-time>

UTC timestamp when the provider marked the message undeliverable.

blockedAt
null | string<date-time>

UTC timestamp when Leadping blocked this communication.

nextRetryAt
null | string<date-time>

UTC timestamp when Leadping will retry this SMS message.

retryCount
integer<int32>

Number of retry attempts already made for this SMS message.

canceledAt
null | string<date-time>

UTC timestamp when this delivery or workflow was canceled.

cancelReason
null | string

Reason this delivery, run, or request was canceled.

errorCode
null | string

Machine-readable error code returned while processing this SMS message.

errorMessage
null | string

Human-readable error message returned while processing this SMS message.

trafficType
null | enum<string>

Classifies messaging traffic by conversational, informational, marketing, or other compliance-relevant purpose.

Available options:
RealLead,
Warmup,
Test,
SystemInternal,
FailedAttempt
billableAmount
null | number<double>

Monetary amount billed for this Leadping communication or transaction.

billingStatus
null | string

Billing state for this communication, charge, or transaction.

complianceAction
null | string

Compliance action applied to this message, lead, or sender.

consoleEntries
object[]

Ordered diagnostic entries recorded while Leadping processed this message.

id
string

Stable unique identifier of the resource.

createdAt
string<date-time>

UTC timestamp when the resource was created.

modifiedAt
null | string<date-time>

UTC timestamp when the resource was last modified, or null when it has not been updated.