ONE groups:get
← Receivers

groups:get

groups family

mcp

Read one group in full: its chain up to the top of what you can see (the root only for the owner of the platform group), the groups below it, members with roles, keys (never the hash), products and prices, public wallet addresses, name history, which settings exist, and the row count in every table a delete would touch, plus `deletion`: whether a delete would be refused for what the group is (the platform group, its owner, a root owner, your own home group, live paid orders), in the delete door's own words. Only a group in your scope: anything else answers forbidden. Reads D1 only.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
member
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/groups:get \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "slug": "acme" }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • slug string required The group's slug.

Response

What comes back from the call.

  • ok boolean
  • group object
  • chain string[] The group, then each parent up to the top of what you can see: the root for the owner of the platform group, your own top group (home or seat) for everyone else. A group above that is never named.
  • children object[]
  • childrenCapped boolean
  • members object[] People and agents homed in the group (no email).
  • seats object[]
  • keys object[] Keys acting as the group or its agents, or minted by it. Never the hash.
  • products object[]
  • wallets object[] Public addresses only.
  • names object[]
  • settings string[] The setting groups that hold something besides their default, by name. Values are never returned.
  • footprint object[] Rows a delete of this group would remove, per table. Tables with none are left out.
  • deletion object Whether a delete of this group would be refused for what the group is (not for the rest of the selection). Left out when it could not be read. The delete door still decides every real call.
  • createdAgents number Agents this group created (actor_creators).
  • links object
  • asOf number
  • notes string[]
  • error string forbidden, not_found, bad_slug, no_db

Traffic

Every call to groups:get, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names groups:get, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

UI 1
  • one.ie/web/src/components/groups/GroupSheet.tsx:51
API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:229
  • one.ie/web/src/lib/resolvers/groups-admin.ts:421
CLI 3
  • packages/cli/src/group.ts:248
  • packages/cli/src/lib/receivers-index.generated.ts:232
  • packages/cli/src/lib/receivers.generated.ts:232
→

Answered by

