Kick a user from the chat

Learn how to use iFlyChat API to kick a user from the chat

post
Kick user from chat

https://api.iflychat.com/api/1.1/user/:id/kick
You can use iFlyChat API to kick a particular user from the chat
Request
Response
Request
Path Parameters
id
required
string
The id of the user to be kicked from the chat
Body Parameters
api_key
required
string
The private API key of your website
Response
200: OK
The response is a JSON object indicating success
{
"success": true
}

Curl Command

This the sample curl command required to make HTTP request:

curl -H "Content-Type: application/json" -X POST https://api.iflychat.com/api/1.1/user/5/kick -d "{\"api_key\":\"Wr4vpoJ_ET3lpBdX9E9TutUic4Dgb-gc7RGzuZvKqZgW5\"}"

The kicked user won't be able to access chat for next 15 minutes. After that he/she may again join the chat.

‚Äč