POST /users/:id/follow

POST /users/{id}/follow

Follow a user

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

Responses

POST /users/{id}/follow
curl \
 -X POST https://api.cosmily.com/api/v1/users/{id}/follow \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "id": 42,
    "auth0_id": "string",
    "username": "string",
    "email": "string",
    "user_type": "string",
    "followed_by_count": 42,
    "following_count": 42,
    "supergroups": [
      "string"
    ],
    "last_active": "string",
    "followed_by_me": true
  }
}