S
Samva
S
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

Api referenceWhatsapp

Get Service Window Status

GET
/whatsapp/service-window/status

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Query Parameters

customerPhone*string

Customer phone number in E.164 format

Match^\+\d{10,15}$
businessPhone*string

Business phone number in E.164 format

Match^\+\d{10,15}$

Response Body

application/json

curl -X GET "https://samva.app/api/v1/whatsapp/service-window/status?customerPhone=string&businessPhone=string"
{
  "serviceWindowId": "9e38533e-3ff1-4282-8417-8e280a3e82b2",
  "isServiceWindowActive": true,
  "isFreeEntryPointActive": true,
  "serviceWindowExpiresAt": "2019-08-24T14:15:22Z",
  "freeEntryPointExpiresAt": "2019-08-24T14:15:22Z"
}
curl -X GET "https://samva.app/api/v1/whatsapp/service-window/status?customerPhone=string&businessPhone=string"