Retrieve information about a file on a contract
- Sandbox APIhttps://api-sandbox.lawvu.com/v2/contracts/{contractId}/files/{fileId}
- Production APIhttps://api.lawvu.com/v2/contracts/{contractId}/files/{fileId}
const contractId = '5348';
const fileId = '9456';
const resp = await fetch(
`https://api-sandbox.lawvu.com/v2/contracts/${contractId}/files/${fileId}`,
{method: 'GET'}
);
const data = await resp.text();
console.log(data);OK
The user defined name of the file resource For file resources with a type of file this includes the file extension
Example:"Standard NDA.docx"
A system generated identifier of the file resource. Also known as "Document ID"
Example:"LV0001-0000123.1"
The type of file resource
Enum:"File""Folder""ContractDocument"
Example:"File"
The folder where the file resource is located
Folder is null when the file resource is located at the root of the resource
The resource where the file resource is located within
The user who created the file resource and when
Response
{ "id": 9456, "name": "Standard NDA.docx", "displayId": "LV0001-0000123.1", "type": "File", "folder": { "folder": {}, "id": 786, "name": "Drafts" }, "contentType": "text/plain", "resource": { "id": 78914, "type": "Contract" }, "restricted": false, "size": 18139, "version": 3, "created": { "dateUtc": "2024-12-25T00:00:00Z", "user": { … }, "userName": "api.developer@lawvu.com" }, "modified": { "dateUtc": "2024-12-25T00:00:00Z", "userName": "api.developer@lawvu.com" } }