Storyden
Accounts

Account Password Reset Token Get

Provides the caller with a token that can be used with the endpoint `/auth/password/reset` to reset the account's password. This is intended for admin usage for when the instance is not using email authentication mode or if the target account has no email addresses to send resets.

POST
/accounts/{account_id}/auth/password/reset-token

Provides the caller with a token that can be used with the endpoint /auth/password/reset to reset the account's password. This is intended for admin usage for when the instance is not using email authentication mode or if the target account has no email addresses to send resets.

Authorization

cookiestoryden-session<token>

Path Parameters

account_id*string

Account ID.

Formatxid

Response Body

OK

application/json
  1. response
token*string

Password reset token that can be used on the /auth/password/reset endpoint to reset the account's password. This token is valid for one hour and can only be used once. The token is identical in format to tokens sent via email in the user-facing password reset flow.

Example Request
curl -X POST 'https://example.com/api/accounts/string/auth/password/reset-token'
Example Response
{  "token": "string"}