Show examples in:
List all invitations

Returns

Returns an array of site_invitation resource objects.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const siteInvitations = await client.siteInvitations.list();
siteInvitations.forEach((siteInvitation) => {
console.log(siteInvitation);
});
}
run();