# LawVu API The next generation of the LawVu API. ## Servers Sandbox API ``` https://api-sandbox.lawvu.com ``` Production API ``` https://api.lawvu.com ``` ## Download OpenAPI description [LawVu API](https://api-docs.lawvu.com/_spec/new-api/lawvuapi.openapi.yaml) ## Contracts ### Get contract - [GET /v2/contracts/{contractId}](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/contracts/get-v2-contracts-contractid.md): Retrieve a contract by its identifier ### Update contract - [PATCH /v2/contracts/{contractId}](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/contracts/patch-v2-contracts-contractid.md): Updates a contracts details ### Create contract - [POST /v2/contracts](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/contracts/post-v2-contracts.md): Creates a contract based on the provided contract type. ### Get contract file - [GET /v2/contracts/{contractId}/files/{fileId}](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/contracts/get-v2-contracts-contractid-files-fileid.md): Retrieve information about a file on a contract ### Get contract types - [GET /v2/contractTypes](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/contracts/get-v2-contracttypes.md): Retrieve a list of contract types ## Fields ### Get fields - [GET /v2/fields](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/fields/get-v2-fields.md): Retrieve a list of available fields ### Get field options - [GET /v2/fields/{fieldId}/options](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/fields/get-v2-fields-fieldid-options.md): Retrieve a list of available options for a field. Supported field types: MultiOption, Option ### Add an option to a field - [POST /v2/fields/{fieldId}/options](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/fields/post-v2-fields-fieldid-options.md): Add a an option for a field. Supported field types: MultiOption, Option ## Files ### Delete file - [DELETE /v2/files/{fileId}](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/files/delete-v2-files-fileid.md): Delete a file ### Upload file version - [POST /v2/files/{fileId}](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/files/post-v2-files-fileid.md): Upload a new version of a file ### Get file content - [GET /v2/files/{fileId}/content](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/files/get-v2-files-fileid-content.md): Retrieve the content of a file ### Upload file - [POST /v2/files](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/files/post-v2-files.md): Upload a file ## Matters ### Get matter - [GET /v2/matters/{matterId}](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/matters/get-v2-matters-matterid.md): Retrieve a matter by its identifier ### Update matter - [PATCH /v2/matters/{matterId}](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/matters/patch-v2-matters-matterid.md): Updates a matters details ### Create matter - [POST /v2/matters](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/matters/post-v2-matters.md): Creates a matter based on the provided matter type. ### Get matter file - [GET /v2/matters/{matterId}/files/{fileId}](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/matters/get-v2-matters-matterid-files-fileid.md): Retrieve information about a file on a matter ### Get matter types - [GET /v2/matterTypes](https://api-docs.lawvu.com/new-api/lawvuapi.openapi/matters/get-v2-mattertypes.md): Retrieve a list of matter types