---
title: "POST /users/{publicKey}/eject"
method: POST
path: "/users/{publicKey}/eject"
---

# POST /users/{publicKey}/eject

`POST /users/{publicKey}/eject`

Ejects a user given their public key. In the case of failure, a rejected promise is returned to the caller.

## Path parameters

- `publicKey` string, required

## Request body

- object

## Response `200`

Successful operation

- object
  - `publicKey` string

## Other responses

- `400` — Bad Request.
- `401` — User is not authorized to perform this action.
- `500` — Unable to fullfil request due to internal server error.

---

[API](https://skmtc.net/unlock-protocol/apis/unlock-locksmith.md) · [All operations](https://skmtc.net/unlock-protocol/apis/unlock-locksmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unlock-protocol/unlock-locksmith/versions/e003b998de45/schema)
