Skip to main content

Get Lead

Retrieve detailed information about a specific lead by its ID, including all sub-entities (devices, locations, origins, interactions, historics).

πŸ”Ή Endpoint Details​

GET /api/v1/leads/{id}

πŸ”’ Authentication​

HeaderRequiredDescription
Content-TypeYesMust be application/json
AuthorizationYesFormat: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature

πŸ“ Path Parameters​

ParameterTypeRequiredDescription
idstring (UUID)YesUnique identifier of the lead

🧩 Request Example​

curl -X GET "https://openapi.onlive.site/api/v1/leads/123e4567-e89b-12d3-a456-426614174000" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"

πŸ“₯ Response Format (HTTP 200)​

See Lead Properties for the full entity schema and sub-entity structures.

FieldTypeDescription
idstring (UUID)Unique identifier
organizationIdstring (UUID)Owning organization
organizationNamestringDenormalized organization name
name / firstName / lastNamestringLead name parts
phonestringLead's phone
emailstringLead's email
statusenumLead status
userGroupIdstring (UUID)Assigned user group
userGroupstringDenormalized user group name
actorIdsarray of stringsAssigned agent IDs
labelsarray of stringsLabels
extraFieldsobjectCustom metadata
qualificationnumber (0-1)Qualification score
sentToIntegrationbooleanForwarded to integration
externalIdstringExternal identifier
device / location / originstring (UUID)Primary record IDs
locationsarray of objectsAll location records
devicesarray of objectsAll device records
originsarray of objectsAll origin records
interactionsarray of objectsAll interactions
historicsarray of objectsHistoric events
createdAtstring (ISO 8601)Creation timestamp
updatedAtstring (ISO 8601)Last update timestamp

Response Example​

{
"id": "123e4567-e89b-12d3-a456-426614174000",
"organizationId": "123e4567-e89b-12d3-a456-426614174001",
"organizationName": "Acme Inc.",
"name": "John Doe",
"firstName": "John",
"lastName": "Doe",
"phone": "+33612345678",
"email": "[email protected]",
"status": "created",
"userGroupId": "550e8400-e29b-41d4-a716-446655440000",
"userGroup": "Sales Team",
"actorIds": ["123e4567-e89b-12d3-a456-426614174002"],
"labels": ["hotlead", "enterprise"],
"extraFields": { "source": "landing-page" },
"qualification": 0.75,
"sentToIntegration": false,
"externalId": "frm_abc123",
"device": "123e4567-e89b-12d3-a456-426614174003",
"location": "123e4567-e89b-12d3-a456-426614174004",
"origin": "123e4567-e89b-12d3-a456-426614174005",
"locations": [
{
"id": "123e4567-e89b-12d3-a456-426614174004",
"ipv4": "203.0.113.42",
"countryName": "France",
"countryCode": "FR",
"city": "Paris"
}
],
"devices": [
{
"id": "123e4567-e89b-12d3-a456-426614174003",
"type": "mobile",
"osName": "iOS",
"osVersion": "17.2.1",
"browserName": "Safari"
}
],
"origins": [
{
"id": "123e4567-e89b-12d3-a456-426614174005",
"origin": "Website contact form",
"direction": "inbound",
"type": "form"
}
],
"interactions": [],
"historics": [
{
"id": "123e4567-e89b-12d3-a456-426614174006",
"description": "Lead submitted the contact form"
}
],
"createdAt": "2025-05-13T15:00:00Z",
"updatedAt": "2025-05-13T15:00:00Z"
}

❌ Error Responses​

StatusDescription
404Lead not found

This endpoint follows the standard error format.

πŸ“˜ Notes​

  • The lead must belong to your organization
  • Sub-entity lists are server-populated
  • organizationId and userId (deprecated) are accepted on input for backward compatibility but the server enforces ownership

βœ… Common Use Cases​

  • πŸ” Detail View: Open a single lead in an agent dashboard
  • πŸ” Sync: Refresh a local cache after a webhook
  • 🧾 Audit: Fetch a lead for compliance review
  • πŸ“Š Qualification: Read the qualification score for routing decisions