import AIInbx from 'aiinbx';const client = new AIInbx({ apiKey: process.env['AI_INBX_API_KEY'], // This is the default and can be omitted});const domain = await client.domains.create({ domain: 'sfN2.l.iJR-BU.u9JV9.a.m.o2D-4b-Jd.0Z-kX.L.n.S.f.ukBXb',});console.log(domain.domainId);
Create a new domain for the organization and return required DNS records to configure.
POST
/
domains
JavaScript
Copy
import AIInbx from 'aiinbx';const client = new AIInbx({ apiKey: process.env['AI_INBX_API_KEY'], // This is the default and can be omitted});const domain = await client.domains.create({ domain: 'sfN2.l.iJR-BU.u9JV9.a.m.o2D-4b-Jd.0Z-kX.L.n.S.f.ukBXb',});console.log(domain.domainId);