Skip to content
Browse docsget_group_details

get_group_details

Reads one group, its member roster, and the active goals shared with it.

Annotations: readOnlyHint: true · destructiveHint: false · idempotentHint: true · openWorldHint: false

When to use it#

  • To see who's in a group, for example before deciding whether to share a goal with it.
  • To find your goal in a group you named, through ownGoals.
  • To find the ID of a fellow member's goal shared with the group.

Reuse a publicId you already have instead of listing groups again.

Inputs#

InputRequiredTypeDescription
groupPublicIdyesstringA publicId from list_groups: 32 lowercase hexadecimal characters

Returns#

{ "group": ... }. The group has the list_groups fields, plus:

FieldTypeDescription
rosterlistThe group's members, moderators first
goalslistEvery active goal shared with the group that you can read, newest first, with the list_goals fields
ownGoalslistThe goals in goals that you own

Each roster entry has:

FieldTypeDescription
memberIdstringMember ID
displayNamestring or nullName
emailstring or nullEmail address, for your own use only
imageUrlstring or nullProfile photo
isModeratorbooleanModerates the group
isCurrentMemberbooleanThis entry is you
isSearchablebooleanGravity can search this member's network. It says nothing about who's in it.
gmailConnectionStatestringconnected, disconnected, never_connected, or unknown
canAskToConnectbooleanYou could ask this member to connect Gmail in Gravity

A goal owned by someone else never includes its private details: its additionalContext is empty and its clarificationQuestion is null. A goal hidden from this group is listed only for its owner. Read a goal with get_goal before acting on it.

A missing or inaccessible group returns the common unavailable error. Malformed IDs fail input validation before the application runs.

Example#

json
{
  "groupPublicId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}

Result (synthetic data):

json
{
  "group": {
    "publicId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "name": "Synthetic founders",
    "description": null,
    "memberCount": 2,
    "hasActiveGoal": true,
    "isModerator": false,
    "roster": [
      {
        "memberId": "00000000-0000-4000-a000-000000000003",
        "displayName": "Synthetic member",
        "email": "member@example.test",
        "imageUrl": null,
        "isModerator": false,
        "isCurrentMember": true,
        "isSearchable": true,
        "gmailConnectionState": "connected",
        "canAskToConnect": false
      }
    ],
    "ownGoals": [
      {
        "id": "00000000-0000-4000-a000-000000000001",
        "memberId": "00000000-0000-4000-a000-000000000003",
        "beneficiary": null,
        "ownerName": "Synthetic member",
        "ownerImageUrl": null,
        "text": "Find design partners",
        "additionalContext": "Synthetic private details",
        "clarificationQuestion": null,
        "contextRevisionId": "00000000-0000-4000-a000-000000000002",
        "scopeVersion": 2,
        "suggestedByGravity": false,
        "retiredAt": null,
        "createdAt": "2026-10-09T00:00:00.000Z",
        "isOwner": true,
        "version": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
      }
    ],
    "goals": [
      {
        "id": "00000000-0000-4000-a000-000000000001",
        "memberId": "00000000-0000-4000-a000-000000000003",
        "beneficiary": null,
        "ownerName": "Synthetic member",
        "ownerImageUrl": null,
        "text": "Find design partners",
        "additionalContext": "Synthetic private details",
        "clarificationQuestion": null,
        "contextRevisionId": "00000000-0000-4000-a000-000000000002",
        "scopeVersion": 2,
        "suggestedByGravity": false,
        "retiredAt": null,
        "createdAt": "2026-10-09T00:00:00.000Z",
        "isOwner": true,
        "version": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
      },
      {
        "id": "00000000-0000-4000-a000-000000000002",
        "memberId": "00000000-0000-4000-a000-000000000003",
        "beneficiary": null,
        "ownerName": "Synthetic member",
        "ownerImageUrl": null,
        "text": "Find design partners",
        "additionalContext": "",
        "clarificationQuestion": null,
        "contextRevisionId": "00000000-0000-4000-a000-000000000002",
        "scopeVersion": 2,
        "suggestedByGravity": false,
        "retiredAt": null,
        "createdAt": "2026-10-09T00:00:00.000Z",
        "isOwner": false,
        "version": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
      }
    ]
  }
}