Following

Following

Follow and unfollow users, manage follow requests for private accounts, and query the social graph.

Endpoint table

MethodPathAuthDescription
POST/api/follow/:userIdSession or BearerFollow a user. For private accounts this creates a pending follow request.
DELETE/api/follow/:userIdSession or BearerUnfollow a user.
GET/api/follow/:userId/statusSession or BearerCurrent follow relationship between you and this user.
GET/api/follow/:userId/followersSession or BearerFollowers of this user. Supports limit, offset.
GET/api/follow/:userId/followingSession or BearerUsers this user follows. Supports limit, offset.
GET/api/follow/:userId/countsSession or BearerFollower and following counts.
GET/api/follow/:userId/mutualSession or BearerMutual follows between you and this user.
POST/api/follow/:userId/approveSession or BearerApprove an incoming follow request (private accounts).
POST/api/follow/:userId/rejectSession or BearerReject an incoming follow request.
DELETE/api/follow/:userId/removeSession or BearerRemove this user from your followers.
GET/api/follow/requestsSession or BearerYour pending incoming follow requests.

Follow status

GET /api/follow/clx9user00002/status
{ "following": true, "followedBy": false, "pendingRequest": false }

For a private account where the follow request is pending:

{ "following": false, "followedBy": false, "pendingRequest": true }

Approving a request

POST /api/follow/clx9user00099/approve

The request is removed and the follow relationship is established. The follower is notified.

Counts and lists

GET /api/follow/clx9user00002/counts
{ "followers": 128, "following": 84 }
GET /api/follow/clx9user00002/followers?limit=50&offset=0

Returns a paginated list of user objects.

Notes

  • These endpoints check the privacy setting of the target user. A private account never reveals follower/following lists to non-followers.
  • Removing a follower (DELETE /api/follow/:userId/remove) does not block them; it only severs the existing relationship. They can re-follow (or request to follow again for private accounts).