API Explorer
Interactive API Explorer
Try out the TrustView API directly from your browser. Click Authorize, enter your API key, then expand any endpoint and click Try it out.
Code Examples
Pick your language and copy the snippet. Replace tvw_sk_live_your_key_here with your actual API key.
Vendors
List vendors
GET /external/smart-inventory/vendor/list
Create a vendor
POST /external/smart-inventory/vendor/new
const res = await fetch(
"https://nightly.api.trustview.eu/external/smart-inventory/vendor/new",
{
method: "POST",
headers: {
"X-API-Key": "tvw_sk_live_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Acme Cloud Services",
description: "<p>Primary cloud vendor</p>",
active: true,
}),
}
);
const vendor = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/vendor/new');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-API-Key: tvw_sk_live_your_key_here',
'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'name' => 'Acme Cloud Services',
'description' => '<p>Primary cloud vendor</p>',
'active' => true,
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
Get a vendor
GET /external/smart-inventory/vendor/{vendor}/item
Update a vendor
PATCH /external/smart-inventory/vendor/{vendor}/edit
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/edit');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-API-Key: tvw_sk_live_your_key_here',
'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['name' => 'Acme Cloud Services (updated)']));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
Delete a vendor
DELETE /external/smart-inventory/vendor/{vendor}/delete
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/vendor/6a054b8b9ae1a/delete');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
Assets
List assets
GET /external/smart-inventory/asset/list
Create an asset
POST /external/smart-inventory/asset/new
const res = await fetch(
"https://nightly.api.trustview.eu/external/smart-inventory/asset/new",
{
method: "POST",
headers: {
"X-API-Key": "tvw_sk_live_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Customer Database",
description: "<p>Main customer data store</p>",
active: true,
}),
}
);
const asset = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/asset/new');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-API-Key: tvw_sk_live_your_key_here',
'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'name' => 'Customer Database',
'description' => '<p>Main customer data store</p>',
'active' => true,
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
Get an asset
GET /external/smart-inventory/asset/{asset}/item
Update an asset
PATCH /external/smart-inventory/asset/{asset}/edit
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/edit');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-API-Key: tvw_sk_live_your_key_here',
'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['name' => 'Customer Database (EU region)']));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
Delete an asset
DELETE /external/smart-inventory/asset/{asset}/delete
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/asset/6a054b8b9ae1a/delete');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
Processes (ROPA)
List processes
GET /external/smart-inventory/process/list
Create a process
POST /external/smart-inventory/process/new
const res = await fetch(
"https://nightly.api.trustview.eu/external/smart-inventory/process/new",
{
method: "POST",
headers: {
"X-API-Key": "tvw_sk_live_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Employee onboarding",
description: "<p>Onboarding workflow</p>",
active: true,
}),
}
);
const process = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/process/new');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-API-Key: tvw_sk_live_your_key_here',
'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'name' => 'Employee onboarding',
'description' => '<p>Onboarding workflow</p>',
'active' => true,
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
Get a process
GET /external/smart-inventory/process/{ropa}/item
Update a process
PATCH /external/smart-inventory/process/{ropa}/edit
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/edit');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-API-Key: tvw_sk_live_your_key_here',
'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['name' => 'Employee onboarding (revised)']));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
Delete a process
DELETE /external/smart-inventory/process/{ropa}/delete
$ch = curl_init('https://nightly.api.trustview.eu/external/smart-inventory/process/6a054b8b9ae1a/delete');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-Key: tvw_sk_live_your_key_here']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
Tasks
List tasks
GET /external/task/framework/{framework}/list
Create a task
POST /external/task/framework/{framework}/new
curl -X POST https://nightly.api.trustview.eu/external/task/framework/1/new \
-H "X-API-Key: tvw_sk_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"title": "Review data retention policy",
"description": "Annual review of retention schedules",
"priority": 3,
"labels": [],
"startDate": "2026-06-01",
"dueDate": "2026-06-30",
"departmentId": 1,
"gaps": []
}'
const res = await fetch(
"https://nightly.api.trustview.eu/external/task/framework/1/new",
{
method: "POST",
headers: {
"X-API-Key": "tvw_sk_live_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
title: "Review data retention policy",
description: "Annual review of retention schedules",
priority: 3,
labels: [],
startDate: "2026-06-01",
dueDate: "2026-06-30",
departmentId: 1,
gaps: [],
}),
}
);
const task = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/task/framework/1/new');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-API-Key: tvw_sk_live_your_key_here',
'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'title' => 'Review data retention policy',
'description' => 'Annual review of retention schedules',
'priority' => 3,
'labels' => [],
'startDate' => '2026-06-01',
'dueDate' => '2026-06-30',
'departmentId' => 1,
'gaps' => [],
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
import requests
response = requests.post(
"https://nightly.api.trustview.eu/external/task/framework/1/new",
headers={"X-API-Key": "tvw_sk_live_your_key_here"},
json={
"title": "Review data retention policy",
"description": "Annual review of retention schedules",
"priority": 3,
"labels": [],
"startDate": "2026-06-01",
"dueDate": "2026-06-30",
"departmentId": 1,
"gaps": [],
},
)
task = response.json()
Get a task
GET /external/task/{taskUniqueId}/item
Update a task
PATCH /external/task/{taskUniqueId}/edit
const res = await fetch(
"https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/edit",
{
method: "PATCH",
headers: {
"X-API-Key": "tvw_sk_live_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({ title: "Review data retention policy (Q2)" }),
}
);
const task = await res.json();
$ch = curl_init('https://nightly.api.trustview.eu/external/task/6a054b8b9ae1a/edit');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-API-Key: tvw_sk_live_your_key_here',
'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(['title' => 'Review data retention policy (Q2)']));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = json_decode(curl_exec($ch));
curl_close($ch);
Delete a task
DELETE /external/task/{taskUniqueId}/delete