Direct e-Sealing XMLDSIG full-file Request Body

This mode sends the original XML to eID Easy and returns the complete signed XML with a basic enveloped XML signature without XAdES properties.

Set signature_form to "XMLDSIG" and signature_packaging to "ENVELOPED".

Use the Cloud Direct e-Sealing API endpoint and HMAC authentication.

{
  "client_id": "client-id",
  "files": [
    {
      "fileName": "document.xml",
      "fileContent": "PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxhZGRyZXNzX2Jvb2s+CiAgICA8cGVyc29uPgogICAgICAgIDxuYW1lPkphbmUgRG9lPC9uYW1lPgogICAgICAgIDxhZGRyZXNzPgogICAgICAgICAgICA8c3RyZWV0PjEyMyBNYWluIFN0Ljwvc3RyZWV0PgogICAgICAgICAgICA8Y2l0eT5TYW4gRnJhbmNpc2NvPC9jaXR5PgogICAgICAgICAgICA8c3RhdGU+Q0E8L3N0YXRlPgogICAgICAgICAgICA8emlwPjk0MTE3PC96aXA+CiAgICAgICAgPC9hZGRyZXNzPgogICAgICAgIDxwaG9uZSBhcmVhX2NvZGU9IjQxNSI+NTU1LTEyMTI8L3Bob25lPgogICAgPC9wZXJzb24+CjwvYWRkcmVzc19ib29rPgoK",
      "mimeType": "application/xml"
    }
  ],
  "signature_form": "XMLDSIG",
  "signature_packaging": "ENVELOPED"
}
PropertyTypeDescription
client_idstringRequired. Your eID Easy API client ID.
filesarrayRequired. Original XML files to e-seal.
files[].fileNamestringRequired. File name of the original file.
files[].fileContentstringRequired. Base64-encoded original XML file.
files[].mimeTypestringRequired. MIME type of the original file.
signature_formstringRequired. Must be "XMLDSIG".
signature_packagingstringRequired. Must be "ENVELOPED".

Request constraints:

  • files must contain at least 1 file and at most 30 files.
  • files[].fileName must be at least 3 characters long.
  • Each files[].fileName must be unique within the request.
  • files[].fileContent must be the base64-encoded original XML file.
  • files[].mimeType must be a valid MIME type.
  • XMLDSIG supports full-file input only; do not send documentDigest.

Direct e-Sealing XMLDSIG Response Example

If the request succeeds, the API returns the complete signed XML for each input file:

{
  "status": "OK",
  "signatures": [
    {
      "fileName": "document.xml",
      "mimeType": "application/xml",
      "fileContent": "base64-encoded-xml"
    }
  ]
}
PropertyTypeDescription
statusstringOK when the request succeeded.
signaturesarraySigned XML documents for the submitted files.
signatures[].fileNamestringSignature file name. The file name usually ends with .xml.
signatures[].mimeTypestringSignature MIME type, e.g. application/xml.
signatures[].fileContentstringBase64-encoded complete signed XML content.
Last Updated: