The Harvey API provides access to Harvey’s proprietary models, allowing users to make API calls to ask complex, freeform questions and receive detailed responses.
Access to this API requires an additional purchase. To get started, contact your Account Manager or reach out to us at support@harvey.ai to discuss an agreement.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Whether to include citations in the response output. When set to false, citations are skipped and the response is returned more quickly. Defaults to true.
A string question that you want to ask Harvey. The prompt may be up to 20,000 characters.
20000"In 3 sentences, can you explain how indemnity and limitation of liability clauses typically work in commercial contracts?"
A boolean value that lets you either stream or receive the entire output at once.
Files you want to upload to provide additional context for the prompt.
Cannot be used together with knowledge_sources.
Optional mode to specify the behavior of the completion.
draft, assist "draft"
Optional client matter identifier to associate with this completion.
"12345678-1234-5678-1234-567812345678"
JSON-encoded array of knowledge sources.
Cannot be used together with file.
All objects must include a type field. Additional fields depend on the type.
Vault example with file_ids: [{"type":"vault","folder_id":"12345678-1234-5678-1234-567812345678","file_ids":["87654321-8765-4321-8765-432187654321"]}]
Vault example without file_ids (queries entire folder): [{"type":"vault","folder_id":"12345678-1234-5678-1234-567812345678"}]
Web example: [{"type":"web"}]
"[{\"type\":\"web\"}]"
The response object includes the response field which is the completion of the input prompt sent to the model.
The completion of the input prompt.
"Indemnity clauses in commercial contracts require one party to compensate the other for certain losses or damages arising from specified events, such as breaches or third-party claims. Limitation of liability clauses cap the amount or types of damages one party can recover from the other, often excluding indirect or consequential losses. Together, these clauses allocate and manage risk between the parties, providing predictability and protecting against potentially catastrophic financial exposure."
The completion with inline citations, e.g. [1][2], which correspond to the sources below. Only returned when include_citations=true.
"Indemnity clauses in commercial contracts require one party to compensate the other for certain losses or damages arising from specified events, such as breaches or third-party claims.[1] Limitation of liability clauses cap the amount or types of damages one party can recover from the other, often excluding indirect or consequential losses.[2]"
Contains the list of cited source snippets to support the answer. Only returned when include_citations=true and documents/knowledge sources were provided.