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 record ID and timestamp.
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. The shape differs based on follow status: When following:
boolean
true — the authenticated user follows this user.
string
ID of the follow record.
string
ISO timestamp of when the follow was created.
When not following:
boolean
false.

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