Revise API menu

Get artifact metadata

Read metadata for an immutable output variant.

GEThttps://revise.io/api/v1/artifacts/{id}

See downloads and retention for integration guidance.

TypeScript#

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

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

Authorization#

Authorizationstringrequired

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

Path parameters#

idstringrequired

Responses#

200ArtifactRead metadata for an immutable output variant
idstringrequired
prompt_idstring
conversion_idstring
formatstringrequired

one of "docx", "pdf", "md", "html", "txt"

filenamestringrequired

Original plaintext filename, even when encrypted. Encrypted downloads append .jwe.

content_typestringrequired

Original plaintext MIME type. Encrypted downloads use application/jose.

variantstringrequired

one of "tracked_changes", "clean", "converted"

sha256stringrequired

SHA-256 of the exact downloadable bytes (ciphertext for encrypted artifacts).

bytesintegerrequired

Size of the downloadable bytes, including JWE encoding overhead when encrypted.

download_urlstringrequired

Account-authenticated API path. The endpoint may redirect to signed storage; never forward bearer credentials to storage.

input_eligiblebooleanrequired

True only for an unexpired, undeleted, unencrypted prompt artifact. Conversion artifacts are not directly reusable; download and upload them first.

expires_atstring | nullrequired
encryptionArtifactEncryption
Properties
formatstringrequired

one of "jwe"

algstringrequired

one of "RSA-OAEP-256"

encstringrequired

one of "A256GCM"

key_idstringrequired

Base64url SHA-256 JWK thumbprint of the recipient public key (RFC7638).

deleted_atstring | nullrequired
defaultErrorError
errorobjectrequired
Properties
codestringrequired
messagestringrequired
detailsobject