sent-templates

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Sent Templates

Sent模板

Operate existing template records with
templates.list
,
templates.get
,
templates.get_by_name
, and
templates.delete
.
通过
templates.list
templates.get
templates.get_by_name
templates.delete
操作现有的模板记录。

Establish connection and scope

建立连接与范围

Use client-managed OAuth 2.1/PKCE and never request or expose credentials. Surface the active organization and Sender Profile before deletion; use
sent-account-readiness
if the connection context does not expose both. Reauthorize in the client to change scope.
Avoid repeating template body text or sample data unnecessarily. Prefer template identifiers, names, languages, channels, categories, and statuses in summaries.
使用客户端管理的OAuth 2.1/PKCE,切勿请求或暴露凭证。在删除前显示当前组织和发送者配置文件;如果连接上下文未同时暴露两者,请使用
sent-account-readiness
。在客户端重新授权以更改范围。
避免不必要地重复模板正文文本或示例数据。在摘要中优先使用模板标识符、名称、语言、渠道、类别和状态。

Find and inspect templates

查找与检查模板

  • Use
    templates.list
    for filtered discovery and pagination.
  • Use
    templates.get
    for an exact template identifier.
  • Use
    templates.get_by_name
    when the user supplies a name. If a name can match more than one language, channel, or scope, present the candidates and resolve one exact record before continuing.
These tools inspect existing records. For authoring or classification, hand off to
waba-template-author
; for a tenant-facing creation experience, hand off to
template-builder-ui
.
  • 使用
    templates.list
    进行筛选发现和分页。
  • 使用
    templates.get
    获取精确的模板标识符对应的模板。
  • 当用户提供名称时,使用
    templates.get_by_name
    。如果一个名称可能匹配多种语言、渠道或范围,请展示候选模板并先确定一个精确记录后再继续操作。
这些工具用于检查现有记录。如需创作或分类,请移交至
waba-template-author
;如需面向租户的创建体验,请移交至
template-builder-ui

Delete a template

删除模板

  1. Resolve the request to one exact template.
  2. Fetch that target first with
    templates.get
    or
    templates.get_by_name
    . Never delete from a guessed identifier, broad filter, or stale list result.
  3. Show a delete preview with the selected organization, Sender Profile, exact template identifier, name, language, channel, category, and status. State that deletion is destructive; do not repeat its body.
  4. Ask for explicit confirmation to delete this exact target. Earlier or general approval is not sufficient.
  5. Call
    templates.delete
    immediately after confirmation. A change to target, scope, or record invalidates confirmation.
Never call
templates.delete
without fetching the target and obtaining explicit confirmation immediately before the call. Treat every retry as a new mutation: refetch the target, show a fresh preview, and obtain new explicit confirmation.
If the result is ambiguous, re-read the target when possible. Report uncertainty and do not retry automatically.
  1. 将请求解析为一个精确的模板。
  2. 先通过
    templates.get
    templates.get_by_name
    获取目标模板。切勿从猜测的标识符、宽泛的筛选条件或过期的列表结果中执行删除操作。
  3. 显示删除预览,包含所选组织、发送者配置文件、精确模板标识符、名称、语言、渠道、类别和状态。说明删除操作具有破坏性;请勿重复其正文内容。
  4. 请求明确确认以删除此精确目标模板。早期或一般性的批准并不足够。
  5. 确认后立即调用
    templates.delete
    。目标、范围或记录的任何更改都会使确认失效。
在未获取目标模板并在调用前立即获得明确确认的情况下,切勿调用
templates.delete
。将每次重试视为新的变更操作:重新获取目标模板、显示新的预览并获取新的明确确认。
如果结果不明确,尽可能重新读取目标模板。报告不确定性,不要自动重试。