Group conversations
A group is a conversation that isn’t a phone number. Dial gives each one an ID of its own, and you address it the way you’d otherwise address a recipient — with groupId instead of to.
Groups exist on WhatsApp lines and on iMessage numbers. The group ID is channel-neutral — the same field, the same endpoints, whichever channel the conversation is on.
Your line has to be in the group. Dial can send into a group someone added your number to, or one your WhatsApp line created itself; it can’t join an existing group or accept an invite link on your behalf.
What each channel can do in a group
Everything else on this page works the same on both.
List your groups
channel is the channel the group is on — whatsapp or imessage, the same value its messages carry — and it decides what you can do there. A group never changes channel.
createdAt is when Dial first learned of the group — your line creating it or being added to it, or the first message that named it.
name can be null, and that isn’t an error. Participants rename groups whenever they like, so Dial doesn’t keep a copy of the subject — a stored name would be a cache with nothing to invalidate it. The name is read live from the line holding the conversation instead.
When a lookup can’t answer in time, that group comes back with name: null rather than failing the whole request. The IDs are Dial’s own and always available, so one quiet line never hides a group or blanks another one’s name. Retry if you need the name.
Create a group
Creating a group is supported on WhatsApp lines today; iMessage numbers can’t create groups yet. A WhatsApp line can start a group of its own, with the people you name in it, and the line becomes the group’s admin.
The group is ready the moment this returns. Dial records it before responding, so its id works as groupId on Send into a group straight away, and it shows up in List your groups. There’s no event for a group you created — the response is the confirmation.
channel is the channel the group is created on — only whatsapp today, and the default when you leave it out; any other value is rejected with 400. name is the group’s subject, 1–100 characters. participants is 1–256 E.164 numbers; duplicates are ignored, and your line’s own number is rejected with 400 — the line is in the group already, as its admin. Give the line as fromNumber or fromNumberId — at most one; with neither, your primary number creates the group, as on Send a message.
Not everyone you name is always added. WhatsApp lets people choose who may add them to groups, so a participant can be refused while the group is still created with everyone else. Each one comes back in notAdded and is not in the group:
privacy_restricted— their settings only allow their contacts to add them.not_added— WhatsApp didn’t add them for another reason.
number is null only when the line couldn’t say which participant it was. Dial doesn’t retry them or send them an invite; reach them one-to-one if you need them in.
If every participant comes back in notAdded, the group still exists — with only your line in it — and anything you send there reaches no one. Check notAdded before your first send.
The group gets WhatsApp’s ordinary new-group settings — every member may send messages and edit the group’s info. One group per request, with no description, picture, or invite link.
A 504 doesn’t mean the group wasn’t created. It means the line didn’t confirm the group in time — it may still exist. List your groups before trying again; a blind retry can leave you with two.
A 429 (“This line has created too many groups recently. Try again later.”) means WhatsApp is limiting how often this line can create groups, and a 502 (“WhatsApp refused to create the group.”) means WhatsApp turned the request down. In both cases nothing was created.
Send into a group
Give groupId where you’d normally give to:
to and groupId are mutually exclusive. Exactly one — sending both, or neither, is rejected with 400.
You don’t need to say which number it goes out from. A group already belongs to a line, so Dial uses that one and fromNumber / fromNumberId are optional here. You may pass one, and if it names a different line than the group’s, the send is refused with 400 rather than quietly sent from somewhere else — a message that left from an unexpected number can’t be taken back.
A group send is an ordinary message on that group’s channel, so the channel’s own rules apply. On a WhatsApp group that means at most one attachment per message, and one send at a time per line. On an iMessage group, media works exactly as it does in a one-to-one conversation.
On WhatsApp, a group counts as one recipient for the sending limits. The per-recipient cap and the unanswered limit apply to the group as a whole, and a message from any member counts as a reply.
Naming a channel that the group isn’t on is refused with a 400 rather than sent on the other one — a message delivered to a rail you didn’t ask for can’t be taken back. You can leave channel out entirely; the group already knows which one it’s on.
Show a typing indicator in a group
Give groupId where you’d normally give toNumber. Every member of the group sees it.
The same rules as a one-to-one indicator apply: it’s fire-and-forget and free, nothing is persisted and no event is emitted, and sending a message into the group clears it natively — so start it again after a send if you’re still composing. Dial never clears it for you; send value: false when you stop composing without sending.
toNumber and groupId are mutually exclusive here too, and as with a send, fromNumber is optional because the group already names its line.
Leave channel out. A group is on exactly one channel, so the group already says which rail to show the indicator on; naming a different one is rejected with 400.
Read a group’s messages
groupId combines with the other filters, so ?groupId=grp_123&direction=inbound is just the inbound half of that conversation.
On a group message, to is null — in both directions. The message is addressed to the group, and the group is not a phone number, so there’s nothing to put there. groupId carries the destination instead.
Which of your numbers the conversation is on is phoneNumberId. That field is set on every message Dial has ever recorded, group or not. If your integration reads to as “my number”, that’s the line to change — on a group message it’s the destination, and the destination is the group.
On an inbound group message, from is the participant who actually sent it — not the group, and not your own line.
React to group messages
Inbound group messages arrive as ordinary message.received events carrying groupId, so you can wait for one group’s traffic specifically:
Delivery and read receipts work as they do elsewhere, with one difference worth knowing: in a group, read means every recipient. A message counts as read once every participant has read it — never “somebody read it”.
On an iMessage group, a read may never arrive, and that isn’t a failure. Read receipts are something each recipient’s device chooses to send — the setting is off by default — and a receipt that can’t be attributed to a particular reader is discarded rather than counted as a guess. So the tally is never wrong, but it can stay incomplete indefinitely. Don’t build a flow that waits for read in a group; treat it as confirmation when it comes and nothing when it doesn’t.
Delivery in an iMessage group is inferred, because the channel sends no delivery receipts of its own: the first read Dial sees proves the message reached at least one device, so deliveryState advances then. On a WhatsApp group it stays what it is elsewhere on that channel.
Finding out about a new group is a poll, on both channels. There’s no join event: when someone adds your line to a group, that shows up as a new entry from GET /v1/groups (and the group’s first message arrives normally either way). List groups when you need to know what’s there. A group you created needs no poll — the create response already carries its ID.