> ## Documentation Index
> Fetch the complete documentation index at: https://docs.portalhq.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Replay failed alert webhook events

> **Deprecated.** Use
`POST /custodians/me/alerts/webhooks/{alertWebhookId}/delivery-events/{deliveryEventId}/retries`
instead to retry one delivery event at a time. The new endpoint also supports
retrying events that are still `PENDING`, not just those in `FAILED` state.

Replays a list of alert webhook events with a delivery status of `"failed"`.
If a failed event has already been replayed successfully, it cannot be replayed again.




## OpenAPI

````yaml /openapi/custodian-api.yaml post /custodians/me/alerts/webhooks/{alertWebhookId}/events/failed/replay
openapi: 3.1.0
info:
  title: Portal Custodian API
  version: '3.0'
  description: >
    The Portal Custodian API provides endpoints for managing clients, building
    transactions,

    retrieving wallet data, managing delegations, alert webhooks, and gas
    sponsorship.

    All endpoints require authentication via a Portal API Key (also known as a
    Custodian API Key)

    passed as a Bearer token.


    ## Base URL

    `https://api.portalhq.io/api/v3`


    ## Authentication

    Include your Portal API Key as a Bearer token in the `Authorization` header
    of every request.


    ## Chain ID Format

    Chain parameters use either friendly names (e.g. `ethereum`, `solana`) or
    CAIP-2 format

    (e.g. `eip155:1`, `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`). When using
    CAIP-2 format

    in URLs, ensure the colon is URI-encoded (`%3A`).
servers:
  - url: https://api.portalhq.io/api/v3
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Clients
    description: Create and manage Portal clients
  - name: Transactions
    description: Build and evaluate blockchain transactions
  - name: Wallet Metadata
    description: Retrieve wallet balances and NFTs
  - name: Wallet Shares
    description: Manage backup shares and wallet ejection
  - name: Delegations
    description: Manage token delegations and delegated transfers
  - name: Session Keys
    description: Build and send EIP-7702 session key user operations
  - name: Alert Webhooks
    description: Manage alert webhooks, external addresses, and replay failed events
  - name: Gas Sponsorship
    description: View and manage gas sponsorship across chains
paths:
  /custodians/me/alerts/webhooks/{alertWebhookId}/events/failed/replay:
    post:
      tags:
        - Alert Webhooks
      summary: Replay failed alert webhook events
      description: >
        **Deprecated.** Use

        `POST
        /custodians/me/alerts/webhooks/{alertWebhookId}/delivery-events/{deliveryEventId}/retries`

        instead to retry one delivery event at a time. The new endpoint also
        supports

        retrying events that are still `PENDING`, not just those in `FAILED`
        state.


        Replays a list of alert webhook events with a delivery status of
        `"failed"`.

        If a failed event has already been replayed successfully, it cannot be
        replayed again.
      operationId: replayFailedAlertWebhookEvents
      parameters:
        - $ref: '#/components/parameters/alertWebhookId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReplayFailedEventsRequest'
            example:
              eventIds:
                - eventId1
      responses:
        '200':
          description: Replay initiated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReplayFailedEventsResponse'
              example:
                data:
                  replaying:
                    - alertWebhookEventId1
                  failed:
                    - alertWebhookEventId2
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - invalid or missing authentication token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      deprecated: true
components:
  parameters:
    alertWebhookId:
      name: alertWebhookId
      in: path
      required: true
      description: The unique identifier of the alert webhook.
      schema:
        type: string
  schemas:
    ReplayFailedEventsRequest:
      type: object
      required:
        - eventIds
      properties:
        eventIds:
          type: array
          items:
            type: string
          description: List of failed alert webhook event IDs to replay.
    ReplayFailedEventsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            replaying:
              type: array
              items:
                type: string
              description: Event IDs currently being replayed.
            failed:
              type: array
              items:
                type: string
              description: Event IDs that failed to be replayed.
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message describing what went wrong
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        Portal API Key (Custodian API Key). Pass as a Bearer token in the
        Authorization header.

````