One Touch Sign (OTS)
Template Engine
Generate Contract API
10 min
introduction in the ever evolving landscape of modern business, efficiency and precision are paramount to streamline and expedite the process of creating contracts, we present the contract generation api – a powerful tool designed to seamlessly merge template based contract creation with dynamic data input this api empowers businesses to generate comprehensive and tailored contract documents effortlessly, all through a straightforward integration the contract generation api leverages the synergy between template ids and json data, enabling users to effortlessly populate predefined contract templates with specific information by inputting a designated template id and providing the requisite data in json format, the api orchestrates the merging of template elements and data fields the end result is a meticulously crafted contract, customized to reflect the unique requirements of each use case in this documentation, we will delve into the intricacies of integrating and utilizing the contract generation api from obtaining api credentials to formatting json data and implementing template ids, our comprehensive guide will equip developers, businesses, and legal professionals alike with the knowledge and tools to harness the full potential of this groundbreaking technology authentication api authentication is a crucial security process that ensures authorized access to an application programming interface (api) it involves validating the identity of users or systems seeking to interact with the api please use the access token shared with you by your assigned signzy's csm please set the value of the key authorization in the headers to the access token , while making an api call in this way, signzy's system will be able to authenticate you and you will be able to make a successful api call api details the details of the api can be found here sample curl pre production curl location 'https //api preproduction signzy app/api/v3/contract/generate' \\ \ header 'authorization ' \\ \ header 'content type application/json' \\ \ data '{ "templateid" "64c0e0db4b7023d0a3cc8357", "urltype" "url", "jsondata" { "image1" "", "checkbox1" "true", "checkbox2" "false", "textfield1" "test1", "textfield2" "test2" } }' production curl location 'https //api signzy app/api/v3/contract/generate' \\ \ header 'authorization ' \\ \ header 'content type application/json' \\ \ data '{ "templateid" "64c0e0db4b7023d0a3cc8357", "urltype" "url", "jsondata" { "image1" "", "checkbox1" "true", "checkbox2" "false", "textfield1" "test1", "textfield2" "test2" } }' input parameters true falsefalse unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type sample response 200 { "status" "success", "statusdesp" "url generated successfully", "url" "" } output parameters true falsefalse unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type sample errors 400 { "name" "error", "message" "invalid url extension", "reason" "validation error", "type" "bad request", "statuscode" 400 } 400 { "name" "error", "message" "error generating pdf from template", "reason" "input error", "type" "bad request", "statuscode" 400 } 401 { "message" "invalid authentication credentials" } 500 { "error" { "name" "error", "message" "internal server error", "reason" "internal server error", "type" "internal server error", "statuscode" 500 } } error parameters true falsefalse unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type error codes true falsefalse unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type false unhandled content type