cURL
curl --request POST \ --url https://api.example.com/api/v1/friends \ --header 'Content-Type: application/json' \ --data ' { "friend_user_id": "<string>" } '
Add a user as a friend.
curl -X POST https://api.ama2.me/api/v1/friends \ -H "Authorization: Bearer YOUR_JWT_TOKEN" \ -H "Content-Type: application/json" \ -d '{"friend_user_id": "target-user-uuid"}'