Revise API menu

Download artifact content

GEThttps://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.

See downloads and retention 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#

TypeScript
import { ReviseClient } from "@reviseio/api";

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

Authorization#

Authorizationstringrequired

Bearer <key>, with an API key from the console.

Path parameters#

idstringrequired

Responses#

200string<binary>The exact output bytes, or compact JWE ciphertext when output encryption was requested.
302Redirect to a short-lived signed artifact download URL. Follow without forwarding bearer credentials.

Headers

Locationstring<uri>
defaultErrorError
errorobjectrequired
Properties
codestringrequired
messagestringrequired
detailsobject