Skip to content

List blocked users

GET
/v1/blocks
curl --request GET \
--url 'https://app.mondochat.io/v1/blocks?limit=50' \
--header 'Authorization: Bearer <token>'

Lists the users the caller blocked, newest block first, one page at a time. Deleted users are left out and each user comes without presence. Another user’s blocks are never listed. Takes a session token. See https://docs.mondochat.io/guides/safety/.

cursor
Any of:
string
limit
Limit
integer
default: 50 >= 1 <= 200

Successful Response

Media typeapplication/json
Page[BlockedUser]

One page of a list, with a cursor for the next page.

object
items
required
Items

The entries on this page.

Array<object>
BlockedUser

A user the caller blocked.

object
created_at
required
Created At

When the caller blocked them.

string format: date-time
user
required
Peer

The blocked user, without presence.

object
avatar
Any of:
string
external_id
required
External Id

The user’s id on your site.

string
id
required
Id

The user’s id in mondochat.

string format: uuid
last_seen_at
Any of:
string format: date-time
name
required
Name

Display name.

string
online
Any of:
boolean
presence_pass
Any of:
string
role
required
Role

A role key from the app’s roles.

string
tier
Any of:
string
next_cursor
Any of:
string

Example

{
"items": [
{
"created_at": "2026-11-01T09:30:00Z",
"user": {
"external_id": "bob",
"id": "0199d6a0-1000-7000-8000-000000000002",
"name": "Bob",
"role": "member"
}
}
]
}

Problem

Media typeapplication/problem+json

An RFC 9457 problem: the body of every error answer.

object
code
required

The stable error code to branch on, such as policy_denied.

string
detail

What went wrong this time, when there is more to say.

string | null
errors

For validation, one entry per invalid field.

Array<object>

One invalid field.

object
loc

The path to the field.

array
msg

What is wrong with it.

string
instance

The path of the request.

string
reason

For policy_denied and limit_reached, the rule or limit that refused the request; for forbidden, a short cause such as you_blocked; for banned, temporary when the ban expires.

string
status
required

The HTTP status code.

integer
title
required

A short summary of the problem.

string
type
required

A URL that names the problem, https://app.mondochat.io/problems/<code>.

string

Example

{
"code": "policy_denied",
"detail": null,
"instance": "/v1/conversations/0199d6a0-2000-7000-8000-000000000001",
"reason": "pins",
"status": 403,
"title": "Policy denied",
"type": "https://app.mondochat.io/problems/policy_denied"
}