curl --request POST \
--url https://app.visotrust.com/api/v1/assessments \
--header 'Content-Type: multipart/form-data' \
--form 'request=<string>' \
--form 'files=<string>' \
--form files.items='@example-file'import requests
url = "https://app.visotrust.com/api/v1/assessments"
files = { "files.items": ("example-file", open("example-file", "rb")) }
payload = {
"request": "<string>",
"files": "<string>"
}
response = requests.post(url, data=payload, files=files)
print(response.text)const form = new FormData();
form.append('request', '<string>');
form.append('files', '<string>');
form.append('files.items', '{
"fileName": "example-file"
}');
const options = {method: 'POST'};
options.body = form;
fetch('https://app.visotrust.com/api/v1/assessments', 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.visotrust.com/api/v1/assessments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.visotrust.com/api/v1/assessments"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.visotrust.com/api/v1/assessments")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.visotrust.com/api/v1/assessments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"id": 123,
"sentBy": {
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"businessUnit": "<string>"
},
"requestedArtifactCollection": true,
"status": "NOT_ASSESSED",
"sentToEmail": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"summary": "<string>",
"expirationDate": "2023-11-07T05:31:56Z",
"completedDate": "2023-11-07T05:31:56Z",
"requestedAuditTypes": [
"<string>"
],
"aiProcessingOnly": true,
"noVendorResponseAction": "CLOSE_COLLECTION_REQUEST",
"collectionTimeline": "SEVEN_DAYS",
"followupTimeline": "SEVEN_DAYS",
"followupRiskThreshold": "NO_CONTEXT",
"followupType": "MANUAL",
"statusHistories": [
{
"date": "2023-11-07T05:31:56Z",
"status": "NOT_ASSESSED"
}
],
"createdReason": "INITIAL_ASSESSMENT",
"assessmentType": "<string>",
"sentToFirstName": "<string>",
"sentToLastName": "<string>",
"recommendations": [
{
"description": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"recommendationType": "EXPIRED"
}
],
"updatedDate": "2023-11-07T05:31:56Z",
"phaseDate": "2023-11-07T05:31:56Z"
}Start an Assessment
curl --request POST \
--url https://app.visotrust.com/api/v1/assessments \
--header 'Content-Type: multipart/form-data' \
--form 'request=<string>' \
--form 'files=<string>' \
--form files.items='@example-file'import requests
url = "https://app.visotrust.com/api/v1/assessments"
files = { "files.items": ("example-file", open("example-file", "rb")) }
payload = {
"request": "<string>",
"files": "<string>"
}
response = requests.post(url, data=payload, files=files)
print(response.text)const form = new FormData();
form.append('request', '<string>');
form.append('files', '<string>');
form.append('files.items', '{
"fileName": "example-file"
}');
const options = {method: 'POST'};
options.body = form;
fetch('https://app.visotrust.com/api/v1/assessments', 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.visotrust.com/api/v1/assessments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.visotrust.com/api/v1/assessments"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.visotrust.com/api/v1/assessments")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.visotrust.com/api/v1/assessments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"request\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"id": 123,
"sentBy": {
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"businessUnit": "<string>"
},
"requestedArtifactCollection": true,
"status": "NOT_ASSESSED",
"sentToEmail": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"summary": "<string>",
"expirationDate": "2023-11-07T05:31:56Z",
"completedDate": "2023-11-07T05:31:56Z",
"requestedAuditTypes": [
"<string>"
],
"aiProcessingOnly": true,
"noVendorResponseAction": "CLOSE_COLLECTION_REQUEST",
"collectionTimeline": "SEVEN_DAYS",
"followupTimeline": "SEVEN_DAYS",
"followupRiskThreshold": "NO_CONTEXT",
"followupType": "MANUAL",
"statusHistories": [
{
"date": "2023-11-07T05:31:56Z",
"status": "NOT_ASSESSED"
}
],
"createdReason": "INITIAL_ASSESSMENT",
"assessmentType": "<string>",
"sentToFirstName": "<string>",
"sentToLastName": "<string>",
"recommendations": [
{
"description": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"recommendationType": "EXPIRED"
}
],
"updatedDate": "2023-11-07T05:31:56Z",
"phaseDate": "2023-11-07T05:31:56Z"
}Body
Information necessary to start the assessment.
Recipient details are optional. When all of recipientEmail, recipientFirstName, and recipientLastName
are omitted, the assessment is started in research mode (no vendor contact). Research-mode assessments
may also include any combination of uploaded files and/or publicDocumentUrls; if neither is provided,
VISO will run public information search only.
Example (vendor-contact assessment): { "relationshipId": 1, "recipientEmail": "dan@example.com", "recipientFirstName": "Dan", "recipientLastName": "Example", "publicDocumentUrls": ["google.com"], "followupType": "MANUAL", "followupRiskThreshold": null, "followupTimeline": null, "collectionTimeline": null, "noVendorResponseAction": null, "aiProcessingOnly": false, "questionnaires": ["00000000-0000-0000-0000-000000000000"] }
Example (research-only assessment): { "relationshipId": 1 }
Any files to associate with the assessment
Response
OK
Show child attributes
Show child attributes
NOT_ASSESSED, AWAITING_REMEDIATION, STARTED, REVIEW_STARTED, AUDIT_COMPLETED, COMPLETED, CANCELLED, DELETED, COLLECTING_INFORMATION, EXPIRED CLOSE_COLLECTION_REQUEST, NOTIFY_ME SEVEN_DAYS, FOURTEEN_DAYS, THIRTY_DAYS, SIXTY_DAYS, NINETY_DAYS, ONE_HUNDRED_TWENTY_DAYS SEVEN_DAYS, FOURTEEN_DAYS, THIRTY_DAYS, SIXTY_DAYS, NINETY_DAYS NO_CONTEXT, LOW, MEDIUM, HIGH, EXTREME MANUAL, AUTOMATIC, CONCIERGE Show child attributes
Show child attributes
INITIAL_ASSESSMENT, ARTIFACTS_EXPIRED, RECERTIFICATION_INITIATED, BUSINESS_CASE_OR_DATA_TYPES_CHANGED, THIRD_PARTY_CONTACT_UPDATED, ARTIFACTS_UPLOADED_ON_RELATIONSHIP, REMEDIATION, RISK_ADVISORY_RESPONSE, INSTANT_ANALYSIS, PUBLIC_SEARCH Show child attributes
Show child attributes