Authentication
All API requests require authentication via API key or OAuth 2.0 bearer tokens.
Getting Your API Key
To access the QuantumLogic API, you'll need an API key. Contact our team to
request access. Once approved, you'll receive your API key which must be
included in the Authorization header of every request.
Exchange your API credentials for a temporary access token. Tokens expire after 24 hours. Use the refresh token endpoint to obtain a new token without re-authenticating.
Request Body
"api_key": "ql_key_xxxxxxxxxxxxx",
"client_secret": "ql_secret_xxxxxxxxxxxxx"
}
Response
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"token_type": "Bearer",
"expires_in": 86400,
"scope": "read write"
}
Security & Threat Intelligence
Real-time vulnerability scanning, threat detection, and security intelligence endpoints.
Initiate a vulnerability scan against a target system or application. Results include CVSS scores, remediation guidance, and compliance mapping.
Parameters
| Parameter | Type | Description |
|---|---|---|
target_urlREQUIRED |
string | The URL or IP address to scan |
scan_typeOPTIONAL |
string | quick, full, or compliance (default: quick) |
callback_urlOPTIONAL |
string | Webhook URL for async scan completion notification |
Example: cURL
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"target_url": "https://example.com", "scan_type": "full"}'
Example: Python
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
}
data = {
"target_url": "https://example.com",
"scan_type": "full"
}
response = requests.post(
"https://api.quantumlogic.com/v1/security/scan",
headers=headers,
json=data
)
print(response.json())
Query our threat intelligence database for information about IP addresses, domains, file hashes, and known threat actors.
Parameters
| Parameter | Type | Description |
|---|---|---|
queryREQUIRED |
string | IP address, domain, or file hash to look up |
typeREQUIRED |
string | ip, domain, or hash |
Example: Node.js
const response = await axios.get(
"https://api.quantumlogic.com/v1/security/threat-intel",
{
headers: { Authorization: "Bearer YOUR_TOKEN" },
params: { query: "192.168.1.1", type: "ip" }
}
);
console.log(response.data);
Infrastructure Management
Monitor, manage, and automate your infrastructure through our API.
Retrieve real-time health status of your managed infrastructure, including uptime, resource utilization, and active alerts.
Example: Go
import (
"fmt"
"net/http"
)
func main() {
client := &http.Client{}
req, _ := http.NewRequest("GET", "https://api.quantumlogic.com/v1/infrastructure/health", nil)
req.Header.Set("Authorization", "Bearer YOUR_TOKEN")
// Handle response...
}
Compliance & Audit
Access compliance reports, audit logs, and certification status.
Get current compliance status across all monitored frameworks (FedRAMP, SOC 2, PCI-DSS, HIPAA, CMMC).
Example: cURL
-H "Authorization: Bearer YOUR_TOKEN"
Analytics & Reporting
Generate reports, query metrics, and access analytics dashboards programmatically.
Generate a custom security or compliance report. Reports can be delivered via email, webhook, or direct download.
Parameters
| Parameter | Type | Description |
|---|---|---|
report_typeREQUIRED |
string | security, compliance, or performance |
formatOPTIONAL |
string | pdf, json, or csv (default: pdf) |
email_toOPTIONAL |
string | Email address to send the report to |