Leave group

Use below API to leave from a group.


{api-base-url} can be obtained from the MirrorFly console.

HTTP request#

curl -X POST "https://{api-base-url}/api/v1/group/leaveGroup"
--header "accept: */*"
--header "Authorization: xxxxxxxxxxxxxxxxxx"
--form "groupId=":groupId""

Request Params#

groupIdStringYesId of the group you want to leave from


If successful, this action removes you from the given group.

"status": 200,
"data": {
"groupId": "groupId", // String - group id
"participant": "participant"// String - Name of the user
"message": "Participant left successfully"


In the case of an error, an error object like below is returned.

When the token passed in Headers is expired

"status": 401,
"message": "Token Expired"

In the case of a Bad Request, an error message is returned

"status": 400,
"data": {
"groupId": "groupId",
"participant": "participant"
"message": "Error message"