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

# Download an artifact

> Streams the content. Each chunk is opened and checked against the artifact's sealed manifest on the way; a chunk that doesn't check out ends the response short of its Content-Length. The `X-Envlink-Sha256` header carries the content's sha256.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/artifacts/{id}/content
openapi: 3.1.0
info:
  title: envlink API
  version: 1.0.0
  description: >-
    Lease build environments, wire them to your sandbox, and keep snapshots and
    artifacts.
servers:
  - url: https://envlink-api.projectinwork.com
security:
  - bearerAuth: []
tags:
  - name: Environments
  - name: Templates
  - name: Sandboxes
  - name: Snapshots
  - name: Artifacts
  - name: Projects
  - name: Tokens
  - name: Usage
  - name: Account
paths:
  /v1/artifacts/{id}/content:
    get:
      tags:
        - Artifacts
      summary: Download an artifact
      description: >-
        Streams the content. Each chunk is opened and checked against the
        artifact's sealed manifest on the way; a chunk that doesn't check out
        ends the response short of its Content-Length. The `X-Envlink-Sha256`
        header carries the content's sha256.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: The artifact's ID.
      responses:
        '200':
          description: The content
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '410':
          description: Its project's key was shredded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: What went wrong, for people.
        code:
          type: string
          description: >-
            A machine-readable code, when there is one: quota, no_template,
            not_found, …
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A CLI token or an organization API key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.