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

  • 200

    successful operation

    Hide response attributes Show response attributes object
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 422

    Unprocessable Entity

  • 500

    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"
  }
}