> ## 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 embed result download URL

> Issue a download URL for the results of a completed embed order.

- One output returns that file. Two or more outputs return a ZIP archive named `<orderId>-watermarked.zip`
- Each output file is named `<original name>-watermarked-<output fileId>.<extension>`
- The URL is valid for 300 seconds. Call this endpoint again for a new URL
- Returns `400 VALIDATION_FAILED` before the order is `complete`, and `400 ORDER_EXPIRED` after the retention period ends




## OpenAPI

````yaml api-reference/openapi.yaml GET /api/v3/orders/{orderId}/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}/download:
    get:
      tags:
        - Orders
      summary: Get embed result download URL
      description: >
        Issue a download URL for the results of a completed embed order.


        - One output returns that file. Two or more outputs return a ZIP archive
        named `<orderId>-watermarked.zip`

        - Each output file is named `<original name>-watermarked-<output
        fileId>.<extension>`

        - The URL is valid for 300 seconds. Call this endpoint again for a new
        URL

        - Returns `400 VALIDATION_FAILED` before the order is `complete`, and
        `400 ORDER_EXPIRED` after the retention period ends
      operationId: downloadWatermarkV1Order
      parameters:
        - in: path
          name: orderId
          required: true
          schema:
            type: string
            pattern: ^[0-9]{1,20}$
          description: Order ID
      responses:
        '200':
          description: Presigned URL for the file or ZIP archive, 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/download
            \
              -H "Authorization: Bearer YOUR_API_KEY"
        - lang: javascript
          label: JavaScript
          source: >
            const orderId = 'ORDER_ID';

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

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

            order_id = 'ORDER_ID'
            response = requests.get(
                f'https://api.bizmori.com/api/v3/orders/{order_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.