{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/revise-io/json-schema/revise-io-get-api-v1-artifacts-id-response-schema.json",
  "title": "GetApiV1ArtifactsIdResponse",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/revise-io-openapi-generated.yml#/components/schemas/GetApiV1ArtifactsIdResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Artifact identifier"
    },
    "prompt_id": {
      "type": "string",
      "description": "Prompt identifier"
    },
    "conversion_id": {
      "type": "string",
      "description": "Conversion identifier"
    },
    "format": {
      "type": "string",
      "description": "One of \"docx\", \"pdf\", \"md\", \"html\", \"txt\""
    },
    "filename": {
      "type": "string",
      "description": "Original plaintext filename, even when encrypted"
    },
    "content_type": {
      "type": "string",
      "description": "Original plaintext MIME type"
    },
    "variant": {
      "type": "string",
      "description": "One of \"tracked_changes\", \"clean\", \"converted\""
    },
    "sha256": {
      "type": "string",
      "description": "SHA‑256 of the exact downloadable bytes (ciphertext for encrypted artifacts)"
    },
    "bytes": {
      "type": "integer",
      "description": "Size of the downloadable bytes, including JWE encoding overhead when encrypted"
    },
    "download_url": {
      "type": "string",
      "description": "Account‑authenticated API path; may redirect to signed storage"
    },
    "input_eligible": {
      "type": "boolean",
      "description": "True only for an unexpired, undeleted, unencrypted prompt artifact"
    },
    "expires_at": {
      "type": "string",
      "description": "Expiration timestamp, if any"
    },
    "encryption": {
      "type": "object",
      "description": "Artifact encryption properties (present when encrypted) – format, alg, enc, key_id"
    },
    "deleted_at": {
      "type": "string",
      "description": "Deletion timestamp, if any"
    },
    "error": {
      "type": "object",
      "description": "Error object (code, message, details) – present on error responses"
    }
  }
}