> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vensight.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# API reference overview

> Base address, authentication, response shapes, errors, paging and versioning, in one place.

Everything on one page that applies to every endpoint in this reference. The guides
go into each topic in more depth.

## Base address

```
https://app.vensight.ai/api/v1
```

Every endpoint is a `GET` under this address. There are no write endpoints.

## Authentication

Send an API key as a bearer token:

```bash theme={null}
curl https://app.vensight.ai/api/v1/vendors \
  -H "Authorization: Bearer vsk_live_your_key_here"
```

`X-Api-Key: vsk_live_…` is accepted instead, for tools that cannot set an
`Authorization` header. A workspace administrator creates keys under **Settings →
Developers**. A key reads the whole workspace. See [Authentication](https://docs.vensight.ai/authentication.md).

## Collections

Seventeen collections, plus the change feed. Each has two endpoints: **List**
(`GET /v1/<collection>`) and **Retrieve** (`GET /v1/<collection>/{id}`). How the
collections relate to each other is on the [Data model](https://docs.vensight.ai/data-model.md) page.

| Theme | Collections |
| - | - |
| Vendors | [vendors](https://docs.vensight.ai/api-reference/vendors/list.md), [relationships](https://docs.vensight.ai/api-reference/relationships/list.md), [subprocessors](https://docs.vensight.ai/api-reference/subprocessors/list.md), [watchlist alerts](https://docs.vensight.ai/api-reference/watchlist-alerts/list.md), [screening answers](https://docs.vensight.ai/api-reference/screening-answers/list.md) |
| Due diligence | [review cycles](https://docs.vensight.ai/api-reference/review-cycles/list.md), [document requirements](https://docs.vensight.ai/api-reference/document-requirements/list.md), [documents](https://docs.vensight.ai/api-reference/documents/list.md), [document submissions](https://docs.vensight.ai/api-reference/document-submissions/list.md), [questions](https://docs.vensight.ai/api-reference/questions/list.md), [question answers](https://docs.vensight.ai/api-reference/question-answers/list.md) |
| Contracts, invoices and incidents | [contracts](https://docs.vensight.ai/api-reference/contracts/list.md), [invoices](https://docs.vensight.ai/api-reference/invoices/list.md), [incidents](https://docs.vensight.ai/api-reference/incidents/list.md), [requests](https://docs.vensight.ai/api-reference/requests/list.md) |
| History and changes | [events](https://docs.vensight.ai/api-reference/events/list.md), [settings changes](https://docs.vensight.ai/api-reference/settings-changes/list.md), and the change feed, [changes](https://docs.vensight.ai/api-reference/changes/list.md) |

## Response shapes

A list:

```json theme={null}
{ "object": "list", "resource": "vendors", "data": [ … ], "has_more": true, "next_cursor": "MjAyNi0w…" }
```

One record. `data` is an object here, not an array:

```json theme={null}
{ "object": "vendors", "data": { "id": "6f1c2a4e-…", … } }
```

An error, always JSON:

```json theme={null}
{ "error": { "code": "invalid_query", "message": "…" } }
```

Money is in **cents**. Dates are `YYYY-MM-DD`, and timestamps are ISO 8601 in UTC. A field
with nothing in it is `null`, and is still present.

## Paging and filtering

* `limit`: 1 to 200, default 50.
* `cursor`: the `next_cursor` from the previous page. Keep going until `has_more` is
  `false`.
* `updated_since`: only records changed at or after this time.
* `vendor_id`, and a few exact-match filters per collection, listed on each endpoint.

Records come back oldest change first. An unknown filter is refused with a `400`, not
ignored. See [Pagination](https://docs.vensight.ai/pagination.md).

## Errors

| Status | Codes | Retry? |
| - | - | - |
| `400` | `invalid_query`, `invalid_id` | No. Fix the request. |
| `401` | `missing_credential`, `invalid_credential` | No. Fix the key. |
| `404` | `not_found`, `unknown_resource` | No. |
| `429` | Not returned today | Yes, after `Retry-After`. |
| `502` | `read_failed` | Yes, with backoff. |
| `503` | `not_yet_provisioned`, `unavailable` | Yes, after `Retry-After` if present. |

See [Errors](https://docs.vensight.ai/errors.md) for what each code means.

## Versioning

Every response carries `X-Vensight-Api-Version: 1`. Adding things is not a breaking change;
removing or changing them is, and would come as a new version. See
[Versioning and changelog](https://docs.vensight.ai/versioning.md).

## Webhooks

Vensight can push every change to your endpoint. The payload pages under **Webhooks** in
this sidebar show exactly what is sent, and the [Event catalog](https://docs.vensight.ai/event-catalog.md) lists every
event. See the [Webhooks guide](https://docs.vensight.ai/webhooks.md) for signing and retries.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.