Skip to main content
Fetch Following
Returns a paginated list of users that the authenticated user is following. Unlike the user-scoped endpoint, this route always returns data for the current authenticated user.
Users with a block between them and the acting user (the signed-in user, or the user a service key names in actingUserId), in either direction, are excluded from the results. Requires the moderation bundle.

Query Parameters

number
Page number (1-indexed): a whole number, 1 or more. Defaults to 1. Any other value returns 400 follow/invalid-query with param: "page".
number
Results per page: a whole number from 1 to 100. Defaults to 20. A larger value returns 400 follow/invalid-query with param: "limit" (it is never lowered to 100), as does 0, a negative number or a value that isn’t a whole number. See Pagination.
string
Optional search term. Filters the list to users whose username or name contains this text (case-insensitive). When omitted, no filtering is applied.
string
Restricts which field query matches against — username or name. When omitted, query matches either field.
string
Service key only, and required with one: the user this request acts as. The users they follow are listed. A user token always acts as its own user and must not send it (400 follow/acting-user-not-allowed).

Space-scoped reputation

This endpoint has no space in context, so the opt-in spaceReputationId accepts a space <uuid> or none only — context is rejected (400). It adds a spaceReputation field to each returned user, alongside the always-present reputation total. Requires the reputation bundle. See the Reputation data model.

Response

On success, returns HTTP 200 with a paginated response:
array
Array of follow rows.
object
Pagination metadata.

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.
The request sent userId. On this route the user a service key acts as is actingUserId.With a service key:
With a user token, or with no credentials:

See Also