Complete AMTIA RESTful API reference to integrate, automate, and orchestrate your entire cybersecurity ecosystem.
Obtain an access token by sending your API credentials. The token is valid for 1 hour and must be included in the Authorization header of each request.
curl -X POST https://api.amtia.net/v1/auth/token \
-H "Content-Type: application/json" \
-d '{
"api_key": "your_api_key",
"secret": "your_secret"
}'
{
"token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_in": 3600,
"token_type": "Bearer"
}
Usage: Include the token in your requests:
Authorization: Bearer eyJhbGciOiJSUzI1NiIs...
Available events:
risk.created
New risk created
risk.updated
Risk updated
incident.created
New incident created
incident.resolved
Incident resolved
assessment.completed
Assessment completed
audit.finding
New audit finding
from amtia import Client
client = Client(
api_key="your_api_key",
secret="your_secret"
)
# List risks
risks = client.risks.list()
for risk in risks:
print(f"{risk.name}: {risk.level}")
# Create an incident
incident = client.incidents.create(
title="Intrusion attempt",
severity="high",
description="IDS alert detected"
)
import { AmtiaClient } from '@amtia/sdk';
const client = new AmtiaClient({
apiKey: 'your_api_key',
secret: 'your_secret'
});
// List frameworks
const frameworks = await client
.frameworks.list();
// Assess compliance
const assessment = await client
.assessments.create({
frameworkId: 'iso-27001',
scope: 'full'
});
use Amtia\Client;
$client = new Client([
'api_key' => 'your_api_key',
'secret' => 'your_secret'
]);
// List assets
$assets = $client->assets()->list();
// Get vulnerabilities
$vulns = $client->assets()
->vulnerabilities($assetId);
foreach ($vulns as $vuln) {
echo $vuln->severity . "\n";
}
| Code | Status |
|---|---|
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 429 | Too Many Requests |
| 500 | Internal Server Error |
{
"error": {
"code": 401,
"status": "Unauthorized",
"message": "Invalid or expired authentication token.",
"request_id": "req_abc123def456"
}
}
Generate your API key from your AMTIA console and start integrating in minutes.