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

# Get download URL

> **Deprecated**: use [`GET /api/v3/orders/{orderId}/download`](/api-reference/orders/download-order-v3), which returns a URL for each output file and one URL for all results. The response and behavior of this endpoint are unchanged.
Issue a download URL for completed order files.
- Only available for orders with `complete` status
- URL is valid for 1 hour
- Order files are available for download for up to 7 days after order creation
- After 7 days, the order transitions to `expired` status and files can no longer be downloaded
- Test orders do not create result files; this endpoint returns `404` with `PROCESSED_FILE_NOT_FOUND` for a test order


> [!WARNING]
>
> This endpoint is deprecated. Use [Get order result download URLs (v3)](https://docs.contentcare.ai/api-reference/orders/download-order-v3.md), which returns a URL for each output file and one URL for all results. The response and behavior of this endpoint are unchanged.

Test orders do not create result files. Calling this endpoint for a test order returns `404 PROCESSED_FILE_NOT_FOUND`.


## OpenAPI

````yaml api-reference/openapi.yaml GET /api/v2/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@contentcare.ai
  license:
    name: Proprietary
    url: https://docs.contentcare.ai/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/v2/orders/{orderId}/download:
    get:
      tags:
        - Orders
      summary: Get download URL
      description: >
        **Deprecated**: use [`GET
        /api/v3/orders/{orderId}/download`](/api-reference/orders/download-order-v3),
        which returns a URL for each output file and one URL for all results.
        The response and behavior of this endpoint are unchanged.

        Issue a download URL for completed order files.

        - Only available for orders with `complete` status

        - URL is valid for 1 hour

        - Order files are available for download for up to 7 days after order
        creation

        - After 7 days, the order transitions to `expired` status and files can
        no longer be downloaded

        - Test orders do not create result files; this endpoint returns `404`
        with `PROCESSED_FILE_NOT_FOUND` for a test order
      operationId: downloadOrderFiles
      parameters:
        - in: path
          name: orderId
          required: true
          schema:
            type: string
          description: Order ID
      responses:
        '200':
          description: URL issued successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      url:
                        type: string
                        format: uri
                        description: Download URL (presigned)
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/WebhookNotFound'
      deprecated: true
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: >-
            curl -X GET https://api.bizmori.com/api/v2/orders/ORDER_ID/download
            \
              -H "Authorization: Bearer YOUR_API_TOKEN"
        - lang: javascript
          label: JavaScript
          source: |-
            const orderId = 'ORDER_ID';
            const response = await fetch(
              `https://api.bizmori.com/api/v2/orders/${orderId}/download`,
              { headers: { 'Authorization': 'Bearer YOUR_API_TOKEN' } }
            );
            const data = await response.json();
            // data.data.url contains the presigned download URL
        - lang: python
          label: Python
          source: |-
            import requests

            order_id = 'ORDER_ID'
            response = requests.get(
                f'https://api.bizmori.com/api/v2/orders/{order_id}/download',
                headers={'Authorization': 'Bearer YOUR_API_KEY'}
            )
            data = response.json()
            # data['data']['url'] contains the presigned download URL
components:
  responses:
    Unauthorized:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: AUTH_NOT_AUTHENTICATED
    Forbidden:
      description: The API key is not allowed to use the requested mode
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: AUTH_FORBIDDEN
    WebhookNotFound:
      description: Webhook endpoint not found or not accessible to this API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: WEBHOOK_NOT_FOUND
  schemas:
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
  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.