Skip to main content

Overview​

Sends a friend request.

Request​

Authentication: Add authentication headers to the request. See Authentication

Method: POST

Rate limit: 100 requests/second

Endpoint: https://API domain/jim/friends/apply

Content-Type: application/json

Request parameters​

ParameterData typeRequiredDescription
friend_idstringYesUser ID of the person to add as a friend.

Request example​

POST /jim/friends/apply HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json

{
"friend_id":"userid1"
}

Response example​

{
"code":0,
"msg":"sucess"
}

Response codes​

Response codesDescription
17101The other party rejects all friend requests.
17102The friend request is duplicated, or the other party is already your friend.