Skip to main content
Add or remove members with space.add() / space.remove(), or leave the group with space.leave() — or use the canonical addMember() / removeMember() / leaveSpace() content builders:
Members are E.164 phone numbers or emails — the same handles space.create accepts. List the current roster with space.getMembers(). Each entry’s id is the canonical address, so the results feed straight back into add() / remove() / space.create(); the agent’s own number is excluded:
Membership management requires @spectrum-ts/imessage and only works on group chats. With @spectrum-ts/imessage-local, or on a DM, it throws an — a DM cannot be converted into a group, so create a new group with space.create instead. getMembers() has the same constraints.