Leadping Python SDK
The official, type-safe Python SDK for the Leadping API. Use it to integrate lead management, conversations, SMS and calling, automations, reporting, billing, and business settings into Python applications.
The package is generated from the Leadping OpenAPI specification with Microsoft Kiota. It contains asynchronous request builders and models; your application supplies the HTTP request adapter, credentials, retry policy, and credential storage.
Installation
Install the SDK and Kiota's httpx request adapter:
python -m pip install leadping microsoft-kiota-http
Authentication
Set LEADPING_API_KEY to a WorkOS organization API key (sk_...). The SDK sends it as Authorization: Bearer <credential>. User access tokens are also supported when acting for a signed-in user; lp_src_... keys are only for lead-ingestion endpoints. See API authentication.
Create a client
Kiota's API-key authentication provider can place the complete Bearer value in the Authorization header:
import os
from kiota_abstractions.authentication.api_key_authentication_provider import (
ApiKeyAuthenticationProvider,
KeyLocation,
)
from kiota_http.httpx_request_adapter import HttpxRequestAdapter
from leadping import LeadpingOpenApiClient
credential = os.environ["LEADPING_API_KEY"]
auth_provider = ApiKeyAuthenticationProvider(
KeyLocation.Header,
f"Bearer {credential}",
"Authorization",
["api.leadping.ai"],
)
adapter = HttpxRequestAdapter(auth_provider)
client = LeadpingOpenApiClient(adapter)
lead = await client.leads.by_id("lead-id").get()
print(lead.id)
The client defaults to https://api.leadping.ai.
Common operations
Request builders mirror the API path. Methods such as by_id() select a resource; terminal methods are asynchronous.
# Requires a user access token.
current_user = await client.users.me.get()
# Retrieve organization resources by ID.
source = await client.sources.by_id("source-id").get()
lead = await client.leads.by_id("lead-id").get()
Create and update operations accept generated request classes from the leadping package.
Resources
Release files for leadping 1.0.61
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| leadping-1.0.61.tar.gz | 186.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| leadping-1.0.61-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 832.6 kB
Release files / leadping-1.0.61.tar.gz
| Download URL | leadping-1.0.61.tar.gz |
|---|---|
| Size | 186.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8ec98c0505a9860ca6aac3a9d6ea0b1753e18024a501ed0715dbeddfc59514d
|
|
BLAKE2b-256 checksum How to use checksums |
c98bdba8b5aeca0080c05ba5b0bba7e2228f7f80a4a7cac28ccac20388a0b397
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency logRelease files / leadping-1.0.61-py3-none-any.whl
| Download URL | leadping-1.0.61-py3-none-any.whl |
|---|---|
| Size | 646.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d733b3986d3bc2278d2d97f99355a021da3ec922e4d7eded112b234580c4c1cd
|
|
BLAKE2b-256 checksum How to use checksums |
d7049b6320aec49fec87cec2d35cc772aacaa53d4af673f8ca8812a81d9ac4c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency log