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

# Replay webhooks

> Replays all webhooks that were sent during a session.

<Note>
  Replay re-sends webhook events already recorded for the specified run session. If no webhook events were recorded, the endpoint returns success with `nr_success: 0` and `nr_failed: 0`.
</Note>


## OpenAPI

````yaml webhooks-api/webhooks-api.yaml post /webhooks/{session_id}/replay
openapi: 3.1.0
info:
  title: CloudCruise Webhooks API
  version: 0.1.0
  description: Endpoints for replaying webhook deliveries for a run session.
servers:
  - url: https://api.cloudcruise.com
    description: CloudCruise Platform Production API Server
security:
  - AuthScheme: []
paths:
  /webhooks/{session_id}/replay:
    post:
      summary: Replay webhooks
      description: Replays all webhooks that were sent during a session.
      operationId: replay_webhooks
      parameters:
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            description: The ID of the session to replay webhooks for
      responses:
        '200':
          description: Webhooks successfully replayed
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: The status of the webhook replay.
                  info:
                    type: string
                    description: Additional information about the replay.
                  nr_success:
                    type: number
                    description: Number of webhooks that were successfully replayed.
                  nr_failed:
                    type: number
                    description: Number of webhooks that failed to be replayed.
                  webhook_events:
                    type: array
                    description: Details of each webhook replay attempt.
                    items:
                      type: object
                      properties:
                        success:
                          type: boolean
                          description: Whether the webhook was successfully sent.
                        response:
                          type: string
                          description: >-
                            Stringified response from the webhook endpoint (if
                            successful).
                        error:
                          type: string
                          description: Error message (if failed).
                required:
                  - status
                  - info
                  - nr_success
                  - nr_failed
                  - webhook_events
components:
  securitySchemes:
    AuthScheme:
      type: apiKey
      name: cc-key
      in: header
      description: >-
        API key-based authentication. Provide your CloudCruise API key in the
        cc-key header.

````