---
agentTools:
  projectIndex: https://evolutionscript.readme.io/llms.txt
---

# Reset password

The Bearer token is the access token requested in [Request Access Token](https://evolutionscript.readme.io/reference/request-access-token) page.

The token used in this request is the token received from [Forgot Password](https://evolutionscript.readme.io/reference/forgot-password) page.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "EvolutionScript API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://yoursite.com/api/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/api/forgot/reset": {
      "post": {
        "summary": "Reset password",
        "description": "",
        "operationId": "reset-password",
        "parameters": [
          {
            "name": "Authentication",
            "in": "header",
            "description": "Ex: Bearer {access_token} should be replaced with the access token.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "Bearer {access_token}"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "code",
                  "token",
                  "password"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "The verification code sent to user's email address."
                  },
                  "token": {
                    "type": "string",
                    "description": "The token received in the Forgot Password request."
                  },
                  "password": {
                    "type": "string",
                    "description": "New user password, it must be at least 6 characters in length."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  status: 'success',\n  message: 'OK'\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  status: 'error',\n  message: 'invalidrequest'\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "65bd0cc6f82c50005bb26657:65c106f3554429001d0cb6df"
}
```