Adds the Whatsapp Business Account

URL : v3/api/whatsapp/create

Method : POST

Query Parameters :

Parameter Type Optional/Required Description
name string Required Name of the Account
sid string Required SID of the Twilio Account
token string Required Auth Token of your Twilio Account
business_phone string Required Whatsapp Business Phone Number (Format: +91900120034)

Response :

{

 "success":true,

 "message":"Successfully Saved."

}

Updates the Whatsapp Business Account

URL : whatsapp/update/{id}
Method : PUT

Query Parameters :

Parameter Type Optional/Required Description
id string Required ID of the Account to be updated
name string Required Name of the Account
sid string Required SID of the Twilio Account
token string Required Auth Token of your Twilio Account
business_phone string Required Whatsapp Business Phone Number (Format: +91900120034)

Response :

{

 "success":true,

 "message":"Successfully Saved."

}

Gets the Whatsapp Business Account Details

URL : whatsapp/accounts
Method : GET

Response :

{

 "success":true,
    "data":
    {
        "current_page":1,
        "first_page_url":"http://localhost/public/whatsapp/accounts?page=1",
        "from":1,
        "last_page":1,
        "last_page_url":"http://localhost/public/whatsapp/accounts?page=1",
        "next_page_url":null,
        "path":"http://localhost/public/whatsapp/accounts",
        "per_page":"10",
        "prev_page_url":null,
        "to":1,
        "total":1,
        "accounts":[
            {
                "id":10,
                "name":"WA Business",
                "sid":"ACdxxxxxxxxxxxxxxxxxxxxx9",
                "token":"Axzzzzzzzzzzzzzzzzz06",
                "business_phone":"+14155238886",
                "webhook_url":null,
                "is_image_inline":"0",
                "new_ticket_interval":30,
                "created_at":"2020-01-16 10:37:42",
                "updated_at":"2020-01-16 10:49:07"
            }
        ]
    }


}