OverviewProductsPlatformsAPI ReferenceResources

Start an iMessage group chat

POSThttps://zernio.com/api/v1/imessage/groups

Creates a group chat from one of your senders and sends its first message.

The provider processes it asynchronously: the response carries the request id, and the thread appears in the inbox (with its group conversation id) on the first webhook.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Body

application/json

What every request needs

accountIdstringRequired

The iMessage account (sender) that opens the group

contactsarray of stringsRequired

Participant handles (E.164 phones or iMessage emails)

textstring, max 10000Required

The first message

Optional parameters2 fields
namestring, max 32

Group name (required for WhatsApp groups)

channelstringDefault imessageOne of imessage | sms | rcs | whatsapp

Responses

Success· the request worked

Errors· the request failed

How it behaves

Requirements

  • Starting a group counts as messaging new contacts, so the sender needs the provider's init-conversations add-on and the same sending intervals apply. Without it the request fails with 409 recipient_must_message_first.
  • WhatsApp groups need a name.
POST/v1/imessage/groups
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.imessage.createImessageGroup({  body: {    accountId: 'account_abc123',    contacts: [      'string',    ],    text: 'Hello, world!',  },});console.log(data);
{  "success": true,  "requestId": "string"}
OpenAPI specification
Was this page helpful?