VoidFix SMS API Overview
The VoidFix SMS API sends texts and MMS from the SIMs in your own Android phones. Requests are plain form posts to sms.voidfix.com with your key as a parameter. This overview covers what each part does, the traps worth knowing, and a generator that writes the request in four languages.
- 1key parameter, no tokens
- 22SMS endpoints listed
- 200status even on failure
Quick answer: Copy your key from API & Settings at sms.voidfix.com, then POST form fields to /services/send.php on sms.voidfix.com: key, number with the country code and message. Add devices to pick a phone or SIM, schedule (Unix seconds) to send later, or type=mms with attachments for pictures. Replies always come back as HTTP 200, so check success. Follow status with read-messages.php or a webhook.
From your code to a handset, and back
The API doesn't send texts itself. It queues them for your Android phone, which sends them over its SIM like any text you'd type.
Your server: Builds a form post with the key, number and message, and keeps the key out of the browser.
Checks the key, queues the message as Pending or Scheduled, and answers with JSON and HTTP 200.
Picks the message up over the app's connection and sends it from the chosen SIM.
Gets an ordinary text from your number and can reply to it.
Replies: the phone receives the answer and VoidFix posts it to your webhook URL as an incoming message event.
Where this overview fits
The developer hub is the reference. This page explains the SMS API in working order and flags what trips people up.
| This page | The developer hub | The integration guide (blog) | |
|---|---|---|---|
| What it is | A working overview of the SMS API with a request builder | The reference for all three APIs: base URLs, endpoints, auth | A broader article on why and how to wire SMS into apps |
| Covers | SMS and MMS only: keys, SIM choice, scheduling, status, opt-outs, errors | SMS, WhatsApp and iMessage side by side | Use cases, A2P background, scaling ideas |
| Best for | Writing and checking your first real integration | Looking up a path or a parameter | Deciding whether an API fits at all |
Reference: VoidFix developer hub. Background reading: SMS API integration guide.
Authentication: one key, sent as a parameter
No OAuth, no token exchange, no header. That keeps it simple and makes the key the one thing to protect.
Where the key lives. Sign in at sms.voidfix.com and choose API & Settings in the left menu. In the API key section, press Copy key. The developer hub also gives the direct address: sms.voidfix.com/configuration.php#api.
If you've read "Tools → Keys" somewhere. Some older VoidFix pages describe keys under Tools → Keys. The developer hub, updated 26 October 2026, names API & Settings for the SMS portal, so go by that. If your menu looks different, VoidFix support can point you to it.
How it travels. The SMS API has no header or token step. The key goes in a parameter called key: in the query string for GET calls, and as a form field for POST calls. That makes it easy to test from a terminal, and easy to leak in a log line, so strip it from anything you print.
One key, the whole account. The hub warns that an API key gives full sending access. Keep it on your server in an environment variable or secret store. Never put it in browser JavaScript, a mobile app bundle or a public repository: anyone holding it can send from your SIMs.
A key per channel. This key works for the SMS portal only. WhatsApp keys come from wa.voidfix.com and go in an X-API-Key header. The iMessage API swaps a key and secret for a Bearer token, and each iMessage line can start conversations with 50 new contacts a day.
Before you start
A paid SMS plan
Two-way SMS and MMS are on Lite ($49 a month, 5 devices) and above. Starter is $99 for 20, Professional $199 for 50.
SMS plansAt least one Android phone connected
The API can't send without one. Install the app and scan the dashboard QR code first.
Connect a phoneSomewhere private to run code
A server, serverless function or automation tool. Not a web page, where anyone could read the key.
A record of consent
Know who agreed to texts and how. The API won't check it for you.
From key to webhook in 7 steps
Same order as the developer hub: key, phones, send, status, then webhooks. Tick each step once you've seen the result it describes.
Key and phones
Copy the SMS API key
At sms.voidfix.com, open API & Settings from the left menu and press Copy key under API key. Store it as a server secret, for example an environment variable named VOIDFIX_SMS_KEY.
Older pages say Tools → Keys. The developer hub's wording is API & Settings.
Call get-devices to prove the key works
Send a GET request to /services/get-devices.php with only your key in the query string. Nothing else is needed, so it's the cleanest first test.
"success": true and your connected phones with their IDs. Note the ID of the phone you'll send from.Send and follow it
POST one text to your own mobile
Post form fields to /services/send.php: key, number with the country code, message, and devices if you want a set phone. Build it with the generator on this page.
data, then the text on your mobile from your SIM.If success is false, read error. The status code will still be 200.
Read the status back
Call GET /services/read-messages.php with the key and id set to the message ID from the send.
Replies, opt-outs, failures
Set your webhook
Post your HTTPS URL to /services/v2/set-webhook.php, or enter it under API & Settings → Webhooks. Have the endpoint log the raw body at first.
Connect replies to the opt-out list
When a webhook event carries an opt-out reply, call /services/v2/add-to-blacklist.php with that number. Before campaigns, read get-blacklist.php.
Handle the unhappy paths
Check success on every call. For messages stuck while a phone was offline, use resend.php once it's back. Cancel scheduled ones you no longer want with v2/cancel-messages.php.
Everything send.php accepts
Names exactly as the developer hub lists them, with the notes we'd give a colleague.
| Parameter | What to send | Practical note |
|---|---|---|
key | Your SMS API key | Required on every call. Read it from server config, never hard-code it. |
number | Recipient with country code, such as +15550104477 | Commas separate several numbers. Normalise numbers before you send, not after. |
message | The text | Spintax like {Hi|Hello} works. With listID, %name% becomes each contact's name. |
messages | A JSON array of {"number", "message"} objects | Use it when each person gets a different text in one call. |
listID | A contact list ID, with message | Goes to every subscribed contact on the list, so opted-out contacts are left out. |
devices | A device ID, or a JSON array of "deviceID|simSlot" entries | Leave it out to use your default phone. ["12|1"] means phone 12, second SIM. |
simSlot | 0 for SIM 1, 1 for SIM 2 | Listed on its own in the hub as well as inside devices. |
option | 0, 1 or 2 | 0 uses devices; 1 spreads across every connected phone; 2 uses every SIM of every phone. |
type + attachments | type=mms and public file URLs, comma separated | MMS only. The URLs must open without a login. |
schedule | A Unix timestamp in seconds | Not milliseconds. JavaScript's Date.now() needs dividing by 1,000. |
prioritize | 1 | Jumps the queue, even during quiet hours. Use it for replies people are waiting on. |
Send exactly one of: number + message, messages, or listID + message. Requests are form fields, not JSON. VoidFix's product notes and other site pages also name useRandomDevice for rotating sends across phones; the hub's table doesn't list it, so check its value format in the full SMS API reference.
Choosing the phone and SIM slot
Dual-SIM phones and multi-phone setups are where the SMS API differs most from a cloud SMS provider.
| You want | Send this | What happens |
|---|---|---|
| Your default phone | Nothing: leave devices out | The message goes from the phone set as default in your account. |
| One particular phone | devices=12 | Phone 12 sends, from whichever SIM it uses by default. |
| The second SIM on that phone | devices=["12|1"] | Phone 12 sends from slot 1, which is SIM 2. Slot 0 is SIM 1. |
| Two particular SIMs | devices=["12|0","15|1"] | Sending is shared between phone 12's first SIM and phone 15's second. |
| Every connected phone | option=1 | The batch is spread across all your phones. |
| Every SIM of every phone | option=2 | Dual-SIM phones send from both slots. |
| Rotation across phones | useRandomDevice | Named in VoidFix's notes for bulk sends; confirm the value in the full reference. |
Get the IDs from GET /services/get-devices.php. VoidFix's guides don't say how a dual-SIM phone counts toward a plan's device limit; ask the team before you buy for it.
Sending later, cancelling, and sending pictures
Scheduling. Add schedule with a Unix timestamp in seconds and the message waits as Scheduled instead of Pending. A timestamp is an absolute moment, so the time zone question moves into your code: work out 9am in the recipient's zone, then convert. The code generator below turns a date picked in your browser into seconds, using your browser's zone.
Changing your mind. A scheduled message can be stopped. POST /services/v2/cancel-messages.php cancels pending or scheduled messages. Keep the message ID from the send response so you know what to cancel, for example when a customer pays before their reminder goes.
MMS. Add type=mms and put the file's public URL in attachments. Several files go in one comma-separated string. The phone downloads the file, so a link behind a login, or one that expires in minutes, can fail. MMS also depends on the SIM's carrier plan supporting picture messages.
Plan check. Two-way SMS and MMS are listed on paid plans, from Lite at $49 a month. The pricing page shows the free trial without integrations and doesn't say whether the raw API is open on it, so treat the trial as a dashboard test and ask support if you want to try the API first.
SMS API code generator
Pick an endpoint, fill the fields and copy the request in cURL, Node.js, Python or PHP. The key stays a placeholder. Use the arrow keys to move between language tabs.
Error handling when every reply says 200
The single most common integration bug with this API is trusting the HTTP status.
Every reply has the same shape: JSON with success, data and error. The developer hub states plainly that the reply comes back with HTTP 200 even when the request fails.
So a 200 proves nothing. Code that only checks the status code will log a missing key, a bad parameter or an empty number as a success. Read success on every call. When it's false, log error next to your own request ID, without the key.
Network errors are different. A timeout or a refused connection never reached the API. Retry those with a delay. Don't blindly retry a call that returned success false: it reached VoidFix and was rejected, so the same request will fail again.
Accepted is not delivered. success true on a send means the message is queued, normally as Pending. Whether it left the phone and reached the handset is a later question, answered by the status calls and webhooks below.
result = requests.post(url, data=fields, timeout=30).json()
if result.get("success") is not True:
log.warning("SMS rejected: %s", result.get("error"))
else:
save_ids(result.get("data"))Delivery status, webhooks, resends and cancels
Poll when you need one answer, use the webhook when you need to react.
| Question | Call | Notes |
|---|---|---|
| Did this message send? | GET /services/read-messages.php?id=MESSAGE_ID | Also takes a group ID or a status. New messages show Pending or Scheduled. |
| What went out this week? | GET /services/v2/list-messages.php | Sent and incoming messages, page by page. |
| How are we doing overall? | GET /services/v2/get-message-stats.php | Message statistics for dashboards and reports. |
| Tell me when something changes | POST /services/v2/set-webhook.php | Or API & Settings → Webhooks. Events: incoming and outgoing message updates, USSD results. |
| Which webhook URL is set? | GET /services/v2/get-webhook.php | Handy in a health check after deploys. |
| The phone was off: send again | POST /services/resend.php | Resend by message ID or group ID once the phone is back online. |
| Stop a message before it goes | POST /services/v2/cancel-messages.php | Works on pending and scheduled messages. |
The developer hub doesn't publish the webhook payload. Point the webhook at a URL that logs the raw body, send a test text to your SIM, and build your parser from what arrives.
Opt-out and blacklist calls
Keep one opt-out list, and keep it in VoidFix. The SMS API has calls for it: GET /services/v2/get-blacklist.php lists opt-outs, POST /services/v2/add-to-blacklist.php adds numbers and POST /services/v2/remove-from-blacklist.php takes them off. POST /services/manage-contacts.php adds a contact or unsubscribes one.
Wire replies to it. With a webhook in place, a reply such as STOP, "stop texting me" or "unsubscribe" can trigger an add-to-blacklist call within seconds. Honour STOP and plain-language opt-out requests at once. US rules are summarised on US opt-out rules for business texts.
Check before big sends. If your own database decides who gets a campaign, pull the opt-out list first and drop those numbers. Sending to a listID goes only to subscribed contacts, which does some of this work for you.
Remove with care. Only take a number off the list when the person has clearly asked to hear from you again, and keep a note of when and how.
What the SMS API covers, and what it leaves to you
Taken from the developer hub's endpoint list. Anything marked otherwise is either another API or your own code.
| Task | In the SMS API | Notes |
|---|---|---|
| Single, bulk and contact-list sends | Yes | One send.php call with number, messages or listID. |
| Scheduled sends and cancelling them | Yes | schedule in Unix seconds; v2/cancel-messages.php. |
| MMS pictures | Yes | type=mms plus public attachment URLs. |
| Picking phone and SIM slot | Yes | devices, simSlot and option. |
| Status and history | Yes | read-messages, v2/list-messages, v2/get-message-stats. |
| Replies and status events | Yes | Webhook set by API or under API & Settings. |
| Contacts, lists and opt-outs | Yes | Lists, contacts, blacklist get, add and remove. |
| USSD codes on the phone | Yes | send-ussd-request and read-ussd-requests. |
| Webhook payload format | Log one | Not shown on the developer hub. Capture a real event first. |
| Time zone of a scheduled send | Your code | A Unix timestamp is absolute; your code chooses the moment. |
| WhatsApp or iMessage | Other APIs | Separate portals, keys and base URLs. |
Three small integrations worth building first
Each one is a handful of API calls. The message wording lives in your code or your templates.
Contact form, texted in seconds
Your form handler sends one text the moment a lead submits, while they're still on the page.
- When
Form saved on your server, with a ticked text-consent box
- Do
POST send.php: number, message with their first name, prioritize=1
- If
success is false
- Do
Log the error and alert a person to call instead
Cart reminder you can call off
Schedule the reminder when the cart is abandoned, and cancel it if they buy first.
- When
Checkout started, not finished, consent on file
- Do
POST send.php with schedule set two hours ahead; store the message ID
- Wait
Order placed before then?
- Do
POST v2/cancel-messages.php with the stored ID
STOP replies, handled without a person
A webhook listener that keeps your opt-out list right without anyone reading every reply.
- When
Webhook: incoming message event
- If
Text is STOP, unsubscribe or a plain request to stop
- Do
POST v2/add-to-blacklist.php with the sender's number
- Do
Mark the contact as opted out in your own database too
Parameter names for cancel and blacklist calls are in the full SMS API reference; the developer hub lists the endpoints.
Rate and volume: good practice on real SIMs
It's a real SIM, so pace it like one. The SMS API sends person to person from your own numbers, which is why there's no A2P 10DLC registration. Carriers can still filter unsolicited or high-volume texts from real SIMs. VoidFix's deliverability guidance points at pacing, reply rates, link shorteners and filter-prone words.
Spread big batches. Use option=1 or option=2, or several devices entries, so one SIM isn't doing all the work. New SIMs benefit from Number Warmup before they carry volume, and Spintax keeps a batch from being word-for-word identical.
Consent comes first. An API makes sending easy; it doesn't make it allowed. Text people who asked to hear from you, name your business, and include an opt-out where the rules call for one. See the SMS compliance overview and the US quiet hours page.
Use prioritize sparingly. prioritize=1 pushes a message ahead of the queue, even during quiet hours. That setting changes VoidFix's queue, not the law. Keep it for answers someone is waiting on, not for marketing.
Request rates. The developer hub publishes a rate limit for the iMessage API but none for the SMS API. Don't loop thousands of single sends: use one messages or listID call for a batch, and poll status on a timer rather than in a tight loop.
Symptoms we'd check first
Type a word from what you're seeing to filter the list.
HTTP 200, but no text arrived
Likely causeThe reply had success false. The status code is 200 for failures too.FixReadsuccessanderrorin the JSON body on every call.The request is rejected when sent as JSON
Likely causesend.php takes form fields, not a JSON body.FixSend application/x-www-form-urlencoded fields. Onlymessagesanddevicescarry JSON inside a field.Messages sit at Pending
Likely causeThe Android phone is offline, asleep without its connection, or out of signal.FixBring the phone back online, then use resend.php by message or group ID if needed.A scheduled text went out hours early or late
Likely causeThe timestamp was in milliseconds, or built in the server's zone instead of the recipient's.FixSend seconds (10 digits today) and convert from the recipient's local time.MMS arrived as text only, or not at all
Likely causeThe attachment URL needs a login, has expired, or the SIM's plan lacks picture messaging.FixUse a public, stable URL and test MMS on that SIM from the dashboard.The wrong SIM sent the message
Likely causedevices held only the phone ID, so the phone's default SIM was used.FixSend ["ID|0"] for SIM 1 or ["ID|1"] for SIM 2.Some recipients never get texts
Likely causeTheir number is on the opt-out list, lacks a country code, or carriers are filtering the content.FixCheck get-blacklist.php, normalise numbers, and review the wording against VoidFix's deliverability guide.The key appears in logs or the browser
Likely causeRequests are built in front-end code or logged in full.FixMove calls server-side and redact the key parameter before logging. Copy a fresh key if one leaked, and ask support how to replace it.
No problem matches that. Try a shorter word.
A bike shop's booking app learns to text
Illustrative scenario, not a VoidFix customer.
Northside Bike Repair runs its own small booking app. The owner wants a text to go out when a repair is marked done, from the shop's SIM, (555) 014-2290, in an Android phone behind the counter. That phone's second slot holds the shop number; the first is the owner's personal SIM.
Their developer copies the key from API & Settings, calls get-devices to find the phone's ID, 12, and posts to send.php with devices=["12|1"] so personal and shop numbers never mix. The first test didn't send: the code posted a JSON body. Because the reply was HTTP 200, the app logged it as fine; reading success caught it, and switching to form fields fixed it.
A webhook now logs replies into the job record. When a customer answered "stop texting me", the listener added the number to the opt-out list, and the next "bike ready" text for that customer went by email instead.
Limits worth knowing before you build
- Texts send only while an Android phone is online. While it's off, messages wait as pending; resend them by ID or group ID once it's back.
- Carriers can still filter unsolicited or high-volume texts from real SIMs. The API doesn't change that; pacing, consent and wording do.
- The developer hub doesn't publish webhook payloads or an SMS rate limit. Log real events and test volume before you rely on either.
- Consent and opt-out rules depend on where you and your recipients are. This page isn't legal advice; check the rules that apply to you.
Questions people ask
Where do I find my VoidFix SMS API key?
Sign in at sms.voidfix.com, open API & Settings in the left menu and press Copy key in the API key section. Some older VoidFix pages say Tools → Keys; the developer hub, updated 26 October 2026, uses API & Settings.
Does the SMS API take JSON?
Not as the request body. send.php takes form fields, with the key as a field on POST and in the query string on GET. Two fields, messages and devices, hold JSON text inside them.
Why does a failed request come back as HTTP 200?
That's how the SMS API is built: every reply is JSON with success, data and error, and the status is 200 either way. Check success on every call and log error when it's false.
How do I send from the second SIM of a dual-SIM phone?
Pass devices as a JSON array with the device ID and slot, such as ["12|1"]. Slot 0 is SIM 1 and slot 1 is SIM 2. Get device IDs from get-devices.php.
What format does schedule use?
A Unix timestamp in seconds, not milliseconds. Work out the send moment in the recipient's time zone, convert it, and the message waits as Scheduled. Cancel it with v2/cancel-messages.php if plans change.
Can I get replies without polling?
Yes. Set a webhook with v2/set-webhook.php or under API & Settings, Webhooks. It reports incoming and outgoing message updates. Log the first events, because the payload isn't published on the developer hub.
Do I need A2P 10DLC registration to use the SMS API?
No. Texts go person to person from the SIMs in your own Android phones. Carrier filtering, consent and opt-out rules still apply, so pace sends and text people who asked to hear from you.
Is the SMS API included in the free trial?
The trial gives one SIM and 50 test texts from the dashboard, and the pricing page lists it without integrations. It doesn't say whether the raw API is open, so ask support, or start on Lite at $49 a month.
Related
VoidFix developer hub: SMS, WhatsApp and iMessage APIs
Open page SolutionSpeed to Lead Texts for Website Contact Forms
Read the playbook SolutionAbandoned Cart Recovery Messages by SMS
Read the playbook SolutionSwitch From Twilio to VoidFix
Read the playbookSources
- VoidFix: Developer hub, SMS and MMS API (updated 26 Oct 2026)
- VoidFix: SMS API integration guide (blog)
- VoidFix: API integration service page (Tools → Keys wording, useRandomDevice)
- VoidFix: Bubble.io guide (send.php fields incl. useRandomDevice)
- VoidFix: SMS pricing (prices as of Oct 2026)
- VoidFix: Connect your Android phone
- VoidFix: SMS without A2P registration
- VoidFix: How to improve SMS delivery rates
- VoidFix: SMS compliance
- Node.js documentation: global fetch
- Requests documentation: quickstart
- PHP manual: curl_setopt
Send your first API text from your own SIM
Connect an Android phone, copy your key from API & Settings and run the request you built above. If you'd rather talk it through, book a developer call with the VoidFix team.
Last updated 2026-12-05