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"
}
| Property | Type | Description |
|---|---|---|
| client_id | string | Required. Your eID Easy API client ID. |
| files | array | Required. File digests 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. Signature form to produce. |
| signature_profile | string | Required. Signature profile to produce. |
| signature_packaging | string | Required. Signature packaging to produce. |
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.
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"
}
]
}
| Property | Type | Description |
|---|---|---|
| status | string | OK when the request succeeded. |
| signatures | array | Signatures for the submitted file digests. |
| signatures[].fileName | string | Signature file name. For XAdES, the file name usually ends with .xml. |
| signatures[].mimeType | string | Signature MIME type, e.g. application/xml. |
| signatures[].fileContent | string | Base64-encoded xml content. |