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

# Get session archive download URL

> Returns a signed download URL for the completed file archive associated with a session.



## OpenAPI

````yaml post /agents/session/getFileArchiveUrl
openapi: 3.1.0
info:
  title: Kaizen API
  version: 1.0.0
  description: API for the Kaizen Automation Platform
servers:
  - url: https://api.kaizenautomation.com
    description: Production server
security: []
paths:
  /agents/session/getFileArchiveUrl:
    post:
      tags:
        - Agents
      summary: Get session archive download URL
      description: >-
        Returns a signed download URL for the completed file archive associated
        with a session.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sessionId:
                  type: string
                  description: >-
                    ID of the session returned from /agents/execute whose
                    archive should be downloaded
              required:
                - sessionId
              description: >-
                Request parameters for getting a signed download URL for a
                completed session file archive
      responses:
        '200':
          description: Session archive download URL retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  downloadUrl:
                    type: string
                    description: Signed download URL for the completed session file archive
                required:
                  - downloadUrl
                description: >-
                  Response containing a signed download URL for the completed
                  session file archive
        '404':
          description: Session or session archive not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '409':
          description: Session archive exists but is not ready for download yet
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error

````