Friends
Send Chat Message
Send a message to a friend. Conversations are capped at 50 messages — the oldest message is removed automatically when the limit is exceeded.
POST
/api/vaneltonid/chat_send.php
Requires
Authorization: AppID:AppKey + user tokenRequest body
| Field | Type | Required | Description |
|---|---|---|---|
| token | string | required | Sender's session token |
| friend_id | int | required | ID of the recipient friend |
| message | string | required | Message text (max 2000 characters) |
Test this endpoint
Headers
Body
Success response 200
{
"success": true,
"message_id": 501,
"server_time": "2026-05-29 14:35:00"
}
Store the server_time from the response — use it as the since parameter on the next chat_poll call for accurate incremental fetching.
Errors
| Code | Message | Cause |
|---|---|---|
| 403 | You can only chat with friends. | Not a confirmed friend |
| 400 | Message exceeds 2000 characters. | Text too long |