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

# Search system logs



## OpenAPI

````yaml https://api.wirespeed.co/v1/openapi.json post /v1/team/log
openapi: 3.0.0
info:
  title: Wirespeed API
  description: The public Wirespeed API. v1 is the first stable contract.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.wirespeed.co
security: []
tags: []
paths:
  /v1/team/log:
    post:
      tags:
        - Team
      summary: Search system logs
      operationId: TeamController_searchSystemLog
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SystemLogSearchDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchSystemLog'
        '400':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpError'
      security:
        - bearer: []
components:
  schemas:
    SystemLogSearchDto:
      type: object
      properties:
        size:
          type: number
        page:
          type: number
        filter:
          type: string
        search:
          type: string
        orderBy:
          type: string
        orderDir:
          type: string
          enum:
            - asc
            - desc
        security:
          type: boolean
          description: Filter to show only security events when true
        types:
          description: >-
            When set, only rows whose `type` is in this list (see @wire/shared
            SYSTEM_LOG_EVENT_TYPES). The value `general` also matches legacy
            rows with null or empty `type`.
          type: array
          items:
            type: string
        statuses:
          description: >-
            When set, only rows whose `status` is in this list (see @wire/shared
            SYSTEM_LOG_EVENT_STATUSES)
          type: array
          items:
            type: string
        createdAfter:
          type: string
          description: Inclusive lower bound on `created_at` (ISO8601)
        createdBefore:
          type: string
          description: Inclusive upper bound on `created_at` (ISO8601)
    SearchSystemLog:
      type: object
      properties:
        data:
          description: Array of system log entries
          type: array
          items:
            $ref: '#/components/schemas/SystemLog'
      required:
        - data
    HttpError:
      type: object
      properties:
        message:
          type: string
        statusCode:
          type: number
      required:
        - message
        - statusCode
    SystemLog:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the system log entry
        userId:
          type: string
          description: ID of the user who performed the action
        userEmail:
          type: string
          description: Email of the user who performed the action
        teamId:
          type: string
          description: ID of the team this log entry belongs to
        message:
          type: string
          description: Log message describing the action
        createdAt:
          type: string
          description: Timestamp when the log entry was created
        security:
          type: boolean
          description: Whether this is a security-related log entry
        identifier:
          type: string
          description: Additional identifier for the log entry
        type:
          type: string
          description: Structured event category when set (legacy rows are null)
        status:
          type: string
          description: Outcome for typed events when set
        metadata:
          type: object
          additionalProperties: true
          description: Structured metadata (JSON) when set
      required:
        - id
        - teamId
        - createdAt
        - security
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Team API key sent as a Bearer token. Create a key in Wirespeed under
        Settings → Team. See
        https://docs.wirespeed.co/api-reference/authentication.

````