Invite people from a spreadsheet
POST
/v1/data-import/people
const url = 'https://api.varman.io/v1/data-import/people';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"fileName":"vendors.csv","fileData":"example","mapping":{"name":"Vendor Name","owner":"Owner"},"commit":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/data-import/people \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "fileName": "vendors.csv", "fileData": "example", "mapping": { "name": "Vendor Name", "owner": "Owner" }, "commit": false }'Upload a CSV or XLSX file (base64, up to 1000 rows). Without commit it returns the headers, a column mapping matched from the headers (common names from other compliance tools included) and each row with validation errors, warnings and a.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
fileName
required
Original file name, ending in .csv or .xlsx
string
Example
vendors.csvfileData
required
Base64-encoded file contents (5 MB and 1000 rows at most)
string
mapping
Field key to column header. Leave out to get a suggested mapping matched from the headers.
object
key
additional properties
string
Example
{ "name": "Vendor Name", "owner": "Owner"}commit
False (default) returns a preview with per-row validation; true creates the records.
boolean