דלג לתוכן
Cyzyra

הפניה ל-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"
    ]
  }
}

مثال گویا