---
title: "Set or change password on an existing account"
method: POST
path: "/api/v1/auth/set-password"
tags: ["Authentication & Billing"]
---

# Set or change password on an existing account

`POST /api/v1/auth/set-password`

## Request

- Base URL: `https://www.deepmapai.com`
- URL: `https://www.deepmapai.com/api/v1/auth/set-password`
- Auth: none declared

Upgrade an existing API-key-only account to also support email+password sign-in.  Requires Bearer auth with an existing valid api_key; sets the password on the email attached to that key.  Idempotent -- call again to change the password.

## Query parameters

- `x_api_key` string, nullable

## Request body

- SetPasswordRequest
  - `password` string, required: New password, 8+ characters.

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/deepmapai/apis/deepmap-ai.md) · [All operations](https://skmtc.dev/deepmapai/apis/deepmap-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/deepmapai/apis/deepmap-ai/revisions/dab995d977d0?raw)
