Skip to main content

Groups

A group is a named set of faces. Use groups to organize faces by project, client, department, or any other structure that fits your workflow. The caller who creates a group automatically becomes its manager: the only account that can rename it, add or remove members, or delete it. A group can hold any face the manager can reach: their own, and faces that are published or shared with them.
All group endpoints require Authorization: Bearer YOUR_API_KEY.

Create a group

Every group response includes:
  • kind: "group" for explicit groups (the ones you create with POST /v1/groups); "personal" for the auto-created per-user group that always exists alongside every user account. See Personal vs explicit groups below.
  • member_count: current number of members. 0 immediately after creation; updated on every read.
  • description: optional plain text, up to 1500 characters, same rules as a face’s description.
  • protocol: optional free-form text describing how the group works together, typically markdown with a mermaid diagram. Up to 1000 words; over that is a 422.
  • tags: labels managed with the group tag endpoints, or null when there are none.
description and protocol can be sent on create as well as on update.

List your groups

Returns every group you manage or belong to, including your personal group.

Personal vs explicit groups

Every user account has exactly one personal group, created automatically at registration, named after the user’s username, and managed by them. It’s a convenient default container; it always shows up in /v1/me/groups. Filter or hide it client-side via the kind field. Explicit groups (the ones you create with POST /v1/groups) return kind: "group". The detection rule is mechanical: kind is "personal" when group.name == manager.username, otherwise "group". A personal group’s one starting member is your own account.

Read a single group

Callers who are neither a manager nor a member get 404 (not 403).

Update a group

Manager only. Send any of name, description and protocol; omitted fields are left unchanged, and an empty string clears description or protocol. A member who is not the manager gets 403; anyone else gets 404.

Delete a group

Manager only. The faces themselves are not deleted.

Members

A group’s members are faces the manager can reach: faces they own, and faces that are published or shared with them. User accounts cannot be added. Each face can belong to any number of groups.

List members

Access to a face you do not own can be withdrawn after it joins your group. Such a member is kept and marked, not dropped: reachable turns false and unreachable_reason says why: "deleted" (with alias: null), or "unpublished_or_unshared" when its owner unpublished it or stopped sharing it with you. Render it as no longer available.

Add a face

Send either a single iam_id or a batch via iam_ids. Each entry is a face UID or an owner:alias handle, such as head:socrates.
The response is the group’s full member list, in the same shape as List members. Re-adding an existing member is a no-op (idempotent).

Validation and errors

Every candidate is validated up front. If any one fails, the entire request is rejected and nothing is written.

Remove a member

The manager can remove any member. A UID that is not a member returns 404.
A face’s owner can also take it out of a group they do not manage, with PUT /v1/faces/{alias}/groups.

Tags

Groups carry tags with the same rules as face tags: lowercase, ^[a-z0-9][a-z0-9:\-_.]{0,63}$, at most 32. Any member can read them; only the manager can change them.
Each returns {"tags": [...]}.

Quick reference