Skip to main content
Get Follow Status
Returns the follow status between the authenticated user and the specified user. If the authenticated user is following, the response includes the follow row under follow.
Requires the follows bundle. A project without the follows bundle returns 403 database/tables-not-available. See Bundles.

Path Parameters

string
required
The Sublay user ID (UUID) of the user to check follow status for.

Query Parameters

string
Service key only, and required with one: the user this request acts as, whose follow of the user in the path is checked. A user token always acts as its own user and must not send it (400 follow/acting-user-not-allowed).

Response

On success, returns HTTP 200:
boolean
true if the authenticated user follows this user; otherwise false.
object
The follow row. Present only when isFollowing is true.
Following
Not following

Error Responses

A service key sent no actingUserId.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.

See Also