Pular para o conteúdo principal
GET
/
api
/
webhooks
Listar todos os endpoints de webhook do usuário atual
curl --request GET \
  --url https://api.wappfy.io/api/webhooks \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "user_id": "<string>",
    "url": "https://example.com/webhook",
    "events": [
      "message.received",
      "message.sent"
    ],
    "retry_count": 3,
    "timeout_ms": 5000,
    "is_active": true,
    "created_at": "<string>",
    "updated_at": "<string>",
    "secret": "<string>",
    "description": "Production webhook",
    "instance_id": "<string>",
    "headers": {}
  }
]

Autorizações

Authorization
string
header
obrigatório

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Resposta

List of webhook endpoints

id
string
obrigatório

Webhook endpoint UUID

Exemplo:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

user_id
string
obrigatório

ID do usuário proprietário

url
string
obrigatório

URL de destino

Exemplo:

"https://example.com/webhook"

events
string[]
obrigatório

Tipos de eventos inscritos

Exemplo:
["message.received", "message.sent"]
retry_count
number
obrigatório

Máximo de tentativas de retry em falha

Exemplo:

3

timeout_ms
number
obrigatório

Timeout da requisição em milissegundos

Exemplo:

5000

is_active
boolean
obrigatório

Se o endpoint está ativo

Exemplo:

true

created_at
string
obrigatório

Timestamp de criação

updated_at
string
obrigatório

Timestamp da última atualização

secret
string

HMAC secret for signature verification

description
string

Descrição legível

Exemplo:

"Production webhook"

instance_id
string

Scoped instance ID (null = all instances)

headers
object

Headers HTTP personalizados enviados com cada entrega