API documentation for LegalOn services
- Upload a new latest version
List contracts
Create a contract document
List contract custom attribute definitions
Get contract custom attribute values
Update contract custom attribute values
Update contract management attributes
Get contract information
Delete a contract
List contract versions
Update contract information
Delete a contract version
Link an existing non-contract file to a contract
Link another contract
Upload other file
Remove a related file link from a contract
Upload a new latest versi...
LegalOn API (1.3.1)
Languages
Servers
The server URL is `{api_base_url}/rest/v1`.
You can construct the server URL using the value of `api_base_url` provided in the response when obtaining an access token.
https://{api_base_url_without_scheme}/rest/v1
- The server URL is `{api_base_url}/rest/v1`.
You can construct the server URL using the value of `api_base_url` provided in the response when obtaining an access token.
https://{api_base_url_without_scheme}/rest/v1/contracts/{document_id}
- cURL
- JavaScript
- Python
- Java
- Go
curl -i -X DELETE \
'https://{api_base_url_without_scheme}/rest/v1/contracts/{document_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Bodymultipart/form-datarequired
Contract version file. The filename and media type come from the multipart file part.
- The server URL is `{api_base_url}/rest/v1`.
You can construct the server URL using the value of `api_base_url` provided in the response when obtaining an access token.
https://{api_base_url_without_scheme}/rest/v1/contracts/{document_id}/versions
- cURL
- JavaScript
- Python
- Java
- Go
curl -i -X POST \
'https://{api_base_url_without_scheme}/rest/v1/contracts/{document_id}/versions' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F file=string \
-F document_status_code=COUNTERPARTY_DRAFTResponse
application/json
{ "document_version_id": "00000016-0000-0000-0001-100000000102" }
- The server URL is `{api_base_url}/rest/v1`.
You can construct the server URL using the value of `api_base_url` provided in the response when obtaining an access token.
https://{api_base_url_without_scheme}/rest/v1/contracts/{document_id}/versions
- cURL
- JavaScript
- Python
- Java
- Go
curl -i -X GET \
'https://{api_base_url_without_scheme}/rest/v1/contracts/{document_id}/versions' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "document_id": "00000016-0000-0000-0001-100000000001", "versions": [ { … }, { … } ] }