flow api
Groups · POST

leaveGroup

Leave a group from the linked number.

Video walkthrough: leaveGroup · 14 seconds · click the bar to jump to a step

Endpoint

POST https://flowapi.pro/waInstance{idInstance}/leaveGroup/{apiTokenInstance}

Request body

{
  "groupId": "120363000000000000@g.us"
}

Example

curl -X POST "https://flowapi.pro/waInstance{idInstance}/leaveGroup/{apiTokenInstance}" \
  -H "Content-Type: application/json" \
  -d '{"groupId":"120363000000000000@g.us"}'

Response

{
  "leaveGroup": true
}
Green API compatible. leaveGroup uses the same name, request body and response as Green API, so existing code works after you change the host to flowapi.pro. Errors: 401 wrong instance or token, 402 trial ended or number not covered by your plan, 429 rate limit reached (wait the seconds in the Retry-After header), 400 with a message for anything else.

More groups methods

Try it on your own number

7 days free, no credit card. Then $10 per number per month.

Start free trial