Calls

Initiate a Leadping phone call

Changed on

The call operation validates ownership and current provider state before returning the updated Leadping call representation.

post/phone-call/initiate

Request

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

Request body

InitiateCallRequest required

Defines the fields clients can send when working with phone call initiation.

originateFromBrowser, boolean

Approve a call for the Portal to originate through WebRTC instead of dialing from the server.

useBrowserPhone, boolean

Connect the authenticated user's phone to a server-controlled destination call.

fromPhoneNumberId, string nullable

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

conversationId, string nullable

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

leadId, string required

Lead ID associated with the outbound call request.

wasManuallyOverridden, boolean

Indicates whether a user manually overrode Leadping's automatic number selection for this phone call initiation request.

campaignId, string nullable

Messaging campaign identifier associated with this phone call initiation request.

sourceId, string nullable

Lead source ID used for call attribution and sender selection.

outboundIdempotencyKey, string nullable

Reuse this key with the same call inputs when retrying an attempt. A replay returns the existing call without issuing another dial approval.

Example request

{
  "leadId": "lead-123",
  "conversationId": "conversation-123",
  "wasManuallyOverridden": false,
  "outboundIdempotencyKey": "call-example-001"
}

Response

Calls was successfully initiated.

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

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status