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.

Blocks a specific user, preventing them from viewing your profile or interacting with your content.

Endpoint

POST /api/v1/users/:id/block

Parameters

id
string
required
The ID of the user to block.
curl -X POST https://api.onlydrams.app/api/v1/users/456e7890-e89b-12d3-a456-426614174001/block \
  -H "Authorization: Bearer $ACCESS_TOKEN"
{
  "message": "User blocked successfully"
}

Error Responses

{
  "error": "User not found"
}
{
  "error": "User is already blocked"
}
{
  "error": "Cannot block yourself"
}