You need a running BlueBubbles Server on a macOS machine before you start. Have your server’s network address and password ready. If you haven’t set up the server yet, follow the BlueBubbles Server setup guide first.
Create a client
Import The client exposes a service for each resource group —
BlueBubblesClient and construct it with your server’s address and password. The BASE field is your server’s full base URL and PASSWORD is the password you configured in the BlueBubbles Server settings.client.chats, client.messages, client.handles, client.attachments, and more. Every request made through those services automatically includes your password as a query parameter.List your chats
Call A successful response returns an object with a
client.chats.list to fetch recent conversations. This confirms the SDK can reach your server and authenticate successfully.data array of chat objects. Each chat has a guid — a string like iMessage;+;1234567890 — that you use to identify the conversation in subsequent calls.Send a text message
Use Replace
client.messages.sendText to send an iMessage. Pass the chatGuid of the conversation you want to send to and the message text.iMessage;+;1234567890 with a real chat GUID from the list you fetched in the previous step. The + variant addresses a one-on-one iMessage conversation by phone number.Next steps
Now that you have a working client, explore the rest of the SDK:- Read the Authentication page to understand how credentials work and what to do if a request fails
- Follow the Sending messages guide for handling replies, reactions, and attachments
- Browse the API reference for the full method signatures of every service