curl --request POST \
--url https://api.trycomp.ai/v1/device-agent/manual-evidence \
--header 'Content-Type: application/json' \
--data '
{
"organizationId": "org_abc123",
"files": [
{
"fileName": "filevault-settings.png",
"fileType": "image/png",
"fileData": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=="
}
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
organizationId: 'org_abc123',
files: [
{
fileName: 'filevault-settings.png',
fileType: 'image/png',
fileData: 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=='
}
]
})
};
fetch('https://api.trycomp.ai/v1/device-agent/manual-evidence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/device-agent/manual-evidence"
payload = {
"organizationId": "org_abc123",
"files": [
{
"fileName": "filevault-settings.png",
"fileType": "image/png",
"fileData": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=="
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "cmt_abc123def456",
"content": "This task needs to be completed by end of week",
"author": {
"id": "usr_abc123def456",
"name": "John Doe",
"email": "john.doe@company.com",
"image": "https://example.com/avatar.jpg",
"deactivated": false
},
"attachments": [
{
"id": "att_abc123def456",
"name": "document.pdf",
"type": "application/pdf",
"createdAt": "2024-01-15T10:30:00Z"
}
],
"createdAt": "2024-01-15T10:30:00Z",
"editedAt": null
}Submit device settings screenshots | Comp AI API
Posts the signed-in employee’s device settings screenshots as a comment on the organization’s Secure Devices task, in place of installing the device agent.
curl --request POST \
--url https://api.trycomp.ai/v1/device-agent/manual-evidence \
--header 'Content-Type: application/json' \
--data '
{
"organizationId": "org_abc123",
"files": [
{
"fileName": "filevault-settings.png",
"fileType": "image/png",
"fileData": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=="
}
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
organizationId: 'org_abc123',
files: [
{
fileName: 'filevault-settings.png',
fileType: 'image/png',
fileData: 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=='
}
]
})
};
fetch('https://api.trycomp.ai/v1/device-agent/manual-evidence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/device-agent/manual-evidence"
payload = {
"organizationId": "org_abc123",
"files": [
{
"fileName": "filevault-settings.png",
"fileType": "image/png",
"fileData": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=="
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "cmt_abc123def456",
"content": "This task needs to be completed by end of week",
"author": {
"id": "usr_abc123def456",
"name": "John Doe",
"email": "john.doe@company.com",
"image": "https://example.com/avatar.jpg",
"deactivated": false
},
"attachments": [
{
"id": "att_abc123def456",
"name": "document.pdf",
"type": "application/pdf",
"createdAt": "2024-01-15T10:30:00Z"
}
],
"createdAt": "2024-01-15T10:30:00Z",
"editedAt": null
}Body
Organization the evidence is for. Must be the caller's active organization: a session switched to another organization (e.g. in another tab) is rejected instead of posting the screenshots there.
"org_abc123"
Screenshots of the device settings
1 - 10 elementsShow child attributes
Show child attributes
Response
The comment carrying the screenshots
Unique identifier for the comment
"cmt_abc123def456"
Comment content
"This task needs to be completed by end of week"
Comment author information
Show child attributes
Show child attributes
Attachment metadata (URLs generated on-demand)
Show child attributes
Show child attributes
Comment creation timestamp
"2024-01-15T10:30:00Z"
When the author last changed the content; null if the comment was never edited
null
Was this page helpful?

