Skip to content

Passkey

Passkey for passwordless sign-in to the account.

This object can be configured from the WebUI under Account › Credentials › Passkeys

Type: PasskeyRegistration? · read-only

WebAuthn registration response produced by the authenticator, only accepted on creation

Type: String · required · max length: 64

Name of the passkey

Type: UTCDateTime · read-only · server-set

Creation date of the passkey

The Passkey object is available via the urn:stalwart:jmap capability.

This is a standard Foo/get method as defined in RFC 8620, Section 5.1.

This method requires the sysPasskeyGet permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:Passkey/get",
{
"ids": [
"id1"
]
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This is a standard Foo/set method as defined in RFC 8620, Section 5.3.

Supports the following operations in a single call: create, update, destroy.

This operation requires the sysPasskeyCreate permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:Passkey/set",
{
"create": {
"new1": {
"description": "Example"
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This operation requires the sysPasskeyUpdate permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:Passkey/set",
{
"update": {
"id1": {
"description": "updated value"
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This operation requires the sysPasskeyDestroy permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:Passkey/set",
{
"destroy": [
"id1"
]
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This is a standard Foo/query method as defined in RFC 8620, Section 5.5.

This method requires the sysPasskeyQuery permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:Passkey/query",
{
"filter": {
"createdAt": "2026-01-01T00:00:00Z"
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

The x:Passkey/query filter argument accepts the following conditions (combinable with AnyOf / AllOf / Not per RFC 8620):

ConditionKind
createdAtdate

stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.

Terminal window
stalwart-cli get Passkey id1
Terminal window
stalwart-cli create Passkey \
--field description=Example
Terminal window
stalwart-cli query Passkey
stalwart-cli query Passkey --where createdAt=2026-01-01T00:00:00Z
Terminal window
stalwart-cli update Passkey id1 --field description='updated value'
Terminal window
stalwart-cli delete Passkey --ids id1

WebAuthn registration response produced by the authenticator.

Type: String · required

Client data JSON returned by the authenticator, base64url encoded

Type: String · required

Attestation object returned by the authenticator, base64url encoded