Skip to main content
Get Connections
Returns a paginated list of accepted connections for the specified user. Each entry includes the connected user’s public profile. Authentication is optional — the endpoint works without a token. When the request has a viewer — the signed-in user, or the user a service key names in actingUserId — any user with a block between them and the viewer, in either direction, is excluded from the results. Block filtering requires the moderation bundle.
Requires the connections bundle. A project without the connections bundle returns 403 database/tables-not-available. See Bundles.

Path Parameters

string
required
The Sublay user ID (UUID) of the user whose connections to retrieve.

Query Parameters

Acting user

string
Service key only: the user to read as. The response is exactly what that user’s own access token would get — users block-edged with them are left out. Leave it out for the anonymous view. A user token always acts as its own user and must not send it, and neither may a request with no credentials (400 connection/acting-user-not-allowed).
number
Page number (1-indexed): a whole number, 1 or more. Defaults to 1. Any other value returns 400 connection/invalid-query with param: "page".
number
Results per page: a whole number from 1 to 100. Defaults to 20. A larger value returns 400 connection/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 connections whose connected user’s 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.

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 accepted connection rows. The rows carry no type or message.
object
Pagination metadata.

Error Responses

A user token, or a request with no credentials, 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