Sms

Send an SMS message to an organization lead

Changed on

Sends an SMS message to a lead or phone number, applying current-organization sender selection, scheduling, and delivery rules.

post/sms/send

Request

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

Request body

SendSmsRequest required

Defines the fields clients can send when working with SMS send.

replyVersion, integer nullable

Version of the incoming conversation reply displayed to the agent when composing this response.

smsEventId, string nullable

Existing SMS event ID to reuse or update when retrying a send request.

scheduledFor, string date-time nullable

UTC timestamp when Leadping should send the SMS message.

conversationId, string required

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

fromPhoneNumberId, string nullable

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

wasManuallyOverridden, boolean

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

campaignId, string nullable

Messaging campaign identifier associated with this SMS send request.

sourceId, string nullable

Lead source ID used for attribution and sender selection.

text, string required

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

mediaUrls, string[]

Public HTTPS media URLs to attach. Supplying at least one URL sends the message as MMS.

outboundIdempotencyKey, string nullable

Idempotency key used to prevent duplicate outbound delivery.

Example request

{
  "conversationId": "conversation-123",
  "text": "Thanks for your interest. When is a good time to talk?",
  "mediaUrls": [],
  "outboundIdempotencyKey": "sms-example-001"
}

Response

Returns the persisted message and its current delivery state, including scheduled or blocked outcomes.

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 new optional request property allOf[#/components/schemas/SendSmsRequest]/replyVersion (media type: application/json)

    • info

      added the new optional request property allOf[#/components/schemas/SendSmsRequest]/replyVersion (media type: application/*+json)