Get artifact metadata
Read metadata for an immutable output variant.
https://revise.io/api/v1/artifacts/{id}See downloads and retention for integration guidance.
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#
AuthorizationstringrequiredBearer <key>, with an API key from the console.
Path parameters#
idstringrequiredResponses#
200ArtifactRead metadata for an immutable output variant
idstringrequiredprompt_idstringconversion_idstringformatstringrequiredone of "docx", "pdf", "md", "html", "txt"
filenamestringrequiredOriginal plaintext filename, even when encrypted. Encrypted downloads append .jwe.
content_typestringrequiredOriginal plaintext MIME type. Encrypted downloads use application/jose.
variantstringrequiredone of "tracked_changes", "clean", "converted"
sha256stringrequiredSHA-256 of the exact downloadable bytes (ciphertext for encrypted artifacts).
bytesintegerrequiredSize of the downloadable bytes, including JWE encoding overhead when encrypted.
download_urlstringrequiredAccount-authenticated API path. The endpoint may redirect to signed storage; never forward bearer credentials to storage.
input_eligiblebooleanrequiredTrue only for an unexpired, undeleted, unencrypted prompt artifact. Conversion artifacts are not directly reusable; download and upload them first.
expires_atstring | nullrequiredencryptionArtifactEncryptionProperties
formatstringrequiredone of "jwe"
algstringrequiredone of "RSA-OAEP-256"
encstringrequiredone of "A256GCM"
key_idstringrequiredBase64url SHA-256 JWK thumbprint of the recipient public key (RFC7638).
deleted_atstring | nullrequireddefaultErrorError
errorobjectrequiredProperties
codestringrequiredmessagestringrequireddetailsobject