Skip to content

List groups

groups.list(**kwargs) -> PageNumberPage<Group { id, created_at, external_reference_id, 3 more } >
GET/v1/groups

Returns a paginated list of groups belonging to the authenticated organization.

ParametersExpand Collapse
limit: Integer

Items per page (default: 20, max: 100)

minimum1
maximum100
page: Integer

Page number (default: 1)

minimum1
ReturnsExpand Collapse
class Group { id, created_at, external_reference_id, 3 more }
id: String

Prefixed group identifier (grp_<base64-encoded-uuid>).

created_at: Time

Group creation timestamp (ISO 8601, UTC).

formatdate-time
external_reference_id: String

Stable identifier for this group in the integrator’s own system.

maxLength255
name: String

Human-readable group name.

maxLength255
organization_id: String

Prefixed organization identifier (org_<base64-encoded-uuid>).

updated_at: Time

Last-update timestamp (ISO 8601, UTC).

formatdate-time

List groups

require "vitable_connect"

vitable_connect = VitableConnect::Client.new(
  api_key: "My API Key",
  environment: "environment_1" # defaults to "production"
)

page = vitable_connect.groups.list

puts(page)
{
  "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
  }
}