Generate Password API - marius-wieschollek/passwords GitHub Wiki
The password endpoint uses the service defined in the app settings andthe users settings to generate a new password which is not in the breached passwords database.
Contents
[[TOC]]
Version History
App Version
Change
2018.1.0
Initial introduction of the API
2018.12.0
The "strength" limit of 4 is enforced
Endpoints
Generate Password GET Endpoint
This API endpoint generates a new password with the users default settings
URL
Path
Method
/api/1.0/service/password
GET
Restrictions
Nextcloud Authentication required
Authenticated API Session required
Response
The success status code is 200 Ok
Status
MIME
Type
Description
200
application/json
object
An object with generated password
503
application/json
object
Error object.
502
application/json
object
Error object.
Property
Type
Description
password
string
The generated password
words
string
The words used in the password
strength
int
The strength setting used
numbers
bool
Whether or not numbers were used in the password
special
bool
Whether or not special characters were used in the password