v1
latestOpenAPI 3.0.12026-07-135210550.0 KBFinalize Agreements
Create Agreement
post/finalize/v2/agreements
Request body
Example request
{
"data": {
"name": "LinkSquares Contract",
"agreement_file": {
"name": "LinkSquares_NDA.docx"
},
"answers": [
{
"selected": [
{
"custom_description": "The best option."
}
]
}
],
"tables_values": [
{
"start_token": "#[TABLE::START::Subscription_Fees]#",
"end_token": "#[TABLE::END::Subscription_Fees]#"
}
],
"source": {
"source_name": "Salesforce",
"metadata": {
"source_record_name": "SFDC Opportunity.docx",
"source_record_url": "https://example.com/deals/1",
"color": "#FFFFFF"
}
}
}
}Response
created
Example response
{
"data": {
"name": "LinkSquares Contract",
"analyze_agreement_id": "2bdb40a3-e5d3-47fb-bcb8-b5b1d6ee549d",
"template_id": "a25771d9-f44b-4284-82a7-a9e822ae6c18",
"owner_id": "b25771d9-f44b-4284-82a7-a9e822ae6c18"
},
"_links": {
"agreement_file_upload": {
"href": "https://s3.amazonaws.com/linksquares-finalize-bucket/store/agreementversion/d0441f5b-3f7a-43de-84ef-37758b9929dd/file/ffd9b8871fb6250a4a98a53011e17527/basic_agreement.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=<Amz-Credential-Value>&X-Amz-Date=20230402T134848Z&X-Amz-Expires=900&X-Amz-Security-Token=<Amz-Security-Token-Value>&X-Amz-SignedHeaders=host&X-Amz-Signature=<Amz-Signature-Value>",
"operation": "put",
"file": "basic_agreement.docx"
},
"answer_file_uploads": [
{
"href": "https://s3.amazonaws.com/linksquares-finalize-bucket/store/agreement/d0441f5b-3f7a-43de-84ef-37758b9929dd/file/ffd9b8871fb6250a4a98a53011e17527/basic_agreement.docx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=<Amz-Credential-Value>&X-Amz-Date=20230402T134848Z&X-Amz-Expires=900&X-Amz-Security-Token=<Amz-Security-Token-Value>&X-Amz-SignedHeaders=host&X-Amz-Signature=<Amz-Signature-Value>",
"operation": "put",
"file": "ImportantSpreadsheet.xlsx"
}
],
"agreement_uploads_complete": {
"href": "https://api.linksquares.com/api/finalize/v2/agreements/eb05deb4-05c5-45d0-ae74-9ec2f3e2ad86",
"operation": "patch"
}
}
}