AccountPassword
AccountPassword
Section titled “AccountPassword”Password-based authentication credential.
This object can be configured from the WebUI under Account › Credentials › Password
Fields
Section titled “Fields”secret
Section titled “secret”Type:
String?· secretSecret value of the account
currentSecret
Section titled “currentSecret”Type:
String?· secretThe current secret value of the account, used for password verification.
otpAuth
Section titled “otpAuth”Type:
OtpAuth· requiredOTP authentication settings for the account
JMAP API
Section titled “JMAP API”The AccountPassword singleton is available via the urn:stalwart:jmap capability.
x:AccountPassword/get
Section titled “x:AccountPassword/get”This is a standard Foo/get method as defined in RFC 8620, Section 5.1.
For singletons, the ids argument should be the literal singleton (or null to return the single instance).
This method requires the sysAccountPasswordGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:AccountPassword/get", { "ids": [ "singleton" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:AccountPassword/set
Section titled “x:AccountPassword/set”This is a standard Foo/set method as defined in RFC 8620, Section 5.3.
For singletons, only the update argument with id singleton is accepted; create and destroy arguments are rejected.
This method requires the sysAccountPasswordUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:AccountPassword/set", { "update": { "singleton": { "secret": "updated value" } } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.
stalwart-cli get AccountPasswordUpdate
Section titled “Update”stalwart-cli update AccountPassword --field secret='updated value'Nested types
Section titled “Nested types”OtpAuth
Section titled “OtpAuth”OTP-based authentication credential.
otpCode
Section titled “otpCode”Type:
String?· secretOTP code for the account, required for credential changes.
otpUrl
Section titled “otpUrl”Type:
Uri?· secretOTP authentication URI for the account