3CX is a business phone system used by thousands of UK organisations, and it can send and receive SMS through a messaging provider. everymessage supports the 3CX generic SMS provider interface, so your 3CX users can text customers from the same web client and apps they use for calls, on UK numbers, with delivery reports and replies in the conversation. This guide takes you through the setup on 3CX V20 step by step, then shows how to test it and fix the common problems.
In short: turn on SMS on a 3CX SIP trunk, enter our PBX messages URL and your API key, then point a PBX-format webhook at the URL 3CX gives you (or send it to us and we do it). Outbound texts go from 3CX to everymessage, and replies and delivery reports come back to 3CX by webhook. No code and nothing to install.
How the integration works
3CX sends each outgoing text to everymessage as a simple request with your API key. We send it to the mobile networks and track delivery. When the message is delivered, or a customer replies to your number, we post it straight back to your 3CX system, which shows it in the right conversation.
Before you start
| You need | Where it comes from |
|---|---|
| Your everymessage API username and password | everymessage support, or your account admin |
| An SMS-enabled number on your everymessage account | everymessage: a new number, or one ported in |
| 3CX V20 with a SIP trunk to hold the SMS settings | Your 3CX admin console |
| Admin access to the everymessage portal | Only if you set up the webhook yourself (step 3) |
The SIP trunk can be the one that already carries your calls. Its SMS settings are independent of who provides the voice service.
Step 1: Get your API key and number
Your API key is your everymessage API username and password, joined with a colon and Base64-encoded. 3CX sends it as Authorization: Bearer <API key> on every message.
- Get your API username and password from everymessage.
- Join them with a colon, no spaces:
username:password. - Base64-encode the result. On Windows PowerShell:
[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes('username:password')). On Mac or Linux:printf 'username:password' | base64. - Keep the result safe. It is the API key for step 2, so treat it like a password.
Note the SMS number on your account in international format with a plus, for example +447700900123. 3CX must send from that exact number, or the message is refused.
Step 2: Add everymessage as the SMS provider in 3CX
In 3CX V20 the SMS settings live on a SIP trunk’s SMS tab.
- In the 3CX web client, click Admin (bottom left).
- Go to Voice & Chat and edit the SIP trunk that carries your number.
- Open the SMS tab and turn on Enable SMS.
- Fill in the fields below and save.
- Copy the Webhook URL that 3CX shows on the same tab. You need it in step 3.
- Make sure your SMS number is on that trunk, and route it to the user, ring group or queue that should receive texts.
| 3CX field | Value |
|---|---|
| Provider URL | https://api.everymessage.com/v1/pbx/messages |
| API Key | The Base64 key from step 1 |
| Numbers | International format with a plus, for example +447700900123 |
If you have no trunk yet, add a Generic SIP trunk to hold the SMS settings.
Step 3: Send replies and delivery reports to 3CX
Replies and delivery reports reach 3CX through a webhook in PBX format, pointed at the URL you copied in step 2. Send that URL to everymessage support and we set it up, or do it yourself in the everymessage portal:
- Open Webhooks and add a new webhook.
- Paste the 3CX webhook URL and set Payload format to PBX – 3CX / Yeastar.
- Leave Signing secret blank. 3CX doesn’t check signatures.
- Open Numbers, edit your SMS number, set reply handling to URL and select the new webhook. Replies to that number now go to 3CX.
- Select the same webhook as the delivery address for your API user (or company), so delivery reports reach 3CX too.
Use the PBX format, not the standard everymessage format. 3CX rejects messages in the standard format, and the replies never appear.
Step 4: Test it
Three checks prove the whole loop: a send, a delivery report and a reply.
- Send. From the 3CX app, text your own mobile from the SMS number. It should arrive within a few seconds.
- Delivery report. Within a minute, 3CX should mark the message as delivered.
- Reply. Reply from your mobile. The reply should appear in the same 3CX conversation.
If the send fails, 3CX shows the error code we returned: see common problems and fixes. If the reply never arrives, check the webhook format and URL from step 3 first.
Picture messages (MMS)
When someone sends a picture, video or document from 3CX, everymessage delivers it as an ordinary SMS with a personal, secure link. The link opens a page showing the message and the media, so it works on every phone and network. MMS itself is still patchy on many UK phones and networks.
- Up to 10 files per message, each up to 6 MB: images (JPEG, PNG, GIF, WebP, HEIC), video (MP4, MOV, 3GP, WebM), audio (MP3, M4A, AAC, AMR, OGG, WAV), PDF and contact cards (vCard).
- Private by default. Files are copied to UK storage and only shown through the recipient’s own link, which can’t be guessed. Links stay live for 30 days.
- Text is optional. If a message has no text, we add a short line such as “You’ve been sent a picture. View it here:”.
- Delivery reports work as normal, because the message itself is an SMS.
- Simple pricing. A picture message is charged as an SMS plus a media hosting fee.
If any file can’t be fetched or isn’t a supported type, nothing is sent and 3CX gets error 10003 with the reason. A file over 6 MB gets error 10008.
Picture messages need to be switched on for your everymessage account. If they aren’t, 3CX gets error 10005: ask us and we’ll turn them on.
Sending from your company name
3CX always sends from the number set on the extension. If you’d rather customers see your company name, you can set a sender name of up to 11 characters on that number, for example BrightDent, in the everymessage portal (Numbers → edit the number → PBX sender name), or ask us and we’ll set it for you. Texts sent from that number then go out from the name instead, and 3CX keeps the conversation under your number.
- One-way only. Customers can’t reply to a name, so use it for numbers that send notifications, not conversations.
- UK sender ID rules apply. Letters, numbers and spaces, at least one letter, and no restricted generic names such as Verify or OTP. See UK SMS sender ID rules.
- Per number. Your other numbers keep sending from the number, so two-way conversations carry on as normal.
API reference
You don’t need this to use 3CX, but it shows exactly what 3CX and everymessage exchange, which helps if you’re testing or troubleshooting. The full reference, with code examples, is in our developer docs: Phone systems (PBX) API.
Send a message
3CX posts each text as JSON, with your API key as a Bearer token. from, to and text are all required, and numbers are in E.164 format.
curl -X POST "https://api.everymessage.com/v1/pbx/messages" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"from": "+447700900456", "to": "+447700900123", "text": "Your engineer is on the way."}'
Errors return a JSON errors list with a code, title and detail; the codes are listed under common problems below. A successful request returns HTTP 200 with the message details. The id is the everymessage message id, which 3CX uses to match the delivery report:
{
"data": {
"record_type": "message",
"direction": "outbound",
"id": "123456",
"type": "SMS",
"from": { "phone_number": "+447700900456" },
"to": [ { "phone_number": "+447700900123", "status": "queued" } ],
"text": "Your engineer is on the way.",
"encoding": "GSM-7",
"parts": 1
}
}
Send a picture message
Add media_urls with up to 10 public file URLs. text is optional when media is included. The response is the same as for a text message.
{"from": "+447700900456", "to": "+447700900123", "text": "Here's the quote you asked for.",
"media_urls": ["https://files.example.com/quote-1042.pdf"]}
Replies
Customer replies are posted to your 3CX webhook as a message.received event:
{
"data": {
"event_type": "message.received",
"record_type": "event",
"payload": {
"id": "123789",
"direction": "inbound",
"type": "SMS",
"from": { "phone_number": "+447700900123" },
"to": [ { "phone_number": "+447700900456" } ],
"text": "Thanks, see you soon",
"received_at": "2026-10-13T09:15:04.511Z"
}
}
}
Delivery reports
When a message is delivered or fails, a message.finalized event is posted to the same webhook. payload.id is the id returned when the message was sent, and to[].status is delivered or delivery_failed.
Common problems and fixes
Every refused send returns an HTTP status and a five-digit code, which 3CX shows against the message.
| HTTP | Code | Meaning | What to do |
|---|---|---|---|
| 401 | 10004 | API key missing or wrong | Rebuild the key from step 1: username:password, no spaces, Base64-encoded |
| 400 / 422 | 10002 | Invalid request, or text too long for your account | Check the message; ask us to raise the parts limit for long texts |
| 422 | 10001 | Recipient number invalid or not routable | Use a full international number, for example +447700900456 |
| 422 | 10005 | Sender not allowed, or number blocked | Send only from your everymessage numbers |
| 422 | 10003 | A file couldn’t be downloaded or is an unsupported type | Use a supported, publicly downloadable file, at most 10 per message |
| 422 | 10008 | A file is over 6 MB | Send a smaller file |
| 402 | 10005 | Not enough credit | Top up your account |
| 403 | 10005 | Picture messages not enabled | Ask us to switch on Rich SMS |
| 429 | 10006 | Daily sending limit reached | Wait until midnight UK time, or ask us to raise the limit |
| 500 | 10007 | Temporary fault on our side | Retry; contact us if it persists |
If sends work but replies never show in 3CX, the cause is almost always the webhook: the wrong URL, or the standard format instead of PBX. If messages stay unconfirmed, check the same webhook is set as the delivery address for your API user or company. And customers can’t reply to a sender name, by design.
Why use everymessage for 3CX SMS
UK numbers
Two-way UK numbers that customers can text and reply to, set up and supported by our UK team.
Delivery reports
Every message is tracked, and its final status is sent back to 3CX so users can see what was delivered.
Sent as typed
Emoji and accented characters are kept, with Unicode used only when a message needs it, so nothing a user types is lost.
Built for volume
Multiple carrier routes and sending that can burst to 1 million SMS per hour.
Secure and UK-hosted
Hosted in UK data centres with high availability across the UK and EU, and ISO 27001 certified since 2009.
More than SMS
The same platform provides RCS, WhatsApp, email and AI voice assistants.
Using Yeastar? The same everymessage PBX API works with it too: see Yeastar SMS. Using a different phone or contact centre platform? See NetSapiens SMS, Amazon Connect and every other way to connect on our Business SMS page.
Frequently asked questions
Can 3CX send SMS through everymessage?
Yes. everymessage supports the 3CX generic SMS provider interface, so 3CX users can send and receive business SMS on everymessage numbers, with delivery reports shown in 3CX.
What do I enter in 3CX?
The everymessage PBX messages URL and your everymessage API key. 3CX sends the key as a Bearer token on every message, so there’s nothing else to install.
How do replies reach 3CX?
3CX gives you a webhook URL for the trunk. We set it against your everymessage numbers in the 3CX / Yeastar (PBX) format, and every customer reply and delivery report is posted to it.
Where are the SMS settings in 3CX V20?
On a SIP trunk. In the 3CX web client click Admin, go to Voice & Chat, edit the SIP trunk that carries your number and open its SMS tab. The trunk can be the one that already carries your calls.
Why do texts send from 3CX but replies never appear?
Almost always the webhook. It must point at the exact URL shown on the 3CX trunk’s SMS tab and use the PBX (3CX / Yeastar) payload format. 3CX rejects the standard everymessage format, so replies sent in it never appear.
Does it support MMS?
Yes. Pictures, videos and documents sent from 3CX are delivered as an SMS with a personal, secure link that opens the message and media on any phone. Up to 10 files per message, each up to 6 MB.
Can 3CX send texts from our company name?
Yes. 3CX always sends from a number, but you can set a sender name of up to 11 characters on that number in the everymessage portal (Numbers, then PBX sender name), or ask us to, so texts from it go out from your name instead. Customers can’t reply to a name, so use it for notification numbers.
Can users send emoji and accented characters?
Yes. Messages are sent exactly as typed. Plain text uses the standard SMS alphabet, and a message containing emoji or other characters is sent as Unicode automatically.
What number format does 3CX use?
3CX sends and expects numbers in international E.164 format with a leading +, for example +447700900123. everymessage accepts and returns numbers in that format.
Add SMS to your 3CX system
Get your API key and numbers, and we’ll help you connect 3CX and test it end to end.
