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

# Fetch Execution Artifact

> Downloads a single artifact. By default responds with a `302` redirect to a
pre-signed URL. Pass `format=url` to receive the pre-signed URL as JSON instead.




## OpenAPI

````yaml /openapi.yaml get /v1/executions/{executionId}/artifacts/{artifactId}/fetch
openapi: 3.1.0
info:
  title: AnchorBrowser API
  version: 1.0.0
  description: APIs to manage all browser-related actions and configuration.
servers:
  - url: https://api.anchorbrowser.io
    description: API server
security: []
paths:
  /v1/executions/{executionId}/artifacts/{artifactId}/fetch:
    get:
      tags:
        - Executions
      summary: Fetch Execution Artifact
      description: >
        Downloads a single artifact. By default responds with a `302` redirect
        to a

        pre-signed URL. Pass `format=url` to receive the pre-signed URL as JSON
        instead.
      parameters:
        - name: executionId
          in: path
          required: true
          description: The execution result ID.
          schema:
            type: string
        - name: artifactId
          in: path
          required: true
          description: The artifact ID.
          schema:
            type: string
        - name: format
          in: query
          required: false
          description: >-
            Set to `url` to return the pre-signed URL as JSON instead of
            redirecting.
          schema:
            type: string
            enum:
              - url
      responses:
        '200':
          description: Pre-signed URL returned as JSON (only when `format=url`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  SignedUrl:
                    type: string
                    description: Pre-signed download URL.
        '302':
          description: Redirect to the artifact's pre-signed download URL (default).
        '404':
          description: Artifact not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlatErrorResponse'
        '500':
          description: Failed to fetch artifact.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FlatErrorResponse'
      security:
        - api_key_header: []
components:
  schemas:
    FlatErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
        code:
          type: integer
          description: HTTP status code.
      required:
        - error
  securitySchemes:
    api_key_header:
      type: apiKey
      in: header
      name: anchor-api-key
      description: API key passed in the header

````