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

# Get presigned archive URL

> Get a presigned URL for a .tar.gz archive of the shelf's filesystem. Returns 202 if the archive is being generated.



## OpenAPI

````yaml openapi.yaml get /v1/shelves/{id}/archive-url
openapi: 3.1.0
info:
  description: >-
    Convert documents into structured Markdown filesystems that AI agents can
    hydrate and use in sandbox runtimes.
  title: Shelv API
  version: 1.0.0
servers:
  - url: https://api.shelv.dev
security:
  - bearerApiKey: []
paths:
  /v1/shelves/{id}/archive-url:
    get:
      tags:
        - Shelves
      summary: Get presigned archive URL
      description: >-
        Get a presigned URL for a .tar.gz archive of the shelf's filesystem.
        Returns 202 if the archive is being generated.
      parameters:
        - in: path
          name: id
          required: true
          schema:
            $ref: '#/components/schemas/ShelfPublicIdParam'
        - in: query
          name: ttl
          required: false
          schema:
            default: 300
            maximum: 3600
            minimum: 60
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShelfArchiveUrlResponse'
          description: Archive ready
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShelfArchiveGeneratingResponse'
          description: Archive is being generated
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Shelf not found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Shelf is not ready
      security:
        - bearerApiKey: []
components:
  schemas:
    ShelfPublicIdParam:
      pattern: ^shf_[0-9a-f]{24}$
      type: string
    ShelfArchiveUrlResponse:
      properties:
        expiresAt:
          format: date-time
          type: string
        sha256:
          type: string
        sizeBytes:
          type: number
        url:
          format: uri
          type: string
        version:
          format: date-time
          type: string
      required:
        - url
        - expiresAt
        - sha256
        - sizeBytes
        - version
      type: object
    ShelfArchiveGeneratingResponse:
      properties:
        retryAfter:
          type: number
        status:
          enum:
            - generating
          type: string
      required:
        - status
        - retryAfter
      type: object
    ErrorResponse:
      properties:
        code:
          type: string
        details: {}
        message:
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearerApiKey:
      bearerFormat: APIKey
      scheme: bearer
      type: http

````