Skip to content
Mango9

SMS API

Connect appointment confirmations and customer follow-up to Mango9 text messaging.

In the CRM: Settings → Developer APIs → SMS API

Send from the business number

SMS API lets a server-side integration submit a message through the account’s messaging setup. Use it for a requested follow-up, an appointment confirmation or another customer conversation supported by the business process.

Telnyx is your carrier. Connect the account, buy or assign the business numbers, and complete the applicable number and messaging setup before sending. The integration must use a sender available to the Mango9 account.

Save the full secret when generated. Later visits show a masked label; replacing the key invalidates the old secret. Select the image to enlarge it.

Submit the current request format

Send an HTTPS POST to /smsapi/sms/post on the same server where the account signs in. The current handler reads form-encoded fields. Use application/x-www-form-urlencoded or form data; do not send a raw JSON body.

The legacy GET sending endpoint is disabled. Use the POST fields below even if an older example elsewhere still shows a GET URL.

Submit the current request format
FieldWhat it means
keyThe saved account API secret.
typeUse text for an ordinary SMS or mms for a multimedia message.
contactsRecipient numbers including country codes, separated by commas when submitting more than one.
senderidThe sender number or sender ID approved for the account’s route.
msgThe message text. Required for type=text.
mediaThe media URL for a multimedia message. Required for type=mms.
time / time_zoneOptional scheduled date/time and its city-based time zone, for example America/Los_Angeles. Supply the time zone when scheduling.

Connect your template to the message

Choose a clear template for the business task, such as a consultation confirmation or a follow-up after a quote. Fill its placeholders with the correct customer and appointment details before submitting the resulting text as msg.

This endpoint expects the message text; it does not take an SMS template ID. Workflows and the normal messaging screens provide their own template choices. Keep those flows aligned so the customer receives one intended confirmation.

The JavaScript tab illustrates a form-encoded POST. Run integrations on your server and substitute the account’s approved sender and test recipient. Select the image to enlarge it.

Check submission and delivery separately

  1. Start with one recipient number you control and a sender assigned to this account.
  2. Submit the message once and read the entire response. Keep the returned messageid, shoot_id and destination when provided.
  3. Check the message’s activity and delivery status in Mango9. A sent submission response is not proof that the handset received it.
  4. Confirm that a reply appears in the conversation or the chosen incoming-message integration.
  5. Before retrying an uncertain request, check for the original message so the customer does not receive duplicates.

Resolve common setup problems

Resolve common setup problems
What you seeWhat to check
Missing parameterUse key, type, contacts, senderid and the required msg or media field.
Invalid or inactive keyUse the saved full secret, the correct Mango9 server and an account enabled for API use.
Sender or recipient rejectedConfirm the assigned sender route and recipient number format.
IP is not whitelistedHave the account’s integration access reviewed for the address of the sending server.
Insufficient creditsReview the account balance and messaging costs.
Scheduled message needs a time zoneSend time_zone with the scheduled time; use a city name such as America/Los_Angeles.

Plan the conversation after sending

Use SMS Inbox API when another system needs incoming replies. Its callback editor is on the Incoming SMS Callback tab. The callback setting belongs to the account, so coordinate changes with anyone already receiving messages there.

For staff conversations, the Mango9 Windows and iPhone apps let the team continue the exchange. Templates keep the wording consistent while the conversation remains attached to the customer.