{
"_id": "6891bb93481ccea320113a91",
"name": "bulk_marketing_272",
"title": "<string>",
"usage": "inbox",
"chatStatus": 0,
"created": 123,
"updatedAt": "2023-11-07T05:31:56Z",
"departments": [
"<string>"
],
"isDefault": true,
"setBotNode": "<string>",
"bot": "<string>",
"replyText": "<string>",
"responsibleAgent": "<string>",
"responsibleDepartment": "<string>",
"attachedFile": {
"name": "<string>",
"url": "<string>"
},
"provider": "<string>",
"channelInfo": {
"name": "whatsapp",
"accountId": "972586640430"
},
"provider_template": {
"name": "<string>",
"category": "MARKETING",
"localizations": [
{
"status": "REQUESTED",
"rejectionReason": "NONE",
"language": "he",
"components": [
{
"type": "HEADER",
"text": "<string>",
"format": "IMAGE",
"example": {
"header_handle": [
"<string>"
],
"body_text": [
[
"<string>"
]
],
"header_text": [
"<string>"
]
},
"buttons": [
{
"type": "QUICK_REPLY",
"text": "<string>",
"url": "<string>",
"phone_number": "<string>",
"flow_id": "<string>",
"flow_action": "navigate",
"navigate_screen": "<string>",
"example": {
"url": "<string>"
}
}
]
}
],
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"lastUpdated": "2023-11-07T05:31:56Z",
"qualityScore": {
"score": "<string>",
"reasons": [
"High block rate"
]
}
}
],
"metadata": {}
},
"defaults": {},
"localizationDrafts": {}
}{
"error": "data must have required property 'usage'"
}"Not Found"Update Existing Template
Update properties of a template - primarily its behavior within Texter. You can modify any attribute defined during template creation, except its name and category.
{
"_id": "6891bb93481ccea320113a91",
"name": "bulk_marketing_272",
"title": "<string>",
"usage": "inbox",
"chatStatus": 0,
"created": 123,
"updatedAt": "2023-11-07T05:31:56Z",
"departments": [
"<string>"
],
"isDefault": true,
"setBotNode": "<string>",
"bot": "<string>",
"replyText": "<string>",
"responsibleAgent": "<string>",
"responsibleDepartment": "<string>",
"attachedFile": {
"name": "<string>",
"url": "<string>"
},
"provider": "<string>",
"channelInfo": {
"name": "whatsapp",
"accountId": "972586640430"
},
"provider_template": {
"name": "<string>",
"category": "MARKETING",
"localizations": [
{
"status": "REQUESTED",
"rejectionReason": "NONE",
"language": "he",
"components": [
{
"type": "HEADER",
"text": "<string>",
"format": "IMAGE",
"example": {
"header_handle": [
"<string>"
],
"body_text": [
[
"<string>"
]
],
"header_text": [
"<string>"
]
},
"buttons": [
{
"type": "QUICK_REPLY",
"text": "<string>",
"url": "<string>",
"phone_number": "<string>",
"flow_id": "<string>",
"flow_action": "navigate",
"navigate_screen": "<string>",
"example": {
"url": "<string>"
}
}
]
}
],
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"lastUpdated": "2023-11-07T05:31:56Z",
"qualityScore": {
"score": "<string>",
"reasons": [
"High block rate"
]
}
}
],
"metadata": {}
},
"defaults": {},
"localizationDrafts": {}
}{
"error": "data must have required property 'usage'"
}"Not Found"Manage WhatsApp templatesהרשאות
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.
פרמטרי נתיב
The account ID of the channel in Texter. For WhatsApp channels this is the phone number connected to the account (e.g. 972586640430)
The unique identifier of the template. This is either the custom name assigned when the template was created, or the system-generated name returned by the Create New Template endpoint (under the name field)
^[a-zA-Z0-9_-]+$גוף
Internal title
Chat status after the recipient replies: 0 = BOT, 1 = PENDING, 2 = ASSIGNED, 3 = RESOLVED, 4 = BULK (accepted but not meaningful as a reply status)
0, 1, 2, 3, 4 Whether this template is intended to be sent individually (inbox) or in bulk (bulk)
inbox, bulk Whether this template is the account default. Omitting this field resets it to false - re-send isDefault: true on every update of the default template. Only one template can be the default
Department IDs that have access to this template. Omitting this field clears the list - always re-send the full list on update
If chatStatus is 0 (BOT), run the bot from this node. If not specified, the previously stored value is kept (it cannot be cleared via this endpoint)
The agent's user UID. Can't be combined with responsibleDepartment. Must be a UID, not an email - an email stored here silently fails to assign on reply. (Only the Send Template Message replyAction.responsibleAgent accepts email or UID.) Send null to clear
Department ID. Can't be combined with responsibleAgent. Send null to clear
Text sent automatically when the recipient replies to the template
The bot flow to run when the recipient replies (only meaningful when chatStatus is 0/BOT). Send null to clear
תגובה
The updated template object. Field-by-field reference: The Template object
A WhatsApp template in Texter, including internal behavior (chat routing rules, departments, defaults) and provider state (WhatsApp approval status, localized content)
Unique identifier of the template in Texter
"6891bb93481ccea320113a91"
Internal template name (also used as the template ID in API calls)
"bulk_marketing_272"
Human-readable title shown in Texter's UI
How this template is intended to be sent: inbox (1-to-1) or bulk (broadcast)
inbox, bulk Status the chat moves to after the recipient replies to this template
0, 1, 2, 3, 4 When the template was created (epoch ms)
Department IDs allowed to use this template. Can be empty
Whether this is the default template for the account. Only one template can be default
Bot node to trigger after reply, if chatStatus routes to bot
Specific bot to run after reply, if chatStatus routes to bot
Text automatically sent when the recipient replies to the template
Agent (email) the chat is assigned to after the recipient replies
Department ID the chat is assigned to after the recipient replies
File automatically sent when the recipient replies, when configured
Show child attributes
Show child attributes
Channel adapter that owns this template (relevant when multiple WhatsApp account types are connected)
The channel account this template belongs to
Show child attributes
Show child attributes
The template as registered with WhatsApp
Show child attributes
Show child attributes
Default send values by language code, prefilled when sending the template if the caller does not provide overrides
Show child attributes
Show child attributes
Map of language code to draft localization (created but not yet submitted/approved)
Show child attributes
Show child attributes