Skip to main content

Endpoint

GET /v1/webhooks
Escopo necessário: read:webhooks — disponível nos planos Growth e Scale

Exemplo de requisição

curl "https://api.socialsell.ai/v1/webhooks" \
  -H "Authorization: Bearer sk_live_..."

Exemplo de resposta

{
  "data": [
    {
      "id": "664m8n9o0p1q2r3s4t5u6v7w",
      "name": "Notificações ERP",
      "url": "https://meusistema.com/webhook/socialsell",
      "events": ["contact.created", "deal.won", "deal.stage.changed"],
      "status": "active",
      "last_delivery_at": "2026-06-10T15:50:00.000Z",
      "last_failure_at": null,
      "consecutive_failures": 0,
      "created_at": "2026-05-01T10:00:00.000Z",
      "updated_at": "2026-06-10T15:50:00.000Z"
    }
  ],
  "meta": {
    "total": 2,
    "has_more": false
  }
}

Objeto webhook

CampoTipoDescrição
idstringID da assinatura
namestringNome descritivo
urlstringURL de destino (HTTPS)
eventsstring[]Eventos assinados
statusstringactive ou paused
last_delivery_atstring|nullÚltima entrega bem-sucedida
last_failure_atstring|nullÚltima falha de entrega
consecutive_failuresintegerFalhas consecutivas acumuladas
created_atstringTimestamp de criação
updated_atstringTimestamp de atualização