groups:get one.ie/web/src/lib/resolvers/groups-admin.ts:542 Dispatched through POST /api/ask/groups:get, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80,
      "description": "The group's slug."
    }
  },
  "required": [
    "slug"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "group": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The group's current public name (web_names), or null when it has none."
        },
        "displayName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "parent": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The parent group's slug, null for a top-level group or for the top of the part of the tree you can see: a parent above it is never named."
        },
        "depth": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "Levels below the top of the tree you can see: 0 for a top-level group, or for the top of your own part of a tree. The owner of the platform group counts from group `one` (0), and a parent loop is never counted round."
        },
        "children": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "Groups directly below it."
        },
        "plan": {
          "type": "string"
        },
        "createdAt": {
          "type": "number",
          "description": "Unix seconds."
        },
        "kind": {
          "type": "string",
          "enum": [
            "person",
            "agent"
          ],
          "description": "agent = made by an agent or a script (it has an actor_creators row, an agent actor row, or a uuid slug); person = anything else. Never read from a credential."
        },
        "madeBy": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The creator named by actor_creators, when there is one."
        },
        "lastActivityAt": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "description": "Unix seconds of the newest recorded event in this group, or null when it never had one."
        },
        "idle": {
          "type": "boolean",
          "description": "No event in the last 30 days (or never)."
        },
        "orders": {
          "type": "object",
          "properties": {
            "paid": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Paid orders in live money only: status paid and test_mode 0."
            },
            "test": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Paid orders in test money. Counted, never turned into dollars."
            },
            "unknown": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Paid orders with no test_mode recorded (older rows). Not counted as live, not counted as test."
            },
            "cents": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Live paid orders in USD cents: orders.amount_total over status paid, test_mode 0, currency usd."
            }
          },
          "required": [
            "paid",
            "test",
            "unknown",
            "cents"
          ]
        },
        "settledCents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "Cash in under the books fence: settlements paid, test_mode 0, a cash rail, payer not one or tony. A different table from `orders`, so the two numbers can differ."
        },
        "looksLikeTest": {
          "type": "boolean",
          "description": "agent-made, no live paid order, and idle. A guess to help you select, never a verdict."
        },
        "counts": {
          "description": "Counted over this page only; absent on a row that was not read.",
          "type": "object",
          "properties": {
            "members": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "world_actors rows homed in the group."
            },
            "activeKeys": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991,
              "description": "Keys acting as this group that are not revoked and not past their end."
            },
            "productsLive": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "productsDraft": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "pages": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "members",
            "activeKeys",
            "productsLive",
            "productsDraft",
            "pages"
          ]
        }
      },
      "required": [
        "slug",
        "name",
        "displayName",
        "parent",
        "depth",
        "children",
        "plan",
        "createdAt",
        "kind",
        "madeBy",
        "lastActivityAt",
        "idle",
        "orders",
        "settledCents",
        "looksLikeTest"
      ]
    },
    "chain": {
      "description": "The group, then each parent up to the top of what you can see: the root for the owner of the platform group, your own top group (home or seat) for everyone else. A group above that is never named.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "children": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "slug",
          "name"
        ]
      }
    },
    "childrenCapped": {
      "type": "boolean"
    },
    "members": {
      "description": "People and agents homed in the group (no email).",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "aid": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "aid",
          "name",
          "type",
          "role",
          "status"
        ]
      }
    },
    "seats": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "aid": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "aid",
          "role",
          "expiresAt"
        ]
      }
    },
    "keys": {
      "description": "Keys acting as the group or its agents, or minted by it. Never the hash.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "keyId": {
            "type": "string"
          },
          "actor": {
            "type": "string"
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "number"
          },
          "revokedAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "validTo": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "active": {
            "type": "boolean"
          }
        },
        "required": [
          "keyId",
          "actor",
          "label",
          "createdAt",
          "revokedAt",
          "validTo",
          "active"
        ]
      }
    },
    "products": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "pid": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "prices": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "ppid": {
                  "type": "string"
                },
                "cents": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "type": "string"
                },
                "active": {
                  "type": "boolean"
                }
              },
              "required": [
                "ppid",
                "cents",
                "currency",
                "active"
              ]
            }
          }
        },
        "required": [
          "pid",
          "name",
          "status",
          "prices"
        ]
      }
    },
    "wallets": {
      "description": "Public addresses only.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "actor": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "sui": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "evm": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "solana": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "btc": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "actor",
          "kind",
          "sui",
          "evm",
          "solana",
          "btc"
        ]
      }
    },
    "names": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "number"
          },
          "retiredAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name",
          "current",
          "createdAt",
          "retiredAt"
        ]
      }
    },
    "settings": {
      "description": "The setting groups that hold something besides their default, by name. Values are never returned.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "footprint": {
      "description": "Rows a delete of this group would remove, per table. Tables with none are left out.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "table": {
            "type": "string"
          },
          "rows": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "table",
          "rows"
        ]
      }
    },
    "deletion": {
      "description": "Whether a delete of this group would be refused for what the group is (not for the rest of the selection). Left out when it could not be read. The delete door still decides every real call.",
      "type": "object",
      "properties": {
        "allowed": {
          "type": "boolean",
          "description": "false: groups:delete would turn this group away whatever the request says."
        },
        "code": {
          "description": "platform_group, platform_owner, root_owner, own_home, live_orders or forbidden: the delete door's own refusal codes.",
          "type": "string"
        },
        "reason": {
          "description": "The delete door's own words for it.",
          "type": "string"
        }
      },
      "required": [
        "allowed"
      ]
    },
    "createdAgents": {
      "description": "Agents this group created (actor_creators).",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "links": {
      "type": "object",
      "properties": {
        "console": {
          "type": "string"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "console",
        "name"
      ]
    },
    "asOf": {
      "type": "number"
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "description": "forbidden, not_found, bad_slug, no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}