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

# Smart search across audit logs



## OpenAPI

````yaml get /v1/team/audit_log/search
openapi: 3.1.0
info:
  title: PDCP API
  version: '1.0'
  summary: ProjectDiscovery Cloud Platform
  description: >-
    For more details, checkout
    https://docs.projectdiscovery.io/api-reference/editor/scan
servers:
  - url: https://api.projectdiscovery.io
    description: Production
  - url: https://api.dev.projectdiscovery.io
    description: Development
  - url: http://localhost:8085
    description: Localhost
security:
  - X-API-Key: []
paths:
  /v1/team/audit_log/search:
    get:
      tags: []
      summary: Smart search across audit logs
      operationId: get-v1-team-audit-log-search
      parameters:
        - schema:
            type: string
            minLength: 1
            maxLength: 200
          in: query
          name: q
          required: true
          description: |
            Search query. Automatically detects search intent:
            - Status code (404, 200, 500) → Searches status_code field
            - Source (api, platform, unknown) → Searches source field
            - IP address (192.168.x.x) → Searches ip field
            - Email (user@example.com) → Searches email field
            - HTTP method (GET, POST, PUT) → Searches method field
            - Path (/v1/scans, enumerate) → Searches path_name and path fields
            - General text → Searches across path, path_name, request, response
        - schema:
            type: integer
            default: 0
          in: query
          name: offset
          description: number of rows to skip
        - schema:
            type: integer
            default: 100
          in: query
          name: limit
          description: number of rows to get (max 100)
        - schema:
            type: string
          in: header
          name: X-Team-Id
          required: true
          description: >-
            'Retrieve the Team ID from:
            https://cloud.projectdiscovery.io/settings/team'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - data
                properties:
                  message:
                    type: string
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/UserAuditLogItems'
        '400':
          $ref: '#/components/responses/MessageResponse'
        '401':
          $ref: '#/components/responses/MessageResponse'
        '500':
          $ref: '#/components/responses/MessageResponse'
      security:
        - X-API-Key: []
components:
  schemas:
    UserAuditLogItems:
      title: UserAuditLogItems
      type: object
      required:
        - created_at
        - email
        - action
        - status
        - method
        - ip
        - path
      properties:
        created_at:
          type: string
        email:
          type: string
        action:
          type: string
        status:
          type: integer
        method:
          type: string
        ip:
          type: string
        path:
          type: string
        source:
          type: string
          nullable: true
          enum:
            - api
            - platform
            - unknown
          description: >-
            Request origin - "api" for x-api-key authentication, "platform" for
            JWT token, "unknown" for fallback. NULL for historical records
            (displayed as "-" in UI)
  responses:
    MessageResponse:
      description: Example response
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
            required:
              - message
  securitySchemes:
    X-API-Key:
      name: X-API-Key
      type: apiKey
      in: header

````