Skip to main content

Endpoint

DELETE /api/users/{username}/block

Authentication

This endpoint requires authentication.

Path Parameters

username
string
required
The username of the user to unblock

Request Body

userName
string
required
The username of the account initiating the unblock action

Request Example

curl -X DELETE https://api.example.com/api/users/johndoe/block \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "userName": "yourUsername"
  }'

Response

status
number
Returns 204 No Content on successful unblock

Error Responses

404 Not Found
error
  • "This account does not exist" - The initiating account was not found
  • "This user does not exist" - The target username was not found
403 Forbidden
error
Returned when attempting to unblock yourself
409 Conflict
error
"Account does not block this user" - The user is not currently blocked

Build docs developers (and LLMs) love