import AIInbx from 'aiinbx';const client = new AIInbx({ apiKey: process.env['AI_INBX_API_KEY'], // This is the default and can be omitted});const domains = await client.domains.list();console.log(domains.domains);
List all domains belonging to the API key’s organization
GET
/
domains
JavaScript
import AIInbx from 'aiinbx';const client = new AIInbx({ apiKey: process.env['AI_INBX_API_KEY'], // This is the default and can be omitted});const domains = await client.domains.list();console.log(domains.domains);