Skip to main content
POST
Select new lead sender number

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

Body

The outgoing number selection request payload for the operation.

Defines the fields clients can send when working with outgoing number selection.

conversationId
null | string

Conversation ID that links this outgoing number selection request to the Leadping inbox thread.

leadId
null | string

Lead ID used to choose the best outgoing sender number.

recipientPhoneNumber
null | string

Recipient phone number that receives the outbound message or call.

channel
null | enum<string>

Identifies whether an outgoing phone number is eligible for voice, SMS, MMS, or another communication channel.

Available options:
sms,
call
campaignId
null | string

Messaging campaign identifier associated with this outgoing number selection request.

sourceId
null | string

Lead source ID used to choose the best outgoing sender number.

teamId
null | string

Organization ID used to choose the best outgoing sender number.

Response

Returns the outgoing number selection response.

Describes outgoing number selection data returned by Leadping.

canSend
boolean

Indicates whether Leadping can send outbound messages using this outgoing number selection response.

setupMessage
null | string

Human-readable setup guidance shown for this outgoing number selection response.

phoneNumberId
null | string

Leadping phone number ID connected to this outgoing number selection response.

number
null | string

E.164 phone number exposed by this outgoing number selection response.

displayNumber
null | string

Human-readable phone number shown in Leadping UI and API responses.

healthStatus
null | enum<string>

Summarizes the severity of conditions affecting an organization's ability to send compliant SMS or MMS traffic.

Available options:
Not Evaluated,
Evaluating,
Healthy,
Needs Attention,
Blocked
healthLabel
null | string

Short label describing the health state for display in dashboards.

healthWarning
null | string

Warning text that explains a potential health or readiness issue.

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
reasonLabel
null | string

Human-readable label for the reason code on this outgoing number selection response.

wasManuallyOverridden
boolean

Indicates whether a user manually overrode Leadping's automatic number selection for this outgoing number selection response.

campaignId
null | string

Messaging campaign identifier associated with this outgoing number selection response.

sourceId
null | string

Lead source ID considered when Leadping selected the outgoing phone number.

eligibleNumbers
object[]

Phone numbers that are eligible to send the requested outbound message or call.