---
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.

## Changes

> 50 revisions in range; 1 could not be searched.

- **2024-11-05** `40cb42858140` — 2 info
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `401`
- **2024-06-27** `8f70aad9f8a2` — 1 info
  - endpoint added
- **2023-11-03** `b77bfb068867` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/unlock-protocol/apis/unlock-locksmith/changes/users/:publicKey/eject/post.md)

---

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