List contracts
curl --request GET \
--url https://app.vensight.ai/api/v1/contracts \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.vensight.ai/api/v1/contracts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.vensight.ai/api/v1/contracts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.vensight.ai/api/v1/contracts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.vensight.ai/api/v1/contracts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.vensight.ai/api/v1/contracts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.vensight.ai/api/v1/contracts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"resource": "contracts",
"data": [
{
"id": "9c2a7d10-4e8b-4f3a-b6d2-1a7e5c9f0b84",
"vendor_id": "6f1c2a4e-8b1d-4c3a-9e57-2d4b8a1f0c93",
"title": "Master Services Agreement",
"doc_kind": "msa",
"status": "active",
"version_label": "v2",
"value_cents": 125000000,
"starts_on": "2024-03-01",
"ends_on": "2027-02-28",
"effective_on": "2024-03-01",
"renews_on": "2027-03-01",
"auto_renews": true,
"non_renewal_notice_by": "2026-12-01",
"out_clause_days": 90,
"deadline_on": "2026-12-01",
"signed_on": "2024-02-26",
"uploaded_on": "2024-02-27",
"term_label": "3 years",
"payment_terms": "Net 30",
"governing_law": "State of California",
"signing_authority": "Chief Operating Officer",
"governed_by_id": "b9d4e7f1-6a2c-4583-8e17-0f3c5a8d2b69",
"governed_by_version_id": "9c2a7d10-4e8b-4f3a-b6d2-1a7e5c9f0b84",
"superseded_by_id": null,
"terminated_on": null,
"file_name": "oakmere-msa-v2.pdf",
"file_size_kb": 412,
"created_at": "2026-09-09T02:14:07.221Z",
"updated_at": "2026-09-09T02:14:07.221Z"
}
],
"has_more": true,
"next_cursor": "MjAyNi0wOS0wOVQwMjoxNDowNy4yMjFafDZmMWM…"
}{
"error": {
"code": "invalid_query",
"message": "vendor is not a filter on invoices. Accepted: limit, cursor, updated_since, vendor_id, status, business_unit."
}
}{
"error": {
"code": "invalid_credential",
"message": "That API key is not valid."
}
}{
"error": {
"code": "read_failed",
"message": "That could not be read just now."
}
}{
"error": {
"code": "not_yet_provisioned",
"message": "The API is still being switched on for this workspace. Try again shortly."
}
}Contracts
List contracts
Agreements on file, their dates, value and version chain. Returned oldest change first, 50 to a page unless you set limit.
GET
/
contracts
List contracts
curl --request GET \
--url https://app.vensight.ai/api/v1/contracts \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.vensight.ai/api/v1/contracts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.vensight.ai/api/v1/contracts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.vensight.ai/api/v1/contracts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.vensight.ai/api/v1/contracts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.vensight.ai/api/v1/contracts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.vensight.ai/api/v1/contracts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"resource": "contracts",
"data": [
{
"id": "9c2a7d10-4e8b-4f3a-b6d2-1a7e5c9f0b84",
"vendor_id": "6f1c2a4e-8b1d-4c3a-9e57-2d4b8a1f0c93",
"title": "Master Services Agreement",
"doc_kind": "msa",
"status": "active",
"version_label": "v2",
"value_cents": 125000000,
"starts_on": "2024-03-01",
"ends_on": "2027-02-28",
"effective_on": "2024-03-01",
"renews_on": "2027-03-01",
"auto_renews": true,
"non_renewal_notice_by": "2026-12-01",
"out_clause_days": 90,
"deadline_on": "2026-12-01",
"signed_on": "2024-02-26",
"uploaded_on": "2024-02-27",
"term_label": "3 years",
"payment_terms": "Net 30",
"governing_law": "State of California",
"signing_authority": "Chief Operating Officer",
"governed_by_id": "b9d4e7f1-6a2c-4583-8e17-0f3c5a8d2b69",
"governed_by_version_id": "9c2a7d10-4e8b-4f3a-b6d2-1a7e5c9f0b84",
"superseded_by_id": null,
"terminated_on": null,
"file_name": "oakmere-msa-v2.pdf",
"file_size_kb": 412,
"created_at": "2026-09-09T02:14:07.221Z",
"updated_at": "2026-09-09T02:14:07.221Z"
}
],
"has_more": true,
"next_cursor": "MjAyNi0wOS0wOVQwMjoxNDowNy4yMjFafDZmMWM…"
}{
"error": {
"code": "invalid_query",
"message": "vendor is not a filter on invoices. Accepted: limit, cursor, updated_since, vendor_id, status, business_unit."
}
}{
"error": {
"code": "invalid_credential",
"message": "That API key is not valid."
}
}{
"error": {
"code": "read_failed",
"message": "That could not be read just now."
}
}{
"error": {
"code": "not_yet_provisioned",
"message": "The API is still being switched on for this workspace. Try again shortly."
}
}Authorizations
Query Parameters
Response
A page of records, oldest change first.