---
title: "Follow or unfollow user"
method: POST
path: "/social-media/follow/{toBeFollowedUserId}"
tags: ["📸 Social Media"]
---

# Follow or unfollow user

`POST /social-media/follow/{toBeFollowedUserId}`

The API endpoint allows users to follow or unfollow other users within the application.

When accessing this endpoint, users can choose to follow or unfollow a specific user, thereby establishing or severing a connection between their accounts.

## Response `200`

Follow or unfollow user

- object
  - `data` object
    - `following` boolean
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
