Leads
The Leads API lets you capture, enrich, and manage inbound leads collected from Onlive flows, forms, and integrations. A lead bundles contact information with device, location, origin, and interaction history so agents can qualify and route it to the right user group.
π Authenticationβ
All Leads API endpoints require authentication using the ONLIVESITE authentication scheme. Include the following header in all requests:
Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature
π Available Endpointsβ
Lead Managementβ
- Create Lead - Record a new lead
- Get Lead - Retrieve a specific lead by ID (includes devices, locations, origins, interactions, historics)
- List Leads - Paginated list with filtering (origin, status, labels, date range, extra fields)
- Update Lead - Modify a lead's fields (partial)
- Delete Lead - Permanently remove a lead
π‘ Common Use Casesβ
- Capturing leads from contact forms and flow stages
- Enriching leads with device, location, and origin metadata
- Qualifying leads (
qualificationscore 0-1) before handoff - Routing leads to a user group via
userGroupId - Filtering lead pipelines by labels, status, or custom fields
- Forwarding leads to downstream integrations (
sentToIntegration)
For detailed information about specific operations, please refer to the individual endpoint documentation sections.
API requests are subject to rate limiting to ensure optimal performance. Please contact our support team for your specific rate limits.
π Lead Lifecycleβ
- Capture: A lead is created via flow, form, or integration with
status: created - Enrichment: Device, location, origin, and historic records are attached
- Qualification:
qualificationscore is updated as agents work the lead - Routing: Lead is assigned to a user group or set of actors (
actorIds) - Handoff: Once qualified,
sentToIntegrationis flipped and the lead is forwarded downstream - Deletion: When no longer needed, the lead can be deleted (permanent)
π Integration with Other Servicesβ
- Flows: Leads are typically produced by Onlive flow stages
- CRM / Downstream:
sentToIntegrationindicates the lead has been pushed to the integration pipeline - Device / Location / Origin: Sub-entities captured at lead creation time
π Security Considerationsβ
- All API endpoints require proper authentication (ONLIVESITE scheme)
- Operations are restricted based on organization membership and user permissions
- Leads are isolated between organizations
- The
organizationIdis derived from the authenticated security context
π§° Development Tipsβ
phoneXORemailis required (one of the two must be provided)labelscannot contain special characters- Use date filters (
startDate/endDate+timezone) for time-windowed queries - Set
excludeTest=trueto filter out test records - Default page size is 10
Errorsβ
Common error responses:
| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid input parameters |
| 401 | Unauthorized - Missing or invalid authentication |
| 404 | Not Found - Requested resource does not exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error - Something went wrong |