Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

Retrieves a list of all users that the authenticated user has blocked.

Endpoint

GET /api/v1/users/:id/blocked

Parameters

id
string
required
The ID of the user whose blocked list to retrieve (must be the authenticated user).
page
integer
Page number for pagination (default: 1).
per
integer
Number of items per page (default: 20).
curl -X GET https://api.onlydrams.app/api/v1/users/123e4567-e89b-12d3-a456-426614174000/blocked \
  -H "Authorization: Bearer $ACCESS_TOKEN"
{
  "total": 3,
  "has_more": false,
  "data": [
    {
      "id": "456e7890-e89b-12d3-a456-426614174001",
      "username": "blocked_user1",
      "display_name": "Blocked User One",
      "avatar_url": "https://example.com/avatar1.jpg",
      "blocked_at": "2024-01-15T10:30:00Z"
    },
    {
      "id": "789e0123-e89b-12d3-a456-426614174002",
      "username": "blocked_user2",
      "display_name": "Blocked User Two",
      "avatar_url": "https://example.com/avatar2.jpg",
      "blocked_at": "2024-01-14T15:45:00Z"
    },
    {
      "id": "abc12345-e89b-12d3-a456-426614174003",
      "username": "blocked_user3",
      "display_name": "Blocked User Three",
      "avatar_url": null,
      "blocked_at": "2024-01-13T09:15:00Z"
    }
  ]
}

Error Responses

{
  "error": "You can only view your own blocked users"
}
{
  "error": "User not found"
}