# YCloud Docs: Chinese API 参考 > YCloud product documentation, API reference, and webhook payload documentation. ## API 参考 ### 开始使用 - [YCloud API](https://docs.ycloud.com/zh/api-reference/getting-started/ycloud-api.md): 使用 YCloud API 构建消息传递、验证、联系人和事件工作流。 - [快速入门](https://docs.ycloud.com/zh/api-reference/getting-started/quickstart.md): 通过 YCloud 进行身份验证并发送您的第一个 API 请求。 - [API 更新日志](https://docs.ycloud.com/zh/api-reference/getting-started/changelog.md): 跟踪 YCloud API 的新增功能、兼容性变更和开发者文档更新。 - [YCloud Developer Kit](https://docs.ycloud.com/zh/api-reference/getting-started/ycloud-developer-kit.md): 通过适用于 Codex、Claude Code 和 WorkBuddy 的 AI 编程技能构建 YCloud 集成。 ### 指南 - [指南](https://docs.ycloud.com/zh/api-reference/guides/overview.md): 使用 YCloud API 进行开发的实用指南。 #### API 基础 - [身份验证](https://docs.ycloud.com/zh/api-reference/guides/api-fundamentals/authentication.md): 使用 API Key 对 YCloud API 请求进行身份验证。 - [错误处理](https://docs.ycloud.com/zh/api-reference/guides/api-fundamentals/handle-errors.md): 了解 YCloud 错误响应并安全地重试请求。 - [速率限制](https://docs.ycloud.com/zh/api-reference/guides/api-fundamentals/rate-limits.md): 查看 YCloud API 配额、读取速率限制响应头,并安全重试受限请求。 - [分页](https://docs.ycloud.com/zh/api-reference/guides/api-fundamentals/pagination.md): 从 YCloud 列表端点获取完整的结果集。 - [API 版本控制与兼容性](https://docs.ycloud.com/zh/api-reference/guides/api-fundamentals/versioning.md): 处理兼容的 API 变更、不透明标识符、新事件类型以及 URI 版本。 - [配置 Webhook](https://docs.ycloud.com/zh/api-reference/guides/api-fundamentals/configure-webhooks.md): 在您的 HTTPS 端点接收 YCloud 事件。 - [实现 Webhook 接收器](https://docs.ycloud.com/zh/api-reference/guides/api-fundamentals/implement-a-webhook-receiver.md): 创建端点、验证签名、持久化接收事件,并处理 Webhook 重试与挂起。 #### WhatsApp 平台 ##### 发送与接收 - [发送 WhatsApp 消息](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/send-whatsapp-message.md): 使用队列或同步 API 发送 WhatsApp 模板、会话及媒体消息。 - [WhatsApp 错误代码](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/whatsapp-error-code.md): 查询 WhatsApp 消息错误代码并解决通过 YCloud 发送失败的消息。 - [处理 WhatsApp 入站消息](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/handle-whatsapp-inbound-messages.md): 接收传入消息、将消息标记为已读并显示输入指示器。 - [上传 WhatsApp 媒体](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/upload-whatsapp-media.md): 上传媒体并在 WhatsApp 消息请求中使用返回的媒体 ID。 - [WhatsApp 消息计费集成指南](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/whatsapp-message-pricing-integration-guide.md): 了解 YCloud Webhook 中的 WhatsApp 消息计费字段、扣费规则以及价格确定性。 - [最高出价(Max Price)集成指南](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/max-price-integration-guide.md): 配置营销模板出价,调整单条消息倍数,以及添加、保留或清除最高出价(Max Price)设置。 ##### 最佳实践 - [WhatsApp Messages API 最佳实践](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/whatsapp-messages-api-best-practices.md): 构建适用于生产环境的可靠、合规且可观测的 WhatsApp 消息发送工作流。 - [Direct Send 最佳实践](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/best-practices/direct-send.md): 了解 Meta Direct Send,通过 YCloud 发送 Utility(公用)内容,并使用 YCloud 的模板转换扩展功能。 ##### 商业账户 - [管理 WhatsApp 商业账户](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/manage-whatsapp-business-accounts.md): 获取已连接的 WhatsApp 商业账户并了解其运营状态。 - [管理 WhatsApp 电话号码](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/manage-whatsapp-phone-numbers.md): 注册电话号码并管理主页、商业和通话设置。 - [使用企业级用户 ID](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/use-business-scoped-user-ids.md): 使用 BSUID 发送 WhatsApp 消息与呼叫、请求电话号码、管理 Meta 通讯录条目以及处理 BSUID Webhook 字段。 ##### 模板与流程 - [管理 WhatsApp 模板](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/manage-whatsapp-templates.md): 安全地创建、版本控制、审核、发布和废弃 WhatsApp 消息模板。 - [支持的 WhatsApp 消息模板语言](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/supported-whatsapp-template-languages.md): 在创建、管理或发送 WhatsApp 模板时,请选择 Meta 支持的语言代码。 - [管理 WhatsApp Flows](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/manage-whatsapp-flows.md): 创建、验证、预览、发布和废弃结构化的 WhatsApp 体验。 - [实现 WhatsApp Flow 端点](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/implement-a-whatsapp-flow-endpoint.md): 通过 YCloud 处理 Flow 健康检查、错误通知、数据交换、页面导航及完成状态。 ##### 通话与群组 - [管理 WhatsApp 通话](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/manage-whatsapp-calls.md): 设置 WhatsApp 通话、处理呼入与呼出通话信令、处理通话事件,并下载录音或转录。 - [管理 WhatsApp 群组](https://docs.ycloud.com/zh/api-reference/guides/whatsapp-platform/manage-whatsapp-groups.md): 了解如何创建仅限受邀加入的 WhatsApp 群组、邀请成员、审核加入申请以及管理群组设置。 #### Meta 商业智能体 - [Meta Business Agent 概述](https://docs.ycloud.com/zh/documentation/meta-business-agent/overview.md): 通过 YCloud API 为 WhatsApp 商业电话号码构建并运行 Meta 托管的 AI Agent。 - [准备并检查资格](https://docs.ycloud.com/zh/documentation/meta-business-agent/prepare-and-check-eligibility.md): 确认业务先决条件并检查 WhatsApp Business 电话号码是否可以使用 Meta Business Agent。 - [入驻与配置](https://docs.ycloud.com/zh/documentation/meta-business-agent/onboard-and-configure.md): 创建 Meta 商业智能体并配置其设置、知识库、技能、连接器和工具。 - [测试与评估](https://docs.ycloud.com/zh/documentation/meta-business-agent/test-and-evaluate.md): 在全面推出之前,验证单轮、多轮、转接、工具和业务场景。 - [安全发布](https://docs.ycloud.com/zh/documentation/meta-business-agent/roll-out-safely.md): 分阶段启用 Meta Business Agent,验证每次设置更改,并随时准备经过测试的回滚请求。 - [运维与排查](https://docs.ycloud.com/zh/documentation/meta-business-agent/operate-and-troubleshoot.md): 控制对话会话、处理事件、检查日志、处理故障,并安全停用 Meta Business Agent。 #### 客户数据与运营 - [查询账户余额](https://docs.ycloud.com/zh/api-reference/guides/customer-data-and-operations/check-account-balance.md): 获取可用的 YCloud 账户余额和币种。 - [管理联系人](https://docs.ycloud.com/zh/api-reference/guides/customer-data-and-operations/manage-contacts.md): 创建并维护在各 YCloud 工作流中使用的客户画像。 - [跟踪自定义事件](https://docs.ycloud.com/zh/api-reference/guides/customer-data-and-operations/track-custom-events.md): 定义业务事件并将客户活动发送到 YCloud。 - [管理退订用户](https://docs.ycloud.com/zh/api-reference/guides/customer-data-and-operations/manage-unsubscribers.md): 按渠道记录并执行客户退订。 #### 示例 - [示例概述](https://docs.ycloud.com/zh/api-reference/guides/examples/overview.md): 参考包含屏幕截图、实现说明、请求、响应以及 Webhook 有效负载的带注释操作演练。 - [Webhook 示例](https://docs.ycloud.com/zh/api-reference/webhook-reference/overview.md): 查找每个 YCloud Webhook 事件的触发条件、载荷语法、参数以及示例。 ##### API 示例 - [WhatsApp 消息模板创建示例](https://docs.ycloud.com/zh/api-reference/guides/examples/api-examples/whatsapp-template-creation-examples.md): 通过附带注解的请求示例,创建身份验证、实用工具、营销、商务、Flow 和通话模板。 - [WhatsApp 消息发送示例](https://docs.ycloud.com/zh/api-reference/guides/examples/api-examples/whatsapp-messaging-examples.md): 通过带注释的请求示例发送模板、媒体、交互式、商业、Flow 以及通话消息。 ### 接口 #### WhatsApp 业务账号 - [List WABAs](https://docs.ycloud.com/api-reference/whatsapp-business-accounts/list-wabas.md): Returns a paginated list of WhatsApp business accounts you've registered. - [Retrieve a WABA](https://docs.ycloud.com/api-reference/whatsapp-business-accounts/retrieve-a-waba.md): Retrieves a WABA you've registered. - [Retrieve WABA automatic creative optimizations](https://docs.ycloud.com/api-reference/whatsapp-business-accounts/retrieve-waba-automatic-creative-optimizations.md): Retrieves current automatic creative optimization feature enrollment for a WhatsApp Business Account from Meta. - [Update WABA automatic creative optimizations](https://docs.ycloud.com/api-reference/whatsapp-business-accounts/update-waba-automatic-creative-optimizations.md): Partially updates automatic creative optimization feature enrollment for a WhatsApp Business Account. #### WhatsApp 入站消息 - [Mark message as read](https://docs.ycloud.com/api-reference/whatsapp-inbound-messages/mark-message-as-read.md): When you receive an inbound message from webhooks, you can use this endpoint to mark the message as read. Messages marked as read display two blue check marks alongside their timestamp. - [Mark message as read and display a typing indicator with a JSON response](https://docs.ycloud.com/api-reference/whatsapp-inbound-messages/mark-message-as-read-and-display-a-typing-indicator-with-a-json-response.md): Marks an inbound message as read and displays a typing indicator so the WhatsApp user knows you are preparing a response. Messages marked as read display two blue check marks alongside their timestamp. The typing indicator is dismissed once you respond, or after 25 seconds, whichever comes first. #### WhatsApp 媒体 - [Upload media](https://docs.ycloud.com/api-reference/whatsapp-media/upload-media.md): Uploads media that can later be sent in WhatsApp messages. This endpoint interfaces with Meta's WhatsApp Business API media endpoints. All media files sent through this endpoint are encrypted and persist for 30 days. #### WhatsApp 消息 - [Send a message directly](https://docs.ycloud.com/api-reference/whatsapp-messages/send-a-message-directly.md): Sends an outbound WhatsApp message directly. - [Enqueue a message](https://docs.ycloud.com/api-reference/whatsapp-messages/enqueue-a-message.md): Enqueues an outbound WhatsApp message for sending. - [Retrieve a message](https://docs.ycloud.com/api-reference/whatsapp-messages/retrieve-a-message.md): Retrieves a WhatsApp message you've previously sent. - [Submit a Direct Send message sample](https://docs.ycloud.com/api-reference/whatsapp-messages/submit-a-direct-send-message-sample.md): Submits one representative message sample to Meta and returns its detected category. We recommend submitting 3–4 samples that cover your utility use cases, one per request. This request does not send a message to a recipient. #### Messenger 消息 - [Send a Messenger text reply directly](https://docs.ycloud.com/api-reference/messenger-messages/send-a-messenger-text-reply-directly.md): Use your connected Facebook Page to send a one-to-one text reply. Meta determines reply eligibility; YCloud does not precheck the messaging window. Use a Tenant API Key. Developer App API Keys are not supported. - [Retrieve an outbound message by its YCloud ID](https://docs.ycloud.com/api-reference/messenger-messages/retrieve-an-outbound-message-by-its-ycloud-id.md): Retrieves a locally stored outbound record scoped by authenticated tenant and from. Does not query Meta or require the Page to remain connected. There is no inbound detail lookup or public message-history list in this phase. - [Retrieve an outbound message by its Meta message ID](https://docs.ycloud.com/api-reference/messenger-messages/retrieve-an-outbound-message-by-its-meta-message-id.md): The opaque Meta ID is a query parameter to avoid path-segment encoding problems. Use the YCloud message ID to retrieve records without a confirmed Meta ID. Only locally stored outbound messages are available. #### WhatsApp 屏蔽用户 - [Block users](https://docs.ycloud.com/api-reference/whatsapp-blocked-users/block-users.md): Blocks users from sending messages to the specified WhatsApp business phone number. You must have management permissions for this business phone number. YCloud synchronizes the operation with Meta's WhatsApp platform. - [Unblock users](https://docs.ycloud.com/api-reference/whatsapp-blocked-users/unblock-users.md): Removes users from the blocklist so they can send messages to the specified WhatsApp business phone number again. You must have management permissions for this business phone number. YCloud synchronizes the operation with Meta's WhatsApp platform. - [List blocked users](https://docs.ycloud.com/api-reference/whatsapp-blocked-users/list-blocked-users.md): Lists blocked users for the specified WhatsApp business phone number. You must have management permissions for this business phone number. #### WhatsApp 群组 - [Create a group](https://docs.ycloud.com/api-reference/whatsapp-groups/create-a-group.md): Creates a WhatsApp group for the specified business phone number. - [List groups](https://docs.ycloud.com/api-reference/whatsapp-groups/list-groups.md): Returns a cursor-paginated list of active WhatsApp groups. - [Retrieve a group](https://docs.ycloud.com/api-reference/whatsapp-groups/retrieve-a-group.md): Retrieves a WhatsApp group. - [Delete a group](https://docs.ycloud.com/api-reference/whatsapp-groups/delete-a-group.md): Deletes a WhatsApp group. - [Retrieve a group invite link](https://docs.ycloud.com/api-reference/whatsapp-groups/retrieve-a-group-invite-link.md): Retrieves the invite link for a WhatsApp group. - [Reset a group invite link](https://docs.ycloud.com/api-reference/whatsapp-groups/reset-a-group-invite-link.md): Resets and returns the invite link for a WhatsApp group. - [Send a group invite link message](https://docs.ycloud.com/api-reference/whatsapp-groups/send-a-group-invite-link-message.md): Sends a WhatsApp template message that contains the group invite link parameter. - [List group join requests](https://docs.ycloud.com/api-reference/whatsapp-groups/list-group-join-requests.md): Returns a cursor-paginated list of pending join requests for a WhatsApp group. - [Approve group join requests](https://docs.ycloud.com/api-reference/whatsapp-groups/approve-group-join-requests.md): Approves one or more pending join requests for a WhatsApp group. - [Reject group join requests](https://docs.ycloud.com/api-reference/whatsapp-groups/reject-group-join-requests.md): Rejects one or more pending join requests for a WhatsApp group. - [Remove group participants](https://docs.ycloud.com/api-reference/whatsapp-groups/remove-group-participants.md): Removes one or more participants from a WhatsApp group. - [Update group settings](https://docs.ycloud.com/api-reference/whatsapp-groups/update-group-settings.md): Updates a WhatsApp group's settings, such as subject or description. #### WhatsApp 语音通话 - [Connect a call](https://docs.ycloud.com/api-reference/whatsapp-calling/connect-a-call.md): Initiates a WhatsApp call connection. - [Pre-accept a call](https://docs.ycloud.com/api-reference/whatsapp-calling/pre-accept-a-call.md): Pre-accepts an inbound WhatsApp call. - [Accept a call](https://docs.ycloud.com/api-reference/whatsapp-calling/accept-a-call.md): Accepts an inbound WhatsApp call. - [Terminate a call](https://docs.ycloud.com/api-reference/whatsapp-calling/terminate-a-call.md): Terminates an active WhatsApp call. - [Reject a call](https://docs.ycloud.com/api-reference/whatsapp-calling/reject-a-call.md): Rejects an inbound WhatsApp call. - [Download call media](https://docs.ycloud.com/api-reference/whatsapp-calling/download-call-media.md): Downloads an available recording or transcription generated for an API-sourced WhatsApp call. #### WhatsApp 电话号码 - [List phone numbers](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/list-phone-numbers.md): Returns a paginated list of WhatsApp business phone numbers you've registered. - [Retrieve a phone number](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/retrieve-a-phone-number.md): Retrieves a WhatsApp business phone number you've registered. - [Retrieve a phone number profile](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/retrieve-a-phone-number-profile.md): Retrieves a WhatsApp business phone number's profile. Customers can view your business profile by clicking your business's name or number in a conversation thread. - [Update a phone number profile](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/update-a-phone-number-profile.md): Updates a WhatsApp business phone number profile. - [Update a phone number display name](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/update-a-phone-number-display-name.md): Updates a WhatsApp business phone number display name. - [Retrieve commerce settings](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/retrieve-commerce-settings.md): Retrieves a WhatsApp business phone number's commerce settings. - [Update commerce settings](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/update-commerce-settings.md): Updates a WhatsApp business phone number's commerce settings. Use this endpoint to enable or disable the shopping cart or the product catalog for a specific business phone number. - [Register a phone number](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/register-a-phone-number.md): Registers a WhatsApp business phone number. - [Retrieve phone number settings](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/retrieve-phone-number-settings.md): Retrieves phone number specific settings. - [Save phone number settings](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/save-phone-number-settings.md): Saves phone number specific settings. Send `calling`, `capture`, or both. When both are supplied, the service independently attempts both saves after shared authorization and phone-number validation. A failure in either branch does not prevent the other branch from being attempted. If either branch… - [Retrieve a phone number business username](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/retrieve-a-phone-number-business-username.md): Retrieves the Business Username state for a WhatsApp business phone number. The response reflects YCloud's latest known phone number state. If the phone number has no locally stored Business Username state, YCloud may sync the current username state from Meta before returning the response. - [Retrieve phone number business username suggestions](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/retrieve-phone-number-business-username-suggestions.md): Retrieves reserved Business Username suggestions for a WhatsApp business phone number. The response flattens Meta username suggestions into a string array. If no suggestions are available, `data` is an empty array. - [Update a phone number business username](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/update-a-phone-number-business-username.md): Requests a Business Username update for a WhatsApp business phone number. The requested username may require Meta review before it becomes active. If Meta accepts or reserves the request for review, the response status is usually `reserved`; `pending_review` is kept only as a legacy compatibility va… - [Delete a phone number business username](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/delete-a-phone-number-business-username.md): Deletes the active Business Username for a WhatsApp business phone number. This operation removes the currently active Business Username. It does not cancel or remove a reserved Business Username request. If a reserved request still exists after deletion, the returned `businessUsernameStatus` remain… - [Check a Meta contact book entry](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/check-a-meta-contact-book-entry.md): Checks whether Meta has a phone number entry for this standard BSUID in this business phone number contact book, without returning the phone number. Uses the same account API key, available WABA ownership and bound phone checks as DELETE. Parent BSUIDs are unsupported; Developer App API keys return… - [Delete a Meta contact book entry](https://docs.ycloud.com/api-reference/whatsapp-phone-numbers/delete-a-meta-contact-book-entry.md): Deletes the Meta contact book entry that associates a WhatsApp business phone number with a customer's WhatsApp Business-scoped user ID (BSUID). #### WhatsApp 模板 - [Create a template](https://docs.ycloud.com/api-reference/whatsapp-templates/create-a-template.md): Creates a WhatsApp template. - [List templates](https://docs.ycloud.com/api-reference/whatsapp-templates/list-templates.md): Returns a paginated list of WhatsApp templates you've previously created. - [Retrieve WhatsApp template analytics](https://docs.ycloud.com/api-reference/whatsapp-templates/retrieve-whatsapp-template-analytics.md): Returns daily YCloud message metrics and, when available, Meta Template Insights for one WhatsApp template. Authenticate with `X-API-Key`. `analyticsStatus` describes Meta Template Insights only; it does not describe YCloud metrics. Dates are interpreted in the WABA timezone, both boundaries are inc… - [Delete templates by name](https://docs.ycloud.com/api-reference/whatsapp-templates/delete-templates-by-name.md): Deletes WhatsApp templates by name. If that template name exists in multiple languages, all languages will be deleted. HTTP status `404` is returned if no templates are found for the specific name. - [Delete a template](https://docs.ycloud.com/api-reference/whatsapp-templates/delete-a-template.md): Deletes a WhatsApp template by name and language. - [Edit a template](https://docs.ycloud.com/api-reference/whatsapp-templates/edit-a-template.md): Edits a WhatsApp template by name and language. Editing a template replaces its old contents entirely, so include any components you wish to preserve as well as components you wish to update using the components parameter. - [Retrieve a template](https://docs.ycloud.com/api-reference/whatsapp-templates/retrieve-a-template.md): Retrieves a WhatsApp template by name and language. #### WhatsApp Flows - [Create a flow](https://docs.ycloud.com/api-reference/whatsapp-flows/create-a-flow.md): Creates a new WhatsApp Flow. New Flows are by default created in DRAFT state. You can create a new published Flow in single request by specifying flowJson and publish parameters. - [List flows](https://docs.ycloud.com/api-reference/whatsapp-flows/list-flows.md): Returns a list of WhatsApp Flows under a WhatsApp Business Account (WABA). - [Update flow metadata](https://docs.ycloud.com/api-reference/whatsapp-flows/update-flow-metadata.md): Updates a WhatsApp Flow's metadata (name or categories). - [Update flow structure](https://docs.ycloud.com/api-reference/whatsapp-flows/update-flow-structure.md): Updates a WhatsApp Flow's structure. Note that the file must be attached as form-data. - [Delete a flow](https://docs.ycloud.com/api-reference/whatsapp-flows/delete-a-flow.md): Deletes a WhatsApp Flow. Only Flows in DRAFT status can be deleted. - [Retrieve a flow](https://docs.ycloud.com/api-reference/whatsapp-flows/retrieve-a-flow.md): Retrieves a WhatsApp Flow's details. - [Publish a flow](https://docs.ycloud.com/api-reference/whatsapp-flows/publish-a-flow.md): Updates the status of the Flow to "PUBLISHED". You can either edit this flow in the future and turn it back to the "DRAFT" state, or create a new flow by specifying the existing Flow ID as the cloneFlowId parameter. - [Deprecate a flow](https://docs.ycloud.com/api-reference/whatsapp-flows/deprecate-a-flow.md): Marks a published Flow as deprecated. Once a Flow is published, it cannot be modified or deleted, but can be marked as deprecated. - [generate a web preview URL with this flow.](https://docs.ycloud.com/api-reference/whatsapp-flows/generate-a-web-preview-url-with-this-flow.md): In order to visualize the Flows created, you can generate a web preview URL with this request. **The preview URL is public and can be shared with different stakeholders to visualize the Flow.**. #### CTWA - [Submit a conversion event](https://docs.ycloud.com/api-reference/ctwa/submit-a-conversion-event.md): Submits one Lead or Purchase conversion event from a Click-to-WhatsApp ad. - [Submit conversion events](https://docs.ycloud.com/api-reference/ctwa/submit-conversion-events.md): Submits 1 to 100 Lead or Purchase conversion events for the same WhatsApp Business Account. #### 余额 - [Retrieve balance](https://docs.ycloud.com/api-reference/balance/retrieve-balance.md): Retrieves the current account balance. #### 联系人 - [Create a contact](https://docs.ycloud.com/api-reference/contacts/create-a-contact.md): Creates a contact. - [List contacts](https://docs.ycloud.com/api-reference/contacts/list-contacts.md): Returns a paginated list of contacts. - [Retrieve a contact](https://docs.ycloud.com/api-reference/contacts/retrieve-a-contact.md): Retrieves a contact. - [List contact notes](https://docs.ycloud.com/api-reference/contacts/list-contact-notes.md): Returns all notes for a contact, ordered by creation time descending. The `{contactIdentifier}` path parameter supports a contact ID, a phone number in E.164 format starting with `+`, or a Meta username without the leading `@`. Ambiguous numeric values are resolved as Meta usernames first and fall b… - [Create a contact note](https://docs.ycloud.com/api-reference/contacts/create-a-contact-note.md): Creates one note for the contact and returns the created note. Leading and trailing whitespace is removed before storage. This operation does not use a client idempotency key; repeating the request creates another note with a different ID. - [Update a contact note](https://docs.ycloud.com/api-reference/contacts/update-a-contact-note.md): Updates one note in the current tenant by note ID and returns the updated note. Repeating the same request leaves the stored content unchanged, but an accepted update may still produce another `contact.note.updated` event. - [Delete a contact note](https://docs.ycloud.com/api-reference/contacts/delete-a-contact-note.md): Deletes one note in the current tenant by note ID and returns its snapshot before deletion. Deleting the same note again returns `404`; the operation does not use a client idempotency key. - [Update a contact](https://docs.ycloud.com/api-reference/contacts/update-a-contact.md): Updates a contact. If every supplied persisted contact field already has the requested value, the contact is not updated and no `contact.attributes_changed` event is emitted. Note mutations in the same request are still applied. - [Delete a contact](https://docs.ycloud.com/api-reference/contacts/delete-a-contact.md): Deletes a contact. - [List contact attributes](https://docs.ycloud.com/api-reference/contacts/list-contact-attributes.md): Returns a list of all available contact attributes and their configurations. #### 自定义事件 - [Create an event definition](https://docs.ycloud.com/api-reference/custom-events/create-an-event-definition.md): Creates a custom event definition. - [Retrieve an event definition](https://docs.ycloud.com/api-reference/custom-events/retrieve-an-event-definition.md): Retrieves a custom event definition you previously created. - [Update an event definition](https://docs.ycloud.com/api-reference/custom-events/update-an-event-definition.md): Updates an event definition's label and description. - [Create an event property definition](https://docs.ycloud.com/api-reference/custom-events/create-an-event-property-definition.md): Defines a new property for the event definition. - [Update an event property definition](https://docs.ycloud.com/api-reference/custom-events/update-an-event-property-definition.md): Updates an event property definition's label and description. - [Delete an event property definition](https://docs.ycloud.com/api-reference/custom-events/delete-an-event-property-definition.md): Deletes a property of the event definition. - [Send an event](https://docs.ycloud.com/api-reference/custom-events/send-an-event.md): Sends an occurrence of a previously defined custom event. For contact events, identify the contact using one of a contact ID, phone number, or Meta username. #### 邮件 - [Send an email](https://docs.ycloud.com/api-reference/emails/send-an-email.md): Sends an outbound email message. #### 短信 - [Send an SMS](https://docs.ycloud.com/api-reference/sms/send-an-sms.md): Sends an outbound text message. - [List SMS records](https://docs.ycloud.com/api-reference/sms/list-sms-records.md): Returns a paginated list of SMS messages you've previously sent. #### 退订用户 - [Create an unsubscriber](https://docs.ycloud.com/api-reference/unsubscribers/create-an-unsubscriber.md): Creates an unsubscriber. An unsubscriber is a configuration item representing that customers opt out of receiving messages from your business. **A customer and a channel form a unique identifier for an unsubscriber.** - [List unsubscribers](https://docs.ycloud.com/api-reference/unsubscribers/list-unsubscribers.md): Returns a paginated list of unsubscribers. - [List all unsubscribers by customer](https://docs.ycloud.com/api-reference/unsubscribers/list-all-unsubscribers-by-customer.md): Returns all unsubscribers for the specified customer. - [Retrieve an unsubscriber](https://docs.ycloud.com/api-reference/unsubscribers/retrieve-an-unsubscriber.md): Retrieves the unsubscriber for the specified customer and channel. - [Delete an unsubscriber](https://docs.ycloud.com/api-reference/unsubscribers/delete-an-unsubscriber.md): Deletes the unsubscriber for the specified customer and channel. #### 验证码 - [Start a verification](https://docs.ycloud.com/api-reference/verify/start-a-verification.md): Starts a verification by sending an SMS, voice, or email message to the recipient. This verification is charged once the message is sent successfully. - [Check a verification](https://docs.ycloud.com/api-reference/verify/check-a-verification.md): Checks a verification with a phone number, an email address, or a verification ID. A `pending` verification status changes to `approved` once you receive a response with the `valid` parameter is `true`. An approved verification cannot be checked anymore. #### 语音 - [Send a voice code](https://docs.ycloud.com/api-reference/voices/send-a-voice-code.md): Sends an outbound voice call verification code. - [List voice records](https://docs.ycloud.com/api-reference/voices/list-voice-records.md): Returns a paginated list of voice calls you've previously sent. #### Webhook 端点 - [Create a webhook endpoint](https://docs.ycloud.com/api-reference/webhook-endpoints/create-a-webhook-endpoint.md): Creates a webhook endpoint listening for specific events. - [List webhook endpoints](https://docs.ycloud.com/api-reference/webhook-endpoints/list-webhook-endpoints.md): Returns a paginated list of webhook endpoints. - [Retrieve a webhook endpoint](https://docs.ycloud.com/api-reference/webhook-endpoints/retrieve-a-webhook-endpoint.md): Retrieves the webhook endpoint with the given ID. - [Update a webhook endpoint](https://docs.ycloud.com/api-reference/webhook-endpoints/update-a-webhook-endpoint.md): Updates a webhook endpoint, such as url, events, status. - [Delete a webhook endpoint](https://docs.ycloud.com/api-reference/webhook-endpoints/delete-a-webhook-endpoint.md): Deletes a webhook endpoint. - [Rotate a webhook endpoint secret](https://docs.ycloud.com/api-reference/webhook-endpoints/rotate-a-webhook-endpoint-secret.md): Generates a new secret for a webhook endpoint. #### Meta 商业智能体 - [Meta Business Agent 概述](https://docs.ycloud.com/zh/api-reference/meta-business-agents/overview.md): 浏览用于接入、配置、测试、发布和运行 Meta Business Agent 的 YCloud REST 资源。 ##### 配置 ###### 智能体知识:企业信息 - [Get Business Info](https://docs.ycloud.com/api-reference/meta-business-agents/get-business-info.md): Retrieves the business information used by the agent when answering customers, including policies, purchase and shipping details, the business description, and contact information. - [Replace Business Info](https://docs.ycloud.com/api-reference/meta-business-agents/replace-business-info.md): Creates or fully replaces the phone number's business information knowledge. Values supplied in the request overwrite the existing business information. - [Delete Business Info](https://docs.ycloud.com/api-reference/meta-business-agents/delete-business-info.md): Resets the agent's business information to Meta's default empty values and returns the resulting business information object. ###### 智能体知识:常见问题 - [List Faqs](https://docs.ycloud.com/api-reference/meta-business-agents/list-faqs.md): Lists all FAQ question-and-answer entries currently available to the agent as knowledge. - [Create Faq](https://docs.ycloud.com/api-reference/meta-business-agents/create-faq.md): Creates a question-and-answer entry in the agent knowledge base and returns the created FAQ. - [Get Faq](https://docs.ycloud.com/api-reference/meta-business-agents/get-faq.md): Retrieves the FAQ knowledge entry identified by `faqId`. - [Update Faq](https://docs.ycloud.com/api-reference/meta-business-agents/update-faq.md): Send both `question` and `answer` to update the FAQ. You can also include `metadata`. The response may contain a new `id`. Use the returned ID for subsequent reads, updates, and deletes. If the ID changes, `created_at` resets to the update time. A timeout or HTTP `502` response does not necessarily… - [Delete Faq](https://docs.ycloud.com/api-reference/meta-business-agents/delete-faq.md): Deletes the FAQ identified by `faqId`. Returns HTTP `204` when deletion succeeds or Meta explicitly reports that the FAQ does not exist. Other `404` errors remain errors. ###### 智能体知识:文件 - [List Files](https://docs.ycloud.com/api-reference/meta-business-agents/list-files.md): Lists all uploaded file-based knowledge sources for the agent, including the metadata and processing state returned by Meta. - [Upload File](https://docs.ycloud.com/api-reference/meta-business-agents/upload-file.md): Streams the multipart `file` upload to Meta and adds it as a file-based knowledge source for the agent. - [Get File](https://docs.ycloud.com/api-reference/meta-business-agents/get-file.md): Retrieves the metadata and processing state of the knowledge file identified by `fileId`. - [Delete File](https://docs.ycloud.com/api-reference/meta-business-agents/delete-file.md): Deletes the uploaded file identified by `fileId` from the agent knowledge base. ###### 智能体知识:网站 - [List Websites](https://docs.ycloud.com/api-reference/meta-business-agents/list-websites.md): Lists the website URLs configured for Meta to crawl and ingest into the agent knowledge base, including each crawl entry's current state. - [Create Website](https://docs.ycloud.com/api-reference/meta-business-agents/create-website.md): Adds a website URL for Meta to crawl and ingest into the agent knowledge base and returns the created crawl entry. - [Get Website](https://docs.ycloud.com/api-reference/meta-business-agents/get-website.md): Retrieves the website knowledge entry identified by `websiteId`, including its URL and crawl status information. - [Update Website](https://docs.ycloud.com/api-reference/meta-business-agents/update-website.md): Updates the URL and optional crawl scope of the website identified by `websiteId`. The response may contain a new `id`. Use the returned ID for subsequent reads, updates, and deletes. Do not automatically retry an update whose outcome is uncertain. - [Delete Website](https://docs.ycloud.com/api-reference/meta-business-agents/delete-website.md): Removes the website crawl entry identified by `websiteId` from the agent knowledge base. ###### 智能体技能 - [List Skills](https://docs.ycloud.com/api-reference/meta-business-agents/list-skills.md): Lists the agent's skills, which define behavioral instructions, tone, and response patterns. Pass `agent_id` to target a specific settings object. - [Create Skill](https://docs.ycloud.com/api-reference/meta-business-agents/create-skill.md): Creates a behavioral skill for the agent from the supplied title, description, and instruction text. - [Get Skill](https://docs.ycloud.com/api-reference/meta-business-agents/get-skill.md): Retrieves the behavioral skill identified by `skillId`. - [Update Skill](https://docs.ycloud.com/api-reference/meta-business-agents/update-skill.md): Updates the supplied title, description, or instruction text of the skill identified by `skillId` and returns the updated skill. - [Delete Skill](https://docs.ycloud.com/api-reference/meta-business-agents/delete-skill.md): Deletes the behavioral skill identified by `skillId` from the agent configuration. ###### 界面技能 - [List UI Skills](https://docs.ycloud.com/api-reference/meta-business-agents/list-ui-skills.md): Lists the rich WhatsApp UI components that the agent can select during a conversation. Continue pagination while `paging.next` is present. - [Create UI Skill](https://docs.ycloud.com/api-reference/meta-business-agents/create-ui-skill.md): Creates a UI Skill. `flow_id` is required only when `component_type` is `flow` and must be omitted for every other component type. - [Get UI Skill](https://docs.ycloud.com/api-reference/meta-business-agents/get-ui-skill.md): Retrieves the UI Skill identified by `skillId`. - [Update UI Skill](https://docs.ycloud.com/api-reference/meta-business-agents/update-ui-skill.md): Updates the title, status, and instruction of the UI Skill identified by `skillId`. Component type and Flow association cannot be changed by this operation. - [Delete UI Skill](https://docs.ycloud.com/api-reference/meta-business-agents/delete-ui-skill.md): Deletes the UI Skill identified by `skillId`. ###### 连接器工具 - [List Connector Tools](https://docs.ycloud.com/api-reference/meta-business-agents/list-connector-tools.md): Lists the tool operations defined under `connectorId` that the agent can use to call the external service. - [Create Connector Tool](https://docs.ycloud.com/api-reference/meta-business-agents/create-connector-tool.md): Creates a tool under `connectorId`, including its agent-facing description, outbound request definition, and optional user-auth extraction configuration. transformation_spec is optional: omit it to preserve an existing transformation on update, send null to delete it, or send an object to set it. - [Get Connector Tool](https://docs.ycloud.com/api-reference/meta-business-agents/get-connector-tool.md): Retrieves the connector tool identified by `toolId`, including its outbound request and user-auth definitions. - [Update Connector Tool](https://docs.ycloud.com/api-reference/meta-business-agents/update-connector-tool.md): Updates the name, description, outbound request definition, and user-auth configuration of the connector tool identified by `toolId`. transformation_spec is optional: omit it to preserve an existing transformation on update, send null to delete it, or send an object to set it. - [Delete Connector Tool](https://docs.ycloud.com/api-reference/meta-business-agents/delete-connector-tool.md): Deletes the tool identified by `toolId` from `connectorId`. - [Run Connector Tool](https://docs.ycloud.com/api-reference/meta-business-agents/run-connector-tool.md): Executes the connector tool identified by `toolId` with the supplied `input` and returns the upstream API result exposed by Meta. ###### 连接器 - [List Connectors](https://docs.ycloud.com/api-reference/meta-business-agents/list-connectors.md): Lists the external API connectors configured for the agent, including their endpoint and authentication definitions. - [Create Connector](https://docs.ycloud.com/api-reference/meta-business-agents/create-connector.md): Creates an external API connector with its name, description, base URL, authentication type, and optional user-auth or certificate configuration. For MCP, base_url is the remote MCP server address and authentication uses the existing auth fields. Creating a connector does not guarantee discovered to… - [Get Connector](https://docs.ycloud.com/api-reference/meta-business-agents/get-connector.md): Retrieves the external API connector identified by `connectorId`. - [Update Connector](https://docs.ycloud.com/api-reference/meta-business-agents/update-connector.md): Updates the connector definition identified by `connectorId`, including its descriptive, endpoint, authentication, and certificate requirement fields. connector_protocol cannot be changed after creation. - [Refresh MCP Connector Tools](https://docs.ycloud.com/api-reference/meta-business-agents/refresh-mcp-connector-tools.md): Triggers Meta to rediscover the MCP tools exposed by this connector. The request has no body. A successful HTTP 200 returns the current Connector; inspect mcp_tool_sync.status because remote discovery or provisioning failure can still return HTTP 200 with status ERROR. This operation has no idempote… - [Delete Connector](https://docs.ycloud.com/api-reference/meta-business-agents/delete-connector.md): Deletes the external API connector identified by `connectorId` from the agent configuration. - [Upsert Connector Certificate](https://docs.ycloud.com/api-reference/meta-business-agents/upsert-connector-certificate.md): Uploads or rotates the mTLS client certificate, private key, and optional CA certificate for `connectorId`, then returns the updated connector. - [Upsert Connector Api Key](https://docs.ycloud.com/api-reference/meta-business-agents/upsert-connector-api-key.md): Sets or rotates the API key credentials for `connectorId`. Existing API key credentials are replaced, and the updated connector is returned. - [Upsert Connector O Auth](https://docs.ycloud.com/api-reference/meta-business-agents/upsert-connector-o-auth.md): Sets or rotates the OAuth 2.0 client credentials for `connectorId`. Existing OAuth credentials are replaced, and the updated connector is returned. - [List Connector Logs](https://docs.ycloud.com/api-reference/meta-business-agents/list-connector-logs.md): Retrieves third-party connector error logs for the requested time and tool filters. It can return individual entries, aggregated failure patterns, and optional success-rate or latency statistics; Meta limits the query window and retention to seven days. ##### 删除智能体 - [Delete Agent](https://docs.ycloud.com/api-reference/meta-business-agents/delete-agent.md): Removes the Meta Business Agent from the WhatsApp phone number and deletes its agent configuration. If this is the account's last agent, Meta also disconnects the integration; `deleted_agent_id` is null when there was nothing to remove. ##### 接入 ###### 智能体白名单 - [List Allowlist](https://docs.ycloud.com/api-reference/meta-business-agents/list-allowlist.md): Lists allowlist entries that may receive agent replies when `ai_audience` is set to `ALLOWLISTED_ONLY`. Identity fields may be absent. - [Create Allowlist Entry](https://docs.ycloud.com/api-reference/meta-business-agents/create-allowlist-entry.md): Adds exactly one explicitly supplied WhatsApp identity: consumer_phone_number or consumer_bsuid. This public API does not look up a BSUID from a phone number. Phone and BSUID entries have distinct IDs and each counts toward the shared limit of 20. - [Delete Allowlist Entry](https://docs.ycloud.com/api-reference/meta-business-agents/delete-allowlist-entry.md): Deletes only the entry identified by entryId. Other phone or BSUID entries remain unchanged. ###### 智能体资格 - [Check Eligibility](https://docs.ycloud.com/api-reference/meta-business-agents/check-eligibility.md): Checks whether the WhatsApp Business Phone Number identified by `entityId` is eligible to use Meta Business Agent and returns Meta's eligibility result. ###### 智能体接入 - [Onboard Agent](https://docs.ycloud.com/api-reference/meta-business-agents/onboard-agent.md): Starts onboarding for the phone number, creates the required agent resources, and schedules asynchronous data preparation. The optional request body may provide `catalog_id`; onboarding alone does not enable customer replies. ###### 智能体设置 - [Get Settings](https://docs.ycloud.com/api-reference/meta-business-agents/get-settings.md): Returns the current agent settings as a list. Pass `agent_id` to target a specific settings object; when it is omitted, Meta returns the latest settings for the channel. - [Replace Settings](https://docs.ycloud.com/api-reference/meta-business-agents/replace-settings.md): Creates or updates rollout, handoff, follow-up, audience, and response-policy settings for the agent. YCloud omits null fields before calling Meta. Omitting `never_say_phrases` preserves the current list, an empty list clears it, and a non-empty list fully replaces it. ###### 智能体预算 - [Get Budgets](https://docs.ycloud.com/api-reference/meta-business-agents/get-budgets.md): Returns the complete Budget collection for the Business Manager associated with the WhatsApp Business Phone Number ID. An empty collection means usage is unlimited. - [Replace Budgets](https://docs.ycloud.com/api-reference/meta-business-agents/replace-budgets.md): Replaces the complete Budget collection. Include every `token` and `ai_turn` entry that should remain. Send an empty collection to remove all limits. ##### 运行 ###### 智能体评估 - [List Eval Cases](https://docs.ycloud.com/api-reference/meta-business-agents/list-eval-cases.md): Lists the evaluation scenario configurations available for the agent, including their scenario, categories, turn limit, and success criteria. - [Get Eval Summary](https://docs.ycloud.com/api-reference/meta-business-agents/get-eval-summary.md): Retrieves aggregated evaluation insight reports for the comma-separated `summary_ids` supplied in the query string. - [Get Eval Details](https://docs.ycloud.com/api-reference/meta-business-agents/get-eval-details.md): Retrieves per-conversation evaluation results for the comma-separated `eval_ids` supplied in the query string. - [Get Eval Run Status](https://docs.ycloud.com/api-reference/meta-business-agents/get-eval-run-status.md): Polls the evaluation job identified by `jobId` and returns its status, progress, completed result, or error information. - [Submit Eval Run](https://docs.ycloud.com/api-reference/meta-business-agents/submit-eval-run.md): Starts an asynchronous evaluation job for the supplied Meta-native `eval_case_ids` value and returns its `job_id` and initial status. ###### 智能体事件 - [Submit Agent Event](https://docs.ycloud.com/api-reference/meta-business-agents/submit-agent-event.md): Submits a business event for a consumer and enqueues it for asynchronous agent processing. The immediate response contains `status` and `agent_event_id` for later polling. - [Get Agent Event Status](https://docs.ycloud.com/api-reference/meta-business-agents/get-agent-event-status.md): Retrieves the current processing status, timestamps, and any error or skip reason for the event identified by `agentEventId`. ###### 智能体测试 - [Test Agent](https://docs.ycloud.com/api-reference/meta-business-agents/test-agent.md): Sends `user_msg` through the full agent pipeline and returns a synchronous test response without requiring a real consumer number. Reuse the optional `conversation_id` to continue a multi-turn test. ###### 对话轮次 - [Get Conversation Turns](https://docs.ycloud.com/api-reference/meta-business-agents/get-conversation-turns.md): Returns conversation turns for one WhatsApp user. Timestamp boundaries are inclusive Unix epoch milliseconds. Continue pagination while `paging.next` is present, including when the current `data` array is empty. ###### 会话控制(Cloud API) - [Control Thread](https://docs.ycloud.com/api-reference/meta-business-agents/control-thread.md): Passes, releases, or takes control of a consumer thread. YCloud resolves the tenant and Meta credential. ### Webhook reference #### Messenger - [messenger.inbound_message.received](https://docs.ycloud.com/zh/api-reference/webhook-reference/messenger-inbound-message-received.md): 当收到来自客户的普通 Messenger 文本消息时触发。 - [messenger.inbound_message.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/messenger-inbound-message-updated.md): 当客户编辑已保存的 Messenger 接收文本消息时触发。 - [messenger.message.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/messenger-message-updated.md): 当已保存的 Messenger 普通出站消息快照可用(包括提交结果和匹配的回执)时触发。 - [messenger.message_reaction.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/messenger-message-reaction-updated.md): 当客户对 Messenger 消息添加或移除回应时触发。 #### WhatsApp messages - [whatsapp.inbound_message.received](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-inbound-message-received.md): 在收到 WhatsApp 入站消息时触发。 - [whatsapp.message.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-message-updated.md): 当 WhatsApp 出方向消息状态发生更新,且状态变为 `sent`、`failed`、`delivered` 或 `read` 时触发。 - [whatsapp.user.preferences](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-user-preferences.md): 当 WhatsApp 用户停止接收营销消息或恢复接收营销消息时触发。 #### WhatsApp templates - [whatsapp.template.category_updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-template-category-updated.md): 在 WhatsApp 消息模板类别发生更新时触发。 - [whatsapp.template.correct_category_detection](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-template-correct-category-detection.md): 当 Meta 在 Utility Direct Send 中检测到非效用类内容时触发。通过 Webhook 端点 API 进行订阅。 - [whatsapp.template.quality_updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-template-quality-updated.md): 在 WhatsApp 消息模板质量评级更新时触发。 - [whatsapp.template.reviewed](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-template-reviewed.md): 当 WhatsApp 消息模板收到审核或生命周期更新(包括批准、拒绝、暂停、禁用、归档和取消归档)时触发。 #### WhatsApp accounts - [whatsapp.business_account.deleted](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-business-account-deleted.md): 在 WhatsApp 商业账户被删除时触发。 - [whatsapp.business_account.reviewed](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-business-account-reviewed.md): 在 WhatsApp 商业账户完成审核时触发。 - [whatsapp.business_account.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-business-account-updated.md): 在发生政策违规、WhatsApp 商业账户被封禁等情况时触发。 #### WhatsApp phone numbers - [whatsapp.phone_number.deleted](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-phone-number-deleted.md): 在 WhatsApp 商业电话号码被删除时触发。 - [whatsapp.phone_number.name_updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-phone-number-name-updated.md): 在 WhatsApp 商业电话号码的名称获得批准或被拒绝时触发。 - [whatsapp.phone_number.quality_updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-phone-number-quality-updated.md): 在 WhatsApp 商业电话号码的质量评级、消息发送限制或账户连接状态更新时触发。 - [whatsapp.phone_number.business_username_updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-phone-number-business-username-updated.md): 在 WhatsApp 商业电话号码的商业用户名(Business Username)更新时触发。 #### WhatsApp Business App - [whatsapp.smb.history](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-smb-history.md): 当 WhatsApp Business App 消息历史记录同步时触发。 - [whatsapp.smb.message.created](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-smb-message-created.md): 当从 WhatsApp Business App 发送消息时触发。 - [whatsapp.smb.message.echoes](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-smb-message-echoes.md): 当从 WhatsApp Business App 发送的消息作为回执(echo)同步时触发。 #### WhatsApp Agents - [whatsapp.echo_message.created](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-echo-message-created.md): 当为公共 REST API 坐席记录出站回显消息时触发。 - [whatsapp.echo_message.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-echo-message-updated.md): 当收到 Public REST API Agent 的出站 echo 状态时发生;较晚到达的低优先级状态也可能会被推送。 - [whatsapp.meta_business_agent.handover.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-meta-business-agent-handover-updated.md): 当支持的移交回调将控制权从 Public REST API Agent 转移时触发。不确认收件箱分配。 #### WhatsApp calls - [whatsapp.call.connect](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-call-connect.md): 当呼入通话提供 SDP offer 或商家发起的通话提供 SDP answer 时触发。 - [whatsapp.call.terminate](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-call-terminate.md): 在 WhatsApp 通话终止时触发。 - [whatsapp.call.status.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-call-status-updated.md): 在 WhatsApp 通话状态更新时触发。 - [whatsapp.call.recording.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-call-recording-updated.md): 当源自 API 的 WhatsApp 通话录音变为可用或发生永久失败时触发。 - [whatsapp.call.transcription.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-call-transcription-updated.md): 当源自 API 的 WhatsApp 通话转录变为可用或永久失败时发生。 #### WhatsApp groups - [whatsapp.group.lifecycle_update](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-group-lifecycle-update.md): 在创建或删除 WhatsApp 群组时发生,包括成功和失败的结果。 - [whatsapp.group.participants_update](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-group-participants-update.md): 在 WhatsApp 群组成员或加群请求发生更新时触发。 - [whatsapp.group.settings_update](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-group-settings-update.md): 在 WhatsApp 群组设置更新时触发,包括成功和失败的结果。 - [whatsapp.group.status_update](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-group-status-update.md): 在 WhatsApp 群组封禁状态更新时触发。 #### WhatsApp Flows and payments - [whatsapp.flow.status_change](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-flow-status-change.md): 在 WhatsApp flow 状态更新时触发。 - [whatsapp.payment.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/whatsapp-payment-updated.md): 在 WhatsApp 支付交易发生变更时触发。 #### Contacts - [contact.attributes_changed](https://docs.ycloud.com/zh/api-reference/webhook-reference/contact-attributes-changed.md): 当联系人的属性发生变更时触发。 - [contact.created](https://docs.ycloud.com/zh/api-reference/webhook-reference/contact-created.md): 在创建联系人时触发。 - [contact.deleted](https://docs.ycloud.com/zh/api-reference/webhook-reference/contact-deleted.md): 在联系人被删除时触发。 - [contact.unsubscribe.created](https://docs.ycloud.com/zh/api-reference/webhook-reference/contact-unsubscribe-created.md): 在联系人退订消息时触发。 - [contact.unsubscribe.deleted](https://docs.ycloud.com/zh/api-reference/webhook-reference/contact-unsubscribe-deleted.md): 当联系人恢复订阅消息时触发。 - [contact.note.created](https://docs.ycloud.com/zh/api-reference/webhook-reference/contact-note-created.md): 在创建联系人备注时发生。 - [contact.note.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/contact-note-updated.md): 在更新联系人备注时发生。 - [contact.note.deleted](https://docs.ycloud.com/zh/api-reference/webhook-reference/contact-note-deleted.md): 当联系人备注被单独删除时触发。删除联系人不会针对级联删除的备注触发此事件。 #### Email, SMS, and Voice - [email.delivery.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/email-delivery-updated.md): 当邮件发送状态更新,且状态变更为 `delivered` 或 `failed` 时触发。 - [sms.message.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/sms-message-updated.md): 当 SMS 消息状态发生更新且状态变更为 `delivered` 或 `undelivered` 时触发。 - [sms.inbound.received](https://docs.ycloud.com/zh/api-reference/webhook-reference/sms-inbound-received.md): 在收到 SMS 入站消息时触发,这意味着用户回复了您的消息。 - [voice.message.updated](https://docs.ycloud.com/zh/api-reference/webhook-reference/voice-message-updated.md): 在语音消息状态更新且状态变为 `delivered` 或 `undelivered` 时触发。 ## OpenAPI Specs - [ycloud-api-v2](/openapi/endpoints/ycloud-api-v2.yaml) - [meta-business-agent-public.openapi](/openapi/endpoints/meta-business-agent-public.openapi.json)