curl --request GET \
--url https://app.journeybee.io/api/v1/leads \
--header 'Authorization: Bearer <token>'
[
{
"total": 1,
"id": 789,
"uuid": "lead-uuid-789",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T12:45:00Z",
"source": "partnership",
"company_name": "TechCorp Solutions",
"email": "contact@techcorp.com",
"phone_number": "+1-555-123-4567",
"first_name": "John",
"last_name": "Smith",
"status": "new",
"partner_type": "referral",
"company_id": 123,
"created_by_user_id": 456,
"campaign_id": null,
"campaign_title": null,
"tags": [
{
"id": 10,
"label": "High Priority",
"background_color": "#EF4444",
"text_color": "#FFFFFF"
}
],
"assigned_users": [
{
"id": 456,
"email": "jane@company.com",
"first_name": "Jane",
"last_name": "Doe",
"color": "#3B82F6",
"profile_image_id": 789,
"profile_image_uuid": "profile-uuid-456"
}
],
"partnership_leads": [
{
"id": 123,
"created_at": "2024-01-15T10:30:00Z",
"partnership_id": 456,
"sent_by_company_id": 234,
"sent_by_company_name": "Partner Corp",
"sent_by_company_logo_id": 567,
"sent_by_company_logo_uuid": "logo-uuid-567",
"received_by_company_id": 123,
"received_by_company_name": "Your Company",
"received_by_company_logo_id": 890,
"received_by_company_logo_uuid": "logo-uuid-890",
"partner_type": "referral",
"direction": "received",
"fallback_data": null
}
],
"campaign_partners": [],
"lead_deals": [
{
"id": 345,
"label": "TechCorp Deal",
"deal_value": 50000,
"currency_code": "USD",
"stage_id": 2,
"stage_label": "Proposal",
"stage_series": 2,
"stage_phase": "negotiation"
}
]
}
]
Retrieve a list of leads for a company with advanced filtering, sorting, and pagination support
curl --request GET \
--url https://app.journeybee.io/api/v1/leads \
--header 'Authorization: Bearer <token>'
[
{
"total": 1,
"id": 789,
"uuid": "lead-uuid-789",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T12:45:00Z",
"source": "partnership",
"company_name": "TechCorp Solutions",
"email": "contact@techcorp.com",
"phone_number": "+1-555-123-4567",
"first_name": "John",
"last_name": "Smith",
"status": "new",
"partner_type": "referral",
"company_id": 123,
"created_by_user_id": 456,
"campaign_id": null,
"campaign_title": null,
"tags": [
{
"id": 10,
"label": "High Priority",
"background_color": "#EF4444",
"text_color": "#FFFFFF"
}
],
"assigned_users": [
{
"id": 456,
"email": "jane@company.com",
"first_name": "Jane",
"last_name": "Doe",
"color": "#3B82F6",
"profile_image_id": 789,
"profile_image_uuid": "profile-uuid-456"
}
],
"partnership_leads": [
{
"id": 123,
"created_at": "2024-01-15T10:30:00Z",
"partnership_id": 456,
"sent_by_company_id": 234,
"sent_by_company_name": "Partner Corp",
"sent_by_company_logo_id": 567,
"sent_by_company_logo_uuid": "logo-uuid-567",
"received_by_company_id": 123,
"received_by_company_name": "Your Company",
"received_by_company_logo_id": 890,
"received_by_company_logo_uuid": "logo-uuid-890",
"partner_type": "referral",
"direction": "received",
"fallback_data": null
}
],
"campaign_partners": [],
"lead_deals": [
{
"id": 345,
"label": "TechCorp Deal",
"deal_value": 50000,
"currency_code": "USD",
"stage_id": 2,
"stage_label": "Proposal",
"stage_series": 2,
"stage_phase": "negotiation"
}
]
}
]
curl -X GET "https://app.journeybee.io/api/v1/leads?userId={userId}" \
-H "Authorization: Bearer your-api-key-uuid" \
-H "Content-Type: application/json"
received
, sent
, reseller
, campaigns
1
to show only assigned leads1
to show only unassigned leadsnew
, contacted
, qualified
, converted
, lost
[{"id": 123, "value": {"text": "search"}}]
[{"type": "status", "asc": true}]
. Types: status
Show Lead Object
manual
, campaign
, partnership
, integration
, form
new
, contacted
, qualified
, converted
, lost
referral
, reseller
, null
Show Partnership Lead Object
referral
, reseller
sent
, received
curl -X GET "https://app.journeybee.io/api/v1/leads?userId=456&view=received&search=tech&status=new,contacted" \
-H "Authorization: Bearer jb_api_1234567890abcdef" \
-H "Content-Type: application/json"
[
{
"total": 1,
"id": 789,
"uuid": "lead-uuid-789",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T12:45:00Z",
"source": "partnership",
"company_name": "TechCorp Solutions",
"email": "contact@techcorp.com",
"phone_number": "+1-555-123-4567",
"first_name": "John",
"last_name": "Smith",
"status": "new",
"partner_type": "referral",
"company_id": 123,
"created_by_user_id": 456,
"campaign_id": null,
"campaign_title": null,
"tags": [
{
"id": 10,
"label": "High Priority",
"background_color": "#EF4444",
"text_color": "#FFFFFF"
}
],
"assigned_users": [
{
"id": 456,
"email": "jane@company.com",
"first_name": "Jane",
"last_name": "Doe",
"color": "#3B82F6",
"profile_image_id": 789,
"profile_image_uuid": "profile-uuid-456"
}
],
"partnership_leads": [
{
"id": 123,
"created_at": "2024-01-15T10:30:00Z",
"partnership_id": 456,
"sent_by_company_id": 234,
"sent_by_company_name": "Partner Corp",
"sent_by_company_logo_id": 567,
"sent_by_company_logo_uuid": "logo-uuid-567",
"received_by_company_id": 123,
"received_by_company_name": "Your Company",
"received_by_company_logo_id": 890,
"received_by_company_logo_uuid": "logo-uuid-890",
"partner_type": "referral",
"direction": "received",
"fallback_data": null
}
],
"campaign_partners": [],
"lead_deals": [
{
"id": 345,
"label": "TechCorp Deal",
"deal_value": 50000,
"currency_code": "USD",
"stage_id": 2,
"stage_label": "Proposal",
"stage_series": 2,
"stage_phase": "negotiation"
}
]
}
]
{
"error": "Invalid API key or insufficient permissions"
}
{
"error": "Read access required for this operation"
}
{
"error": "Company not found or user not authorized"
}
read_access
permission