Integration API
External Web/Native Application - API and Integration flow
Last updated
External Web/Native Application - API and Integration flow
Last updated
An external native/web application can push PDF documents to a user's SimpleSign instance with a request to sign.
When the user is in the web application session, the T1C-API enables the capability to push a PDF file from the web application to the local SimpleSign running in user space. The external application does not need to know a file location or system dependent info, pushing the document through the API is sufficient.
The external application can provide an external id, and a callback endpoint. The callback endpoint will be used by the SimpleSign, when a document signature process has been successfully completed, to push the signed PDF document towards the external application.
The requester can optionally choose to not receive the callback as Multipart/Form-data but as a application/json, in this case it will return the path to the signed document. Here the user can then choose to use the file-echange module to retrieve the document himself.
The follow image denotes the sequence diagram used for the integration of an external web application with SimpleSign, using the T1C-API (SimpleSign module).
When an application wants to interact with SimpleSign, the application needs to integrate with the SimpleSign CMS API.
This endpoint can be used to see if the CMS API is available
The response will look like the following;
The following endpoint will provide the capabilities to send a File to the SimpleSign application.
This is a multi-part/form-data request, with a fileName
property and a file
property.
The response will look like the following
When you try to upload a file which already exists in the SimpleSign folders or Database it will automatically rename the file for you. The response will contain the new name in the name
property and the full path to the file in the path
property.
The following endpoint provides the capabilities to send the necessary context for a CMS file to SimpleSign. SimpleSign will use this context to determine where to send a result when the document has been successfully signed.
sendFile
is an optional field. It is used to instruct SimpleSign to only return the fileName that has been signed. This can later be retrieved via the Download endpoint. If it is false or not set it will call the CallbackUrl as Multipart/form-data with the file included
externalId
is also an optional field. and will be returned to the callback URL in either FormData or Json format, depending on the sendFile property
The response as Multipart;
The response as JSON;
If you have chosen to not send the file as Multipart in the callback flow you can use this endpoint to download the file.
The response will be a streamed file.
Below an example of how this looks like in postman