דלג לתוכן הראשי
POST
/
whatsapp
/
templates
/
unsubscribe
curl --request POST \ --url https://{projectID}.texterchat.com/server/api/v2/whatsapp/templates/unsubscribe \ --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 unsubscribe

Required string length: 5 - 30
accountId
string

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

תגובה

Operation completed

success
boolean
דוגמה:

true