S
Samva
S
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

Api referenceWhatsapp

List WhatsApp Templates

GET
/whatsapp/templates

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Query Parameters

page?integer
Default1
Range1 <= value <= 9007199254740991
limit?integer
Default20
Range1 <= value <= 100
filters?

Response Body

application/json

curl -X GET "https://samva.app/api/v1/whatsapp/templates"
{
  "items": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "slug": "string",
      "description": "string",
      "category": "string",
      "supportedChannels": [
        "string"
      ],
      "content": {
        "property1": null,
        "property2": null
      },
      "variableSchema": [
        {}
      ],
      "compliance": {
        "property1": null,
        "property2": null
      },
      "usageCount": 0,
      "lastUsedAt": "2019-08-24T14:15:22Z",
      "isActive": true,
      "isDefault": true,
      "version": 0,
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "page": -9007199254740991,
    "limit": -9007199254740991,
    "total": -9007199254740991,
    "totalPages": -9007199254740991
  }
}
curl -X GET "https://samva.app/api/v1/whatsapp/templates"