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

# List Request History

> Retrieve a paginated list of API request history with optional filtering.



## OpenAPI

````yaml GET /messages/requests
openapi: 3.1.0
info:
  title: bitbybit Messaging API
  description: Send and manage WhatsApp messages through the bitbybit Open API.
  version: 1.0.0
  contact:
    name: bitbybit Support
    url: https://bitbybit.studio
servers:
  - url: https://api.bitbybit.studio/whatsapp/open/v1
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /messages/requests:
    get:
      tags:
        - Messages
      summary: List API request history
      description: >-
        Retrieve a paginated list of API request history with optional
        filtering.
      operationId: listMessageRequests
      parameters:
        - name: responseId
          in: query
          schema:
            type: string
          description: Filter by message response ID
        - name: templateId
          in: query
          schema:
            type: string
          description: Filter by template name
        - name: startDate
          in: query
          schema:
            type: string
            format: date-time
          description: Filter by start date (ISO 8601)
        - name: endDate
          in: query
          schema:
            type: string
            format: date-time
          description: Filter by end date (ISO 8601)
        - name: limit
          in: query
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 100
          description: Number of results per page
        - name: page
          in: query
          schema:
            type: integer
            default: 1
            minimum: 1
          description: Page number
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ApiRequestRecord'
                  meta:
                    $ref: '#/components/schemas/PaginationMeta'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    ApiRequestRecord:
      type: object
      properties:
        id:
          type: string
        messageId2:
          type: string
          nullable: true
          description: Associated message ID
        templateId:
          type: string
          nullable: true
          description: Template name if template message
        source:
          type: string
          nullable: true
          description: Integration source (e.g., WHATSAPP_META)
        request:
          type: object
          description: Original request payload
        response:
          type: object
          description: Response payload
        endpointType:
          type: string
          description: Endpoint type (e.g., send_message)
        createdAt:
          type: string
          format: date-time
    PaginationMeta:
      type: object
      properties:
        page:
          type: integer
        limit:
          type: integer
        total:
          type: integer
        totalPages:
          type: integer
        hasNextPage:
          type: boolean
        hasPreviousPage:
          type: boolean
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INVALID_API_KEY
              message: Invalid or expired API key
    Forbidden:
      description: Insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INSUFFICIENT_SCOPE
              message: API key does not have the required scope
    RateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: RATE_LIMIT_EXCEEDED
              message: Too many requests. Please retry after the reset period.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Create one in Settings > Developer.

````