List leads
/api/v1/leadsfull kapsamlı bir anahtar ister.
Most recently touched first (updated_at descending).
Parametreler
Sorgu
qstringMatches name, email or phone.
stagestringsourcestringassigned_to_iduuidscopeenumA named slice, applied on top of the other filters.
mineis relative to the key's principal, which for an unbound key is the account owner.şunlardan biri
openclosedstaleminelimitintegervarsayılan 25Rows per page.
cursorstringOpaque; take it from the previous response's
page.next_cursor.
Yanıt · 200
dataobject[]zorunluAlanları gösterAlanları gizle
iduuidnamestringnull olabiliremailstringnull olabilirphonestringnull olabilirstagestringscoreintegernull olabilirsourcestringnull olabilirestimated_valuestringnull olabilirDecimal as a string, to avoid float rounding.
currencystringnull olabilirdestinationsstring[]party_sizeintegernull olabilirtarget_departure_ondatenull olabilirtarget_return_ondatenull olabilirassigned_toobjectnull olabilirA seat on the account, as referenced from other records.
Alanları gösterAlanları gizle
iduuidnamestringnull olabiliremailstringnull olabilir
customer_iduuidnull olabilirSet once the lead converts.
trip_iduuidnull olabilirupdated_atdate-time
pageobjectzorunluThe cursor for the list beside it. Re-send the same request with
?cursor=<next_cursor>whilehas_moreis true.next_cursorisnullon the last page.Alanları gösterAlanları gizle
next_cursorstringzorunlunull olabilirhas_morebooleanzorunlulimitintegerzorunlu
Yanıtlar
401Missing or invalid Bearer token403Policy denied or account has no owner429Rate limit exceeded
curl -X GET 'https://YOUR-CELL.lydira.com/api/v1/leads' \
-H 'Authorization: Bearer sek_YOUR_API_KEY'{
"data": [
{
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"name": "Ayşe Yılmaz",
"email": "ayse@example.com",
"phone": "+90 532 111 22 33",
"stage": "inbox",
"score": 1,
"source": "website_form",
"estimated_value": "12500.00",
"currency": "EUR",
"destinations": [
"Cappadocia",
"Istanbul"
],
"party_size": 1,
"target_departure_on": "2026-03-14",
"target_return_on": "2026-03-14",
"assigned_to": {
"id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"name": "Ayşe Yılmaz",
"email": "ayse@example.com"
},
"customer_id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"trip_id": "9d2f7c3a-1b4e-4a7d-8e51-2c0f6b9a4d18",
"updated_at": "2026-03-14T09:30:00Z"
}
],
"page": {
"next_cursor": "MjAyNi0wMy0xNFQwOTozMDowMC4wMDAwMDBafDk0MQ",
"has_more": true,
"limit": 25
}
}