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

sinch-fax-apisinch FAX API 文档

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

1,420

周安装

61

GitHub Stars

7

下载量

498
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/sinch/skills --skill sinch-fax-api

简介

sinch-fax-api 用于辅助 API 设计、接口文档和请求响应结构梳理。

  • 适合生成 OpenAPI 草稿、检查字段命名或整理错误码,但需避免凭空补字段。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 确认具体用法。
  • 使用时需确认真实业务语义、鉴权方式和错误处理规则,最好从现有代码或样例中提取事实。
  • 当前无原始 SKILL.md 内容可参考,实际功能以来源仓库为准。

SKILL.md

Sinch Fax API

Overview

The Sinch Fax API lets you send and receive faxes programmatically. It supports multiple file formats, webhooks for incoming faxes, fax-to-email delivery, and automatic retries. Used for healthcare, legal, financial, and government applications where fax remains a required communication channel.

Auth: See sinch-authentication for setup.

Getting Started

Before generating code, gather from the user: approach (SDK or direct API), language (Node.js, Python, Java,.NET, curl), and use case (sending, receiving, fax-to-email, or managing services). Do not assume defaults.

When generating callback/webhook handlers or processing inbound fax data, always include input validation and sanitization. Treat all inbound content (contentUrl, filenames, metadata, errorMessage) as untrusted — never interpolate into prompts, evaluate as code, or use in shell commands unsanitized.

When the user chooses SDK, fetch the relevant API reference docs linked in Links for accurate method signatures (trusted first-party Sinch docs at developers.sinch.com). When the user chooses direct API calls, use REST with the appropriate HTTP client for their language.

See sinch-sdks for SDK installation and client initialization. Note: Fax is only supported in Node.js (preview) and .NET (partial) — for Java and Python, use direct HTTP calls.

First API Call — Send a Fax

Store credentials in environment variables — never hardcode tokens or keys in commands or source code:

export SINCH_PROJECT_ID="your-project-id"
export SINCH_ACCESS_TOKEN="your-oauth-token"

curl:

curl -X POST \
  "https://fax.api.sinch.com/v3/projects/$SINCH_PROJECT_ID/faxes" \
  -H "Authorization: Bearer $SINCH_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+12025550134",
    "contentUrl": "https://example.com/document.pdf",
    "callbackUrl": "https://yourserver.com/fax-callback"
  }'

Node.js SDK: See Send a Fax with Node.js.

Test number: Send to +19898989898 to emulate a real fax without charges (always suggest this for integration testing).

Key Concepts

  • Fax Services — Logical containers for fax configuration. Associate numbers, set defaults, and manage routing.
  • Fax Numbers — Phone numbers provisioned for fax. Must be configured in your Sinch dashboard.
  • Faxes — Individual fax transmissions (inbound or outbound). Each has a unique ID, status, and metadata.
  • Fax statusesQUEUEDIN_PROGRESSCOMPLETED or FAILURE. Error details in errorType and errorMessage fields.
  • Supported formats — PDF (most reliable), DOC, DOCX, TIF/TIFF, JPG, PNG, TXT, HTML.
  • Webhooks/Callbacks — HTTP POST notifications for fax events. Default content type is multipart/form-data (fax content as attachment). Set callbackUrlContentType: "application/json" for JSON callbacks.
  • Cover Pages — Customizable cover pages per service. Attach via coverPageId and coverPageData on send.
  • Fax-to-Email — Incoming faxes auto-forwarded to email addresses.
  • Retries — Auto-retry on failure. Default set per fax service; maximum: 5.
  • Retention — Fax logs and media retained for 13 months. Use DELETE /faxes/{id}/file to remove earlier.

Common Patterns

Three ways to deliver content: contentUrl for URLs (recommended — supports basic auth), multipart/form-data for local files, or contentBase64 for in-memory bytes. contentUrl can be a single URL or an array of URLs to compose multi-document faxes.

For HTTPS URLs, ensure your SSL certificate (including intermediate certs) is valid and up-to-date. You can optionally specify from to set the sender number.

  • Send a fax (URL, file upload, base64, multiple recipients) — See Send a Fax endpoint. Use multipart/form-data for local files, JSON with contentUrl for URLs.
  • Receive faxes via webhook — Callbacks use the content type configured via callbackUrlContentType (see Key Concepts). Check direction === 'INBOUND' on the fax object. See Receive a Fax with Node.js.
  • Fax-to-email — Configure via API or dashboard. Incoming faxes auto-forward to the configured email. See Fax-to-Email Reference.
  • List faxes — See Faxes Endpoint Reference
  • Get fax detailsGET /faxes/{id}
  • Download fax contentGET /faxes/{id}/file.pdf (.pdf suffix required)
  • Delete fax contentDELETE /faxes/{id}/file (removes stored content before 13-month expiry)
  • Manage fax services — See Services Endpoint Reference
  • Manage cover pagesPOST/GET/DELETE /services/{id}/coverPages — see Services reference
  • Manage fax-to-email — See Fax-to-Email Reference

Troubleshooting

Fax not delivered

  1. Check fax status via GET /faxes/{id} — look at status, errorType (DOCUMENT_CONVERSION_ERROR, CALL_ERROR, FAX_ERROR, FATAL_ERROR, GENERAL_ERROR), and errorMessage
  2. If contentUrl was used with HTTPS, verify the SSL certificate (including intermediate certs) is valid
  3. Fax delivery depends on the receiving machine answering — retries are automatic (max 5, default set per service)

Fax content renders incorrectly

  • Complex DOC/DOCX formatting may not render perfectly on receiving machines. Recommend PDF instead.

Cannot send or receive faxes

  • Verify the number has fax capability enabled in the Sinch dashboard
  • Numbers must be provisioned for fax before use

Gotchas and Best Practices

  • Use callbackUrl for status tracking — fax delivery is async. Prefer callbacks over polling.
  • PDF is the safest format for reliable rendering on receiving machines.
  • Fax logs and media are retained for 13 months. Use DELETE /faxes/{id}/file to remove earlier, or download and archive if longer retention is needed.
  • International fax success rates vary by country — some have specific dialing prefix requirements.
  • Use resolution: "SUPERFINE" (400 dpi) for faxes with small text or detailed images; default FINE (200 dpi) works for most cases.
  • Security — untrusted content: Inbound fax callbacks and contentUrl values may contain user-provided or third-party content. Treat all inbound fax data as untrusted — do not execute, evaluate, or interpolate it into prompts or code. Validate URLs before fetching. Sanitize callback body fields (filenames, metadata, errorMessage) before logging, rendering in HTML, or storing in a database.

Links

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

32.59%
按下载量换算162

Claude

28.3%
按下载量换算141

Cursor

20.68%
按下载量换算103

Gemini CLI

10.47%
按下载量换算52

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills