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

# Get the raw request

> Get the incoming request of an event, ready to send again. The CLI uses this endpoint. When the body is not valid UTF-8, it is base64 and `body_encoding` is `base64`.




## OpenAPI

````yaml api-reference/openapi.yaml GET /api/v1/projects/{projectId}/events/{eventId}/request
openapi: 3.1.0
info:
  title: hooksnode API
  version: '1.0'
  description: |
    Send events to a source, and read and retry events with a workspace API key.
servers:
  - url: https://hooksnode.com
security:
  - bearerAuth: []
tags:
  - name: Ingest
  - name: Projects
  - name: Events
paths:
  /api/v1/projects/{projectId}/events/{eventId}/request:
    get:
      tags:
        - Events
      summary: Get the raw request
      description: >
        Get the incoming request of an event, ready to send again. The CLI uses
        this endpoint. When the body is not valid UTF-8, it is base64 and
        `body_encoding` is `base64`.
      operationId: getEventRequest
      parameters:
        - $ref: '#/components/parameters/ProjectId'
        - $ref: '#/components/parameters/EventId'
      responses:
        '200':
          description: The raw request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RawRequest'
              example:
                id: 1042
                method: POST
                path: /p/2mJ8kQ4vXw9aB3cD5eF7gH1iK0L
                headers:
                  Content-Type: application/json
                  X-Paystack-Signature: 3c9f…
                body: '{"event":"charge.success","data":{"reference":"r_9311"}}'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    ProjectId:
      name: projectId
      in: path
      required: true
      schema:
        type: string
        example: 2mJ8kQ4vXw9aB3cD5eF7gH1iK0L
    EventId:
      name: eventId
      in: path
      required: true
      schema:
        type: integer
        format: int64
        example: 1042
  schemas:
    RawRequest:
      type: object
      properties:
        id:
          type: integer
          format: int64
        method:
          type: string
        path:
          type: string
        headers:
          type: object
          additionalProperties:
            type: string
        body:
          type: string
        body_encoding:
          type: string
          const: base64
          description: Present only when the body is base64.
    Error:
      type: object
      properties:
        error:
          type: string
  responses:
    BadRequest:
      description: The event ID is not a number.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: invalid event id
    Unauthorized:
      description: The API key is missing or not valid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: No such project or event in this workspace.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A workspace API key. You can also send it in the `X-API-Key` header.

````