Calls

Starts the next eligible call in the rep's filtered inbox.

Changed on

Start the next eligible call from a rep’s Leadping inbox. Supply the inbox filters so the next call comes from the leads in the rep’s current view.

post/phone-call/next/{requestId}

Request

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

Path parameters

requestId, string uuid required

The identifier to reuse when retrying the same request.

Query parameters

texting, boolean

Whether to use the texting inbox filters when selecting the next lead.

Request body

RequestDataOptions required
pageSize, integer
continuationToken, string nullable
orderBy, OrderByOption[] nullable
includeCount, boolean nullable
search, string nullable
searchFields, string[] nullable
filters, ExactMatchFilter[] nullable
rangeFilters, RangeFilter[] nullable

Response

The selected call, or an empty response when no eligible lead remains.

PhoneCallResponse required

Describes a Leadping phone call, including participants, direction, provider state, timing, voicemail, and billing details.

leadName, string nullable

The matched lead's display name, when the caller belongs to a known lead.

callSessionId, string nullable

Provider session identity used to correlate device invitations and server lifecycle events.

browserCallApproval, BrowserCallApproval nullable

Server-approved parameters for one outbound browser call.

isDemo, boolean

Whether this record belongs to demo data.

status, 'scheduled' | 'queued' | 'initiated' | 'ringing' | 'in_progress' | 'active' | 'completed' | 'ended' | 'busy' | 'no_answer' | 'failed' | 'canceled' | 'missed' | 'transferred' | 'voicemail' | 'blocked_billing' | 'blocked_phone_number_status' | 'blocked_configuration' | 'blocked_permission' | 'configuration_required'

Describes the durable business outcome of a Leadping phone call after provider status normalization.

statusReason, string nullable

Human-readable reason explaining the current status of this phone call.

direction, string nullable

Communication direction for this phone call, such as inbound or outbound.

conversationId, string nullable

Conversation ID that links this phone call to the Leadping inbox thread.

organizationId, string nullable

The organization context required to handle this call on a mobile device.

leadId, string nullable

Lead ID associated with the call conversation or outreach attempt.

phoneNumber, string

Phone number used by this phone call for calls, SMS, lookup, or routing.

toPhoneNumber, string nullable

Recipient phone number used for this communication.

fromPhoneNumberId, string nullable

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

fromPhoneNumber, string nullable

Sender phone number used for this communication.

callerId, string nullable

Caller ID phone number presented during the outbound call.

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 phone call.

campaignId, string nullable

Messaging campaign identifier associated with this phone call.

sourceId, string nullable

Lead source ID used for attribution and routing on this call.

endedAt, string date-time nullable

UTC timestamp when the call ended.

queuedAt, string date-time nullable

UTC timestamp when Leadping queued this phone call for processing.

ringingAt, string date-time nullable

UTC timestamp when the call started ringing.

answeredAt, string date-time nullable

UTC timestamp when the call was answered.

durationSeconds, integer nullable

Call duration in seconds.

billingStatus, string nullable

Billing state for this communication, charge, or transaction.

billableAmount, number double nullable

Monetary amount billed for this Leadping communication or transaction.

voicemailUrl, string uri nullable

URL for voicemail audio, when the call resulted in a voicemail.

consoleEntries, CommunicationConsoleEntry[]

Ordered diagnostic entries recorded while Leadping processed this call.

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

Changes

    • breaking

      removed the media type text/json from the request body

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    2 more changes in this revision