Skip to main content
POST
/
follow
/
toggle
{
  "success": true,
  "message": "<string>",
  "action": "followed"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-API-KEY
string
required

API key required for authentication

Body

application/json
targetUserId
integer
required

ID of the user to follow or unfollow

currentFollowing
boolean
required

Current follow status of the target user

Response

Follow status updated successfully

success
boolean
message
string
action
enum<string>
Available options:
followed,
unfollowed