GET
/
v2
/
webhooks
/
{webhookId}
Obtener webhook
curl --request GET \
  --url https://api.gotrebol.com/v2/webhooks/{webhookId} \
  --header 'x-api-key: <api-key>'
{
  "id": "wh_123",
  "url": "https://example.com/webhooks/trebol",
  "events": [
    "verification.v2.created"
  ],
  "status": "enabled",
  "description": "Webhook principal de producción",
  "created_at": "2025-08-20T10:00:00Z",
  "updated_at": "2025-08-20T10:00:00Z"
}

Authorizations

x-api-key
string
header
required

Path Parameters

webhookId
string
required

ID único del webhook

Response

Webhook obtenido exitosamente.

id
string

ID único del webhook

Example:

"wh_123"

url
string<uri>

URL a la que Trebol enviará las notificaciones

Example:

"https://example.com/webhooks/trebol"

events
string[]

Lista de eventos suscritos

status
enum<string>

Indica si el webhook está habilitado o deshabilitado

Available options:
enabled,
disabled
Example:

"enabled"

description
string | null

Descripción opcional del webhook

created_at
string<date-time>
updated_at
string<date-time>