Sms

Cancel a scheduled SMS message for a lead

Changed on

Cancel a queued SMS message while its status is Scheduled to prevent sending and preserve the event record. Cancellation closes when message delivery begins.

post/sms/{smsEventId}/cancel

Request

  • Base URL
    https://api.leadping.ai
  • Auth
    HTTP bearer

Path parameters

smsEventId, string required

The SMS event identifier.

Response

Returns the SMS response.

SmsResponse required

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

organizationId, string nullable

The organization receiving this message status update.

isDemo, boolean

Whether this record belongs to demo data.

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, string nullable

Sender phone number used for this communication.

selectionReason, 'NearestLocation' | 'StickyConversation' | 'LeadAssigned' | 'CampaignOrSource' | 'Preferred' | 'LocalArea' | 'HealthyPool' | 'FallbackDefault' | 'ManualOverride' nullable

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

wasManuallyOverridden, boolean

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

campaignId, string nullable

Messaging campaign identifier associated with this SMS message.

sourceId, string nullable

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, MessageMediaAttachment[]

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

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 message.

queuedAt, string date-time nullable

UTC timestamp when Leadping queued this SMS message for processing.

scheduledFor, string date-time nullable

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

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.

receivedAt, string date-time nullable

UTC timestamp when Leadping received this inbound event or message.

failedAt, string date-time nullable

UTC timestamp when processing failed for this SMS message.

undeliverableAt, string date-time nullable

UTC timestamp when the provider marked the message undeliverable.

blockedAt, string date-time nullable

UTC timestamp when Leadping blocked this communication.

nextRetryAt, string date-time nullable

UTC timestamp when Leadping will retry this SMS message.

retryCount, integer

Number of retry attempts already made for this SMS message.

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 message.

errorMessage, string nullable

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

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.

id, string
createdAt, string date-time
modifiedAt, string date-time nullable

Changes

    • info

      added the optional property allOf[#/components/schemas/SmsResponse]/isBudgetDelayed to the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status