Skip to main content

Inbound SMS

Rent a dedicated phone number from Agile Telecom and receive every SMS sent to it — perfect for two-way customer support, opt-in/opt-out flows, appointment confirmations and lightweight chatbots.

For the full API contract, see the Inbound SMS API reference.

Delivery Methods​

You choose how incoming messages reach you when you rent the number:

MethodBest forLatency
Webhook (HTTP POST)Automation, databases, real-time chatbots.Seconds
EmailLow-volume use cases, manual workflows, audit trails.Email-typical

You can change the delivery method at any time from Numbers → Inbound in the wholesale portal.

The platform sends a form-encoded POST to your URL with the message data, and expects exactly +OK in the response body within 30 seconds.

Inbound POST parameters

ParameterDescriptionExample
originatorSender phone number (international)+393351234567
destinationYour rented SIM number+393331234333
date_timeReception timestamp YYYYMMDDHHMMSS20260514102301
textSMS bodyNews ON

Mandatory response

+OK

If your server does not reply with +OK within 30 seconds, the delivery is treated as failed and retried after 15 minutes. After 3 failed attempts the message is discarded.

Keep your webhook fast: parse, queue, respond +OK. Heavy work (NLP, DB writes, calls to other services) belongs in a background worker.

Email Flow​

Inbound messages arrive from smsin@agiletelecom.com with subject Agile Telecom -- SMS received and a structured body containing the same fields as the webhook payload (From / To / Date/Time / Body). Useful when:

  • You don't have a public HTTPS endpoint.
  • Volume is low and human review is acceptable.
  • You want an audit trail of inbound traffic in your mailbox.

Common Patterns​

Opt-out keywords — Implement STOP / UNSUBSCRIBE handling on your webhook. Mark the originator as opted-out in your database and stop sending campaigns to that number. Regulators in most countries require it.

Two-factor codes — Accept reply codes for confirmation flows; the webhook is the most reliable channel.

Automated answers — Trigger an outbound send from the webhook handler to confirm receipt or guide the user.

Security Checklist​

  1. HTTPS only. Reject any inbound webhook traffic on plain HTTP.
  2. Allowlist Agile Telecom source IPs if your firewall supports it. Get the current list from support.
  3. Validate destination — Make sure the SIM number matches one you own; ignore spoofed traffic.
  4. Rate-limit your responder to avoid being weaponised as an outbound spammer.

Troubleshooting​

SymptomLikely causeFix
Messages keep being retriedServer returned something other than +OK (or timed out)Reduce work in the handler, queue async
Duplicate processingSame message retried after a slow +OKUse originator + date_time + text as dedup key
Missing inbound trafficNumber not bound to the right delivery methodCheck the routing in the wholesale portal

Next Steps​