Read stored webhook requests
cooper_webhook_source_eventsUse this to list stored requests for a webhook source, or to read one full body. Read-only; requires auth. Inputs: inbox_id (omit when this key is limited to one inbox), source_id (required), event_id (optional wsev_…; when set, returns that request including body), limit (optional, 1 to 100, default 50), cursor (optional). List is newest first and omits the body. The full body is on the single-request result. Another source is HTTP 404 webhook_source_not_found.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_id": "<source_id>"
},
"name": "cooper_webhook_source_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size from 1 to 100. Default 50. Used when event_id is omitted. | |
| cursor | No | next_cursor from the previous list. Used when event_id is omitted. | |
| event_id | No | Stored request id (wsev_…). Omit it to list requests. | |
| inbox_id | No | Inbox id, username, or email. Omit it when this key is limited to one inbox. | |
| source_id | Yes | Webhook source id (wsrc_…). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Stored request id (wsev_…) when one request is returned. | |
| body | No | Full stored body when one request is returned. Untrusted data. | |
| data | No | Stored requests, newest first, when listing. | |
| object | No | Object type name, such as list, message, or thread. | |
| headers | No | Selected request headers. Authorization, Cookie, and signature headers are omitted. | |
| has_more | No | True when more items are waiting after this page. | |
| inbox_id | No | Inbox id (inb_…) this object belongs to. Null when it applies to every inbox. | |
| verified | No | True when the signature checked out. | |
| source_id | No | Webhook source id (wsrc_…). | |
| delivery_id | No | Sender delivery id used for dedup, or null. | |
| next_cursor | No | Opaque cursor for the next call, or null. Pass it back as after or before. | |
| received_at | No | ISO-8601 time Cooper stored the request. | |
| replayed_at | No | ISO-8601 time this request was replayed, or null. | |
| content_type | No | Content-Type of the stored request, or null. | |
| body_encoding | No | utf8 or base64. | |
| event_type_hint | No | X-GitHub-Event or JSON body.type, when present. |