x Zalo User icon

x Zalo User

Interact with Zalo User API

Friend → Send Friend Request

AI-generated

Summary

Send a friend request to a specified Zalo user optionally including a custom message.

Inputs

  • User ID (required) — Target user ID of the Zalo user to whom the friend request is sent.
  • Message — Optional message to include with the friend request.

Output shape

a JSON object confirming the friend request was sent, including the target user ID, optional message, success status, and timestamp

The response is a single JSON object per input item indicating success with fields: success (boolean), resource ('friend'), operation ('sendFriendRequest'), userId (string), message (string, optional), and sentAt (ISO timestamp). There is no external API call integration shown; the response is a placeholder indicating the request was processed.

Examples

Example 1: Send a friend request with an optional message

Specify the target user ID and optionally include a brief message to accompany the friend request.

Discussion