Direct e-Sealing XAdES full-file Request Body

This mode sends the original XML to eID Easy and returns the complete signed XML. To keep the original XML in your system, use the XAdES reference-digest request.

The request body below shows a XAdES example. Use the signature_form and signature_profile values enabled for your client.

{
  "client_id": "client-id",
  "files": [
    {
      "fileName": "document.xml",
      "fileContent": "PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxhZGRyZXNzX2Jvb2s+CiAgICA8cGVyc29uPgogICAgICAgIDxuYW1lPkphbmUgRG9lPC9uYW1lPgogICAgICAgIDxhZGRyZXNzPgogICAgICAgICAgICA8c3RyZWV0PjEyMyBNYWluIFN0Ljwvc3RyZWV0PgogICAgICAgICAgICA8Y2l0eT5TYW4gRnJhbmNpc2NvPC9jaXR5PgogICAgICAgICAgICA8c3RhdGU+Q0E8L3N0YXRlPgogICAgICAgICAgICA8emlwPjk0MTE3PC96aXA+CiAgICAgICAgPC9hZGRyZXNzPgogICAgICAgIDxwaG9uZSBhcmVhX2NvZGU9IjQxNSI+NTU1LTEyMTI8L3Bob25lPgogICAgPC9wZXJzb24+CjwvYWRkcmVzc19ib29rPgoK",
      "mimeType": "application/xml"
    }
  ],
  "signature_form": "XAdES",
  "signature_profile": "XAdES_BASELINE_LT",
  "signature_packaging": "ENVELOPED"
}
PropertyTypeDescription
client_idstringRequired. Your eID Easy API client ID.
filesarrayRequired. File digests 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. Signature form to produce.
signature_profilestringRequired. Signature profile to produce.
signature_packagingstringRequired. Signature packaging to produce.

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.

Direct e-Sealing XAdES Response Example

If the request succeeds, the API returns one signature for each input file digest. For example, a XAdES response looks like this:

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