> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeplo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# DELETE Delete User

> Delete a user account.

## Delete user

`DELETE /api/admin/users/:id`

Delete a user account from the platform.

### Headers

**Cookie** `string` *required*

Session cookie (login via POST /api/auth/login)

### Path parameters

**id** `integer` *required*

User ID.

```bash cURL theme={null}
curl -X DELETE https://zeplo.ai/api/admin/users/5 \
  -H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
```

```json Response theme={null}
{
  "success": true,
  "message": "User deleted successfully"
}
```

> [!WARNING]
>
> Deleting a user removes all their data including conversations, contacts, campaigns, and templates. This action is irreversible.

***

## Forgot password

`POST /api/auth/forgot-password`

### Body parameters

**email** `string` *required*

Email address of the user.

```json theme={null}
{
  "email": "user@example.com"
}
```

Sends a password reset OTP to the user's email.

***

## Reset password

`POST /api/auth/reset-password`

### Body parameters

**email** `string` *required*

Email address.

**otp** `string` *required*

OTP received via email.

**newPassword** `string` *required*

New password.

```json theme={null}
{
  "email": "user@example.com",
  "otp": "123456",
  "newPassword": "NewSecurePass789!"
}
```

***

## Verify OTP

`POST /api/auth/verify-otp`

### Body parameters

**email** `string` *required*

Email address.

**otp** `string` *required*

One-time password.

```json theme={null}
{
  "email": "user@example.com",
  "otp": "123456"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.