Skip to main content

Install

With Gradle:
With Maven:

Prepare the example

Use Java 11 or later. Replace VERSION or <version> with a published Leadping SDK version and include the Kiota HTTP bundle for the request adapter. For Maven, add this dependency alongside the Leadping dependency:
Set LEADPING_API_KEY in the Java process environment. Put the following statements inside your application’s method after the imports, and replace lead-id with a lead from that organization.

Create the client

The client defaults to https://api.leadping.ai. Set LEADPING_API_KEY to an organization API key. client.users().me() requires a user access token; source keys are only for lead intake.

Call routes

The SDK does not store credentials. Use generated request-body classes when creating or updating records, confirm contracts in the API Reference, and follow the rate-limit guide.

Use in a service

These calls block until the HTTP operation completes. Configure HTTP timeouts for the service’s workload, reuse the adapter within its credential context, and handle failures at the job or request boundary. A read that fails authentication should not be converted into an empty lead result. The authentication provider restricts credentials to api.leadping.ai. Keep that restriction when configuring the adapter. Review retry safety before adding resilience middleware around writes.