---
title: "test_dispatch — AI Ability"
description: "Test-dispatch a webhook — Send a synchronous test delivery for a webhook using a provided or captured payload, and return the HTTP result so the agent can verify the integration end to end."
url: "https://wpwebhooks.org/docs/ability-test-dispatch/"
---

[WP Webhooks](/) / [Docs](/docs/) / test\_dispatch

AI Ability since v2.0.0

# test\_dispatch

Test-dispatch a webhook — Send a synchronous test delivery for a webhook using a provided or captured payload, and return the HTTP result so the agent can verify the integration end to end.

Send a synchronous test delivery for a webhook using a provided or captured payload, and return the HTTP result so the agent can verify the integration end to end. Registered as the WordPress Ability `flowsystems-webhook-actions/test_dispatch`, so external AI tools (Claude Code, Cursor) can call it over MCP or REST with a scoped API token.

/ Plan step shape

```
{ "ability": "test_dispatch", "input": { "webhook_id": …, "trigger": …, "payload": … } }
```

/ Scope & confirmation

Minimum API-token scope for external (MCP/REST) callers: `full`. Runs without a confirmation pause (the overall plan is still user-approved before execution starts).

/ Input fields

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| webhook\_id | param | integer | yes |  |
| trigger | param | string | — |  |
| payload | param | object | — | Optional custom payload; falls back to the captured example. |

/ Examples

Plan step as the AI Builder proposes it

```
{
  "id": "step_1",
  "ability": "test_dispatch",
  "summary": "…",
  "input": {
    "webhook_id": 12,
    "trigger": "wpcf7_mail_sent"
  }
}
```

/ Related

[probe\_endpoint](/docs/ability-probe-endpoint/)[get\_logs](/docs/ability-get-logs/)[REST API reference](/webhook-wordpress-plugin-api/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [See the Plugin →](/wordpress-webhook-plugin/)

$ wp plugin install flowsystems-webhook-actions --activate

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"test_dispatch — AI Ability — Webhook Actions Docs","description":"Test-dispatch a webhook — Send a synchronous test delivery for a webhook using a provided or captured payload, and return the HTTP result so the agent can verify the integration end to end.","url":"https://wpwebhooks.org/docs/ability-test-dispatch/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
