Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

SMS module APIs are useful to create , modify , delete extensions and fetch the values of sms web hooks. 

Create SMS webhook

Creating a sms webhook into Freepbx/PBXact system.

...

Code Block
{
  "data": {
    "addSmsWebhook": {
      "status": true,
      "message": "Webhook added successfully..!!"
    }
  }
}

Update SMS web hook

Update SMS webhook updates an existing SMS webhook

...

Code Block
{
  "data": {
    "updateSmsWebhook": {
      "status": true,
      "message": "Webhook updated successfully..!!"
    }
  }
}

Delete SMS webhook

Delete an sms webhook from Freepbx/PBXACT

...

Code Block
{
  "data": {
    "deleteSmsWebhook": {
      "status": true,
      "message": "Sms webhook deleted successfully"
    }
  }
}

Fetch All SMS webhook data

API Name :  fetchAllSmsWebhook 

...

Code Block
{
  "data": {
    "fetchAllSmsWebhook": {
      "status": true,
      "message": "List of sms webhooks",
      "webhookDetails": [
        {
          "id": "40",
          "webhookUrl": "https://web.hook.sh/31fb9b81-3a9e-4e93-a2bd-147761ea82bb",
          "enablewebHook": true,
          "dataToBeSentOn": "both"
        },
        {
          "id": "41",
          "webhookUrl": "https://web.hook.sh/31fb9b81-3a9e-4e93-a2bd-147761ea82bb",
          "enablewebHook": true,
          "dataToBeSentOn": "send"
        },
        {
          "id": "42",
          "webhookUrl": "https://web.hook.sh/31fb9b81-3a9e-4e93-a2bd-147761ea82bb",
          "enablewebHook": true,
          "dataToBeSentOn": "receive"
        }
      ]
    }
  }
}

Fetch SMS webhook 

API Name  fetchSmsWebhook API.

...