Check Follow Status

Endpoint

URL: /:projectId/users/:userId/follow

Method: GET

Authentication Required: Yes


Description

Check whether the authenticated user is following a specific user.


Request

Path Parameters

ParameterTypeRequiredDescription
userIdstringYesID of the user to check against.

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token for authentication.

Body Parameters

None

Example Request

GET /proj1234/users/abcd123/follow
Authorization: Bearer <ACCESS_TOKEN>

Response

Success Response (200 OK)

{
  "isFollowing": true
}

or

{
  "isFollowing": false
}

Error Responses

Server Error (500 Internal Server Error)

{
  "error": "Internal server error.",
  "code": "follow/server-error",
  "details": "<Error message>"
}

Notes

  • This endpoint checks if a follow relationship exists between the authenticated user and the target user.
  • Always returns a 200 response with a boolean flag isFollowing.