API حوالہ
لیڈز
رابطے اور صارفین۔ تخلیق نقل نہیں کرتی ہے: وہی ای میل یا ٹیلی فون نمبر پہلے سے موجود لیڈ کو لوٹاتا ہے۔
Listar leads
get/api/v1/leads
کلیدی اجازت: leitura
پیرامیٹرز
limit integer · consulta
ڈیفالٹ: 50 · Máximo: 200
cursor string · consulta
next_cursor da página anterior
updated_since string (date-time) · consulta
—
status string · consulta
—
جوابات
- 200Página de leads
curl "https://www.cyzyra.com/api/v1/leads" \
-H "Authorization: Bearer $CYZYRA_API_KEY"{
"data": [
{
"id": "8f1c…",
"name": "Ana Souza",
"email": "ana@example.com",
"status": "new",
"created_at": "2026-11-08T14:02:11Z"
}
],
"next_cursor": "eyJ0Ijoi…"
}مثالی مثال۔
Criar lead (sem duplicar: e-mail/telefone iguais devolvem o existente)
post/api/v1/leads
کلیدی اجازت: escrita
باڈی (JSON)
name stringلازمی
—
email string
—
phone string
—
whatsapp string
—
city string
—
country string
مثال: "BR"
notes string
—
source_detail string
—
tags string[]
—
جوابات
- 200Já existia (duplicate: true)
- 201Criado
curl -X POST "https://www.cyzyra.com/api/v1/leads" \
-H "Authorization: Bearer $CYZYRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Ana Souza","email":"ana@example.com","whatsapp":"+5511999990000","country":"BR","tags":["site"]}'{
"data": {
"id": "8f1c…",
"name": "Ana Souza",
"status": "new"
},
"created": true,
"duplicate": false
}مثالی مثال۔
Ver lead
get/api/v1/leads/{id}
کلیدی اجازت: leitura
پیرامیٹرز
id string (uuid) · caminhoلازمی
—
جوابات
- 200لیڈ
- 404Não encontrado
curl "https://www.cyzyra.com/api/v1/leads/LEAD_ID" \
-H "Authorization: Bearer $CYZYRA_API_KEY"{
"data": {
"id": "8f1c…",
"name": "Ana Souza",
"email": "ana@example.com",
"status": "new"
}
}مثالی مثال۔
Alterar lead
patch/api/v1/leads/{id}
کلیدی اجازت: escrita
پیرامیٹرز
id string (uuid) · caminhoلازمی
—
باڈی (JSON)
name string
—
email string
—
phone string
—
city string
—
status string
—
tags string[]
—
notes string
—
do_not_contact boolean
—
جوابات
- 200Lead atualizado
curl -X PATCH "https://www.cyzyra.com/api/v1/leads/LEAD_ID" \
-H "Authorization: Bearer $CYZYRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"city":"Curitiba","tags":["vip"]}'{
"data": {
"id": "8f1c…",
"city": "Curitiba",
"tags": [
"vip"
]
}
}مثالی مثال۔
