import Ivy from '@getivy/node-sdk';const client = new Ivy({ apiKey: process.env['IVY_API_KEY'], // This is the default and can be omitted});const accounts = await client.data.accounts.list({ sessionId: 'sessionId' });console.log(accounts.accounts);
Retrieves the list of accounts for a given data session.
POST
/
api
/
service
/
data
/
accounts
/
list
JavaScript
Copy
Ask AI
import Ivy from '@getivy/node-sdk';const client = new Ivy({ apiKey: process.env['IVY_API_KEY'], // This is the default and can be omitted});const accounts = await client.data.accounts.list({ sessionId: 'sessionId' });console.log(accounts.accounts);