You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7c72046
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -698,6 +698,8 @@ The usual flow is plural to find an ID, then singular with that ID. The split ke
698
698
699
699
`gateway_events_read` and `gateway_requests_read`**list** actions support the same filters as `hookdeck gateway event list` and `hookdeck gateway request list` — including payload search (`body`, `headers`, `parsed_query`, `path`) and date windows via `*_after` / `*_before` (ISO 8601; maps to API `field[gte]` / `field[lte]`). See `gateway_help` with topic `gateway_events_read` or `gateway_requests_read` for the full parameter list.
700
700
701
+
Both **list** actions also take `include: "data"`, which returns each event's or request's payload (headers, body, path, parsed query) in the list itself, so an agent that needs several payloads makes one call instead of one per record. Payloads make responses much larger, so pair it with a small `limit` and page with `next`. When `include` is set without a `limit`, the tool sends `limit=10` rather than the API's default page size. `list_ignored` does not take it: its route does not declare `include`. On the command line, the same option is `--include data` on `gateway event list`, `gateway request list` and `gateway request events`; it requires `--output json`, and the limit defaults to 10 there too.
702
+
701
703
The only relationship traversal the API supports is request → events, and `gateway_events_read` owns both directions of it. Pass `request_id` with action `list` for the events a request produced, or action `list_ignored` for the ones a connection filter dropped. `GET /events` declares no `request_id` filter, so the tool queries the request's own events route instead — it takes the same filters, so every argument still applies (`list_ignored`'s route is the exception: it takes `id`, paging and ordering only). There is no `event_id` filter on requests. To go the other way, read `request_id` off an event and call `gateway_request_read` with action `get`.
702
704
703
705
`gateway_help` reports which mode the session is in and lists only the actions it can perform.
| `--include` | `string` | Set to "data" to include each event's payload (headers, body, path, parsed query) in the results. Requires `--output` json. Responses grow with every payload: when `--limit` is not set it defaults to 10 instead of 100 |
1618
1622
|`--issue-id`|`string`| Filter by issue ID |
1619
1623
|`--last-attempt-at-after`|`string`| Filter by last_attempt_at after (ISO date-time) |
1620
1624
|`--last-attempt-at-before`|`string`| Filter by last_attempt_at before (ISO date-time) |
@@ -1642,6 +1646,7 @@ hookdeck gateway event list --connection-id web_abc123
1642
1646
hookdeck gateway event list --status FAILED --limit 20
1643
1647
hookdeck gateway event list --search-term cus_1234
1644
1648
hookdeck gateway event list --status QUEUED --next-attempt-at-before 2026-01-01T00:00:00Z
1649
+
hookdeck gateway event list --status FAILED --include data --output json
1645
1650
```
1646
1651
### hookdeck gateway event get
1647
1652
@@ -1743,6 +1748,9 @@ Use `--search-term` to find a complete value across the body, headers, parsed qu
1743
1748
at once. `--events-count` 0 finds requests that produced no events, which is the usual reason a
1744
1749
webhook appears to have gone missing.
1745
1750
1751
+
Use `--include`=data with `--output`=json to get each request's payload in the results, instead of
1752
+
fetching requests one at a time. Without `--limit`, the limit is then 10 instead of 100.
1753
+
1746
1754
**Usage:**
1747
1755
1748
1756
```bash
@@ -1762,6 +1770,7 @@ hookdeck gateway request list [flags]
| `--ignored-count` | `string` | Filter by number of ignored events. A whole number |
1773
+
| `--include` | `string` | Set to "data" to include each request's payload (headers, body, path, parsed query) in the results. Requires `--output` json. Responses grow with every payload: when `--limit` is not set it defaults to 10 instead of 100 |
1765
1774
|`--ingested-at-after`|`string`| Filter by ingested_at after (ISO date-time) |
1766
1775
|`--ingested-at-before`|`string`| Filter by ingested_at before (ISO date-time) |
1767
1776
|`--limit`|`int`| Limit number of results (default "100") |
@@ -1784,6 +1793,7 @@ hookdeck gateway request list
1784
1793
hookdeck gateway request list --source-id src_abc123 --limit 20
1785
1794
hookdeck gateway request list --search-term cus_1234
1786
1795
hookdeck gateway request list --events-count 0
1796
+
hookdeck gateway request list --source-id src_abc123 --include data --output json
1787
1797
```
1788
1798
### hookdeck gateway request get
1789
1799
@@ -1835,6 +1845,12 @@ List events (deliveries) created from a request.
1835
1845
Filters match `hookdeck gateway event list`: this command queries the same event
1836
1846
collection, narrowed to one request.
1837
1847
1848
+
Use `--include`=data with `--output`=json to get each event's payload in the results. Without
1849
+
`--limit`, the limit is then 10 instead of 100.
1850
+
1851
+
When the request has more events than fit on one page, a note on stderr gives the cursor to
| `--include` | `string` | Set to "data" to include each event's payload (headers, body, path, parsed query) in the results. Requires `--output` json. Responses grow with every payload: when `--limit` is not set it defaults to 10 instead of 100 |
1859
1876
|`--issue-id`|`string`| Filter by issue ID |
1860
1877
|`--last-attempt-at-after`|`string`| Filter by last_attempt_at after (ISO date-time) |
1861
1878
|`--last-attempt-at-before`|`string`| Filter by last_attempt_at before (ISO date-time) |
Use --search-term to find a complete value across the body, headers, parsed query or path
60
61
at once, when you know the value but not which field carries it.
61
62
63
+
Use --include=data with --output=json to get each event's payload in the results, instead of
64
+
fetching events one at a time. Without --limit, the limit is then 10 instead of 100.
65
+
62
66
Examples:
63
67
hookdeck gateway event list
64
68
hookdeck gateway event list --connection-id web_abc123
65
69
hookdeck gateway event list --status FAILED --limit 20
66
70
hookdeck gateway event list --search-term cus_1234
67
-
hookdeck gateway event list --status QUEUED --next-attempt-at-before 2026-01-01T00:00:00Z`,
71
+
hookdeck gateway event list --status QUEUED --next-attempt-at-before 2026-01-01T00:00:00Z
72
+
hookdeck gateway event list --status FAILED --include data --output json`,
68
73
RunE: ec.runEventListCmd,
69
74
}
70
75
@@ -92,6 +97,7 @@ Examples:
92
97
ec.cmd.Flags().StringVar(&ec.path, "path", "", "Filter by path")
93
98
ec.cmd.Flags().StringVar(&ec.parsedQuery, "parsed-query", "", "Filter by parsed query (JSON string)")
94
99
ec.cmd.Flags().StringVar(&ec.searchTerm, "search-term", "", "Match a whole value in body, headers, parsed query or path. Not a substring (min 3 characters)")
0 commit comments