Passer au contenu
Cyzyra

Référence API

Conduit

Contacts et clients. La création ne duplique pas : le même email ou numéro de téléphone renvoie le lead qui existe déjà.

Listar leads

get/api/v1/leads

Autorisation de clé : leitura

Paramètres

limit integer · consulta

Par défaut : 50 · Máximo: 200

cursor string · consulta

next_cursor da página anterior

updated_since string (date-time) · consulta

—

status string · consulta

—

Réponses

  • 200Página de leads
Demande
curl "https://www.cyzyra.com/api/v1/leads" \
  -H "Authorization: Bearer $CYZYRA_API_KEY"
Réponse
{
  "data": [
    {
      "id": "8f1c…",
      "name": "Ana Souza",
      "email": "ana@example.com",
      "status": "new",
      "created_at": "2026-11-08T14:02:11Z"
    }
  ],
  "next_cursor": "eyJ0Ijoi…"
}

Przykład ilustrujący.

Criar lead (sem duplicar: e-mail/telefone iguais devolvem o existente)

post/api/v1/leads

Autorisation de clé : escrita

Corps (JSON)

name stringobligatoire

—

email string

—

phone string

—

whatsapp string

—

city string

—

country string

Exemple : "BR"

notes string

—

source_detail string

—

tags string[]

—

Réponses

  • 200Já existia (duplicate: true)
  • 201Criado
Demande
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"]}'
Réponse
{
  "data": {
    "id": "8f1c…",
    "name": "Ana Souza",
    "status": "new"
  },
  "created": true,
  "duplicate": false
}

Przykład ilustrujący.

Ver lead

get/api/v1/leads/{id}

Autorisation de clé : leitura

Paramètres

id string (uuid) · caminhoobligatoire

—

Réponses

  • 200Plomb
  • 404Não encontrado
Demande
curl "https://www.cyzyra.com/api/v1/leads/LEAD_ID" \
  -H "Authorization: Bearer $CYZYRA_API_KEY"
Réponse
{
  "data": {
    "id": "8f1c…",
    "name": "Ana Souza",
    "email": "ana@example.com",
    "status": "new"
  }
}

Przykład ilustrujący.

Alterar lead

patch/api/v1/leads/{id}

Autorisation de clé : escrita

Paramètres

id string (uuid) · caminhoobligatoire

—

Corps (JSON)

name string

—

email string

—

phone string

—

city string

—

status string

—

tags string[]

—

notes string

—

do_not_contact boolean

—

Réponses

  • 200Lead atualizado
Demande
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"]}'
Réponse
{
  "data": {
    "id": "8f1c…",
    "city": "Curitiba",
    "tags": [
      "vip"
    ]
  }
}

Przykład ilustrujący.