# Documents

Upload and operate on signed documents

 - [POST /documents/](https://docs.namirial.app/it/products/pki-on-prem/vol/openapi/documents/uploaddocument.md): Upload a signed document to the system in order to run subsequent operations (signature report, verification, content extraction, etc.). You can upload: * **a single signed file** (embedded signature)
 - [GET /documents/{document-id}/](https://docs.namirial.app/it/products/pki-on-prem/vol/openapi/documents/getdocument.md): Retrieve the originally uploaded document content. The returned content is **exactly** the same as the originally uploaded file. Note: On success, the server response does **not** include a filename h
 - [GET /documents/{document-id}/report](https://docs.namirial.app/it/products/pki-on-prem/vol/openapi/documents/getsignaturereport.md): Get the signature structure affixed to the uploaded document (**CAdES only**) as a JSON report. The returned object includes: * `code`: HTTP status as string (e.g. `"200 OK"`) * `result.report`: the s
 - [GET /documents/{document-id}/content](https://docs.namirial.app/it/products/pki-on-prem/vol/openapi/documents/getdocumentcontent.md): Return the extracted (unsigned) content of a previously uploaded document. The returned bytes depend on the signature type: * For **CAdES/XAdES**: returns the original document *without* the signature
 - [GET /documents/{document-id}/verify/report](https://docs.namirial.app/it/products/pki-on-prem/vol/openapi/documents/verifydocument.md): Verify a previously uploaded document and return a verification report. The output depends on query parameters: * `type=json` and `template=report` → JSON report * `type=rml` and `template=report` → P
