Appearance
Configuration Examples
Example integrations and configurations for the Pradeo Security API.
Environment Variables
Store your endpoint and credentials in environment variables:
bash
export API_URL="https://api.<tenant>.pradeo-security.com"
export ACCESS_KEY="your-access-key"
export SECRET_KEY="your-secret-key"Using with curl
bash
curl -X GET "$API_URL/v2/devices" \
-H "x-access-key: $ACCESS_KEY" \
-H "x-secret-key: $SECRET_KEY"Using with JavaScript
javascript
// Configuration
const config = {
baseUrl: 'https://api.<tenant>.pradeo-security.com',
accessKey: process.env.ACCESS_KEY,
secretKey: process.env.SECRET_KEY,
};
async function getDevices() {
const response = await fetch(`${config.baseUrl}/v2/devices`, {
headers: {
'x-access-key': config.accessKey,
'x-secret-key': config.secretKey,
'Content-Type': 'application/json',
},
});
return response.json();
}Example Integration
javascript
const ACCESS_KEY = process.env.PRADEO_ACCESS_KEY;
const SECRET_KEY = process.env.PRADEO_SECRET_KEY;
async function getDevices() {
const response = await fetch(
'https://api.<tenant>.pradeo-security.com/v2/devices',
{
headers: {
'x-access-key': ACCESS_KEY,
'x-secret-key': SECRET_KEY,
},
},
);
return response.json();
}Next Steps
- MDM Integration - Learn about device management
- MTI Integration - Learn about application analysis
- API Reference - Explore all available endpoints
