resend-cli 2.17.1 → 2.19.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`, `replay`)
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,34 @@ 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
+ 4. `resend webhooks events replay <webhook-id> <event-id>` — queue another delivery
575
+
576
+ Running `resend webhooks events <webhook-id>` with no subcommand runs `list`.
577
+
578
+ Both list subcommands paginate forward only — there is no `--before`.
579
+
580
+ | Flag | Description |
581
+ | ------------------ | -------------------------------------------------------- |
582
+ | `--limit <n>` | Max results to return (`1`–`100`, default `10`) |
583
+ | `--after <cursor>` | Return results after this ID (next page) |
584
+
585
+ `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. `events replay` queues one more delivery attempt and returns `{"object":"webhook_event","id":"<event-id>"}`; it does not schedule automatic retries.
586
+
587
+ ```bash
588
+ resend webhooks events list wh_abc123
589
+ resend webhooks events list wh_abc123 --limit 50 --json
590
+ resend webhooks events get wh_abc123 msg_1srOrx2ZWZBpBUvZwXKQmoEYga2
591
+ resend webhooks events attempts wh_abc123 msg_1srOrx2ZWZBpBUvZwXKQmoEYga2
592
+ resend webhooks events replay wh_abc123 msg_1srOrx2ZWZBpBUvZwXKQmoEYga2
593
+ ```
594
+
565
595
  ---
566
596
 
567
597
  ## Global options