---
title: "Set password"
method: POST
path: "/accounts/set-password"
tags: ["Authentication"]
---

# Set password

`POST /accounts/set-password`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/set-password`
- Auth: none required
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/set-password/post.ts> (a function with typed inputs; its response is checked against the schema)

Sets a password for a new user

## Request body

- object
  - `token` string, required: Set password token
  - `password` string, required: New password. Requirements: - Minimum length: 8 characters - Must contain at least one uppercase letter - Must contain at least one lowercase letter - Must contain at least one digit (number) - Must contain at least one special character (punctuation or symbol) - Maximum length: 99 characters

## Response `200`

Password set successfully

- object
  - `data` object, required
    - `account_id` string
    - `user_id` string
    - `account` string
    - `email` string, email

## Other responses

- `400`: Bad request

## Changes

- **2025-06-12** `4979dfd00eda`: 4 warning, 1 info
  - removed the optional property `account` from the response with the `200` status
  - removed the optional property `account_id` from the response with the `200` status
  - removed the optional property `email` from the response with the `200` status
  - removed the optional property `user_id` from the response with the `200` status
  - …1 more

[Operation history](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/changes/accounts/set-password/post.md)

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
