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

# История отчётов

> Возвращает историю отчётов с фильтром по статусу.



## OpenAPI

````yaml POST /reports/history
openapi: 3.1.0
info:
  title: Megaseo API
  version: 1.0.0
servers:
  - url: https://api-v2.megaseo.net/web
    description: Production
security: []
paths:
  /reports/history:
    post:
      tags:
        - reports
      summary: Get Report History
      operationId: get_report_history_reports_history_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetReportHistoryRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetReportsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GetReportHistoryRequest:
      properties:
        access_token:
          type: string
          title: Access Token
        page:
          type: integer
          maximum: 2147483647
          minimum: 1
          title: Page
          default: 1
        limit:
          type: integer
          maximum: 100
          minimum: 1
          title: Limit
          default: 20
        task_id:
          anyOf:
            - type: integer
              maximum: 2147483647
              exclusiveMinimum: 0
            - type: 'null'
          title: Task Id
        status:
          type: string
          enum:
            - all
            - accepted
            - declined
          title: Status
          default: all
      type: object
      required:
        - access_token
      title: GetReportHistoryRequest
    GetReportsResponse:
      properties:
        reports:
          items:
            $ref: '#/components/schemas/ReportResponse'
          type: array
          title: Reports
        page:
          type: integer
          title: Page
        limit:
          type: integer
          title: Limit
        total:
          type: integer
          title: Total
      type: object
      required:
        - reports
        - page
        - limit
        - total
      title: GetReportsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ReportResponse:
      properties:
        id:
          type: integer
          title: Id
        task_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Task Id
        user_id:
          type: integer
          title: User Id
        text:
          anyOf:
            - type: string
            - type: 'null'
          title: Text
        screenshot:
          anyOf:
            - type: string
            - type: 'null'
          title: Screenshot
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
        report_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Report Type
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
        task:
          $ref: '#/components/schemas/ReportTaskResponse'
      type: object
      required:
        - id
        - user_id
        - task
      title: ReportResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ReportTaskResponse:
      properties:
        id:
          type: integer
          title: Id
        user_id:
          type: integer
          title: User Id
        task_type_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Task Type Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        icon:
          anyOf:
            - type: string
            - type: 'null'
          title: Icon
        verification_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Verification Description
        keyword:
          anyOf:
            - type: string
            - type: 'null'
          title: Keyword
        prompt:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt
        link:
          anyOf:
            - type: string
            - type: 'null'
          title: Link
        control_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Control Type
        need_screenshot:
          anyOf:
            - type: integer
            - type: 'null'
          title: Need Screenshot
        is_copyable:
          anyOf:
            - type: integer
            - type: 'null'
          title: Is Copyable
        price_per_execution:
          anyOf:
            - type: number
            - type: 'null'
          title: Price Per Execution
        executions:
          anyOf:
            - type: integer
            - type: 'null'
          title: Executions
        executions_limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Executions Limit
        hour_limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Hour Limit
        day_limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Day Limit
        reservation_time:
          anyOf:
            - type: integer
            - type: 'null'
          title: Reservation Time
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
      type: object
      required:
        - id
        - user_id
      title: ReportTaskResponse

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.