How do I get a list of all stopped or problematic accounts?

You can get information for all accounts using the Return All Accounts endpoint. In the response, filter the sync_state field for the account's status. View the sample below.

[
{
"account_id": "3aols9hb9fkqtso7zkzcmwgwv",
"billing_state": "paid",
"email": "demo@nylas.com",
"id": "3aols9hb9fkqtso7zkzcmwgwv",
"provider": "gmail",
"sync_state": "running",
"trial": false,
"authentication_type": "password"
},
{
"account_id": "4w2bqqk3au75ozafzpcf8jl8y",
"billing_state": "paid",
"email": "realestate.demo@nylas.com",
"id": "4w2bqqk3au75ozafzpcf8jl8y",
"provider": "gmail",
"sync_state": "running",
"trial": false,
"authentication_type": "password"
},
{
"account_id": "aofoxyf3ozt3cvtssjjnq9mku",
"billing_state": "paid",
"email": "healthcare.demo@nylas.com",
"id": "aofoxyf3ozt3cvtssjjnq9mku",
"metadata": {
"your-key": "string"
},
"provider": "gmail",
"sync_state": "stopped",
"trial": false,
"authentication_type": "token"
}
]

Resources

 

 

Updated

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.