## events resend

Resend an event to the Stripe CLI's local webhook endpoint, which forwards it to any running [stripe listen](https://docs.stripe.com/cli/listen.md) session. To resend the event to a specific webhook endpoint instead, pass `--webhook-endpoint=we_123456`. You can only resend events from the last 30 days.

To resend an event that belongs to a connected account, pass the connected account ID with `--account`. Without `--webhook-endpoint`, Stripe delivers the event to the Stripe CLI's local Connect webhook endpoint, so a running `stripe listen` session receives it as a Connect event. Don't use `--stripe-account` with this command. It sends the request as the connected account, and the request fails with an error about configuring webhook endpoints on a connected account.

**Command:** `stripe events resend`

### Arguments

- `<event_id>`
  The ID of the event to resend.

### Flags

- `--account=<account_id>`
  The ID of the connected account that the event belongs to (`acct_123456`). Use this flag to resend a connected account's event to your platform's Connect webhook endpoints. Don't use `--stripe-account` to resend a connected account's event.

- `-c, --confirm`
  Skip the warning prompt and automatically confirm the command being entered.

- `--dark-style`
  Use a darker color scheme better suited for lighter command-line environments.

- `-e, --expand <value>`
  Response attributes to expand inline (target nested values with `nested[param]=value`).

- `-i, --idempotency <key>`
  Set an idempotency key for the request, preventing the same request from replaying within 24 hours.

- `--live`
  Make a live request. Requests run in a sandbox by default.

- `-s, --show-headers`
  Show response HTTP headers.

- `--stripe-account <account_id>`
  Specify the Stripe account to use for this request.

- `-v, --stripe-version <version>`
  Specify the Stripe API version to use for this request.

- `--webhook-endpoint=<endpoint_id>`
  Resend the event to the given webhook endpoint ID (`we_123456`). To resend a connected account's event with `--account`, use a Connect webhook endpoint on your platform that listens for the event's type.

### Examples

**Basic usage**

```sh
stripe events resend evt_1PH9HU2eZvKYlo2CrSrLx8y1
```

**Resend an event from a connected account**

```sh
stripe events resend evt_1PH9HU2eZvKYlo2CrSrLx8y1 --account=acct_1032D82eZvKYlo2C
```

**Response**

```
{
  "id": "evt_1PH9HU2eZvKYlo2CrSrLx8y1",
  "object": "event",
  "api_version": "2019-02-19",
  "created": 1715885036,
  "data": {
    "object": {
      "id": "card_1PH9HQ2eZvKYlo2CcwDOwdFV",
      "object": "card",
      "address_city": null,
      "address_country": null,
      "address_line1": null,
      "address_line1_check": null,
      "address_line2": null,
      "address_state": null,
      "address_zip": "12345",
      "address_zip_check": "pass",
      "brand": "Visa",
      "country": "US",
      "customer": "cus_Q7O3jQBjZLlpRL",
      "cvc_check": "pass",
      "dynamic_last4": null,
      "exp_month": 12,
      "exp_year": 2034,
      "fingerprint": "Xt5EWLLDS7FJjR1c",
      "funding": "credit",
      "last4": "4242",
      "metadata": {},
      "name": "user@gmail.com",
      "tokenization_method": null,
      "wallet": null
    }
  },
  "livemode": false,
  "pending_webhooks": 0,
  "request": {
    "id": "req_nqyTqVZmNKel38",
    "idempotency_key": "4bbe6edd-6d4e-4770-bf5a-f006cdf0e394"
  },
  "type": "customer.source.created"
}
```
