Skip to main content

Endpoint

group.list
Returns all groups for the authenticated user, ordered by creation date (oldest first), with bookmark counts.

Authentication

Requires authentication via session cookie.

Request

No input parameters required.

Response

Returns an array of group objects.
id
string
required
Unique identifier for the group
name
string
required
Group name
color
string
required
Hex color code for the group
isPublic
boolean
Whether the group is publicly visible
bookmarkCount
number
Number of bookmarks in the group

Example

import { client } from '@/lib/client';

const groups = await client.group.list();

console.log(groups);
// [
//   {
//     id: "grp_123",
//     name: "Development",
//     color: "#3b82f6",
//     isPublic: false,
//     bookmarkCount: 42
//   },
//   ...
// ]

Source

  • Implementation: server/procedures/bookmarks.ts:130
  • Router: server/router.ts:38