Skip to main content
POST
/
v1
/
friends
/
requests
/
by-username
Send friend request by username
curl --request POST \
  --url https://api.magne.app/v1/friends/requests/by-username \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>"
}
'
{
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
username
string
required

Response

Success