POST /users/password-reset - Initiates a password reset process for a user.


Body:

Path Parameters:

  • None

Query Parameters:

  • None

  • 200 OK – Password reset response. See examples for specific auth providers.

Status Code Meaning When it Happens
400 Bad Request Missing or invalid parameters
401 Unauthorized Missing or invalid authentication token
404 Not Found User not found
429 Too Many Requests Rate limit exceeded
500 Internal Server Error Unexpected error
{
"error": "Detailed error message here"
}

POST /users/password-reset
{
"provider": "auth0-user",
"userId": "exampleUserId",
"clientId": "client_xyz",
}
  • This response contains a URL for the user to reset their password.
{
"url": "password reset url"
}
POST /users/password-reset
{
"provider": "cognito-user",
"userId": "exampleUserId",
"userPoolId": "us-east-1_1234test",
"password": "password that fits requirements",
}
  • This response indicates that a password reset email has been sent to the user.
 {
"message": "Password reset initiated successfully",
"status": "success",
"$metadata": {
"httpStatusCode": 200,
"requestId": "guid id",
"attempts": 1,
"totalRetryDelay": 0
}
}
}

  • Parameters

    • event: APIGatewayProxyEvent

      The API Gateway event containing the request.

    • context: Context
    • callback: Callback<APIGatewayProxyResult>

    Returns void | Promise<APIGatewayProxyResult>

    A Promise resolving to an API Gateway-compatible response.