# Download artifact content

> Returns artifact bytes directly or a 302 redirect to a signed storage URL valid for five minutes.

See [downloads and retention](https://revise.io/developer/docs/revise-api/files) for integration guidance.

This TypeScript example fetches metadata, follows a signed download redirect when present, and verifies byte length and SHA-256. For a raw Response use `revise.artifacts.content(id)`. Encrypted content is compact JWE, with `application/jose` MIME and a `.jwe` filename.

## TypeScript

```ts
import { ReviseClient } from "@reviseio/api";

const revise = new ReviseClient({ apiKey: process.env.REVISE_API_KEY! });
const result = await revise.artifacts.download("art_id");
```

`GET https://revise.io/api/v1/artifacts/{id}/content`

Returns artifact bytes directly or a 302 redirect to a signed storage URL valid for five minutes. Follow the redirect without forwarding Authorization across origins; with curl use --location, never --location-trusted. Verify length and SHA-256 against artifact metadata. Deleted or expired content returns 410. Encrypted downloads use application/jose and a .jwe filename.

## Authorization

`Authorization: Bearer <key>` with an API key from https://revise.io/console/api-keys.

## Path parameters

- `id` (string, required)

## Responses

### 200 `string<binary>`

The exact output bytes, or compact JWE ciphertext when output encryption was requested.


### 302

Redirect to a short-lived signed artifact download URL. Follow without forwarding bearer credentials.

- Header `Location`

### default `Error`

Error

- `error` (object, required)
  - `code` (string, required)
  - `message` (string, required)
  - `details` (object)
