curl, and a loop. Everything else on this site is detail.
1
Get a key
A workspace administrator opens Vensight, goes to Settings → Developers, and
clicks Create key. Name it after the thing that will use it —
Warehouse loader,
GRC sync — because that name is all anyone will have to tell four keys apart later.2
Make a request
Put the address and your key in your shell once. Every example below uses them.A page of records comes back:If you get a
401, check Authentication. If you get a 400, the
message names the parameter it did not like — see Errors.3
Walk the whole collection
Every list response has the same five fields, so one function reads any collection.Records come back oldest change first. That ordering is what makes the walk safe
while the data is moving underneath you — see Pagination.
4
Keep it current
Do the full walk once. After that, ask only for what changed:Take that timestamp from the highest
updated_at you have successfully stored,
not from your own clock, so a job that dies halfway resumes from what it actually
stored. (Events, settings changes, screening answers and the change feed are never
edited after they are written, so they use occurred_at or answered_at instead; see
Pagination.)For near-real-time, register a webhook and keep the updated_since pull
as a nightly check. Webhooks keep you current; the pull catches anything missed.What you can read
Seventeen collections, plus the change feed:- Vendors:
vendors,relationships,subprocessors,watchlist-alerts,screening-answers - Due diligence:
review-cycles,document-requirements,documents(document requests),document-submissions,questions,question-answers - Contracts, invoices and incidents:
contracts,invoices,incidents,requests - History:
events(each vendor’s timeline) andsettings-changes - The change feed:
changes, one entry for every change across all of them
Keep the base address in configuration rather than in your code, so it is one line to
change. Issue one key per system that uses the API, so you can revoke one without
breaking the others.