---
title: "Cancel a scheduled SMS message for a lead"
method: POST
path: "/sms/{smsEventId}/cancel"
tags: ["Sms"]
---

# Cancel a scheduled SMS message for a lead

`POST /sms/{smsEventId}/cancel`

## Request

- Base URL: `https://api.leadping.ai`
- URL: `https://api.leadping.ai/sms/{smsEventId}/cancel`
- Auth: HTTP bearer

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

## Path parameters

- `smsEventId` string, required

## Response `200`

Returns the SMS response.

- SmsResponse: 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.
    - `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 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.
    - `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.
  - `id` string
  - `createdAt` string, date-time
  - `modifiedAt` string, date-time, 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 was not found.
- `409`: The message is no longer scheduled and cannot be canceled.
- `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 `allOf[#/components/schemas/SmsResponse]/isBudgetDelayed` to the response with the `200` status
- **2026-11-11** `81aed8c9afb7`: 2 info
  - added the non-success response with the status `409`
  - added the non-success response with the status `500`
- **2026-11-10** `abf3e8e62b6d`: 1 warning, 1 info
  - added the new `NearestLocation` enum value to the `allOf[#/components/schemas/SmsResponse]/selectionReason` response property for the response status `200`
  - added the optional property `allOf[#/components/schemas/SmsResponse]/consoleEntries/items/allOf[#/components/schemas/CommunicationConsoleEntry]/adminOnly` to the response with the `200` status
- **2026-10-26** `94a9591dd410`: 1 info
  - added the optional property `allOf[#/components/schemas/SmsResponse]/organizationId` to the response with the `200` status

[Operation history](https://skmtc.dev/leadping/apis/leadping-api/changes/sms/:smsEventId/cancel/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)
