> ## 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 an event

> Get one event and every delivery attempt.

`event.headers` is an object. `event.payload` is JSON, text or base64, and `event.payload_encoding` tells you which. In `attempts`, the payload and header fields are base64.




## OpenAPI

````yaml api-reference/openapi.yaml GET /api/v1/projects/{projectId}/events/{eventId}
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}:
    get:
      tags:
        - Events
      summary: Get an event
      description: >
        Get one event and every delivery attempt.


        `event.headers` is an object. `event.payload` is JSON, text or base64,
        and `event.payload_encoding` tells you which. In `attempts`, the payload
        and header fields are base64.
      operationId: getEvent
      parameters:
        - $ref: '#/components/parameters/ProjectId'
        - $ref: '#/components/parameters/EventId'
      responses:
        '200':
          description: The event and its attempts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  event:
                    $ref: '#/components/schemas/Event'
                  attempts:
                    type: array
                    items:
                      $ref: '#/components/schemas/Attempt'
              example:
                event:
                  id: 1042
                  received_at: '2026-09-24T10:15:02Z'
                  queued_at: '2026-09-24T10:15:02Z'
                  method: POST
                  endpoint: /p/2mJ8kQ4vXw9aB3cD5eF7gH1iK0L
                  status: delivered
                  source_id: 2mJ8kQ4vXw9aB3cD5eF7gH1iK0L
                  headers:
                    Content-Type: application/json
                  payload:
                    event: order.paid
                    order_id: '9311'
                  payload_encoding: json
                attempts: []
        '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:
    Event:
      type: object
      properties:
        id:
          type: integer
          format: int64
        received_at:
          type: string
          format: date-time
        queued_at:
          type:
            - string
            - 'null'
          format: date-time
        method:
          type: string
        endpoint:
          type: string
        status:
          type: string
          enum:
            - received
            - queued
            - delivered
            - failed
            - buffered
        source_id:
          type:
            - string
            - 'null'
        headers:
          type: object
          additionalProperties:
            type: string
        payload:
          description: The body. See `payload_encoding`.
        payload_encoding:
          type: string
          enum:
            - json
            - text
            - base64
          description: >-
            `json`: the body as JSON. `text`: a UTF-8 string. `base64`: other
            bytes.
    Attempt:
      type: object
      properties:
        id:
          type: integer
          format: int64
        webhook_callback_id:
          type: integer
          format: int64
        dispatched_at:
          type: string
          format: date-time
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
        status:
          type: string
          enum:
            - pending
            - delivered
            - failed
            - dead
        attempt_number:
          type: integer
        status_code:
          type:
            - integer
            - 'null'
          description: '`0` when the filter did not match.'
        method:
          type: string
        endpoint:
          type: string
          description: The destination URL.
        destination_id:
          type: integer
        project_id:
          type: string
        user_id:
          type: integer
        request_payload:
          type:
            - string
            - 'null'
          contentEncoding: base64
        request_headers:
          type:
            - string
            - 'null'
          contentEncoding: base64
        response_payload:
          type:
            - string
            - 'null'
          contentEncoding: base64
        response_headers:
          type:
            - string
            - 'null'
          contentEncoding: base64
        error_message:
          type: string
        delivery_warning:
          type: string
    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.

````