Skip to main content

Get User Connection Status

This endpoint returns the connection status between the selected user and the logged-in user.

info

This operation requires authentication.

HTTP Request

GET /api/v2/user/{id}/connection_status/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this user

Example Request

const headers = {
'Accept':'application/json',
'Authorization: Bearer <token>'
};

fetch('/api/v2/user/{id}/connection_status/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Connection Status values

ParameterValue
connection_statusconnected
connection_statussent_connection_request
connection_statusreceived_connection_request
connection_statusnull

Example responses

{
"connection_status": "string"
}