Get webhook

Get webhook. See the OpenAPI-defined parameters, request body, and responses below.

GET /Webhook/{id}

Get webhook. See the OpenAPI-defined parameters, request body, and responses below.

OpenAPI description: Retorna a configuração do webhook identificado por id no tenant autenticado. Requer ViewWebhooks.

Authentication

Authentication required. Send your user API key in the X-API-Key header.

Parameters

NameLocationTypeRequiredDescriptionConstraints
idpathinteger · int32Yes——

Request body

This operation does not accept a request body.

Example request

curl --request GET \
  --url 'https://api.zild.ai/Webhook/{id}' \
  --header 'X-API-Key: YOUR_USER_API_KEY'

Responses

StatusDescriptionResponse body
200Configuração do webhook.application/json · WebhookDto

Example response (200):

{
  "id": 0,
  "enable": true,
  "name": "string",
  "webhookType": 0,
  "url": "string"
}

Data models

WebhookDto
PropertyTypeRequiredDescriptionConstraints
idinteger · int32No——
enablebooleanNo——
namestringNo—nullable
webhookTypeWebhookTypeNo——
urlstringNo—nullable
WebhookType

0 = EvaluationResult; 2 = ConversationEnded; 3 = ConversationDeleted; 4 = CallTransferred; 5 = DocumentNew; 6 = DocumentInProgress; 7 = DocumentTextExtracted; 8 = DocumentError; 9 = DocumentCompleted; 10 = DocumentCancelled

integer