Create a group
/groupsCreate a new group. No iMessage conversation exists yet: the first message you send to the group opens it.
Headers
AuthorizationRequiredstringYour API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.
Body parameters
JSONnameRequiredstringGroup name (max 255 characters)
membersoptionalstring[]Phone numbers or emails of contacts in the group.
Returns
group_idoptionalstringnameoptionalstring | nullGroup name. Null for unnamed groups.
chat_guidoptionalstring | nullDeprecated. An identifier for the group's iMessage conversation, kept for existing integrations. Null until the group has one. Use group_id to identify the group.
icon_urloptionalstring | nullURL of the group icon/photo
member_countoptionalintegermessage_countoptionalintegerTotal number of messages in this group
last_message_textoptionalstring | nullText of the most recent message in the group
last_message_timeoptionalinteger | nullTimestamp of the most recent message
last_message_directionoptionalstringDirection of the most recent message
"inbound""outbound"created_atoptionalintegeradded_membersoptionalstring[]List of member identifiers that were added to the group
created_contactsoptionalstring[]List of contacts that were auto-created
Response codes
Sends a live request with your values and shows the real response below. Your key is stored only in this browser.
curl -X POST https://api.blooio.com/v2/api/groups \{ "group_id": "grp_a1b2c3d4", "name": "Jane Doe", "chat_guid": "grp_a1b2c3d4", "icon_url": "https://example.com", "member_count": 3, "message_count": 3, "last_message_text": "string", "last_message_time": 0, "last_message_direction": "inbound", "created_at": 0, "added_members": [ "string" ], "created_contacts": [ "string" ]}