API Documentation
The Swagger documentation for the Lab539 AiTM API can be found here:
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)
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)
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