Mobile devices paired with this integration. When non-empty, SignatureRequest.notifyDevices can reach the user without a QR scan.
URL of a QR code that pairs a device without signing anything.
Load the persisted integration or register a new one. Idempotent.
Upload a document for signing.
Optionalfilename?: stringOptionalparameters?: {OptionalautoLoadEform?: booleanTry to find XSD and XSLT for a given eForm and load them automatically. Useful for visualizing and signing eForms. If true, schema, transformation, conatinerXmlns, container, packaging, and identifier parameters are ignored. If resources are not found, the response is 422. If provided document is an ASiC_E container conatining XML Datacontainer or it is an XML Datacontainer itself, XSLT found is used for visualiztion of signing document. Also, XSD and XSLT hashes are compared with hashes of XSD and XSLT found in XML Data Container EForm. If they differ, the response is 422. If the provided document is an XML document, Autogram will try to parse xmlns from root element and find resources based on its value. If successful, XML Datacontainer with xmls="http://data.gov.sk/def/container/xmldatacontainer+xml/1.1" is created, the document is validated against the XSD and visualized using the XSLT. If XSD validation fails, the response is 422. The XSLT transformation is found based on transformationLanguage (defaults to user preferred), transformationMediaDestinationTypeDescription (default XHTML, then HTML, then TXT), and transformationTargetEnvironment. If multiple transformations meet the criteria, the first one found is used.
OptionalcheckPDFACompliance?: booleanOptionalcontainer?: "ASiC-E" | "ASiC-S"OptionalcontainerXmlns?: "http://data.gov.sk/def/container/xmldatacontainer+xml/1.1"XML namespace for the XML Datacontainer. Specifies if xmldatacontainer should be created from XML. Doesn't create xmldatacontainer if payloadMimeType is application/vnd.gov.sk.xmldatacontainer+xml already. Accepts http://data.gov.sk/def/container/xmldatacontainer+xml/1.1 only. Defaults to null. Is ignored with autoLoadEform true.
OptionaldigestAlgorithm?: "SHA256" | "SHA384" | "SHA512"OptionalembedUsedSchemas?: booleanWhen creating XML Datacontainer, parameter indicates whether to embed XSD and XML or reference them. Practically this should be only used for ORSR EForms in which case (when identifier contains "justice.gov.sk/Forms") this parameter is overridden to true.
Optionalen319132?: booleanOptionalidentifier?: stringOptional identifier of the document template. Required if containerXmlns is http://data.gov.sk/def/container/xmldatacontainer+xml/1.1. Defaults to null. Is ignored with autoLoadEform true.
OptionalinfoCanonicalization?: OptionalkeyInfoCanonicalization?: Optionallevel?: Optionalpackaging?: "ENVELOPED" | "ENVELOPING"Optional form of packaging used with XML. ENVELOPED adds the signature as a child of the root element while ENVELOPING wraps the XML in a new element. Only applies to XAdES signatures. Must be ENVELOPING when used without ASiC container and with non XML documents. Is ignored with autoLoadEform true.
OptionalpropertiesCanonicalization?: Optionalschema?: stringOptionalschemaIdentifier?: stringOptional identifier of the XML schema. The value is used in "UsedXSDReference" field inside created XML Datacontainer. If provided with autoLoadEform true, Autogram will try to find such schema. Default value is "http://schemas.gov.sk/form/
Optionaltransformation?: stringOptional XML transformation used to present the signing document to user and to compute digest used in "UsedPresentationSchemaReference" in "DigestValue" attribute inside created XML Datacontainer. Format (plaintext or base64) is dictated by payloadMimeType. Is ignored with autoLoadEform true.
OptionaltransformationIdentifier?: stringOptional identifier of the XML transformation. If provided with autoLoadEform true, Autogram will try to find such transformation. Default value is "http://schemas.gov.sk/form/
OptionaltransformationLanguage?: stringOptionaltransformationMediaDestinationTypeDescription?: "XHTML" | "HTML" | "TXT"Optional media destination type description of the XML transformation. If autoLoadEform is true, Autogram will try to find signing XSLT with this type. Otherwise transformation must be provided. Overrides value of the output method in provided or auto-loaded transformation which is used by default.
OptionaltransformationTargetEnvironment?: stringOptionalpayloadMimeType?: stringMIME type for document content and signature parameters XSLT transformation and XSD schema.
Binary files should be encoded using base64, e.g., application/pdf;base64.
Text formats like XML can be optionally encoded using base64 or supplied as plain text.
If omitted, mimetype is decided based on document.filename and content is expected to be in Base64.
Optionaloptions: { notifyDevices?: boolean }OptionalnotifyDevices?: booleansend a push notification to paired devices
right away (default true).
Recreate a SignatureRequest from a persisted token.
Returns null when the token is missing or structurally invalid; an
expired document surfaces later as status().state === "expired".
Unpair a device; it stops receiving push notifications from this integration. Idempotent.
Client for signing documents with the Autogram mobile app.
Long-lived state (integration key pair, GUID, device pairings) belongs to the integration; each document is an independent SignatureRequest.