Skip to main content

GET /api/artifacts/{hash}

Download a normalized PDF artifact by its SHA-256 content hash. Artifacts are deduplicated — two submissions that produce identical output share the same artifact.

Request

GET https://api.pdfcanon.com/api/artifacts/{hash}

Path parameters

ParameterDescription
hashSHA-256 hash of the artifact (hex-encoded, without prefix)

Headers

HeaderRequiredDescription
X-Api-KeyYour API key (pdfn_...)

Response

Success (200 OK)

Returns the normalized PDF as application/pdf.

Response headers:

HeaderDescription
Content-Typeapplication/pdf
Content-LengthFile size in bytes
Content-Dispositionattachment; filename="normalized.pdf"
X-Content-HashSHA-256 hash of the returned content

Artifact availability

Artifacts are available for the duration of your organization's data retention period. After expiry, the artifact is deleted and the endpoint returns 404.

See Data Retention for retention periods by plan.

Error responses

StatusDescription
401Invalid or missing API key
403Artifact does not belong to your organization
404Artifact not found or expired