Ze da API icon

Ze da API

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

Actions137

Group → Leave Group

AI-generated

Summary

Leave a WhatsApp group

Inputs

  • groupId (required) — The WhatsApp group ID to leave
  • requestOptions — Collection of request options to customize the API call
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible
  • proxy — HTTP proxy to use
  • timeout — Time in ms to wait for the server to send response headers before aborting the request

Output shape

a single status object

On success returns a confirmation; on failure returns an error object with code and message.

Examples

Example 1: Leave a specific WhatsApp group

groupId: "5511999999999-1234567890@g.us"

Example 2: Leave a group with batch throttling enabled

groupId: "5511999999999-1234567890@g.us", requestOptions: { batch: { batchSize: 1 } }

Example 3: Leave a group with SSL verification disabled

groupId: "5511999999999-1234567890@g.us", allowUnauthorizedCerts: true

Links

Discussion