# Get artifact metadata

> Read metadata for an immutable output variant.

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

## TypeScript

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

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

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

## Authorization

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

## Path parameters

- `id` (string, required)

## Responses

### 200 `Artifact`

Read metadata for an immutable output variant

- `id` (string, required)
- `prompt_id` (string)
- `conversion_id` (string)
- `format` (string, required): one of "docx", "pdf", "md", "html", "txt"
- `filename` (string, required): Original plaintext filename, even when encrypted. Encrypted downloads append .jwe.
- `content_type` (string, required): Original plaintext MIME type. Encrypted downloads use application/jose.
- `variant` (string, required): one of "tracked_changes", "clean", "converted"
- `sha256` (string, required): SHA-256 of the exact downloadable bytes (ciphertext for encrypted artifacts).
- `bytes` (integer, required): Size of the downloadable bytes, including JWE encoding overhead when encrypted.
- `download_url` (string, required): Account-authenticated API path. The endpoint may redirect to signed storage; never forward bearer credentials to storage.
- `input_eligible` (boolean, required): True only for an unexpired, undeleted, unencrypted prompt artifact. Conversion artifacts are not directly reusable; download and upload them first.
- `expires_at` (string | null, required)
- `encryption` (ArtifactEncryption)
  - `format` (string, required): one of "jwe"
  - `alg` (string, required): one of "RSA-OAEP-256"
  - `enc` (string, required): one of "A256GCM"
  - `key_id` (string, required): Base64url SHA-256 JWK thumbprint of the recipient public key (RFC7638).
- `deleted_at` (string | null, required)

### default `Error`

Error

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