For developersSMS

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
N
Northside Bike Repair
Text message · your own number
Hi Dana, your bike is ready at Northside Bike Repair. Open till 6pm today. Reply STOP to opt out.
Great, can my partner pick it up?
Yes, just give us the name on the job. See you later.
Text message
Illustrative: the first text sent by send.php from SIM 2, the reply logged by webhook

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.

Request path

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.

Your server
sms.voidfix.com
Your Android phone
The recipient
1

Checks the key, queues the message as Pending or Scheduled, and answers with JSON and HTTP 200.

2

Picks the message up over the app's connection and sends it from the chosen SIM.

3

Gets an ordinary text from your number and can reply to it.

Reply

Replies: the phone receives the answer and VoidFix posts it to your webhook URL as an incoming message event.

StatusBack to you: poll read-messages.php by ID, or let the webhook report outgoing updates.
This page vs the docs

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 pageThe developer hubThe integration guide (blog)
What it isA working overview of the SMS API with a request builderThe reference for all three APIs: base URLs, endpoints, authA broader article on why and how to wire SMS into apps
CoversSMS and MMS only: keys, SIM choice, scheduling, status, opt-outs, errorsSMS, WhatsApp and iMessage side by sideUse cases, A2P background, scaling ideas
Best forWriting and checking your first real integrationLooking up a path or a parameterDeciding whether an API fits at all

Reference: VoidFix developer hub. Background reading: SMS API integration guide.

API key

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

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 plans
  • At least one Android phone connected

    The API can't send without one. Install the app and scan the dashboard QR code first.

    Connect a phone
  • Somewhere 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.

First request

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.

0 of 7 steps done
Access

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.

You should see: Your code reading the key from config, with no key string in the source.

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.

You should see: "success": true and your connected phones with their IDs. Note the ID of the phone you'll send from.
First message

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.

You should see: success true and a message ID in 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.

You should see: The message, first as Pending while the phone sends it, then with its updated status.
Production

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.

You should see: get-webhook.php returning your URL, and a logged event when you reply to the SIM from your mobile.

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.

You should see: Your test number in the opt-out list after you reply STOP to the SIM.

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.

You should see: A rejected request logged with its error, and a cancelled test message that never arrives.
Send parameters

Everything send.php accepts

Names exactly as the developer hub lists them, with the notes we'd give a colleague.

ParameterWhat to sendPractical note
keyYour SMS API keyRequired on every call. Read it from server config, never hard-code it.
numberRecipient with country code, such as +15550104477Commas separate several numbers. Normalise numbers before you send, not after.
messageThe textSpintax like {Hi|Hello} works. With listID, %name% becomes each contact's name.
messagesA JSON array of {"number", "message"} objectsUse it when each person gets a different text in one call.
listIDA contact list ID, with messageGoes to every subscribed contact on the list, so opted-out contacts are left out.
devicesA device ID, or a JSON array of "deviceID|simSlot" entriesLeave it out to use your default phone. ["12|1"] means phone 12, second SIM.
simSlot0 for SIM 1, 1 for SIM 2Listed on its own in the hub as well as inside devices.
option0, 1 or 20 uses devices; 1 spreads across every connected phone; 2 uses every SIM of every phone.
type + attachmentstype=mms and public file URLs, comma separatedMMS only. The URLs must open without a login.
scheduleA Unix timestamp in secondsNot milliseconds. JavaScript's Date.now() needs dividing by 1,000.
prioritize1Jumps 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.

Phones and SIMs

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 wantSend thisWhat happens
Your default phoneNothing: leave devices outThe message goes from the phone set as default in your account.
One particular phonedevices=12Phone 12 sends, from whichever SIM it uses by default.
The second SIM on that phonedevices=["12|1"]Phone 12 sends from slot 1, which is SIM 2. Slot 0 is SIM 1.
Two particular SIMsdevices=["12|0","15|1"]Sending is shared between phone 12's first SIM and phone 15's second.
Every connected phoneoption=1The batch is spread across all your phones.
Every SIM of every phoneoption=2Dual-SIM phones send from both slots.
Rotation across phonesuseRandomDeviceNamed 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.

Scheduling and MMS

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.

Free tool

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.

Errors

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.

Python: the check that matters
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"))
Status and webhooks

Delivery status, webhooks, resends and cancels

Poll when you need one answer, use the webhook when you need to react.

QuestionCallNotes
Did this message send?GET /services/read-messages.php?id=MESSAGE_IDAlso takes a group ID or a status. New messages show Pending or Scheduled.
What went out this week?GET /services/v2/list-messages.phpSent and incoming messages, page by page.
How are we doing overall?GET /services/v2/get-message-stats.phpMessage statistics for dashboards and reports.
Tell me when something changesPOST /services/v2/set-webhook.phpOr API & Settings → Webhooks. Events: incoming and outgoing message updates, USSD results.
Which webhook URL is set?GET /services/v2/get-webhook.phpHandy in a health check after deploys.
The phone was off: send againPOST /services/resend.phpResend by message ID or group ID once the phone is back online.
Stop a message before it goesPOST /services/v2/cancel-messages.phpWorks 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-outs

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.

Coverage

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.

TaskIn the SMS APINotes
Single, bulk and contact-list sends YesOne send.php call with number, messages or listID.
Scheduled sends and cancelling them Yesschedule in Unix seconds; v2/cancel-messages.php.
MMS pictures Yestype=mms plus public attachment URLs.
Picking phone and SIM slot Yesdevices, simSlot and option.
Status and history Yesread-messages, v2/list-messages, v2/get-message-stats.
Replies and status events YesWebhook set by API or under API & Settings.
Contacts, lists and opt-outs YesLists, contacts, blacklist get, add and remove.
USSD codes on the phone Yessend-ussd-request and read-ussd-requests.
Webhook payload format Log oneNot shown on the developer hub. Capture a real event first.
Time zone of a scheduled send Your codeA Unix timestamp is absolute; your code chooses the moment.
WhatsApp or iMessage Other APIsSeparate portals, keys and base URLs.
Recipes

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.

  1. When

    Form saved on your server, with a ticked text-consent box

  2. Do

    POST send.php: number, message with their first name, prioritize=1

  3. If

    success is false

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

  1. When

    Checkout started, not finished, consent on file

  2. Do

    POST send.php with schedule set two hours ahead; store the message ID

  3. Wait

    Order placed before then?

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

  1. When

    Webhook: incoming message event

  2. If

    Text is STOP, unsubscribe or a plain request to stop

  3. Do

    POST v2/add-to-blacklist.php with the sender's number

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

Volume

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.

Troubleshooting

Symptoms we'd check first

Type a word from what you're seeing to filter the list.

Example

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.

N
Northside Bike RepairSMS conversation
Hi Sam, the e-bike service is done at Northside Bike Repair. Collect any time before 6pm. Reply STOP to opt out.
stop texting me please
Good to know

Limits worth knowing before you build

  1. 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.
  2. Carriers can still filter unsolicited or high-volume texts from real SIMs. The API doesn't change that; pacing, consent and wording do.
  3. The developer hub doesn't publish webhook payloads or an SMS rate limit. Log real events and test volume before you rely on either.
  4. 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.
FAQ

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.

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