📄 API

AiTM API Documentation

You'll find our API documentation on SwaggerHub:

View API Documentation


Quick Reference

If you just need a quick reference to get you started here are a couple of examples (you’ll find your API key in the portal).


Windows (powershell)

List all detections from the last 7 days:

Invoke-RestMethod -Uri "https://aitm.lab539.io/v1.0/list" -Method Get -Headers @{Authorization = 'YOUR-API-KEY-HERE'}

Search for the IP 192.241.159.200

Invoke-RestMethod -Uri "https://aitm.lab539.io/v1.0/search/ip/192.241.159.200" -Method Get -Headers @{Authorization = 'YOUR-API-KEY-HERE'}

Search for the string "onlineoffice" in hostnames using curl (Mac/Linux)

Invoke-RestMethod -Uri "https://aitm.lab539.io/v1.0/search/hostname/onlineoffice" -Method Get -Headers @{Authorization = 'YOUR-API-KEY-HERE'}


Mac/Linux (curl)

List all detections from the last 7 days:

curl -s -H "Authorization: Bearer YOUR-API-KEY-HERE" "https://aitm.lab539.io/v1.0/list" | jq

Search for the IP 192.241.159.200

curl -s -H "Authorization: Bearer YOUR-API-KEY-HERE" "https://aitm.lab539.io/v1.0/search/ip/192.241.159.200" | jq

Search for the string "onlineoffice" in hostnames using curl (Mac/Linux)

curl -s -H "Authorization: Bearer YOUR-API-KEY-HERE" "https://aitm.lab539.io/v1.0/search/hostname/onlineoffice" | jq