To get a list of all accounts you'd need to use Pagination as done in the following example:
https://api.nylas.com/a/btt7tg9XXXXXXXXXsv/accounts?offset=0&limit=100
https://api.nylas.com/a/btt7tg9XXXXXXXXXsv/accounts?offset=101&limit=100
Please note that this will return a list of all accounts authenticated with your application to date.
Script to list all paid/canceled accounts:
If you want to get a list of all accounts that are not in a `deleted` state, you can use this Python script to list them. This script prints the total number of paid/canceled accounts for an application along with a list of all accounts.
Replace the <CLIENT_ID>
and <CLIENT_SECRET>
with the values for your application.
Resources
How do I get a list of all stopped or problematic accounts?
Updated
Comments
0 comments
Please sign in to leave a comment.