Skip to main content
POST
/
api
/
v1
/
friends
Add Friend
curl --request POST \
  --url https://api.example.com/api/v1/friends \
  --header 'Content-Type: application/json' \
  --data '
{
  "friend_user_id": "<string>"
}
'

Add Friend

Create a friendship connection with another user.

Authentication

Requires a valid user JWT token.
Rate limit: 10 requests/minute.

Request Body

friend_user_id
string
required
UUID of the user to add as a friend.

Example

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"}'