PhoneNumbers

Select conversation sender number

Changed on

Selects the outgoing phone number for an existing conversation, considering assignments, overrides, and delivery eligibility.

post/phone-numbers/outgoing/conversation/{conversationId}

Request

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

Path parameters

conversationId, string required

The conversation identifier.

Request body

OutgoingNumberSelectionRequest required

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

conversationId, string nullable

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

leadId, string nullable

Lead ID used to choose the best outgoing sender number.

recipientPhoneNumber, string nullable

Recipient phone number that receives the outbound message or call.

channel, 'sms' | 'call' nullable

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

campaignId, string nullable

Messaging campaign identifier associated with this outgoing number selection request.

sourceId, string nullable

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

teamId, string nullable

Organization ID used to choose the best outgoing sender number.

Response

Returns the outgoing number selection response.

OutgoingNumberSelectionResponse required

Describes outgoing number selection data returned by Leadping.

canSend, boolean

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

setupMessage, string nullable

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

phoneNumberId, string nullable

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

number, string nullable

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

displayNumber, string nullable

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

healthStatus, 'Not Evaluated' | 'Evaluating' | 'Healthy' | 'Needs Attention' | 'Blocked' nullable

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

healthLabel, string nullable

Short label describing the health state for display in dashboards.

healthWarning, string nullable

Warning text that explains a potential health or readiness issue.

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

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

reasonLabel, string nullable

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

Messaging campaign identifier associated with this outgoing number selection response.

sourceId, string nullable

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

eligibleNumbers, EligibleOutgoingNumberResponse[]

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

Changes

    • info

      added the optional property allOf[#/components/schemas/OutgoingNumberSelectionResponse]/eligibleNumbers/items/allOf[#/components/schemas/EligibleOutgoingNumberResponse]/callUnavailableReason to the response with the status

    • info

      added the optional property allOf[#/components/schemas/OutgoingNumberSelectionResponse]/eligibleNumbers/items/allOf[#/components/schemas/EligibleOutgoingNumberResponse]/canCall to the response with the status

    • info

      added the optional property allOf[#/components/schemas/OutgoingNumberSelectionResponse]/eligibleNumbers/items/allOf[#/components/schemas/EligibleOutgoingNumberResponse]/canText to the response with the status

    1 more change in this revision