Reset Password

Apply a new password and auto-login

Validates the token + new password, archives the old digest, updates the user, invalidates existing sessions, and issues fresh auth tokens (refresh token in HttpOnly cookie).

patch/v1/reset_password/{token}

Request

  • Base URL
    https://identity-api.paymongo.com
  • URL
    https://identity-api.paymongo.com/v1/reset_password/{token}
  • Auth
    none required

Path parameters

tokenstring required

Reset password token

Request body

Example request

{
  "data": {
    "attributes": {
      "password": "NewStr0ng!Pass",
      "password_confirmation": "NewStr0ng!Pass"
    }
  }
}

Response

Created

has_moreboolean

Example response

{
  "data": {
    "attributes": {
      "expiry_timer": 600,
      "organization_id": "org_123",
      "user_contact_number": "+639171234567",
      "user_first_name": "Juan",
      "user_last_name": "dela Cruz"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.