Lipachat Docs
  • Lipachat Docs
  • Getting Started
    • Getting Started with Lipachat
  • API
    • Sending Messages
    • Sending Media
    • Sending Buttons
    • Sending Interactive Lists
    • Templates
      • Creating a Template
      • Updating a Template
      • Listing Message Templates
      • Sending Message Templates
    • Whatsapp Flows
      • Creating a flow
      • Updating a flow
      • Get flow preview
      • Publish a flow
      • Send a flow
      • List all flows
    • Webhooks
  • Reference
    • Sandbox
  • Go Live
  • Guides
    • Build A Chat Bot
  • CRM Workflow
Powered by GitBook
On this page
  1. API
  2. Templates

Listing Message Templates

GET https://gateway.lipachat.com/api/v1/template/PHONE_NUMBER

Pass your WABA number or Sandbox phone number as the value of PHONE_NUMBER

Headers

Name
Value

Content-Type

application/json

apiKey

Response

{
    "timestamp": null,
    "data": {
        "data": [
            {
                "name": "test_media_companya",
                "components": [
                    {
                        "type": "HEADER",
                        "format": "IMAGE",
                        "example": {
                            "header_handle": [
                                "https://scontent.whatsapp.net/v/t61.29466-34/328759101_1510667262890922_1348889753235210704_n.jpg?ccb=1-7&_nc_sid=8b1bef&_nc_ohc=PEok0_YRgNAQ7kNvgFpH0sc&_nc_ht=scontent.whatsapp.net&edm=AH51TzQEAAAA&_nc_gid=ANQFWqWAPaoLccD_WIYbSWd&oh=01_Q5AaID9X2olNqgUd21TyQEsfvScM3e1XFUqulVwqqyH08s7x&oe=673591AC"
                            ]
                        }
                    },
                    {
                        "type": "BODY",
                        "text": "Hi {{1}}, you recently bought airtime with our platform. We would like to hear your feedback on the quality. May we proceed with thr survey?",
                        "example": {
                            "body_text": [
                                [
                                    "example1"
                                ]
                            ]
                        }
                    },
                    {
                        "type": "BUTTONS",
                        "buttons": [
                            {
                                "type": "QUICK_REPLY",
                                "text": "Yes"
                            },
                            {
                                "type": "QUICK_REPLY",
                                "text": "No"
                            },
                            {
                                "type": "QUICK_REPLY",
                                "text": "Stop"
                            }
                        ]
                    }
                ],
                "language": "en",
                "status": "APPROVED",
                "category": "MARKETING",
                "id": "1510667259557589",
                "createdAt": null,
                "rejected_reason": "NONE",
                "quality_score": {
                    "score": "UNKNOWN",
                    "date": "1727275621"
                }
            },
            {
                "name": "test_media_temp",
                "components": [
                    {
                        "type": "HEADER",
                        "format": "TEXT",
                        "text": "Hello",
                        "example": {
                            "header_text": [
                                "example1"
                            ]
                        }
                    },
                    {
                        "type": "BODY",
                        "text": "Hello {{1}}",
                        "example": {
                            "body_text": [
                                [
                                    "example1"
                                ]
                            ]
                        }
                    }
                ],
                "language": "en",
                "status": "REJECTED",
                "category": "MARKETING",
                "id": "2815665278588373",
                "createdAt": null,
                "rejected_reason": "INVALID_FORMAT",
                "quality_score": {
                    "score": "UNKNOWN",
                    "date": "1728979833"
                }
            },
            {
                "name": "temp_lower_68",
                "components": [
                    {
                        "type": "HEADER",
                        "format": "TEXT",
                        "text": "{{1}} registration",
                        "example": {
                            "header_text": [
                                "July"
                            ]
                        }
                    },
                    {
                        "type": "BODY",
                        "text": "Hi {{1}}, we have a new user registered click {{2}} to view.",
                        "example": {
                            "body_text": [
                                [
                                    "John",
                                    "http://lipachat.com/offers/ASHSH"
                                ]
                            ]
                        }
                    }
                ],
                "language": "en",
                "status": "APPROVED",
                "category": "MARKETING",
                "id": "1661737361284034",
                "createdAt": "2024-09-15T17:05:52.808+00:00",
                "rejected_reason": "NONE",
                "quality_score": {
                    "score": "UNKNOWN",
                    "date": "1728979833"
                }
            }
        ]
    },
    "status": "success",
    "message": "success",
    "errors": null
}
{
    "timestamp": "2024-09-15T20:06:38.675567555",
    "data": null,
    "status": "error",
    "message": "Content in this language already exists",
    "errors": null
}
{
    "timestamp": "2024-09-15T20:07:23.464199513",
    "data": null,
    "status": "success",
    "message": "Invalid credentials",
    "errors": null
}

PreviousUpdating a TemplateNextSending Message Templates

Last updated 4 months ago

Get apiKey from App portal settings tab

https://app.lipachat.com/app/settings