Friends
Block / Unblock
Block or unblock a user. Blocking automatically removes any existing friendship and prevents future friend requests from either side.
POST
/api/vaneltonid/friend_block.php
Requires
Authorization: AppID:AppKey + user tokenRequest body
| Field | Type | Required | Description |
|---|---|---|---|
| token | string | required | User's session token |
| user_id | int | required | ID of the user to block or unblock |
| action | string | required | block or unblock |
Test this endpoint
Headers
Body
Success response 200
{ "success": true, "action": "block" }