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

# Get Download Strategy (Deprecated — use GET on the canonical path)

> Deprecated alias of
`GET /api/storage/buckets/{bucketName}/download-strategy/objects/{objectKey}`.
Retained at the original path/method for backward compatibility with
SDK releases that already shipped against this POST endpoint. Any
request body is ignored.




## OpenAPI

````yaml https://raw.githubusercontent.com/InsForge/InsForge/main/openapi/storage.yaml post /api/storage/buckets/{bucketName}/objects/{objectKey}/download-strategy
openapi: 3.0.3
info:
  title: Insforge Storage API
  version: 2.0.0
  description: Bucket-based storage system similar to S3
servers: []
security: []
paths:
  /api/storage/buckets/{bucketName}/objects/{objectKey}/download-strategy:
    post:
      tags:
        - Client
      summary: Get Download Strategy (Deprecated — use GET on the canonical path)
      description: >
        Deprecated alias of

        `GET
        /api/storage/buckets/{bucketName}/download-strategy/objects/{objectKey}`.

        Retained at the original path/method for backward compatibility with

        SDK releases that already shipped against this POST endpoint. Any

        request body is ignored.
      parameters:
        - name: bucketName
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-zA-Z0-9_-]+$
          example: avatars
        - name: objectKey
          in: path
          required: true
          schema:
            type: string
          example: profile-photo.jpg
      responses:
        '200':
          description: Download strategy details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DownloadStrategy'
        '404':
          description: Object not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      deprecated: true
      security:
        - apiKey: []
components:
  schemas:
    DownloadStrategy:
      type: object
      required:
        - method
        - url
      properties:
        method:
          type: string
          enum:
            - presigned
            - direct
          description: >
            Download method:

            - `direct`: Direct URL access (S3 public buckets or local storage)

            - `presigned`: Secure URL with signature and expiration (S3 private
            buckets)
          example: direct
        url:
          type: string
          description: URL to download the file from
          example: >-
            https://s3-bucket.s3.us-east-2.amazonaws.com/app-key/public-assets/logo.png
        expiresAt:
          type: string
          format: date-time
          description: >-
            Expiration time for presigned URLs (only present when method is
            'presigned')
          example: '2025-09-05T01:00:00Z'
        headers:
          type: object
          description: Optional headers to include in the download request
          additionalProperties: true
    ErrorResponse:
      type: object
      required:
        - error
        - message
        - statusCode
      properties:
        error:
          type: string
          description: Error code for programmatic handling
          example: VALIDATION_ERROR
        message:
          type: string
          description: Human-readable error message
          example: Invalid request
        statusCode:
          type: integer
          description: HTTP status code
          example: 400
        nextActions:
          type: string
          description: Suggested action to resolve the error
          example: Check your request parameters
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````