SMS actions

When you recieve an SMS through 46elks, we trigger a POST to a url of your choice, a webhook. Your webhook may respond with an action.


The following actions are currently available:

Action Description
Forward Forwards the SMS to a given number.
Reply Replies to the sender with a given message.

To trigger an action, reply with a JSON struct to dictate what should happen:

// The ”forward” action
  "forward": "+46700000000"

Static control flow in JSON

If you can't, or don't want to, run your own backend there is limited support for handling control flow by storing a JSON struct as the sms_url. However, we strongly recommend that you use a webhook and avoid putting control flow directly in a static JSON struct if at all possible. It's really easy to make a mess.