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

# List Hooks

> List hooks for the current account with optional filters.



## OpenAPI

````yaml get /api/v1/hooks
openapi: 3.1.0
info:
  title: SnackBase
  description: Open-source Backend-as-a-Service (BaaS)
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/hooks:
    get:
      tags:
        - hooks
        - Hooks
      summary: List Hooks
      description: List hooks for the current account with optional filters.
      operationId: list_hooks_api_v1_hooks_get
      parameters:
        - name: trigger_type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by trigger type
            title: Trigger Type
          description: Filter by trigger type
        - name: enabled
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            description: Filter by enabled status
            title: Enabled
          description: Filter by enabled status
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HookListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HookListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/HookResponse'
          type: array
          title: Items
        total:
          type: integer
          title: Total
      type: object
      required:
        - items
        - total
      title: HookListResponse
      description: Paginated list of hooks.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    HookResponse:
      properties:
        id:
          type: string
          title: Id
        account_id:
          type: string
          title: Account Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        trigger:
          additionalProperties: true
          type: object
          title: Trigger
        condition:
          anyOf:
            - type: string
            - type: 'null'
          title: Condition
        actions:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Actions
        enabled:
          type: boolean
          title: Enabled
        last_run_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Run At
        next_run_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Next Run At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        cron:
          anyOf:
            - type: string
            - type: 'null'
          title: Cron
          description: Cron expression (schedule triggers only)
        cron_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Cron Description
          description: Human-readable cron schedule
      type: object
      required:
        - id
        - account_id
        - name
        - description
        - trigger
        - condition
        - actions
        - enabled
        - last_run_at
        - next_run_at
        - created_at
        - updated_at
        - created_by
      title: HookResponse
      description: Response schema for a single hook.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````