Reset the password with a token

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://api-docs.kitsu.cloud/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Kitsu API MCP server": {
    "url": "https://api-docs.kitsu.cloud/mcp"
  }
}

Close
PUT /auth/reset-password

Set a new password for a user who forgot the password. Give the token from the password reset email. The token proves that the user asked for the reset.

application/json

Body Required

  • email string(email) Required

    Email address of the user

    Minimum length is 1.

  • token string Required

    Password reset token from the email

    Minimum length is 1.

  • password string(password) Required

    New password

    Minimum length is 1.

  • password2 string(password) Required

    New password again

    Minimum length is 1.

Responses

  • 200

    The password is changed

  • 400

    The token is wrong or expired, the password is not valid, or the user is inactive

PUT /auth/reset-password
curl -X PUT "http://api.example.com/auth/reset-password" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "admin@example.com",
  "token": "",
  "password": "",
  "password2": ""
}'
import requests

url = "http://api.example.com/auth/reset-password"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json",
    "Content-Type": "application/json"
}
params = {}
payload = {
    "email": "admin@example.com",
    "token": "",
    "password": "",
    "password2": ""
}

response = requests.put(
    url,
    headers=headers,
    params=params,
    json=payload
)

response.raise_for_status()

if response.content:
    print(response.json())
Request examples
{
  "email": "admin@example.com",
  "token": "string",
  "password": "string",
  "password2": "string"
}