---
title: "Add Suspicious User"
method: POST
path: "/user"
---

# Add Suspicious User

`POST /user`

## Request

- Base URL: `https://prompt.safetorun.com`
- URL: `https://prompt.safetorun.com/user`
- Auth: API key in header `x-api-key`

This endpoint adds a user to the list of suspicious users.

## Request body

- User
  - `userId` string: The user ID of the suspicious user.

## Response `201`

User successfully added.

## Other responses

- `400`: Bad request. The user data is missing or invalid.
- `500`: Internal server error.

---

[API](https://skmtc.dev/safetorun/apis/promptdefender-pii-and-prompt-injection-verification-service.md) - [All operations](https://skmtc.dev/safetorun/apis/promptdefender-pii-and-prompt-injection-verification-service/llms.txt) - [OpenAPI document](https://skmtc.dev/safetorun/apis/promptdefender-pii-and-prompt-injection-verification-service/revisions/d7e556f931cd?raw)
