List groups
client.groups.list(GroupListParams { limit, page } query?, RequestOptionsoptions?): PageNumberPage<Group { id, created_at, external_reference_id, 3 more } >
GET/v1/groups
List groups
import VitableConnect from '@vitable-inc/vitable-connect';
const client = new VitableConnect({
apiKey: process.env['VITABLE_CONNECT_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const group of client.groups.list()) {
console.log(group.id);
}{
"data": [
{
"id": "grp_abc123def456",
"organization_id": "org_abc123def456",
"name": "Tier 1",
"external_reference_id": "mol_seg_001",
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1,
"total_pages": 1
}
}Returns Examples
{
"data": [
{
"id": "grp_abc123def456",
"organization_id": "org_abc123def456",
"name": "Tier 1",
"external_reference_id": "mol_seg_001",
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 1,
"total_pages": 1
}
}