---
title: "Reset user password"
method: POST
path: "/api/accounts/reset-password/"
tags: ["accounts"]
---

# Reset user password

`POST /api/accounts/reset-password/`

## Request

- Base URL: `https://docs.blindinsight.io` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.blindinsight.io/api/accounts/reset-password/`
- Auth: one of:
  - API key in cookie `sessionid`
  - HTTP basic
  - HTTP bearer
  - none
- TypeScript: <https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/docs/api/accounts/reset-password/post.ts> (a function with typed inputs; its response is checked against the schema)

Reset the password of the given user using the provided signature and timestamp.

This endpoint is generally only used by an administrator to reset a user's
password.

The response will be a detail message indicating if the password reset was
successful.

**On the command line:**

```bash
blind accounts reset-password --data reset-password.json
```

## Request body

- ResetPassword
  - `user_id` string, required
  - `timestamp` integer, required
  - `signature` string, required
  - `password` string, required

## Response `200`

- PasswordReset
  - `detail` string

## Other responses

- `400`

---

[API](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api.md) - [All operations](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blindinsight/apis/blind-insight-rest-api/revisions/0ac902401cea?raw)
