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

# List execution logs

> Get flow execution logs with granular filtering options



## OpenAPI

````yaml openapi.json get /api/v1/logs/executions
openapi: 3.0.0
info:
  description: Dualship backend API for workflow automation and API management.
  title: Dualship API
  termsOfService: https://dualship.run/terms
  contact:
    name: Dualship Support
    url: https://dualship.run/support
    email: support@dualship.run
  version: '1.0'
servers:
  - url: https://api.dualship.run
security: []
paths:
  /api/v1/logs/executions:
    get:
      tags:
        - logs
      summary: List execution logs
      description: Get flow execution logs with granular filtering options
      parameters:
        - description: Workspace ID
          name: X-Workspace-Id
          in: header
          required: true
          schema:
            type: string
        - description: Project ID (uses default if not specified)
          name: project_id
          in: query
          schema:
            type: string
        - description: Filter by flow ID
          name: flow_id
          in: query
          schema:
            type: string
        - description: Filter by flow slug
          name: flow_slug
          in: query
          schema:
            type: string
        - description: Filter by request ID
          name: request_id
          in: query
          schema:
            type: string
        - description: Filter by HTTP method (GET, POST, etc.)
          name: method
          in: query
          schema:
            type: string
        - description: Search in path (case-insensitive)
          name: path
          in: query
          schema:
            type: string
        - description: Filter by exact status code
          name: status_code
          in: query
          schema:
            type: integer
        - description: Filter by minimum status code
          name: status_min
          in: query
          schema:
            type: integer
        - description: Filter by maximum status code
          name: status_max
          in: query
          schema:
            type: integer
        - description: Filter by status category (2xx, 3xx, 4xx, 5xx)
          name: status_category
          in: query
          schema:
            type: string
        - description: Filter by success status
          name: success
          in: query
          schema:
            type: boolean
        - description: Filter by minimum latency (ms)
          name: latency_min
          in: query
          schema:
            type: integer
        - description: Filter by maximum latency (ms)
          name: latency_max
          in: query
          schema:
            type: integer
        - description: Filter by IP address
          name: ip_address
          in: query
          schema:
            type: string
        - description: Search in user agent (case-insensitive)
          name: user_agent
          in: query
          schema:
            type: string
        - description: Filter by country code
          name: country
          in: query
          schema:
            type: string
        - description: Search in error message (case-insensitive)
          name: error
          in: query
          schema:
            type: string
        - description: Filter logs after this time (RFC3339)
          name: start_time
          in: query
          schema:
            type: string
        - description: Filter logs before this time (RFC3339)
          name: end_time
          in: query
          schema:
            type: string
        - description: Sort by field (created_at, latency_ms, response_status, method)
          name: sort_by
          in: query
          schema:
            type: string
            default: created_at
        - description: Sort order (asc, desc)
          name: sort_order
          in: query
          schema:
            type: string
            default: desc
        - description: Limit results (max 1000)
          name: limit
          in: query
          schema:
            type: integer
            default: 100
        - description: Offset for pagination
          name: offset
          in: query
          schema:
            type: integer
            default: 0
      responses:
        '200':
          description: List of execution logs with pagination
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/internal_api_handler.ExecutionLogsListResponse
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.BadRequestError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.UnauthorizedError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.InternalServerError'
      security:
        - BearerAuth: []
components:
  schemas:
    internal_api_handler.ExecutionLogsListResponse:
      type: object
      properties:
        limit:
          type: integer
        logs:
          type: array
          items:
            $ref: '#/components/schemas/internal_api_handler.ExecutionLogResponse'
        offset:
          type: integer
        total:
          type: integer
    internal_api_handler.BadRequestError:
      description: Bad request error
      type: object
      properties:
        code:
          type: string
          example: BAD_REQUEST
        error:
          type: string
          example: invalid request parameters
    internal_api_handler.UnauthorizedError:
      description: Unauthorized error
      type: object
      properties:
        code:
          type: string
          example: UNAUTHORIZED
        error:
          type: string
          example: unauthorized
    internal_api_handler.InternalServerError:
      description: Internal server error
      type: object
      properties:
        code:
          type: string
          example: INTERNAL_ERROR
        error:
          type: string
          example: internal server error
    internal_api_handler.ExecutionLogResponse:
      type: object
      properties:
        country:
          type: string
        created_at:
          type: string
        error_message:
          type: string
        flow_id:
          type: string
        flow_slug:
          type: string
        flow_version:
          type: integer
        id:
          type: string
        ip_address:
          type: string
        latency_ms:
          type: integer
        method:
          type: string
        path:
          type: string
        request_body:
          type: string
        request_headers:
          type: object
          additionalProperties:
            type: string
        request_id:
          type: string
        request_query:
          type: object
          additionalProperties:
            type: string
        response_body:
          type: string
        response_headers:
          type: object
          additionalProperties:
            type: string
        response_status:
          type: integer
        success:
          type: boolean
        user_agent:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT Bearer token authentication

````