Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

telnyx-fax-pythontelnyx FAX Python 测试

Agent Skill

用于辅助 Python 项目开发、测试、依赖管理和常见框架工作流。它适合让 Agent 阅读 Python 代码、定位测试问题、整理运行命令、生成脚本或分析数据处理逻辑。使用时需要确认项目虚拟环境、依赖版本和测试入口;涉及执行脚本、读写文件、访问数据库或调用外部 API 时,应先明确运行目录和输入输出范围,避免误改生产数据。

总安装

618

周安装

25

GitHub Stars

169

下载量

194
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:telnyx-fax-python(telnyx FAX Python 测试)
来源仓库:https://github.com/team-telnyx/skills
仓库路径:skills/telnyx-fax-python
安装命令:
npx skills add https://github.com/team-telnyx/skills --skill telnyx-fax-python
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/team-telnyx/skills --skill telnyx-fax-python

简介

telnyx-fax-python 用于辅助 Python 项目开发、测试、依赖管理和常见框架工作流。

  • 适合阅读 Python 代码、定位测试问题、整理运行命令、生成脚本或分析数据处理逻辑。
  • 使用时需确认项目虚拟环境、依赖版本和测试入口;涉及执行脚本、读写文件或调用外部 API 时应明确运行目录和输入输出范围。
  • 避免误改生产数据,操作前应确认最小权限和操作边界。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。

SKILL.md

Telnyx Fax - Python

Installation

pip install telnyx

Setup

import os
from telnyx import Telnyx

client = Telnyx(
    api_key=os.environ.get("TELNYX_API_KEY"),  # This is the default and can be omitted
)

All examples below assume client is already initialized as shown above.

Error Handling

All API calls can fail with network errors, rate limits (429), validation errors (422), or authentication errors (401). Always handle errors in production code:

import telnyx

try:
    result = client.messages.send(to="+13125550001", from_="+13125550002", text="Hello")
except telnyx.APIConnectionError:
    print("Network error — check connectivity and retry")
except telnyx.RateLimitError:
    # 429: rate limited — wait and retry with exponential backoff
    import time
    time.sleep(1)  # Check Retry-After header for actual delay
except telnyx.APIStatusError as e:
    print(f"API error {e.status_code}: {e.message}")
    if e.status_code == 422:
        print("Validation error — check required fields and formats")

Common error codes: 401 invalid API key, 403 insufficient permissions, 404 resource not found, 422 validation error (check field formats), 429 rate limited (retry with exponential backoff).

Important Notes

  • Phone numbers must be in E.164 format (e.g., +13125550001). Include the + prefix and country code. No spaces, dashes, or parentheses.
  • Pagination: List methods return an auto-paginating iterator. Use for item in page_result: to iterate through all pages automatically.

List all Fax Applications

This endpoint returns a list of your Fax Applications inside the 'data' attribute of the response. You can adjust which applications are listed by using filters. Fax Applications are used to configure how you send and receive faxes using the Programmable Fax API with Telnyx.

GET /fax_applications

page = client.fax_applications.list()
page = page.data[0]
print(page.id)

Returns: active (boolean), anchorsite_override (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), application_name (string), created_at (string), id (string), inbound (object), outbound (object), record_type (string), tags (array[string]), updated_at (string), webhook_event_failover_url (uri), webhook_event_url (uri), webhook_timeout_secs (integer | null)

Creates a Fax Application

Creates a new Fax Application based on the parameters sent in the request. The application name and webhook URL are required. Once created, you can assign phone numbers to your application using the /phone_numbers endpoint.

POST /fax_applications — Required: application_name, webhook_event_url

Optional: active (boolean), anchorsite_override (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), inbound (object), outbound (object), tags (array[string]), webhook_event_failover_url (uri), webhook_timeout_secs (integer | null)

fax_application = client.fax_applications.create(
    application_name="fax-router",
    webhook_event_url="https://example.com",
)
print(fax_application.data)

