---
updatedAt: 2026-07-20T11:27:27.000Z
---

# Complete new password required challenge

# OpenAPI definition

```json
{
  "openapi": "3.1.1",
  "info": {
    "title": "Authentication API",
    "description": "",
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://api.twinstake.io"
    }
  ],
  "paths": {
    "/v2/auth/new-password-challenge": {
      "post": {
        "tags": [
          "authentication"
        ],
        "summary": "Complete new password required challenge",
        "operationId": "api_v2_auth_new-password-challenge_post",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NewPasswordChallengeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthenticationResponse"
                }
              }
            }
          }
        },
        "security": []
      }
    }
  },
  "components": {
    "schemas": {
      "AuthenticationResponse": {
        "properties": {
          "authentication_result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AuthenticationTokens"
              },
              {
                "type": "null"
              }
            ],
            "description": "Authentication result"
          },
          "challenge_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Challenge Name",
            "description": "Challenge name (provided only if MFA enabled)"
          },
          "session": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session",
            "description": "Session (provided only if MFA enabled)"
          }
        },
        "type": "object",
        "title": "AuthenticationResponse"
      },
      "AuthenticationTokens": {
        "properties": {
          "token": {
            "type": "string",
            "title": "Token",
            "description": "Identity token"
          },
          "expires_in": {
            "type": "integer",
            "title": "Expires In",
            "description": "Identity token validity duration"
          },
          "token_type": {
            "type": "string",
            "title": "Token Type",
            "description": "Identity token type"
          },
          "access_token": {
            "type": "string",
            "title": "Access Token",
            "description": "Access token"
          },
          "refresh_token": {
            "type": "string",
            "title": "Refresh Token",
            "description": "Refresh token"
          }
        },
        "type": "object",
        "required": [
          "token",
          "expires_in",
          "token_type",
          "access_token",
          "refresh_token"
        ],
        "title": "AuthenticationTokens"
      },
      "NewPasswordChallengeRequest": {
        "properties": {
          "username": {
            "type": "string",
            "title": "Username",
            "description": "Username"
          },
          "new_password": {
            "type": "string",
            "title": "New Password",
            "description": "New password"
          },
          "session": {
            "type": "string",
            "title": "Session",
            "description": "Session id"
          }
        },
        "type": "object",
        "required": [
          "username",
          "new_password",
          "session"
        ],
        "title": "NewPasswordChallengeRequest"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "description": "Fetch JWT token from Auth API",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```