Get Lead | Orwel Docs
Docs

Get Lead

Retrieve a specific lead by ID

GET https://api.orwel.io/api/v1/leads/{id}

Path Parameters

idstringpathrequired

The unique identifier (UUID) of the lead

Response

dataobject

The lead object

Show Lead Object
idstring

Unique identifier for the lead

visitor_idstring

Associated visitor ID

workspace_idstring

Workspace ID (always your workspace)

codestring

Lead code or identifier

sourcestring

Source of the lead

created_atstring

ISO 8601 timestamp of creation

updated_atstring

ISO 8601 timestamp of last update

propertiesobject

Custom properties (JSONB)

locationobject

Location data (JSONB)

identity_idstring

Associated identity ID

session_idstring

Associated session ID

summaryobject

Lead summary data (JSONB)

company_idstring

Associated company ID

Request
curl -X GET "https://api.orwel.io/api/v1/leads/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer orwel_sk_YOUR_KEY"
Response
{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "visitor_id": "660e8400-e29b-41d4-a716-446655440001",
    "workspace_id": "770e8400-e29b-41d4-a716-446655440002",
    "code": "lead_001",
    "source": "website",
    "created_at": "2025-01-15T10:30:00Z",
    "updated_at": "2025-01-15T10:30:00Z",
    "properties": {
      "industry": "technology",
      "company_size": "50-100"
    },
    "location": {
      "city": "San Francisco",
      "country": "USA"
    },
    "identity_id": "880e8400-e29b-41d4-a716-446655440003",
    "session_id": "990e8400-e29b-41d4-a716-446655440004",
    "summary": {
      "score": 85,
      "status": "qualified"
    },
    "company_id": "aa0e8400-e29b-41d4-a716-446655440005"
  }
}