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

Base address

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

Authentication

Send an API key as a bearer token:
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.

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 page.

Response shapes

A list:
One record. data is an object here, not an array:
An error, always JSON:
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.

Errors

See Errors 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.

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 lists every event. See the Webhooks guide for signing and retries.