S
Samva
S
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

Api referenceWhatsapp

Sync WhatsApp Template Status from Meta

POST
/whatsapp/templates/:templateId/sync

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Request Body

application/json

templateId*string
Formatuuid

Response Body

application/json

curl -X POST "https://samva.app/api/v1/whatsapp/templates/:templateId/sync" \  -H "Content-Type: application/json" \  -d '{    "templateId": "196100ac-4eec-4fb6-a7f7-86c8b584771d"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "status": "pending",
  "qualityScore": "green",
  "rejectedReason": "string",
  "syncedAt": "2019-08-24T14:15:22Z"
}
curl -X POST "https://samva.app/api/v1/whatsapp/templates/:templateId/sync" \
  -H "Content-Type: application/json" \
  -d '{
    "templateId": "196100ac-4eec-4fb6-a7f7-86c8b584771d"
  }'