Skip to main content
POST
/
api
/
friends
Send a friend request
curl --request POST \
  --url https://serengo.zias.be/api/friends \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "friendId": "<string>"
}
'
{
  "id": "<string>",
  "requesterId": "<string>",
  "addresseeId": "<string>",
  "status": "pending",
  "requester": {
    "id": "<string>",
    "username": "<string>",
    "profilePicture": "<string>"
  },
  "addressee": {
    "id": "<string>",
    "username": "<string>",
    "profilePicture": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
friendId
string
required

Response

200 - application/json

Friend request sent

id
string
requesterId
string
addresseeId
string
status
enum<string>
Available options:
pending,
accepted,
blocked
requester
object
addressee
object