Returns: active (boolean), anchorsite_override (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), application_name (string), created_at (string), id (string), inbound (object), outbound (object), record_type (string), tags (array[string]), updated_at (string), webhook_event_failover_url (uri), webhook_event_url (uri), webhook_timeout_secs (integer | null)

Retrieve a Fax Application

Return the details of an existing Fax Application inside the 'data' attribute of the response.

GET /fax_applications/{id}

fax_application = client.fax_applications.retrieve(
    "1293384261075731499",
)
print(fax_application.data)

Returns: active (boolean), anchorsite_override (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), application_name (string), created_at (string), id (string), inbound (object), outbound (object), record_type (string), tags (array[string]), updated_at (string), webhook_event_failover_url (uri), webhook_event_url (uri), webhook_timeout_secs (integer | null)

Update a Fax Application

Updates settings of an existing Fax Application based on the parameters of the request.

PATCH /fax_applications/{id} — Required: application_name, webhook_event_url

Optional: active (boolean), anchorsite_override (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), fax_email_recipient (string | null), inbound (object), outbound (object), tags (array[string]), webhook_event_failover_url (uri), webhook_timeout_secs (integer | null)

fax_application = client.fax_applications.update(
    id="1293384261075731499",
    application_name="fax-router",
    webhook_event_url="https://example.com",
)
print(fax_application.data)

Returns: active (boolean), anchorsite_override (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), application_name (string), created_at (string), id (string), inbound (object), outbound (object), record_type (string), tags (array[string]), updated_at (string), webhook_event_failover_url (uri), webhook_event_url (uri), webhook_timeout_secs (integer | null)

Deletes a Fax Application

Permanently deletes a Fax Application. Deletion may be prevented if the application is in use by phone numbers.

DELETE /fax_applications/{id}

fax_application = client.fax_applications.delete(
    "1293384261075731499",
)
print(fax_application.data)

Returns: active (boolean), anchorsite_override (enum: Latency, Chicago, IL, Ashburn, VA, San Jose, CA, Sydney, Australia, Amsterdam, Netherlands, London, UK, Toronto, Canada, Vancouver, Canada, Frankfurt, Germany), application_name (string), created_at (string), id (string), inbound (object), outbound (object), record_type (string), tags (array[string]), updated_at (string), webhook_event_failover_url (uri), webhook_event_url (uri), webhook_timeout_secs (integer | null)

View a list of faxes

GET /faxes

page = client.faxes.list()
page = page.data[0]
print(page.id)

Returns: client_state (string), connection_id (string), created_at (date-time), direction (enum: inbound, outbound), from (string), from_display_name (string), id (uuid), media_name (string), media_url (string), preview_url (string), quality (enum: normal, high, very_high, ultra_light, ultra_dark), record_type (enum: fax), status (enum: queued, media.processed, originated, sending, delivered, failed, initiated, receiving, media.processing, received), store_media (boolean), stored_media_url (string), to (string), updated_at (date-time), webhook_failover_url (string), webhook_url (string)

Send a fax

Send a fax. Files have size limits and page count limit validations. If a file is bigger than 50MB or has more than 350 pages it will fail with file_size_limit_exceeded and page_count_limit_exceeded respectively.

POST /faxes — Required: connection_id, from, to

Optional: black_threshold (integer), client_state (string), from_display_name (string), media_name (string), media_url (string), monochrome (boolean), preview_format (enum: pdf, tiff), quality (enum: normal, high, very_high, ultra_light, ultra_dark), store_media (boolean), store_preview (boolean), t38_enabled (boolean), webhook_url (string)

fax = client.faxes.create(
    connection_id="234423",
    from_="+13125790015",
    to="+13127367276",
    media_url="https://example.com/document.pdf",
)
print(fax.data)

Returns: client_state (string), connection_id (string), created_at (date-time), direction (enum: inbound, outbound), from (string), from_display_name (string), id (uuid), media_name (string), media_url (string), preview_url (string), quality (enum: normal, high, very_high, ultra_light, ultra_dark), record_type (enum: fax), status (enum: queued, media.processed, originated, sending, delivered, failed, initiated, receiving, media.processing, received), store_media (boolean), stored_media_url (string), to (string), updated_at (date-time), webhook_failover_url (string), webhook_url (string)

