GET /user_relationships/lookup
GET
/user_relationships/lookup
Returns existing relationships from an array of user ids
Query parameters
-
source_id string Required
Identifier of the source user to fetch
-
target_ids string Required
Comma separated list of user_ids (1,2,3)
GET /user_relationships/lookup
curl \
-X GET https://api.cosmily.com/api/v1/user_relationships/lookup?source_id=string&target_ids=string \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response example (200)
{
"data": [
{
"id": 42,
"source_id": 42,
"target_id": "string"
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
}
}