S
Samva
S
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

Api referenceWhatsapp

Activate Free Entry Point

POST
/whatsapp/service-window/activate-fep

Authorization

apiKey
X-API-Key<token>

API key for authentication

In: header

Request Body

application/json

serviceWindowId*string
Formatuuid
source*unknown

Source of Free Entry Point activation

Value in"ads" | "facebook" | "instagram"

Response Body

application/json

curl -X POST "https://samva.app/api/v1/whatsapp/service-window/activate-fep" \  -H "Content-Type: application/json" \  -d '{    "serviceWindowId": "9e38533e-3ff1-4282-8417-8e280a3e82b2",    "source": "ads"  }'
{
  "serviceWindowId": "9e38533e-3ff1-4282-8417-8e280a3e82b2",
  "isServiceWindowActive": true,
  "isFreeEntryPointActive": true,
  "serviceWindowExpiresAt": "2019-08-24T14:15:22Z",
  "freeEntryPointExpiresAt": "2019-08-24T14:15:22Z"
}
curl -X POST "https://samva.app/api/v1/whatsapp/service-window/activate-fep" \
  -H "Content-Type: application/json" \
  -d '{
    "serviceWindowId": "9e38533e-3ff1-4282-8417-8e280a3e82b2",
    "source": "ads"
  }'