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

# Test agent webhook

> Send a sample post-conversation webhook to check your endpoint.

<Note>
  This endpoint is for the VIP plan only. Other plans get a `403`. See [Plan access](/api-reference/introduction#plan-access).
</Note>

Sends one sample [post-conversation webhook](/agents/post-conversation-webhook) built from the agent's own extraction fields and custom fields. We wait up to 10 seconds.

## Path Parameters

<ParamField path="agentId" type="string" required>The agent.</ParamField>

## Body

<ParamField body="url" type="string">The URL to test. Leave it out to use the agent's webhook URL.</ParamField>
<ParamField body="channel" type="string">The channel to label the sample with: `voice`, `web`, `sms`, `email`, `whatsapp`, `facebook` (Messenger), `instagram` or `web_chat`.</ParamField>

<ResponseExample>
  ```json Response theme={null}
  { "success": false, "error": "Webhook endpoint returned HTTP 500" }
  ```
</ResponseExample>

`success` is `true` when your endpoint answered with a `2xx`. A redirect to a private or internal address is refused. You can test 10 times a minute per workspace.

## Errors

| Status | When |
| - | - |
| `400` | The agent has no webhook URL and you sent none, or the URL is not a public address. |
| `404` | The agent is not in your API key's scope. |
| `429` | More than 10 tests in a minute. Wait a minute. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.