Fetch User Suggestions
User Endpoints
Fetch User Suggestions
Search for users by username prefix — for @mention autocomplete
GET
Fetch User Suggestions
Returns up to 5 users whose usernames contain the provided query string, ranked by prefix match first, then alphabetically. Designed for
@mention autocomplete and user search UIs.
Sensitive fields (email, hash, salt,
isVerified, isActive,
lastActive) are excluded from suggestions results.Query Parameters
The search string. Matches usernames that contain this value
(case-insensitive). Users whose usernames start with
query are ranked
first.Space-scoped reputation
This endpoint has no space in context, sospaceReputationId 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.
Adds
spaceReputation to each returned user. Either a space <uuid> (that space’s bucket) or none (the project-general bucket). context, the empty string, and the legacy general / null aliases are rejected (400). Missing buckets read as 0.Only honored with an explicit space
<uuid>. When true, spaceReputation is the subtree sum — the space plus all of its descendants. Ignored for none.Response
On success, returns HTTP200 with an array of up to 5 user objects:
Unique user ID (UUID).
External identifier from your system.
Display name.
The user’s username.
Avatar image URL.
Short bio text.
Public custom key-value data.
Reputation score.
ISO timestamp of account creation.
Error Responses
Invalid Query — 400
Invalid Query — 400

