API: Generate app passwords
| Target URL | /api.php/Core/!admin/users/!super/app_password |
| Required scope | admin |
| Requires superuser authentication | Yes |
| HTTP Method | POST |
| Output format | JSON |
Request Parameters Reference
| Parameter | Type | Required | Description |
|---|---|---|---|
| uid | integer | Yes | The ID of the user account to generate an app password for |
| name | string | No | A name for the app password, shown in the list of app passwords of the account (since 2026.3.0) |
The response carries username, the public id of the account, and password. These are the credentials the application authenticates with (see the "password" grant on the API page).
Since 2026.3.0 the request is refused for your own account, for guest accounts and for administrator accounts.