## Create group `client.groups.create(GroupCreateParamsbody, RequestOptionsoptions?): GroupResponse` **post** `/v1/groups` Creates a new group scoped to the authenticated organization. ### Parameters - `body: GroupCreateParams` - `external_reference_id: string` - `name: string` ### Returns - `GroupResponse` Response containing a single group resource. - `data: Group` - `id: string` Prefixed group identifier (`grp_`). - `created_at: string | null` Group creation timestamp (ISO 8601, UTC). - `external_reference_id: string` Stable identifier for this group in the integrator's own system. - `name: string` Human-readable group name. - `organization_id: string` Prefixed organization identifier (`org_`). - `updated_at: string | null` Last-update timestamp (ISO 8601, UTC). ### Example ```typescript 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 }); const groupResponse = await client.groups.create({ external_reference_id: 'mol_seg_001', name: 'Tier 1', }); console.log(groupResponse.data); ``` #### Response ```json { "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" } } ```