Before you start
Prerequisite: Connect your Android phone to VoidFix Gateway before you start. Follow the Android device connection guide and check that the device shows your phone number in the dashboard. To send iMessage instead, you need an active iMessage line.
Bubble talks to VoidFix Gateway through the API Connector plugin and the VoidFix REST API. You will need:
- Your VoidFix API key, from the API section of the portal.
- The ID of the device you want to send from.
- A Bubble.io app where you can install plugins and edit workflows.
The API at a glance
All requests go to the base URL https://sms.voidfix.com and are authenticated with your API key in the key parameter.
| Endpoint | Method | Purpose |
|---|---|---|
/services/send.php | POST | Send a single or bulk SMS/MMS |
/services/read-messages.php | GET | Get messages by ID, group ID or status |
/services/send-imessage.php | POST | Send an iMessage |
Main parameters for sending a single message with /services/send.php:
| Parameter | Description |
|---|---|
key | Your API key |
number | Recipient phone number in international format, e.g. +15551234567 |
message | Message text (Spintax supported) |
devices | Device ID(s) to send from |
schedule | Optional date-time to schedule the message |
isMMS | true to send MMS |
attachments | Media URL(s) for MMS |
prioritize | true to send ahead of the queue |
Example request (form-encoded):
POST https://sms.voidfix.com/services/send.php
Content-Type: application/x-www-form-urlencoded
key=YOUR_API_KEY&number=+15551234567&message=Hi! Your appointment is tomorrow at 10am.&devices=215
Step-by-step setup in Bubble.io
-
Copy your VoidFix API key and device ID
Log in to your VoidFix account, open the API section of the portal (https://sms.voidfix.com/api.php) and copy your API key. The API endpoint for sending is
https://sms.voidfix.com/services/send.php.Also note the ID of the device you want to send from. It goes in the
devicesparameter. -
Open your app in Bubble.io
Open your Bubble.io account and select the app you want to integrate the SMS functionality with.
-
Install the API Connector plugin
In Plugins, click Add plugins, search for API Connector and install it. If it is already installed, skip this step.
-
Add VoidFix as a new API in the API Connector
Go to Plugins > API Connector and click Add another API. Name it (e.g., “VoidFix SMS Gateway”) and choose None or self-handled for authentication, because the API key is sent as the
keyparameter. -
Add the “Send SMS” call
Inside the API, click Add another call and set it up as follows:
- Name: Send SMS
- Use as: Action, so it appears in your workflows
- Method and URL:
POSThttps://sms.voidfix.com/services/send.php - Header:
Content-Type=application/x-www-form-urlencoded - Body: the form-encoded parameters below. Text in angle brackets becomes a parameter you can fill in from Bubble.
key=YOUR_API_KEY&number=<dynamic_phone_number>&message=<dynamic_message>&devices=YOUR_DEVICE_IDUntick Private on
dynamic_phone_numberanddynamic_messageso they can be set in workflows. Keep your API key private so it never reaches the browser. -
Initialize the call with a test number
Enter a test phone number in international format (e.g.
+15551234567) and a short test message, then click Initialize call. Bubble sends a real request and reads the response so it can use the call in workflows. -
Map the phone number and message to your app’s data
Replace
<dynamic_phone_number>with the phone number field (e.g., Current User’s Phone), and<dynamic_message>with the dynamic message content from your app (e.g., a welcome message). -
Create a workflow that sends the SMS
Create a workflow in Bubble (e.g., on form submission or button click), add the action Plugins > VoidFix SMS Gateway - Send SMS and fill in the dynamic fields to send the SMS with your app’s data.
-
Trigger the workflow and confirm delivery
Trigger the workflow and check if the SMS is sent successfully by verifying in your VoidFix dashboard or on your phone.
-
Watch the VoidFix logs and adjust
Monitor the logs in VoidFix, adjust the workflow, and optimize for better performance if needed.
Scheduling, MMS and bulk sends
Add more parameters to the body of your call (and mark them dynamic if they should come from your app):
- Schedule a message: add
schedulewith the date-time it should go out. - Send MMS: add
isMMS=trueandattachmentswith the media URL(s). - Jump the queue: add
prioritize=true. - Bulk send:
/services/send.phpalso acceptsmessages(an array of{number, message, type, attachments}) together withkey,devices,schedule,useRandomDevice(rotate across devices),optionandprioritize. - Check delivery: add a second call, used as Data, to
GET /services/read-messages.phpto get messages by ID, group ID or status.
Full parameter details are in the SMS API documentation.
Sending iMessage from Bubble.io
On the iMessage plan, add another call to the same API in the API Connector:
- Method and URL:
POSThttps://sms.voidfix.com/services/send-imessage.php - Parameters:
key,number,messageanddeviceID
Initialize it the same way and use it in your workflows. See the iMessage API documentation for the request format and the other iMessage endpoints.
Related guides and pages
- Connect your Android phone to VoidFix Gateway (required for SMS and MMS)
- SMS API documentation with every send parameter
- SMS plans and pricing and iMessage plans and pricing
- Zapier SMS integration guide, if you would rather connect Bubble through Zapier
- VoidFix developer hub: the starting point for the SMS, WhatsApp and iMessage APIs
Get help with your setup
If a step doesn’t work as described, email support@voidfix.com. Support is available 24/7. You can also book a setup call and we’ll go through it with you.