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"
}
| Property | Type | Description |
|---|---|---|
| client_id | string | Required. Your eID Easy API client ID. |
| files | array | Required. Original XML files to e-seal. |
| files[].fileName | string | Required. File name of the original file. |
| files[].fileContent | string | Required. Base64-encoded original XML file. |
| files[].mimeType | string | Required. MIME type of the original file. |
| signature_form | string | Required. Must be "XMLDSIG". |
| signature_packaging | string | Required. Must be "ENVELOPED". |
Request constraints:
filesmust contain at least 1 file and at most 30 files.files[].fileNamemust be at least 3 characters long.- Each
files[].fileNamemust be unique within the request. files[].fileContentmust be the base64-encoded original XML file.files[].mimeTypemust 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"
}
]
}
| Property | Type | Description |
|---|---|---|
| status | string | OK when the request succeeded. |
| signatures | array | Signed XML documents for the submitted files. |
| signatures[].fileName | string | Signature file name. The file name usually ends with .xml. |
| signatures[].mimeType | string | Signature MIME type, e.g. application/xml. |
| signatures[].fileContent | string | Base64-encoded complete signed XML content. |