Frontline API Custom Payload

The Frontline API feature allows any abstract JSON payload to be sent into the app for processing by Activities. This means that other services can post JSON into FrontlineCloud and FrontlieCloud can use that data in its recipe engine to evaluate rules and trigger actions.

Note. If the intent of sending in JSON into FrontlineCloud is to send out messages using the API to SMS Activity then read this documentation.

Otherwise, FrontlineCloud will receive any JSON payload and make it available in

${trigger.payload}

The recipe builder can access all the needed values from this object.

Requirements

  • The payload sent into FrontlineCloud must be valid JSON
  • The Frontline API key must be set in the query string as follows https://cloud.frontlinesms.com/api/1/webhook/$apiKey. This is the url that an external app needs to post JSON to.

Errors

FrontlineCloud will respond with appropriate errors when the apiKey or payload is missing and when the apiKey is not a valid.

Important

FrontlineCloud checks for the API key in the query string as described above, otherwise, it checks in the JSON payload for a property named apiKey.

{
    "apiKey" : "123123",
    "payload": {
     ......
    }
}
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.