View a fax

GET /faxes/{id}

fax = client.faxes.retrieve(
    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(fax.data)

Returns: client_state (string), connection_id (string), created_at (date-time), direction (enum: inbound, outbound), from (string), from_display_name (string), id (uuid), media_name (string), media_url (string), preview_url (string), quality (enum: normal, high, very_high, ultra_light, ultra_dark), record_type (enum: fax), status (enum: queued, media.processed, originated, sending, delivered, failed, initiated, receiving, media.processing, received), store_media (boolean), stored_media_url (string), to (string), updated_at (date-time), webhook_failover_url (string), webhook_url (string)

Delete a fax

DELETE /faxes/{id}

client.faxes.delete(
    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)

Cancel a fax

Cancel the outbound fax that is in one of the following states: queued, media.processed, originated or sending

POST /faxes/{id}/actions/cancel

response = client.faxes.actions.cancel(
    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(response.data)

Returns: result (string)

Refresh a fax

Refreshes the inbound fax's media_url when it has expired

POST /faxes/{id}/actions/refresh

response = client.faxes.actions.refresh(
    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(response.data)

Returns: result (string)


Webhooks

Webhook Verification

Telnyx signs webhooks with Ed25519. Each request includes telnyx-signature-ed25519 and telnyx-timestamp headers. Always verify signatures in production:

# In your webhook handler (e.g., Flask — use raw body, not parsed JSON):
@app.route("/webhooks", methods=["POST"])
def handle_webhook():
    payload = request.get_data(as_text=True)  # raw body as string
    headers = dict(request.headers)
    try:
        event = client.webhooks.unwrap(payload, headers=headers)
    except Exception as e:
        print(f"Webhook verification failed: {e}")
        return "Invalid signature", 400
    # Signature valid — event is the parsed webhook payload
    print(f"Received event: {event.data.event_type}")
    return "OK", 200

The following webhook events are sent to your configured webhook URL. All webhooks include telnyx-timestamp and telnyx-signature-ed25519 headers for Ed25519 signature verification. Use client.webhooks.unwrap() to verify.

EventDescription
fax.deliveredFax Delivered
fax.failedFax Failed
fax.media.processedFax Media Processed
fax.queuedFax Queued
fax.sending.startedFax Sending Started

Webhook payload fields

fax.delivered

FieldTypeDescription
data.record_typeenum: eventIdentifies the type of the resource.
data.iduuidIdentifies the type of resource.
data.occurred_atdate-timeISO 8601 datetime of when the event occurred.
data.event_typeenum: fax.deliveredThe type of event being delivered.
data.payload.call_duration_secsintegerThe duration of the call in seconds.
data.payload.connection_idstringThe ID of the connection used to send the fax.
data.payload.directionenum: inbound, outboundThe direction of the fax.
data.payload.fax_iduuidIdentifies the fax.
data.payload.original_media_urlstringThe original URL to the PDF used for the fax's media.
data.payload.media_namestringThe media_name used for the fax's media.
data.payload.tostringThe phone number, in E.164 format, the fax will be sent to or SIP URI
data.payload.fromstringThe phone number, in E.164 format, the fax will be sent from.
data.payload.user_iduuidIdentifier of the user to whom the fax belongs
data.payload.page_countintegerNumber of transferred pages
data.payload.statusenum: deliveredThe status of the fax.
data.payload.client_statestringState received from a command.
meta.attemptintegerThe delivery attempt number.
meta.delivered_touriThe URL the webhook was delivered to.

fax.failed

FieldTypeDescription
data.record_typeenum: eventIdentifies the type of the resource.
data.iduuidIdentifies the type of resource.
data.occurred_atdate-timeISO 8601 datetime of when the event occurred.
data.event_typeenum: fax.failedThe type of event being delivered.
data.payload.connection_idstringThe ID of the connection used to send the fax.
data.payload.directionenum: inbound, outboundThe direction of the fax.
data.payload.fax_iduuidIdentifies the fax.
data.payload.original_media_urlstringThe original URL to the PDF used for the fax's media.
data.payload.media_namestringThe media_name used for the fax's media.
data.payload.tostringThe phone number, in E.164 format, the fax will be sent to or SIP URI
data.payload.fromstringThe phone number, in E.164 format, the fax will be sent from.
data.payload.user_iduuidIdentifier of the user to whom the fax belongs
data.payload.failure_reasonenum: rejectedCause of the sending failure
data.payload.statusenum: failedThe status of the fax.
data.payload.client_statestringState received from a command.
meta.attemptintegerThe delivery attempt number.
meta.delivered_touriThe URL the webhook was delivered to.

fax.media.processed

FieldTypeDescription
data.record_typeenum: eventIdentifies the type of the resource.
data.iduuidIdentifies the type of resource.
data.occurred_atdate-timeISO 8601 datetime of when the event occurred.
data.event_typeenum: fax.media.processedThe type of event being delivered.
data.payload.connection_idstringThe ID of the connection used to send the fax.
data.payload.directionenum: inbound, outboundThe direction of the fax.
data.payload.fax_iduuidIdentifies the fax.
data.payload.original_media_urlstringThe original URL to the PDF used for the fax's media.
data.payload.media_namestringThe media_name used for the fax's media.
data.payload.tostringThe phone number, in E.164 format, the fax will be sent to or SIP URI
data.payload.fromstringThe phone number, in E.164 format, the fax will be sent from.
data.payload.user_iduuidIdentifier of the user to whom the fax belongs
data.payload.statusenum: media.processedThe status of the fax.
data.payload.client_statestringState received from a command.
meta.attemptintegerThe delivery attempt number.
meta.delivered_touriThe URL the webhook was delivered to.

fax.queued

FieldTypeDescription
data.record_typeenum: eventIdentifies the type of the resource.
data.iduuidIdentifies the type of resource.
data.occurred_atdate-timeISO 8601 datetime of when the event occurred.
data.event_typeenum: fax.queuedThe type of event being delivered.
data.payload.connection_idstringThe ID of the connection used to send the fax.
data.payload.directionenum: inbound, outboundThe direction of the fax.
data.payload.fax_iduuidIdentifies the fax.
data.payload.original_media_urlstringThe original URL to the PDF used for the fax's media.
data.payload.media_namestringThe media_name used for the fax's media.
data.payload.tostringThe phone number, in E.164 format, the fax will be sent to or SIP URI
data.payload.fromstringThe phone number, in E.164 format, the fax will be sent from.
data.payload.user_iduuidIdentifier of the user to whom the fax belongs
data.payload.statusenum: queuedThe status of the fax.
data.payload.client_statestringState received from a command.
meta.attemptintegerThe delivery attempt number.
meta.delivered_touriThe URL the webhook was delivered to.

fax.sending.started

FieldTypeDescription
data.record_typeenum: eventIdentifies the type of the resource.
data.iduuidIdentifies the type of resource.
data.occurred_atdate-timeISO 8601 datetime of when the event occurred.
data.event_typeenum: fax.sending.startedThe type of event being delivered.
data.payload.connection_idstringThe ID of the connection used to send the fax.
data.payload.directionenum: inbound, outboundThe direction of the fax.
data.payload.fax_iduuidIdentifies the fax.
data.payload.original_media_urlstringThe original URL to the PDF used for the fax's media.
data.payload.media_namestringThe media_name used for the fax's media.
data.payload.tostringThe phone number, in E.164 format, the fax will be sent to or SIP URI
data.payload.fromstringThe phone number, in E.164 format, the fax will be sent from.
data.payload.user_iduuidIdentifier of the user to whom the fax belongs
data.payload.statusenum: sendingThe status of the fax.
data.payload.client_statestringState received from a command.
meta.attemptintegerThe delivery attempt number.
meta.delivered_touriThe URL the webhook was delivered to.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.65%
按下载量换算67

Claude

30.72%
按下载量换算60

Cursor

17.44%
按下载量换算34

Gemini CLI

9.24%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills