API Overview
Message Callbacks
Status Codes
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
| Parameter | Data type | Required | Description | |
|---|---|---|---|---|
| friend_id | string | Yes | User 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 codes | Description | |
|---|---|---|
| 17101 | The other party rejects all friend requests. | |
| 17102 | The friend request is duplicated, or the other party is already your friend. |