---
title: "Generate password reset token"
method: POST
path: "/resources/users/v1/{userId}/links/generate-password-reset-token"
tags: ["Users"]
---

# Generate password reset token

`POST /resources/users/v1/{userId}/links/generate-password-reset-token`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/users/v1/{userId}/links/generate-password-reset-token`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/users/v1/:userId/links/generate-password-reset-token/post.ts> (a function with typed inputs; its response is checked against the schema)

This route generates a password reset token for a user. Send the user’s ID as a path params. You may need this route in combination with the routes under Users Passwords. It will not send the reset password email itself, but return the reset link and token. A vendor token is required for this route, it can be obtained from the vendor authentication route.

## Path parameters

- `userId` string, required

## Response `201`

- GenerateUserResetPasswordLinkResponseDto
  - `link` string, required
  - `token` string, required
  - `userId` string, required

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
