GET Templates List

API to get list of all the templates with their current status

API End Point

https://api.v7.botpenguin.com/whatsapp-automation/wa/templates?apiKey=*API KEY*

Request Headers

HeaderDetails

apiKey

API KEY

Query Params

HeaderDetails

apiKey

API KEY

Examples

Request

curl --location --request GET 'https://api.v7.botpenguin.com/whatsapp-automation/wa/templates?apiKey=*API KEY*' \\
--header 'apiKey: *API KEY*'

Response

Body

{
    "success": true,
    "data": [
        {
            "_id": "62b5c16bf1d8decfa9a72335",
            "_user": "61c1c2058e0c5a1e9bb420f8",
            "configuration": {
                "name": "uniform_update",
                "category": "APPOINTMENT_UPDATE",
                "language": "en",
                "header": "text",
                "textHeader": "Hey how are you",
                "media": "",
                "mediaHeader": {
                    "image": "",
                    "video": ""
                },
                "body": "Hi I'm Joey\\nHow you doiiin",
                "footer": "thank you",
                "button": "",
                "ctaButtonType": [],
                "ctaButton": [],
                "quickReply": [
                    {
                        "id": "",
                        "text": ""
                    }
                ]
            },
            "whatsAppId": "Xk4qPq8u0HJbsIWcYgazd5ZDAK",
            "status": "APPROVED",
            "namespace": "b676ea4e_f9ce_44c8_b187_b98b40f85f9f",
            "createdAt": "2022-06-24T13:51:39.610Z",
            "updatedAt": "2022-06-24T13:52:19.838Z",
            "__v": 0
        },
       
    ]
}

Header

HeaderDetails

X-Powered-By

Express

Vary

Origin

Access-Control-Allow-Credentials

true

_user

61c1c2058e0c5a1e9bb420f8

Content-Type

application/json; charset=utf-8

Content-Length

7146

ETag

W/"1bea-RhtE+UK94qGji1CaCyMvUWBM3E8"

Date

Wed, 03 Aug 2022 11:16:13 GMT

Connection

keep-alive

Keep-Alive

timeout=5

Last updated