---
title: "get_logs — AI Ability"
description: "Get delivery logs — Read recent delivery logs (optionally for one webhook) to verify what was sent and how the endpoint responded."
url: "https://wpwebhooks.org/docs/ability-get-logs/"
---

[WP Webhooks](/) / [Docs](/docs/) / get\_logs

AI Ability since v2.0.0

# get\_logs

Get delivery logs — Read recent delivery logs (optionally for one webhook) to verify what was sent and how the endpoint responded.

Read recent delivery logs (optionally for one webhook) to verify what was sent and how the endpoint responded. Registered as the WordPress Ability `flowsystems-webhook-actions/get_logs`, so external AI tools (Claude Code, Cursor) can call it over MCP or REST with a scoped API token.

/ Plan step shape

```
{ "ability": "get_logs", "input": { "webhook_id": …, "limit": … } }
```

/ Scope & confirmation

Minimum API-token scope for external (MCP/REST) callers: `read`. Read-only — the agent runs it freely while planning and verifying.

/ Input fields

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| webhook\_id | param | integer | — |  |
| limit | param | integer | — |  |

/ Examples

Plan step as the AI Builder proposes it

```
{
  "id": "step_1",
  "ability": "get_logs",
  "summary": "…",
  "input": {
    "webhook_id": 12,
    "limit": 20
  }
}
```

/ Related

[test\_dispatch](/docs/ability-test-dispatch/)[Delivery Logs](/docs/delivery-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":"get_logs — AI Ability — Webhook Actions Docs","description":"Get delivery logs — Read recent delivery logs (optionally for one webhook) to verify what was sent and how the endpoint responded.","url":"https://wpwebhooks.org/docs/ability-get-logs/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
