דלג לתוכן הראשי
POST
/
whatsapp
/
templates
/
subscribe
curl --request POST \
  --url https://{projectID}.texterchat.com/server/api/v2/whatsapp/templates/subscribe \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone": "0521234567"
}
'
{
  "success": true
}

הרשאות

Authorization
string
header
נדרש

API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.

גוף

application/json
phone
string
נדרש

The recipient's phone number to subscribe

Required string length: 5 - 30
accountId
string

The WhatsApp channel account ID. If omitted, the subscription applies to all WhatsApp channels

תגובה

Operation completed

success
boolean
דוגמה:

true