Zum Inhalt springen

API-Referenz

Führt

Kontakte und Kunden. Die Erstellung wird nicht dupliziert: Die gleiche E-Mail-Adresse oder Telefonnummer gibt den bereits vorhandenen Lead zurück.

Listar leads

get/api/v1/leads

Schlüsselberechtigung: leitura

Parameter

limit integer · consulta

Standard: 50 · Máximo: 200

cursor string · consulta

next_cursor da página anterior

updated_since string (date-time) · consulta

—

status string · consulta

—

Antworten

  • 200Página de leads
Anfrage
curl "https://www.cyzyra.com/api/v1/leads" \
  -H "Authorization: Bearer $CYZYRA_API_KEY"
Antwort
{
  "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

Schlüsselberechtigung: escrita

Körper (JSON)

name stringobligatorisch

—

email string

—

phone string

—

whatsapp string

—

city string

—

country string

Beispiel: "BR"

notes string

—

source_detail string

—

tags string[]

—

Antworten

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

Przykład ilustrujący.

Ver lead

get/api/v1/leads/{id}

Schlüsselberechtigung: leitura

Parameter

id string (uuid) · caminhoobligatorisch

—

Antworten

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

Przykład ilustrujący.

Alterar lead

patch/api/v1/leads/{id}

Schlüsselberechtigung: escrita

Parameter

id string (uuid) · caminhoobligatorisch

—

Körper (JSON)

name string

—

email string

—

phone string

—

city string

—

status string

—

tags string[]

—

notes string

—

do_not_contact boolean

—

Antworten

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

Przykład ilustrujący.