import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const organizationListResponse of client.organizations.list()) {
console.log(organizationListResponse.id);
}
Returns all organizations the authenticated user belongs to.
GET
/
organizations
JavaScript
Copy
import Nuntly from '@nuntly/sdk';
const client = new Nuntly({
apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const organizationListResponse of client.organizations.list()) {
console.log(organizationListResponse.id);
}