orvachat

Groups

Create Group

POST/api/v1/group/create

Create a group with participants.

Parameters

  • namestringRequired

    The group name.

  • participantsarrayRequired

    Phone numbers to add, with country code.

  • memberaddmodestringOptional

    Who can add members: admin_add or all_member_add.

Code Examples

cURL
curl -X POST "https://orvachat.com/api/v1/group/create" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "My customers",
  "participants": [
    "923001234567"
  ]
}'

Response Example

200 OK
{
  "code": 200,
  "data": {
    "AnnounceVersionID": "1234567890",
    "DisappearingTimer": 0,
    "GroupCreated": "2023-12-01T10:00:00Z",
    "IsAnnounce": false,
    "IsEphemeral": false,
    "IsLocked": false,
    "JID": "[email protected]",
    "Name": "My New Group",
    "NameSetAt": "2023-12-01T10:00:00Z",
    "NameSetBy": "[email protected]",
    "OwnerJID": "[email protected]",
    "ParticipantVersionID": "1234567890",
    "Participants": [
      {
        "IsAdmin": true,
        "IsSuperAdmin": true,
        "JID": "[email protected]"
      },
      {
        "IsAdmin": false,
        "IsSuperAdmin": false,
        "JID": "[email protected]"
      }
    ]
  },
  "success": true
}