Skip to content

Password Change API

Marius David Wieschollek edited this page Feb 4, 2024 · 5 revisions

The password change url endpoint will attempt to determine the url of the "Change password page" for the given domain. It uses the .well-known/change-password standard as well as an internal database of password change URLs for common services to determine the URL.

Contents

[[TOC]]

Version History

App Version Change
2023.3.0 Initial introduction of the API
2024.2.0 Addition of rate limits

Password Change Page POST Endpoint

Retrieves the url of the password change page for the given domain.

URL

Path Method
/api/1.0/service/password-change POST

Request

This endpoint accepts a JSON formatted request body with an object with the following properties.

Property Type Default Required Description
domain string - yes The domain name

Restrictions

  • Nextcloud Authentication required
  • Authenticated API Session required
  • User rate limit of 2 requests per 8 seconds

Response

The success status code is 200 Ok and 404 Not Found if no url could be determined.

Status MIME Type Description
200 application/json object An object with the url of the password change page
404 application/json object An object where the property url is null.
429 text/html - Rate limit exceeded
Property Type Description
url string The URL of the password change page for the domain

Response Example

{
    "url": "https://test.passwordsapp.org/settings/user/security"
}

Notes

  • In case of a 404 status code, some servers may replace the response with an HTML page.
Clone this wiki locally