curl -X GET "https://api.orwel.io/api/v1/leads?limit=10&source=website" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.orwel.io/api/v1/leads?limit=10&source=website',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data);
import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY'
}
params = {
'limit': 10,
'source': 'website'
}
response = requests.get(
'https://api.orwel.io/api/v1/leads',
headers=headers,
params=params
)
data = response.json()
print(data)
{
"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"
}
],
"pagination": {
"limit": 10,
"offset": 0,
"total": 150
}
}
Leads
List Leads
Retrieve a paginated list of leads for your workspace
GET
/
api
/
v1
/
leads
curl -X GET "https://api.orwel.io/api/v1/leads?limit=10&source=website" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.orwel.io/api/v1/leads?limit=10&source=website',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data);
import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY'
}
params = {
'limit': 10,
'source': 'website'
}
response = requests.get(
'https://api.orwel.io/api/v1/leads',
headers=headers,
params=params
)
data = response.json()
print(data)
{
"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"
}
],
"pagination": {
"limit": 10,
"offset": 0,
"total": 150
}
}
Query Parameters
Maximum number of results to return (max: 100)
Number of results to skip for pagination
Filter leads by source (e.g., “website”, “referral”)
Filter leads by code
Filter leads created after this date (ISO 8601 format)
Filter leads created before this date (ISO 8601 format)
Response
Array of lead objects
Show Lead Object
Show Lead Object
Unique identifier for the lead
Associated visitor ID
Workspace ID (always your workspace)
Lead code or identifier
Source of the lead
ISO 8601 timestamp of creation
ISO 8601 timestamp of last update
Custom properties (JSONB)
Location data (JSONB)
Associated identity ID
Associated session ID
Lead summary data (JSONB)
Associated company ID
curl -X GET "https://api.orwel.io/api/v1/leads?limit=10&source=website" \
-H "Authorization: Bearer YOUR_API_KEY"
const response = await fetch(
'https://api.orwel.io/api/v1/leads?limit=10&source=website',
{
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data);
import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY'
}
params = {
'limit': 10,
'source': 'website'
}
response = requests.get(
'https://api.orwel.io/api/v1/leads',
headers=headers,
params=params
)
data = response.json()
print(data)
{
"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"
}
],
"pagination": {
"limit": 10,
"offset": 0,
"total": 150
}
}
⌘I