> ## Documentation Index
> Fetch the complete documentation index at: https://docs.talkover.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Obter Detalhes do Webhook

> Recuperar informações detalhadas sobre um webhook específico

## Visão Geral

Recupera informações detalhadas sobre uma configuração de webhook específica, incluindo seu status atual, eventos configurados e metadados.

## Endpoint

<ParamField path="agent_id" type="string" required>
  UUID do Agente
</ParamField>

<ParamField path="webhook_id" type="string" required>
  UUID do Webhook
</ParamField>

## Requisição

<RequestExample>
  ```bash theme={null}
  curl -X GET \
    'https://app.talkover.ai/api/v1/agents/9fbef0b7-8d4e-4a08-9207-66c22155721d/webhooks/9fcafbf2-7593-44d6-8cd7-1b221beba62a' \
    -H 'Authorization: Bearer YOUR_TOKEN'
  ```

  ```javascript theme={null}
  const response = await fetch('https://app.talkover.ai/api/v1/agents/9fbef0b7-8d4e-4a08-9207-66c22155721d/webhooks/9fcafbf2-7593-44d6-8cd7-1b221beba62a', {
    method: 'GET',
    headers: {
      'Authorization': 'Bearer YOUR_TOKEN'
    }
  });
  const data = await response.json();
  ```

  ```php theme={null}
  <?php

  $client = new \GuzzleHttp\Client();
  $response = $client->get('https://app.talkover.ai/api/v1/agents/9fbef0b7-8d4e-4a08-9207-66c22155721d/webhooks/9fcafbf2-7593-44d6-8cd7-1b221beba62a', [
      'headers' => [
          'Authorization' => 'Bearer YOUR_TOKEN',
      ],
  ]);
  $data = json_decode($response->getBody());
  ```
</RequestExample>

## Resposta

<ResponseField name="success" type="boolean">
  Indica se a requisição foi bem-sucedida
</ResponseField>

<ResponseField name="data" type="object">
  Detalhes da configuração do webhook
</ResponseField>

<ResponseField name="data.id" type="string">
  Identificador único do webhook
</ResponseField>

<ResponseField name="data.agent_id" type="string">
  UUID do agente ao qual este webhook pertence
</ResponseField>

<ResponseField name="data.name" type="string">
  Nome legível do webhook
</ResponseField>

<ResponseField name="data.webhook_url" type="string">
  URL onde os eventos do webhook serão enviados
</ResponseField>

<ResponseField name="data.events" type="array">
  Array de tipos de eventos que este webhook está configurado para receber
</ResponseField>

<ResponseField name="data.timeout" type="integer">
  Timeout da requisição em segundos (5-120)
</ResponseField>

<ResponseField name="data.max_retries" type="integer">
  Número máximo de tentativas de nova tentativa (0-10)
</ResponseField>

<ResponseField name="data.enabled" type="boolean">
  Se o webhook está atualmente ativo
</ResponseField>

<ResponseField name="data.created_at" type="string">
  Timestamp ISO 8601 quando o webhook foi criado
</ResponseField>

<ResponseField name="data.updated_at" type="string">
  Timestamp ISO 8601 quando o webhook foi atualizado pela última vez
</ResponseField>

<ResponseField name="data.events_count" type="integer">
  Número de eventos configurados para este webhook
</ResponseField>

<ResponseField name="data.status" type="string">
  Status atual do webhook (ativo, desabilitado, erro)
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
    "success": true,
    "data": {
      "id": "9fcafbf2-7593-44d6-8cd7-1b221beba62a",
      "agent_id": "9fbef0b7-8d4e-4a08-9207-66c22155721d",
      "name": "Meu Webhook",
      "webhook_url": "https://example.com/webhook",
      "events": ["event_phone_call_started", "event_phone_call_ended"],
      "timeout": 30,
      "max_retries": 3,
      "enabled": true,
      "created_at": "2025-09-03T23:19:51.000000Z",
      "updated_at": "2025-09-03T23:37:01.000000Z",
      "events_count": 2,
      "status": "active"
    }
  }
  ```
</ResponseExample>

## Respostas de erro

<ResponseExample title="401 Não Autorizado">
  ```json theme={null}
  {
    "message": "Token Bearer ausente"
  }
  ```
</ResponseExample>

<ResponseExample title="404 Não Encontrado">
  ```json theme={null}
  {
    "success": false,
    "message": "Agente não encontrado neste ambiente."
  }
  ```
</ResponseExample>

<ResponseExample title="404 Webhook Não Encontrado">
  ```json theme={null}
  {
    "success": false,
    "message": "Webhook não encontrado."
  }
  ```
</ResponseExample>

## Endpoints relacionados

* [Listar Webhooks do Agente](/api-reference/endpoints/list-agent-webhooks) - Obter todos os webhooks de um agente
* [Criar Webhook](/api-reference/endpoints/create-webhook) - Configurar um novo webhook
* [Atualizar Webhook](/api-reference/endpoints/update-webhook) - Modificar configuração do webhook
* [Excluir Webhook](/api-reference/endpoints/delete-webhook) - Remover configuração do webhook
* [Alternar Status do Webhook](/api-reference/endpoints/toggle-webhook-status) - Habilitar/desabilitar webhook
* [Testar Webhook](/api-reference/endpoints/test-webhook) - Enviar payload de teste para verificar conectividade
