# Application Programming Interface (API)

The API interface is exposed as a standard HTTP REST resource.

This access is protected by HTTPS authentication of the server.

The main function of the API is the signature function. This function allows user to sign a document in any of the supported signature format. The document to sign can be sent through an URL (parameter **url_in**) or through data stream (parameter **file_in**); it can only be used one of the above methods of input for the file to be signed. The signed file then is sent to an URL (parameter **url_out**) or it can be retrieved through the “result” link (for 60 seconds).

Among the input attributes of the call, we have the ability to enter, in addition to the certificate check and signature type, the alias corresponding to the Timestamp Authority to be used, the page on which to affix the signature, and the image to be used for the graphical signature.