Integration guide

Set up the Bubble.io integration for SMS and iMessage

This Bubble.io integration guide is for Bubble builders who want their app to send texts. After ten steps, any Bubble workflow can send SMS, MMS or iMessage through the VoidFix REST API, using Bubble’s API Connector and your app’s own data.

6 min readAPI Connector + REST APIBubble.io + VoidFix

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.

EndpointMethodPurpose
/services/send.phpPOSTSend a single or bulk SMS/MMS
/services/read-messages.phpGETGet messages by ID, group ID or status
/services/send-imessage.phpPOSTSend an iMessage

Main parameters for sending a single message with /services/send.php:

ParameterDescription
keyYour API key
numberRecipient phone number in international format, e.g. +15551234567
messageMessage text (Spintax supported)
devicesDevice ID(s) to send from
scheduleOptional date-time to schedule the message
isMMStrue to send MMS
attachmentsMedia URL(s) for MMS
prioritizetrue 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

  1. 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 devices parameter.

  2. Open your app in Bubble.io

    Open your Bubble.io account and select the app you want to integrate the SMS functionality with.

  3. 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.

  4. 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 key parameter.

  5. 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: POST https://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_ID

    Untick Private on dynamic_phone_number and dynamic_message so they can be set in workflows. Keep your API key private so it never reaches the browser.

  6. 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.

  7. 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).

  8. 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.

  9. 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.

  10. 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 schedule with the date-time it should go out.
  • Send MMS: add isMMS=true and attachments with the media URL(s).
  • Jump the queue: add prioritize=true.
  • Bulk send: /services/send.php also accepts messages (an array of {number, message, type, attachments}) together with key, devices, schedule, useRandomDevice (rotate across devices), option and prioritize.
  • Check delivery: add a second call, used as Data, to GET /services/read-messages.php to 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: POST https://sms.voidfix.com/services/send-imessage.php
  • Parameters: key, number, message and deviceID

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.

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.

Benefits

Why send Bubble.io messages through VoidFix

SMS, MMS and iMessage

One API Connector setup covers texts, picture messages and, on an iMessage plan, blue-bubble iMessages.

Uses your app’s data

Map the phone number and message to fields in your app, such as the current user’s phone or a form input.

No custom code

Bubble’s API Connector plugin makes the request. You fill in fields and initialize the call.

Add SMS to your Bubble app

Paid SMS plans start at $49/month with unlimited texts from your own SIMs. Compare plans, or book a call and we’ll help you wire up your Bubble app.