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
}{
"error": "WhatsApp account 0505123456 not found"
}Templates Subscriptions
Resubscribe to Templates
Subscribe a recipient to receive template messages. By default, all recipients are subscribed; they become unsubscribed only if they opt out themselves or are removed manually in Texter or via the Unsubscribe from Templates endpoint.
POST
https://{projectID}.texterchat.com/server/api/v2
/
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
}{
"error": "WhatsApp account 0505123456 not found"
}Required token scopes:
Manage all chatsהרשאות
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
תגובה
Operation completed
דוגמה:
true