The contacts service gives you access to the Contacts app data on the macOS machine running BlueBubbles Server. You can retrieve all contacts at once or query for specific contacts by passing one or more phone numbers or email addresses. This is useful for resolving display names, profile photos, and other contact metadata alongside your iMessage data. Access the service throughDocumentation Index
Fetch the complete documentation index at: https://bluebubbles.anmho.com/llms.txt
Use this file to discover all available pages before exploring further.
client.contacts.
Contacts are read directly from the macOS device. The server must have
permission to access the system Contacts app. If the permission has not been
granted, these calls will return empty results or an error.
Fetch all contacts
getContacts()
Returns all contacts stored on the macOS device running BlueBubbles Server.
Signature
Query contacts by address
queryContacts()
Queries for contacts matching a list of addresses (phone numbers or email addresses). Use this when you already have addresses from a message or handle and want to resolve their contact information.
Signature
A list of one or more phone numbers or email addresses to look up. Each entry
should match the format stored in the Contacts app (e.g.
+12125551234 or
user@icloud.com).