Skip to content

AddressBook

Capability: urn:ietf:params:jmap:contacts

Arguments

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account to fetch address books from.
idsanyNoIDs of specific address books to fetch. Null or omitted to fetch all address books.
propertiesanyNoAddressBook properties to include in the response. Null or omitted for all properties.

Response

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account the address books belong to.
statestringYesThe current state of the AddressBook type. Pass to AddressBook/changes to detect future changes.
listAddressBook[]YesThe list of AddressBook objects that were found.
notFoundstring[]YesIDs from the request that could not be found.

Capability: urn:ietf:params:jmap:contacts

Arguments

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account to apply changes to.
ifInStatestring?NoOptimistic concurrency guard. Fails with stateMismatch if the AddressBook state differs.
createobject?NoMap of client-assigned creation ids to AddressBookCreate objects.
updateobject?NoMap of AddressBookId to PatchObject. Only explicitly listed properties are changed.
destroyarray?NoAddressBookIds to delete.
onDestroyRemoveContentsbooleanNoIf true, also destroy all ContactCards in the address book. Default false.
onSuccessSetIsDefaultanyNoIf an id is given, and all creates, updates and destroys succeed without error, the server tries to set this AddressBook as the default; a creation reference uses the creation id prefixed with #. An id not found, or a change the server does not permit, is ignored with no error (RFC 9610 section 2.3).

Response

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account the changes were applied to.
oldStatestring?NoThe AddressBook state before this set, or null if the server cannot calculate it.
newStatestringYesThe AddressBook state after this set.
createdobject?NoSuccessfully created address books, keyed by client creation id.
updatedobject?NoMap of successfully updated AddressBookId to the updated object (or null if unchanged properties are not returned).
destroyedanyNoAddressBookIds that were successfully destroyed.
notCreatedobject?NoCreation ids that failed, with a SetError.
notUpdatedobject?NoAddressBookIds that failed to update, with a SetError.
notDestroyedobject?NoAddressBookIds that failed to destroy, with a SetError.

Capability: urn:ietf:params:jmap:contacts

Arguments

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account to fetch address book changes for.
sinceStatestringYesThe state string from the last AddressBook/get or AddressBook/changes response.
maxChangesintegerNoMaximum number of change records to return. If exceeded, hasMoreChanges will be true.

Response

PropertyTypeRequiredDescription
accountIdAccountIdYesThe account these address book changes belong to.
oldStatestringYesThe state this response starts from.
newStatestringYesThe current state after all listed changes; pass to the next call.
hasMoreChangesbooleanYesIf true, additional changes exist beyond maxChanges. Call again with newState.
createdAddressBookId[]YesIDs of address books created since sinceState.
updatedAddressBookId[]YesIDs of address books whose properties changed since sinceState.
destroyedAddressBookId[]YesIDs of address books destroyed since sinceState.