SuperAPI AI 工具集

telnyx-account-notifications-curl

部署与运维

查看项目

更新于 10-16 05:43

技能介绍

用途:该技能面向 Telnyx 账户通知管理,提供用 curl 调用 Telnyx REST API 的示例,用于配置账户告警与事件的通知渠道及相关设置。

主要能力(接口路径与返回字段):

  • 通知渠道 /notification_channels:支持列出、创建、查询、更新、删除。渠道字段包含 channel_destination、channel_type_id(枚举:sms、voice、email、webhook)、notification_profile_id 等。
  • 通知事件条件 /notification_event_conditions:列出事件条件,返回 allow_multiple_channels、associated_record_type(枚举:account、phone_number)、asynchronous、enabled、parameters、supported_channels 等。
  • 通知事件 /notification_events:列出事件,返回 enabled、name、notification_category 等。
  • 通知配置文件 /notification_profiles:支持列出、创建、查询、更新、删除。
  • 通知设置 /notification_settings:支持列出、添加、查询、删除,返回 notification_channel_id、notification_event_condition_id、notification_profile_id、parameters、status(枚举含 enabled、enable-received、enable-pending、enable-submitted、delete-received、delete-pending、delete-submitted、deleted)等。

必要用法:curl 在 macOS、Linux、Windows 10+ 上预装。先设置环境变量:export TELNYX_API_KEY="YOUR_API_KEY_HERE"。请求通过 Authorization: Bearer $TELNYX_API_KEY 认证,基础地址为 https://api.telnyx.com/v2。

错误处理:需处理网络错误、401(API 密钥无效)、403(权限不足)、404(资源不存在)、422(字段或格式校验失败)、429(限流,可用指数退避重试)。

分页:列表端点分页返回,用 page[number] 和 page[size] 查询参数翻页,并检查响应中的 meta.total_pages。

限制:资料仅给出接口与 curl 示例,未提供具体价格、平台可用性、速率上限或各字段详细约束,相关信息暂未提供。