Set new password

Set a new password for the user account using a security token. This endpoint allows users to reset their password when they have forgotten it, using a token received via email or SMS.

POST
/auth/set-password

Request Body

application/json

New password payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api-testnet.dual.network/auth/set-password" \  -H "Content-Type: application/json" \  -d '{    "token": "string",    "new_password": "string"  }'
{}
{
  "code": 0,
  "message": "string",
  "details": {}
}
{
  "code": 0,
  "message": "string",
  "details": {}
}