You can use our API to get lists of the items that you've created in the dashboard.
To get started, first create an API token at https://my.opalstack.com/tokens/.
After you have a token you can use any scripting language that can communicate with a REST API.
Here's a short Python3 example to print a list of email addresses - it used the 3rd-party "requests" library so you'll need to have that installed if you're running this locally.:
import requests
OPAL_TOKEN = 'YOUR_TOKEN_HERE'
OPAL_HEADERS = {
'Authorization': f'Token {OPAL_TOKEN}',
'Content-Type':'application/json'
}
emails = requests.get(
'https://my.opalstack.com/api/v0/mail/list/',
headers=OPAL_HEADERS
).json()['mails']
for addr in sorted([i['address'] for i in emails]):
print(addr)
This same technique can be used to get info from any of the various list
methods in the API.
Sometimes the results will include UUIDs for related objects - to get the details for those, use the appropriate API read
method for whatever type of object.