Get alienvault API token with postman.
Go to your AV instance and generate your API username and password.
Open postman.
Create a new configuration.
Change the method of the request to POST
Enter the URL for the API: https://YOURDOMAIN.alienvault.cloud/api/2.0/oauth/token
Go the PARAMS and enter:
Key: grant_type
Value: client_credentials
Go to AUTHORIZATION and Select:
Type: Basic auth
Username: YOUR-API-USERNAME
Password: YOUR-API-PASSWORD
Click on SEND and obtain the token.
To query the API:
Create a new configuration.
Change the method of the request to GET
Enter the endpoint you want to query, for instance: https://YOURDOMAIN.alienvault.cloud/api/2.0/alarms
Go to HEADERS and enter:
Key: Authorization
Value: Bearer TOKEN-YOU-OBTAINED-PREVIOUSLY
Click on SEND and obtain your data.





