Skip to main content

API Examples - List ASM Projects using PowerShell and cURL

  • June 16, 2024
  • 0 replies
  • 21 views

vaskenh
Staff
Forum|alt.badge.img+13

The following two examples can be used as a reference for basic calls to the ASM API.  

In both examples, the keys are fabricated and shown for the purpose of demonstrating how to correctly set the headers for each call.

 

 

curl https://asm-api.advantage.mandiant.com/api/v1/projects -H 'INTRIGUE_ACCESS_KEY: myaccesskey' -H 'INTRIGUE_SECRET_KEY: mysecretkey'

 

 

Invoke-WebRequest http://asm-api.advantage.mandiant.com/api/v1/projects -Headers @{'INTRIGUE_ACCESS_KEY' = 'myaccesskey'; 'INTRIGUE_SECRET_KEY' = 'mysecretkey'} -UseBasicParsing