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

# Get output file download URL

> Issue a download URL for one output of a completed embed order. Use `outputs[].fileId` from [`GET /api/v3/orders/{orderId}`](/api-reference/orders/get-order-v3).

The URL is valid for 300 seconds. Returns `400 ORDER_EXPIRED` after the retention period ends.




## OpenAPI

````yaml api-reference/openapi.yaml GET /api/v3/orders/{orderId}/files/{fileId}/download
openapi: 3.0.0
info:
  title: BIZ MORI API
  version: 2.0.0
  description: >
    BIZ MORI API provides four core services for digital content protection:

    - **Anti-AI**: Protect images from AI training

    - **Watermark Embed**: Embed invisible digital watermarks into images

    - **Watermark Extract**: Extract and verify watermarks from images

    - **AI Detection**: Detect whether an image is AI-generated

    - **Test API keys**: Keys with the `sk_test_` prefix use the same Bearer
    authentication and support order-lifecycle testing with mock responses
    without running processing services or consuming credits; test uploads
    discard file contents and do not create result files
  contact:
    name: BIZ MORI Support
    email: support@bizmori.com
  license:
    name: Proprietary
    url: https://docs.bizmori.com/legal/terms
servers:
  - url: https://api.bizmori.com
    description: Production
security: []
tags:
  - name: Anti-AI
    description: Anti-AI image protection orders
  - name: Watermark Embed
    description: Watermark embedding orders
  - name: Watermark Extract
    description: Watermark extraction orders
  - name: AI Detection
    description: AI-generated image detection orders
  - name: Orders
    description: Order query and management
  - name: Webhooks
    description: Webhook configuration and events
  - name: Reports
    description: PDF analysis reports for watermark extract and AI Detection orders
paths:
  /api/v3/orders/{orderId}/files/{fileId}/download:
    get:
      tags:
        - Orders
      summary: Get output file download URL
      description: >
        Issue a download URL for one output of a completed embed order. Use
        `outputs[].fileId` from [`GET
        /api/v3/orders/{orderId}`](/api-reference/orders/get-order-v3).


        The URL is valid for 300 seconds. Returns `400 ORDER_EXPIRED` after the
        retention period ends.
      operationId: downloadWatermarkV1OutputFile
      parameters:
        - in: path
          name: orderId
          required: true
          schema:
            type: string
            pattern: ^[0-9]{1,20}$
          description: Order ID
        - in: path
          name: fileId
          required: true
          schema:
            type: string
            pattern: ^[0-9]+-[0-9]+$
          description: >-
            Output file ID in `{inputFileId}-{ordinal}` format, from
            `outputs[].fileId`
      responses:
        '200':
          description: Presigned URL for the output file, valid for 300 seconds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DownloadLinkResponse'
        '400':
          description: >-
            Invalid request, the order is not complete, or the order's retention
            period has ended (`ORDER_EXPIRED`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                validation:
                  value:
                    code: VALIDATION_FAILED
                expired:
                  value:
                    code: ORDER_EXPIRED
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: The order does not exist or belongs to another account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: ORDER_NOT_FOUND
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: >
            curl -X GET
            https://api.bizmori.com/api/v3/orders/ORDER_ID/files/FILE_ID/download
            \
              -H "Authorization: Bearer YOUR_API_KEY"
        - lang: javascript
          label: JavaScript
          source: >
            const orderId = 'ORDER_ID';

            const fileId = 'FILE_ID';

            const response = await
            fetch(`https://api.bizmori.com/api/v3/orders/${orderId}/files/${fileId}/download`,
            {
              headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
            });

            const { data } = await response.json();
        - lang: python
          label: Python
          source: |
            import requests

            order_id = 'ORDER_ID'
            file_id = 'FILE_ID'
            response = requests.get(
                f'https://api.bizmori.com/api/v3/orders/{order_id}/files/{file_id}/download',
                headers={'Authorization': 'Bearer YOUR_API_KEY'}
            )
            data = response.json()['data']
components:
  schemas:
    DownloadLinkResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: object
          required:
            - downloadUrl
            - expiresInSeconds
          properties:
            downloadUrl:
              type: string
              format: uri
              description: Presigned download URL, valid for 300 seconds
            expiresInSeconds:
              type: integer
              example: 300
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: AUTH_NOT_AUTHENTICATED
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: SERVER_INTERNAL_ERROR
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer API key for external client access. Live keys use the `sk_`
        prefix; test keys use the `sk_test_` prefix and support order-lifecycle
        testing with mock responses without processing or credit usage.

````

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