Comprehensive API reference for integrating with our security platform. Access real-time data, manage agents, and automate security workflows.
Secure API access with API keys and OAuth 2.0
POST /api/agent/generate-key-with-links
Authorization: Bearer {your-api-key}
Content-Type: application/json
{
"agent_id": "unique-agent-identifier",
"permissions": ["read", "write", "execute"]
}
import requests
API_KEY = 'your-api-key'
BASE_URL = 'https://vms.datainsight.id/api'
headers = {
'Authorization': f'Bearer {API_KEY}',
'Content-Type': 'application/json'
}
# Get agent tasks
response = requests.get(
f'{BASE_URL}/agent/tasks/machine-123',
headers=headers
)
print(response.json())
const axios = require('axios');
const API_KEY = 'your-api-key';
const BASE_URL = 'https://vms.datainsight.id/api';
const client = axios.create({
baseURL: BASE_URL,
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json'
}
});
// Send heartbeat
client.post('/agent/heartbeat', {
agent_id: 'agent-123',
status: 'active',
timestamp: Date.now()
})
.then(response => console.log(response.data))
.catch(error => console.error(error));
Our developer support team is here to help you integrate our API successfully. Get personalized assistance and code examples tailored to your use case.