Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

How to create a new Scenario Key

GET https://xxxxxxx.api.infobip.com/omni/1/scenarios

The expected answer is similar to the following

{
    "scenarios": [
        {
            "key": "F16AF5B911111111115DE2CAF0687",
            "name": "PreShared",
            "flow": [
                {
                    "from": "4470000000",
                    "channel": "WHATSAPP"
                }
            ],
            "default": true
        }
    ]
}

How to fetch existing Scenario Keys

POST https://xxxxx.api.infobip.com/omni/1/scenarios

Payload to post

{
  "name":"Name cliente",
  "flow": [
    {
      "from": "441234560000",
      "channel": "WHATSAPP"
    }
  ],
  "default": true
}	

The telephone number is prefixed with the international country prefix without 00 or +

Expected answer

{
    "scenarios": [
        {
            "key": "F16AF5B911111111115DE2CAF0687",
            "name": "Name cliente",
            "flow": [
                {
                    "from": "4470000000",
                    "channel": "WHATSAPP"
                }
            ],
            "default": true
        }
    ]
}

  • No labels