Guide · SMS Forwarder
Custom API webhook reference
By Hohol Apps ·
The Custom API destination, added in version 1.4, sends each forwarded text as a JSON POST to an HTTPS URL you choose. This page is the reference: fields, response rules, accepted URLs and limits. For the reasoning behind it and a sample receiver in Node, read an SMS webhook from your iPhone, for developers.
Request
Every delivery is a POST with a JSON body like this:
{
"from": "+905551112233",
"from_name": "Acme Bank",
"message": "Your code is 1234",
"timestamp": "2026-07-04T12:34:56Z",
"message_id": "0d5f2c66-9d3e-4c3a-8f0f-1c2b3a4d5e6f"
}
| Field | Type | Notes |
|---|---|---|
from |
string | Sender’s number. Omitted when unknown. |
from_name |
string | Sender’s contact name. Omitted when unknown. |
message |
string | The text of the SMS. |
timestamp |
string | ISO 8601 date and time, as in the example. |
message_id |
string | Unique per message; the same value is sent again on a retry. |
The sender fields come from the optional Sender and Sender Name steps in the automation. If you skipped those steps, expect the two fields to be absent. See the Shortcuts automation guide to add them.
Response
Return any 2xx status within 10 seconds. A different status, a timeout or a connection error is a failed delivery, and the app’s History tab marks it as failed.

Reply first, then do slow work in the background. Calling other APIs before you answer is the easiest way to miss the 10-second window.
Retries and duplicates
A delivery can be retried, and a retry carries the same message_id. Store the IDs you’ve processed and skip any you’ve already seen, still returning 2xx. We don’t publish a retry schedule, so don’t rely on a specific number of attempts.
Accepted URLs
The URL must be public and use HTTPS. The app rejects:
localhostand any*.localhostname- literal private or reserved IP addresses: 10/8, 172.16/12, 192.168/16, 127/8, 169.254/16, 0/8,
::1, fc00::/7 and fe80::/10
The backend also blocks hostnames that resolve to private addresses. To test against a development machine, use a public HTTPS tunnel.
Not supported yet
As of version 1.5, these aren’t available:
- a custom HTTP method (requests are always POST)
- custom headers, including an Authorization header
- body templates or renamed fields
- HMAC or other request signing
Without headers or signatures, protect the endpoint with a long random path segment that only you know, and validate the body before acting on it. Keep in mind that SMS sender details can be spoofed, so treat from and from_name as claims, not proof.
You can add several Custom API rules. Each one gets every forwarded text, because filters are global and match the message body only. The usual limits apply: no MMS, and the iPhone needs internet when the SMS arrives, with no offline queue.
Testing a new endpoint
Test with a real message before you build anything on top of the endpoint:
- Deploy the endpoint somewhere public with a valid HTTPS certificate.
- In SMS Forwarder, add a Custom API rule and paste the full URL, including any secret path.
- Use “Send Test SMS” with your own number (it needs an iPhone with a SIM), or ask someone to text the phone.
- Check your server’s logs for the POST, then open History in the app to confirm it shows as delivered.
If History shows a failure, start with your server’s own logs. A timeout usually means the endpoint does work before replying. If the app won’t accept the URL, it’s either not HTTPS or points at a private address. For other failures, log the status code your own handler returns and compare.
Privacy note
Texts are encrypted on the iPhone and decrypted on our server for delivery, so your endpoint receives readable JSON over HTTPS. The security page covers what we keep. If you’d rather not run a server, the Zapier, Make and IFTTT guide shows the no-code route.
Questions
Frequently asked
Which status code should my endpoint return?
Any status in the 200 range. A 4xx, a 5xx or no reply after ten seconds is recorded as a failed delivery.
Why is the from field missing from some requests?
The sender's number and name are left out whenever the app has no value for them. Make your parser treat both as optional.
Can I add more than one Custom API endpoint?
Yes. You can create several Custom API rules, and each one is sent every message that gets past your filters.