Overview
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).
Info
Replace YOUR-API-KEY with your actual API key in order for these commands to work. You'll find your API key in the portal.
Windows (powershell)
Invoke-RestMethod `
-Uri "https://aitm.lab539.io/v1.0/list" `
-Method Get `
-Headers @{Authorization = 'YOUR-API-KEY'}
Invoke-RestMethod `
-Uri "https://aitm.lab539.io/v1.0/search/ip/192.241.159.200" `
-Method Get `
-Headers @{Authorization = 'YOUR-API-KEY'}
Invoke-RestMethod `
-Uri "https://aitm.lab539.io/v1.0/search/hostname/onlineoffice" `
-Method Get `
-Headers @{Authorization = 'YOUR-API-KEY'}
/ Mac/Linux (curl)
curl -s \
-H "Authorization: Bearer YOUR-API-KEY" \
"https://aitm.lab539.io/v1.0/search/ip/192.241.159.200" \
| jq
curl -s \
-H "Authorization: Bearer YOUR-API-KEY" \
"https://aitm.lab539.io/v1.0/search/hostname/onlineoffice" \
| jq
Tip
We use | jq in the examples above to "pretty-print" the JSON response. If you don't have jq installed, you can remove that part of the command.
Note
For full API functionality view our Swagger documentation