resend-cli 2.17.1 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -438,11 +438,13 @@ Use `all` with `--events` to subscribe to every event.
|
|
|
438
438
|
- `update`
|
|
439
439
|
- `delete`
|
|
440
440
|
- `listen`
|
|
441
|
+
- `events` (`list`, `get`, `attempts`)
|
|
441
442
|
|
|
442
443
|
#### Aliases
|
|
443
444
|
|
|
444
445
|
- `webhooks ls` → `list`
|
|
445
446
|
- `webhooks rm` → `delete`
|
|
447
|
+
- `webhooks events ls` → `webhooks events list`
|
|
446
448
|
|
|
447
449
|
---
|
|
448
450
|
|
|
@@ -562,6 +564,32 @@ resend webhooks listen --url https://xxxx.ngrok-free.app --forward-to localhost:
|
|
|
562
564
|
resend webhooks listen --url https://xxxx.ngrok-free.app --port 8080 --events email.sent email.bounced
|
|
563
565
|
```
|
|
564
566
|
|
|
567
|
+
#### **`resend webhooks events`**
|
|
568
|
+
|
|
569
|
+
Inspects what Resend already delivered to a webhook. Use it to debug an endpoint that is missing events:
|
|
570
|
+
|
|
571
|
+
1. `resend webhooks events list <webhook-id>` — find the event
|
|
572
|
+
2. `resend webhooks events get <webhook-id> <event-id>` — see the payload we sent
|
|
573
|
+
3. `resend webhooks events attempts <webhook-id> <event-id>` — see what your endpoint returned
|
|
574
|
+
|
|
575
|
+
Running `resend webhooks events <webhook-id>` with no subcommand runs `list`.
|
|
576
|
+
|
|
577
|
+
Both list subcommands paginate forward only — there is no `--before`.
|
|
578
|
+
|
|
579
|
+
| Flag | Description |
|
|
580
|
+
| ------------------ | -------------------------------------------------------- |
|
|
581
|
+
| `--limit <n>` | Max results to return (`1`–`100`, default `10`) |
|
|
582
|
+
| `--after <cursor>` | Return results after this ID (next page) |
|
|
583
|
+
|
|
584
|
+
`events list` reports each event's `type`, `status` (`pending`, `attempting`, `success`, `failed`), and `created_at`. `events get` adds `next_attempt_at` and the payload that was sent. `events attempts` reports the `http_status_code` and response body your endpoint returned for each try.
|
|
585
|
+
|
|
586
|
+
```bash
|
|
587
|
+
resend webhooks events list wh_abc123
|
|
588
|
+
resend webhooks events list wh_abc123 --limit 50 --json
|
|
589
|
+
resend webhooks events get wh_abc123 msg_1srOrx2ZWZBpBUvZwXKQmoEYga2
|
|
590
|
+
resend webhooks events attempts wh_abc123 msg_1srOrx2ZWZBpBUvZwXKQmoEYga2
|
|
591
|
+
```
|
|
592
|
+
|
|
565
593
|
---
|
|
566
594
|
|
|
567
595
|
## Global options
|