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)

Responses

  • successful operation

    Hide response attributes Show response attributes object
  • Bad Request

  • Authorization information is missing or invalid.

  • Unprocessable Entity

  • Server Error

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 examples (200)
{
  "data": [
    {
      "id": 42,
      "source_id": 42,
      "target_id": "string"
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  }
}
Response examples (200)
{
  "data": [
    {
      "id": 42,
      "source_id": 42,
      "target_id": "string"
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  }
}