Choose your API
Each channel runs in its own portal with its own API key, base URL and full reference. You only need the API for the channels on your plan.
sms.voidfix.com
WhatsAppWhatsApp APISend text, images, video and documents from your linked WhatsApp numbers, and get replies by webhook.wa.voidfix.com
iMessageiMessage APISend blue-bubble iMessages with automatic SMS fallback, manage lines and read conversation history.imessage.voidfix.com
| API | Base URL | Authentication | Full reference |
|---|---|---|---|
| SMS and MMS | https://sms.voidfix.com | key parameter | SMS API reference |
https://wa.voidfix.com | X-API-Key header | WhatsApp API reference | |
| iMessage | https://imessage.voidfix.com/api | Bearer token from your key and secret | iMessage API reference |
API keys give full sending access to your account. Keep them on your server and out of front-end code, mobile apps and public repositories.
SMS and MMS API
The SMS API sends texts and MMS through the Android phones connected to your account. You need at least one phone connected. If you haven’t done that yet, follow the Android device connection guide first.
-
Copy your SMS API key
Sign in at sms.voidfix.com, open API & Settings in the left menu and click Copy key in the API key section. Direct link: sms.voidfix.com/configuration.php#api. Send the key as the
keyparameter on every request: in the query string for GET, or as a form field for POST. -
Check your key and list your phones
curlcurl "https://sms.voidfix.com/services/get-devices.php?key=YOUR_API_KEY" -
Send an SMS
POST form fields (not JSON) to
/services/send.php. Include the country code in the number. Leave outdevicesto send from your default phone.curlcurl -X POST "https://sms.voidfix.com/services/send.php" \ --data-urlencode "key=YOUR_API_KEY" \ --data-urlencode "number=+15551234567" \ --data-urlencode "message=Hi Sam, your appointment is tomorrow at 10am." \ --data-urlencode "devices=YOUR_DEVICE_ID" -
Follow the message status
Use the
IDfrom the response. Messages start as Pending (or Scheduled) while your phone sends them.curlcurl "https://sms.voidfix.com/services/read-messages.php?key=YOUR_API_KEY&id=MESSAGE_ID"
Send parameters
For POST /services/send.php, provide one of number + message, messages, or listID + message.
| Parameter | Description |
|---|---|
number | Recipient with country code. Separate several numbers with commas |
message | Message text. With listID, %name% becomes each contact’s name. Spintax such as {Hi|Hello} works too |
messages | JSON array of {"number", "message"} objects, to send a different text to each number |
listID | Send message to every subscribed contact in a contact list |
devices | Device ID, or a JSON array of "deviceID|simSlot" entries such as ["12|0","15|1"] |
simSlot | 0 = SIM 1, 1 = SIM 2 |
option | 0 = use devices, 1 = spread across every connected device, 2 = every SIM of every device |
type + attachments | type=mms with comma-separated public file URLs in attachments to send an MMS |
schedule | Unix timestamp (seconds) to send later |
prioritize | 1 to send ahead of the queue, even during quiet hours |
To send an MMS, add type=mms and the file URL:
curl -X POST "https://sms.voidfix.com/services/send.php" \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "number=+15551234567" \
--data-urlencode "message=Here is your ticket" \
--data-urlencode "type=mms" \
--data-urlencode "attachments=https://example.com/ticket.png"Every response is JSON in the same shape and comes back with HTTP 200 even when the request fails, so always check success and error.
SMS API endpoints
| Endpoint | Method | What it does |
|---|---|---|
/services/send.php | POST | Send single, bulk, contact-list, scheduled or MMS messages |
/services/read-messages.php | GET | Get messages by ID, group ID or status |
/services/v2/list-messages.php | GET | List sent and incoming messages, page by page |
/services/resend.php | POST | Resend messages by ID or group ID |
/services/v2/cancel-messages.php | POST | Cancel pending or scheduled messages |
/services/v2/get-message-stats.php | GET | Message statistics |
/services/v2/get-conversations.php | GET | List conversations |
/services/v2/mark-read.php | POST | Mark a conversation as read |
/services/get-devices.php | GET | List your connected phones |
/services/v2/get-contacts-lists.php | GET | List contact lists |
/services/v2/add-contacts-list.php | POST | Create a contact list |
/services/v2/get-contacts.php | GET | List contacts |
/services/manage-contacts.php | POST | Add a contact or unsubscribe one |
/services/v2/get-blacklist.php | GET | List opt-outs |
/services/v2/add-to-blacklist.php | POST | Add numbers to opt-outs |
/services/v2/remove-from-blacklist.php | POST | Remove numbers from opt-outs |
/services/v2/get-templates.php | GET | List message templates |
/services/v2/get-webhook.php | GET | Get your webhook URL |
/services/v2/set-webhook.php | POST | Set or remove your webhook URL |
/services/send-ussd-request.php | POST | Run a USSD code on a phone |
/services/read-ussd-requests.php | GET | Get USSD results |
/services/v2/get-account.php | GET | Account details |
Request and response fields for every endpoint, with a try-it console, are in the full SMS API reference.
WhatsApp API
The WhatsApp API sends and receives WhatsApp messages through the numbers linked to your VoidFix WhatsApp account. It’s a plain REST API with JSON in and out, and it doesn’t use the WhatsApp Business API, so there are no Meta templates or per-conversation fees. Link a number first with the WhatsApp connection guide, or connect one through the API by QR code.
-
Get your WhatsApp API key
Sign in at wa.voidfix.com and open Settings → API. Keys start with
vf_. Send yours in theX-API-Keyheader (recommended) or as theapi_keyquery parameter. -
Find your session ID
Each linked WhatsApp number is a session. List them to get the
sessionIdyou’ll send from.curlcurl "https://wa.voidfix.com/api/external/sessions" \ -H "X-API-Key: vf_your_api_key" -
Send a WhatsApp message
Write the recipient number with the country code but without
+or spaces. AddmediaUrl,mediaTypeandcaptionto send an image, video or document.curlcurl -X POST "https://wa.voidfix.com/api/external/send-message" \ -H "X-API-Key: vf_your_api_key" \ -H "Content-Type: application/json" \ -d '{"sessionId": "YOUR_SESSION_ID", "to": "14155551234", "message": "Hello from VoidFix!"}' -
Receive replies by webhook
Register a webhook with
POST /api/external/webhooksand subscribe tomessage.incomingfor replies andmessage.ackfor delivery and read receipts.
WhatsApp API endpoints
All paths start with https://wa.voidfix.com/api/external.
| Endpoint | Method | What it does |
|---|---|---|
/send-message | POST | Send text, image, video or document |
/send-location | POST | Send a location pin |
/message-status/{messageId} | GET | Get a message’s delivery status |
/messages | GET | List message history |
/mark-read | POST | Mark a chat as read |
/check-number | GET | Check if a number is on WhatsApp |
/sessions | GET | List linked numbers (sessions) |
/qr-code | POST | Create a session and get a QR code to link a number |
/session-status/{sessionId} | GET | Check whether a number is connected |
/sessions/{sessionId}/pairing-code | POST | Get a pairing code to link without scanning |
/sessions/{sessionId}/qr | GET | Get a fresh QR code |
/sessions/{sessionId}/restart | POST | Restart a session |
/sessions/{sessionId}/logout | POST | Disconnect a number |
/sessions/{sessionId}/profile | GET | Get the linked WhatsApp profile |
/sessions/{sessionId}/chats | GET | List chats |
/webhooks | GET, POST | List or create webhooks |
/webhooks/{webhookId} | PUT, DELETE | Update or delete a webhook |
/webhooks/{webhookId}/test | POST | Send a test event |
/webhooks/{webhookId}/logs | GET | Webhook delivery logs |
/webhooks/events | GET | List webhook event types |
/account | GET | Account and plan usage |
Payloads for every endpoint and webhook event are in the full WhatsApp API reference.
iMessage API
The iMessage API sends blue-bubble iMessages from your VoidFix iMessage lines. If a recipient doesn’t have iMessage, the message falls back to SMS automatically. You need an active iMessage line, and each line can message up to 50 unique contacts per day. See iMessage pricing for plans.
-
Create an API key and secret
Sign in at imessage.voidfix.com and create a key under Settings → API Keys. You get an API key (starts with
vf_pk_) and an API secret (starts withvf_sk_). Store the secret safely. -
Exchange them for an access token
Tokens last 24 hours. Send the token as
Authorization: Bearer <token>on every other request.curlcurl -X POST "https://imessage.voidfix.com/api/v1/auth/token" \ -H "Content-Type: application/json" \ -d '{"apiKey": "vf_pk_...", "apiSecret": "vf_sk_..."}' -
Send an iMessage
recipientis a number in E.164 format or an Apple ID email. AddiMessageLineIdto choose the line, or leave it out to use your most recently active line. PassattachmentUrlto send an image or video.curlcurl -X POST "https://imessage.voidfix.com/api/v1/messages/send" \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"recipient": "+14155551234", "message": "Hello! Thanks for your inquiry."}' -
Check delivery and get replies
Poll
GET /v1/messages/{messageId}/status, or create a webhook withPOST /v1/webhooksformessage.inbound,message.outbound,message.readandmessage.failedevents.
iMessage API endpoints
All paths start with https://imessage.voidfix.com/api. The default rate limit is 1,000 requests per 15 minutes per API key.
| Endpoint | Method | What it does |
|---|---|---|
/v1/auth/token | POST | Get an access token from your key and secret |
/v1/messages/send | POST | Send an iMessage, with SMS fallback |
/v1/messages/{messageId}/status | GET | Get a message’s delivery status |
/v1/messages/validate-imessage | POST | Check whether a number has iMessage |
/v1/messages/conversations | GET | List conversations |
/v1/messages/history/{lineId}/{recipient} | GET | Chat history with a contact |
/v1/messages/mark-read/{lineId}/{recipient} | PUT | Mark a conversation as read |
/v1/lines | GET, POST | List or create iMessage lines |
/v1/lines/{id} | GET, PUT, DELETE | Get, update or delete a line |
/v1/lines/stats/summary | GET | Line statistics |
/v1/analytics/overview | GET | Overview statistics |
/v1/analytics/message-activity | GET | Daily activity |
/v1/analytics/line-performance | GET | Performance per line |
/v1/analytics/inbound-outbound | GET | Daily inbound vs outbound trend |
/v1/ghl/sub-accounts | GET | GoHighLevel sub-accounts connected to iMessage |
/v1/ghl/assignments | GET, POST | List or create GHL sub-account to line assignments |
/v1/ghl/assignments/{id} | DELETE | Remove a GHL assignment |
/v1/ghl/stats | GET | GHL integration statistics |
/v1/webhooks | GET, POST | List or create webhooks |
/v1/webhooks/{id} | PUT, DELETE | Update or delete a webhook |
/v1/webhooks/{id}/test | POST | Send a test event |
/v1/api-keys | GET, POST | List or create API keys (dashboard login token) |
/v1/api-keys/{id} | DELETE | Revoke an API key |
API keys can be limited by scope: messages:send, messages:read, lines:read, lines:write, analytics:read, ghl:read and ghl:write. Full request bodies and a try-it console are in the full iMessage API reference.
Webhooks: replies and delivery status
All three APIs can push events to your server, so you don’t have to poll for replies.
| API | How to set it up | Events |
|---|---|---|
| SMS | POST /services/v2/set-webhook.php or API & Settings → Webhooks | Incoming and outgoing message updates, USSD results |
POST /api/external/webhooks | message.incoming, message.outbound, message.ack, session.status, call events | |
| iMessage | POST /v1/webhooks | message.inbound, message.outbound, message.read, message.failed |
A phone or linked device has to be online to send. If it goes offline, SMS messages wait as pending and can be resent by ID or group ID once it’s back.
No-code and low-code guides
Prefer not to write code? These guides connect VoidFix to the tools you already use.
Developer FAQ
Do I need a separate API key for each channel?
Yes. SMS, WhatsApp and iMessage each have their own portal and their own keys: the SMS key from API & Settings at sms.voidfix.com, the WhatsApp key from Settings → API at wa.voidfix.com, and the iMessage key and secret from Settings → API Keys at imessage.voidfix.com.
Do I need A2P 10DLC registration to use the SMS API?
No. The SMS API sends from the SIMs in your own Android phones as person-to-person messages, so there’s no A2P 10DLC registration step. Carrier rules, consent and opt-outs still apply. Read more in SMS without A2P registration.
Is the WhatsApp API the official WhatsApp Business API?
No. It sends through the WhatsApp numbers you link to VoidFix, like WhatsApp Web, so you don’t need Meta approval or message templates. Send only to people who expect to hear from you, because WhatsApp can restrict numbers that get reported.
What happens if an iMessage recipient doesn’t have an iPhone?
The iMessage API checks whether the recipient has iMessage. If not, it sends the message as SMS instead, and stores both in the same conversation history.
Get help with your integration
Email support@voidfix.com (24/7) or open a ticket. Need an integration we don’t have? Our development team can build custom integrations, so book a call to talk it through.