Ze da API icon

Ze da API

WhatsApp API powered by Ze da API - Send messages, manage groups, contacts and more

Actions137

Group → Add Admin

AI-generated

Summary

Adds one or more phone numbers as administrators to a WhatsApp group

Inputs

  • groupId (required) — WhatsApp group identifier (e.g., '5511999999999-1234567890@g.us')
  • phones (required) — Comma‑separated list of phone numbers to promote to admin; values are trimmed before sending
  • requestOptions — Optional request settings such as batching, proxy, timeout, and SSL verification overrides

Output shape

object indicating the result of the admin addition, typically containing a success flag and possibly updated group details

May include an error object if the call fails; otherwise returns a confirmation payload

Examples

Example 1: Add two users as admins to a specified group

groupId: '5511999999999-1234567890@g.us', phones: '5511999999999,5511888888888'

Example 2: Add a single admin with batch processing enabled

groupId: '5511999999999-1234567890@g.us', phones: '5511777777777', requestOptions: {"batching": {"batchSize": 1}}

Example 3: Add admins using a custom proxy and SSL override

groupId: '5511999999999-1234567890@g.us', phones: '5511555555555', requestOptions: {"proxy": "http://user:pass@proxy:3128", "allowUnauthorizedCerts": true}

Links

Discussion