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

# Check for results

> Checks if a file is finalized.



## OpenAPI

````yaml POST /api/jobs/{jobId}/files/finalized
openapi: 3.0.1
info:
  title: Voice Harbor API
  description: >-
    API for managing voice processing jobs, file uploads/downloads, and
    retrieving job content for the Voice Harbor service.
  version: 0.45.1
servers:
  - url: http://voiceharbor.ai
security:
  - bearerAuth: []
paths:
  /api/jobs/{jobId}/files/finalized:
    post:
      summary: Check results for submitted File
      description: Checks if a file is finalized.
      parameters:
        - name: jobId
          in: path
          required: true
          schema:
            type: string
          description: ID of the job
      requestBody:
        description: File details for checking existence
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckFileExistsRequest'
      responses:
        '200':
          description: File existence status returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileExistenceResponse'
        '400':
          description: Missing parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing Authorization header
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Invalid token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Voice Harbor API error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    CheckFileExistsRequest:
      type: object
      properties:
        fileName:
          type: string
      required:
        - fileName
    FileExistenceResponse:
      type: object
      properties:
        exists:
          type: boolean
      required:
        - exists
    Error:
      type: object
      properties:
        error:
          type: integer
        message:
          type: string
      required:
        - error
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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