---
title: "Block or unblock a creator"
method: PUT
path: "/api/safety/blocks/{username}"
---

# Block or unblock a creator

`PUT /api/safety/blocks/{username}`

## Request

- Base URL: `https://api.peelaway.io`
- URL: `https://api.peelaway.io/api/safety/blocks/{username}`
- Auth: API key in cookie `better-auth.session_token`

JSON {blocked:boolean}. A blocked creator's public profile, creations, media and styles are unavailable to the signed-in viewer.

## Path parameters

- `username` string, required

## Response `200`

{blocked:boolean}

## Other responses

- `404`: Creator unavailable

---

[API](https://skmtc.dev/peelaway/apis/peelaway-image-api.md) · [All operations](https://skmtc.dev/peelaway/apis/peelaway-image-api/llms.txt) · [OpenAPI document](https://skmtc.dev/peelaway/apis/peelaway-image-api/revisions/8ce45533c9d0?raw)
