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

# Start filing pre-review

> Assess all visible global and organization checks with JEV before creating check agents, using captured check versions and document references. Clearly inapplicable checks are skipped; uncertainty or unavailable classification proceeds to document inspection. Returns the existing execution while one is active. A later request after completion starts a new execution and may create additional comments. Limits: 100 checks, 500 items, 1000 document references, 768 KiB of encoded agent task data (including a reservation for the largest check instructions). Filing edits do not cancel or restart this execution.



## OpenAPI

````yaml /openapi.json post /insurance/managed-filings/{filingId}/pre-reviews
openapi: 3.0.3
info:
  title: Effective API
  version: 2.0.0
  description: The public Effective REST API. Authenticate using an Effective API key.
servers:
  - url: https://api.effectiveai.app/api/v2
    description: Production
security:
  - bearerAuth: []
paths:
  /insurance/managed-filings/{filingId}/pre-reviews:
    post:
      tags:
        - Managed Filing Checks
      summary: Start filing pre-review
      description: >-
        Assess all visible global and organization checks with JEV before
        creating check agents, using captured check versions and document
        references. Clearly inapplicable checks are skipped; uncertainty or
        unavailable classification proceeds to document inspection. Returns the
        existing execution while one is active. A later request after completion
        starts a new execution and may create additional comments. Limits: 100
        checks, 500 items, 1000 document references, 768 KiB of encoded agent
        task data (including a reservation for the largest check instructions).
        Filing edits do not cancel or restart this execution.
      operationId: startManagedFilingPreReview
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: filingId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties: {}
              additionalProperties: false
      responses:
        '202':
          description: >-
            Pre-review accepted or already active. Poll Location for individual
            check progress.
          headers:
            Location:
              schema:
                type: string
              required: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2FilingPreReview'
        '400':
          description: Invalid request or input limits exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '403':
          description: >-
            Starting requires filing Editor access, session creation permission,
            an ordinary member credential, and available spending allowance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '404':
          description: Filing or pre-review not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '409':
          description: >-
            An execution was created concurrently, or the filing is imported and
            read-only. Retry only the concurrent start.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '415':
          description: Content-Type must be application/json.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '500':
          description: Unexpected server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '503':
          description: >-
            A dependency is unavailable. Retrying start resumes the reserved
            active execution.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
      security:
        - bearerAuth: []
components:
  schemas:
    V2FilingPreReview:
      type: object
      properties:
        filingId:
          type: string
          format: uuid
        sessionId:
          type: string
          format: uuid
          description: >-
            Pre-review identity and coordinating session ID. The session is
            provisioned asynchronously.
        sessionUrl:
          type: string
          format: uri
          description: >-
            Open the coordinating session. Session access permissions also
            apply.
        status:
          type: string
          enum:
            - queued
            - running
            - completed
            - failed
          description: >-
            completed means all checks finished, including findings and
            not_applicable. failed means at least one check could not finish.
        createdAt:
          type: string
          format: date-time
        completedAt:
          type: string
          nullable: true
          format: date-time
        checks:
          type: array
          items:
            type: object
            properties:
              checkId:
                type: string
                format: uuid
              versionId:
                type: string
                format: uuid
                description: >-
                  Published check version captured when this execution was
                  created.
              name:
                type: string
              status:
                type: string
                enum:
                  - queued
                  - assessing
                  - running
                  - passed
                  - findings
                  - not_applicable
                  - failed
                description: >-
                  queued: awaiting a worker; assessing: JEV applicability
                  assessment underway; running: check agent reviewing evidence;
                  passed: no issues found; findings: comments posted;
                  not_applicable: skipped with a reason; failed: execution
                  incomplete.
              summary:
                type: string
                nullable: true
                description: >-
                  Result, non-applicability reason, or execution failure. Null
                  until available.
              commentIds:
                type: array
                items:
                  type: string
                  format: uuid
                description: >-
                  Comments created by this execution, including any posted
                  before a failure. Resolving them does not change the check
                  result.
              sessionId:
                type: string
                nullable: true
                format: uuid
                description: Check agent session, null before dispatch.
              sessionUrl:
                type: string
                nullable: true
                format: uri
            required:
              - checkId
              - versionId
              - name
              - status
              - summary
              - commentIds
              - sessionId
              - sessionUrl
      required:
        - filingId
        - sessionId
        - sessionUrl
        - status
        - createdAt
        - completedAt
        - checks
    V2CodedError:
      allOf:
        - $ref: '#/components/schemas/V2Error'
        - type: object
          properties:
            code:
              type: string
              minLength: 1
              description: Stable error code. Clients must tolerate unknown future codes.
            details:
              type: array
              items:
                type: object
                properties:
                  location:
                    type: string
                    enum:
                      - path
                      - query
                      - header
                      - body
                  path:
                    type: array
                    items:
                      type: string
                      maxLength: 64
                    maxItems: 12
                  code:
                    type: string
                    enum:
                      - required
                      - invalid_type
                      - invalid_value
                      - unknown_field
                  message:
                    type: string
                    minLength: 1
                    maxLength: 200
                required:
                  - location
                  - path
                  - code
                  - message
              minItems: 1
              maxItems: 20
              description: Bounded safe validation issues; may omit some invalid fields.
            requestId:
              type: string
              minLength: 1
              maxLength: 128
              description: >-
                Existing server correlation for this HTTP attempt, when
                available.
          required:
            - code
    V2Error:
      type: object
      properties:
        error:
          type: string
          minLength: 1
          description: Human-readable explanation of the failure.
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Effective API key. Send Authorization: Bearer sk-eai-...'

````

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