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

# List API logs

> Returns logs of external API calls made by your project, most recent first.



## OpenAPI

````yaml /api/platform/v1/openapi-platform.yaml get /api_logs
openapi: 3.1.0
info:
  title: Kapso Platform API
  version: 0.2.0
  description: >
    Build WhatsApp messaging into your product. Manage customers, connect phone
    numbers, send broadcasts, and handle conversations.
servers:
  - url: https://api.kapso.ai/platform/v1
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Customers
    description: Manage customer accounts
  - name: Setup Links
    description: WhatsApp onboarding via embedded signup
  - name: Phone Numbers
    description: Connect and manage WhatsApp numbers
  - name: Webhooks
    description: Subscribe to WhatsApp events
  - name: Display Names
    description: Update WhatsApp business display names
  - name: Broadcasts
    description: |
      Send template messages at scale

      **Alpha**: This API is in alpha and subject to change
  - name: Conversations
    description: Manage conversation state
  - name: Media
    description: Upload media files for WhatsApp messaging
  - name: Users
    description: Manage project team members
  - name: Inbox Embeds
    description: Create and manage embeddable inbox access links
  - name: Webhook Deliveries
    description: View webhook delivery attempts and their status
  - name: External API Logs
    description: View logs of external API calls made by the project
  - name: Log Search
    description: Search log events across API, Meta, workflow, and webhook sources
  - name: Events
    description: Emit and query project-scoped events
  - name: Provider Models
    description: List available AI provider models
  - name: WhatsApp Flows
    description: Build interactive WhatsApp Flows for surveys and forms
  - name: Contacts
    description: Manage WhatsApp contacts
paths:
  /api_logs:
    get:
      tags:
        - API Logs
      summary: List API logs
      description: >-
        Returns logs of external API calls made by your project, most recent
        first.
      operationId: listApiLogs
      parameters:
        - name: endpoint
          in: query
          description: Filter by endpoint (partial match)
          schema:
            type: string
        - name: status_code
          in: query
          description: Filter by HTTP status code
          schema:
            type: integer
        - name: errors_only
          in: query
          description: Only return logs with status >= 400
          schema:
            type: boolean
            default: false
        - name: period
          in: query
          description: Time period filter
          schema:
            type: string
            enum:
              - 24h
              - 7d
              - 30d
            default: 24h
        - name: limit
          in: query
          description: >-
            Maximum number of results per cursor-paginated page (default 20, max
            100).
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: before
          in: query
          description: Cursor for the previous page (Base64 encoded).
          schema:
            type: string
        - name: after
          in: query
          description: Cursor for the next page (Base64 encoded).
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalApiLogListResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
components:
  schemas:
    ExternalApiLogListResponse:
      type: object
      required:
        - data
        - paging
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ExternalApiLog'
        paging:
          $ref: '#/components/schemas/Paging'
    ExternalApiLog:
      type: object
      required:
        - id
        - endpoint
        - http_method
        - response_status
        - response_time_ms
        - created_at
      properties:
        id:
          type: string
          format: uuid
        endpoint:
          type: string
          description: The API endpoint that was called
        http_method:
          type: string
          description: HTTP method used (GET, POST, etc.)
        response_status:
          type: integer
          description: HTTP response status code
        response_time_ms:
          type: number
          description: Response time in milliseconds
        ip_address:
          type:
            - string
            - 'null'
        error_message:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        api_key_id:
          type:
            - string
            - 'null'
          format: uuid
        api_key_name:
          type:
            - string
            - 'null'
          description: Name of the API key used for the request
    Paging:
      type: object
      properties:
        cursors:
          $ref: '#/components/schemas/PaginationCursor'
        next:
          type: string
          nullable: true
        previous:
          type: string
          nullable: true
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
    PaginationCursor:
      type: object
      properties:
        before:
          type: string
          description: Cursor for previous page (Base64 encoded)
        after:
          type: string
          description: Cursor for next page (Base64 encoded)
  responses:
    UnauthorizedError:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````