Skip to main content
Get Block Status
Returns only the acting user’s outbound block state — whether I block :userId. This powers a block/unblock toggle in your app’s UI.
This endpoint is outbound-only by design. It never reveals the inbound direction (whether :userId has blocked the caller). Exposing the inbound state would let a blocked user poll this endpoint to discover a block — the exact disclosure the feature exists to prevent.
Requires the moderation bundle. A project without the moderation bundle returns 403 database/tables-not-available. See Bundles.

Path Parameters

string
required
The Sublay user ID (UUID) of the user to check block status against (the target).

Query Parameters

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

Response

On success, returns HTTP 200.
boolean
true if the acting user blocks the target user; otherwise false.
object
The block row. Present only when isBlocking is true.
Blocking
Not blocking

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