Get the certificate PDF
get_certificate_pdfRetrieve the signed certificate PDF for an attested work. Pass the attestation object to mint a new PDF, or use the hash to recover an archived certificate.
Instructions
Get the signed certificate PDF for an attested work, saving it to a local file. Pass attestation (the exact object returned by attest_file) right after attesting, to mint a freshly-signed PDF. Pass only hash to recover an already-archived certificate instead (no credential needed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | The SHA-256 fingerprint (64 hex chars). | |
| save_to | No | Local file path to save the PDF to (default: ./certificato_<hash12>.pdf). | |
| attestation | No | The full object returned by attest_file, to mint a new PDF. |