Failover Order

You can send a notification to the user as an optional combined notification. The current supported channels are SMS and Whatsapp notification.

This Failover Order is used for configuring the priority notification. It means if the first channel notification failed, it will be covered by another channel.

Request

The request contains data of the notification channel order.

Curl Example

                            
                            curl --location --request POST 'https://api.motict.com/v1/combined/intools/failoverorder' \
                            --header 'Authorization: api_key' \
                            --header 'Content-Type: application/json' \
                            --data-raw '{
                                "order": [
                                    "whatsapp",
                                    "sms"
                                ]
                            }'
                            
                        

Parameters

Name Type Required Description
api_key String Yes API key credential will be provided by Motict team.
order String Yes Current supported notification channels: sms and whatsapp.

Response

The response contains JSON body with message status whether the request is success or error.

Body

                            
                            {
                                "message": "success"
                            }
                            
                        

Parameters

Name Type Description
message String Success or error message