---
title: "API 文件與 CLI：Node、Python、Go、PHP | SingleFax"
description: "使用 SingleFax REST API 及 npm CLI 從後端傳真。提供預付餘額、API 金鑰、OpenAPI，以及 curl、Node、Python、Go、PHP 範例。"
canonical_url: "https://singlefax.com/zh-tw/開發人員"
meta:
  "og:description": "使用 SingleFax REST API 及 npm CLI 從後端傳真。提供預付餘額、API 金鑰、OpenAPI，以及 curl、Node、Python、Go、PHP 範例。"
  "og:image": "https://singlefax.com/images/heroes/og-product.jpg"
  "og:image:alt": "API 文件與 CLI：Node、Python、Go、PHP"
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": 從您的後端傳真
---

> Index of every page on this site: [llms.txt](https://singlefax.com/llms.txt)

[singlefax](https://singlefax.com/zh-tw)

[傳送與接收](https://singlefax.com/zh-tw/%E5%82%B3%E9%80%81%E5%82%B3%E7%9C%9F) [企業服務](https://singlefax.com/zh-tw/%E4%BC%81%E6%A5%AD%E6%96%B9%E6%A1%88)解決方案 [價格](https://singlefax.com/zh-tw/%E5%83%B9%E6%A0%BC) [部落格](https://singlefax.com/zh-tw/blog)

<details>

<summary>語言</summary>



<a href="https://singlefax.com/developers">English</a><a href="https://singlefax.com/de/entwickler">Deutsch</a><a href="https://singlefax.com/fr/developpeurs">Français</a><a href="https://singlefax.com/es/desarrolladores">Español</a><a href="https://singlefax.com/it/sviluppatori">Italiano</a><a href="https://singlefax.com/pt-br/desenvolvedores">Português do Brasil</a><a href="https://singlefax.com/tr/gelistiriciler">Türkçe</a><a href="https://singlefax.com/ko/%EA%B0%9C%EB%B0%9C%EC%9E%90">한국어</a><a href="https://singlefax.com/ja/%E9%96%8B%E7%99%BA%E8%80%85%E5%90%91%E3%81%91">日本語</a><a href="https://singlefax.com/ar/%D8%A7%D9%84%D9%85%D8%B7%D9%88%D8%B1%D9%88%D9%86">العربية</a>

</details>

[登入](https://singlefax.com/zh-tw/%E7%99%BB%E5%85%A5)

REST · CLI · OpenAPI

# SingleFax API 文件與 CLI

API 金鑰搭配預付餘額。可使用 npm 官方 CLI，或直接採用 curl、Node、Python、Go、PHP 的 REST 範例。聊天應用程式請改用 MCP。

[建立 API 金鑰](https://singlefax.com/zh-tw/%E7%99%BB%E5%85%A5?redirect=/dashboard/api-keys) [npm CLI](https://www.npmjs.com/package/@singlefax/cli) [OpenAPI](https://singlefax.com/openapi.json)

## CLI

`npx @singlefax/cli send FILE --to +E164`，請傳原始 Word、Excel、PDF 或圖片，不要先轉 PDF。

## REST

`POST /api/v1/faxes`，搭配 Bearer `sf_live_…` 及 `Idempotency-Key`。

## 聊天 MCP

Cursor、Claude、Codex、ChatGPT。使用 OAuth，不是 API 金鑰。 [安裝 MCP](https://singlefax.com/zh-tw/ai-%E4%BB%A3%E7%90%86)。

## 快速開始

1. 於 [API 金鑰](https://singlefax.com/zh-tw/%E7%99%BB%E5%85%A5?redirect=/dashboard/api-keys) 建立限定權限金鑰（ `fax:send`、 `fax:read`、 `inbox:read`、 `credits:read`）。
2. 在控制台預付儲值，或使用 `npx @singlefax/cli credits buy`。
3. 使用下方 CLI 或 `POST /api/v1/faxes` 傳送。

基底 URL：`https://api.singlefax.com`（`https://singlefax.com` 使用相同路徑）。`sf_test_` 金鑰無法正式傳送。勿將金鑰放入瀏覽器。

## CLI

Node 20+。設定：`SINGLEFAX_API_KEY` 或 `~/.config/singlefax/config.json`。傳入原始檔（Word、Excel、PowerPoint、PDF、文字或圖片），不要先轉 PDF。不適用 MCP OAuth 或 Stripe MPP。

terminal複製

```
export SINGLEFAX_API_KEY=sf_live_…

npx @singlefax/cli send ./document.docx --to +14155552671
npx @singlefax/cli send ./document.pdf --to +14155552671 --wait --json
```

quote, status, credits複製

```
npx @singlefax/cli quote --to +14155552671 --pages 12
npx @singlefax/cli status <id>
npx @singlefax/cli list
npx @singlefax/cli numbers
npx @singlefax/cli numbers buy
npx @singlefax/cli credits
npx @singlefax/cli credits buy --dollars 20
```

## 傳送傳真

一次請求：base64 文件加目的地。支援 PDF、Word、Excel、PowerPoint、文字或圖片，必須提供 `Idempotency-Key`。相同金鑰配不同主體會回傳 409。

curlJavaScriptPythonGoPHP

terminal複製

```
PDF_B64="$(base64 < document.pdf | tr -d '\n')"

curl -sS https://api.singlefax.com/api/v1/faxes \
  -H "Authorization: Bearer $SINGLEFAX_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d "{\"to\":\"+14155552671\",\"base64\":\"$PDF_B64\"}"
```

send.mjs複製

```
import { readFile } from 'node:fs/promises'
import { randomUUID } from 'node:crypto'

const api = 'https://api.singlefax.com'
const key = process.env.SINGLEFAX_API_KEY
const pdf = await readFile('./document.pdf')

const res = await fetch(`${api}/api/v1/faxes`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${key}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': randomUUID(),
  },
  body: JSON.stringify({
    to: '+14155552671',
    base64: pdf.toString('base64'),
  }),
})
console.log(await res.json())
```

send.py複製

```
import base64, json, os, urllib.request, uuid
from pathlib import Path

API = "https://api.singlefax.com"
KEY = os.environ["SINGLEFAX_API_KEY"]
pdf = Path("document.pdf").read_bytes()

req = urllib.request.Request(
    f"{API}/api/v1/faxes",
    data=json.dumps({
        "to": "+14155552671",
        "base64": base64.b64encode(pdf).decode(),
    }).encode(),
    headers={
        "Authorization": f"Bearer {KEY}",
        "Content-Type": "application/json",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    method="POST",
)
with urllib.request.urlopen(req) as res:
    print(res.read().decode())
```

send.go複製

```
package main

import (
	"bytes"
	"encoding/base64"
	"encoding/json"
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	pdf, err := os.ReadFile("document.pdf")
	if err != nil {
		panic(err)
	}
	body, _ := json.Marshal(map[string]string{
		"to":     "+14155552671",
		"base64": base64.StdEncoding.EncodeToString(pdf),
	})
	req, _ := http.NewRequest("POST", "https://api.singlefax.com/api/v1/faxes", bytes.NewReader(body))
	req.Header.Set("Authorization", "Bearer "+os.Getenv("SINGLEFAX_API_KEY"))
	req.Header.Set("Content-Type", "application/json")
	req.Header.Set("Idempotency-Key", "send-document-1")
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	out, _ := io.ReadAll(res.Body)
	fmt.Println(res.Status, string(out))
}
```

send.php複製

```
<?php
$pdf = base64_encode(file_get_contents('document.pdf'));
$ch = curl_init('https://api.singlefax.com/api/v1/faxes');
curl_setopt_array($ch, [
  CURLOPT_POST => true,
  CURLOPT_HTTPHEADER => [
    'Authorization: Bearer ' . getenv('SINGLEFAX_API_KEY'),
    'Content-Type: application/json',
    'Idempotency-Key: send-document-1',
  ],
  CURLOPT_POSTFIELDS => json_encode(['to' => '+14155552671', 'base64' => $pdf]),
  CURLOPT_RETURNTRANSFER => true,
]);
echo curl_exec($ch);
```

## 大型檔案：先上傳再傳送

CLI 會建立上傳權杖、以 PUT 上傳位元組，再用 `uploadToken` 傳送。PUT 也須 Bearer 權杖。大型檔案宜用此方式，不要塞進 JSON。不要先轉 PDF。

curlJavaScriptPythonGoPHP

terminal複製

```
UPLOAD=$(curl -sS https://api.singlefax.com/api/v1/uploads \
  -H "Authorization: Bearer $SINGLEFAX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"contentType":"application/pdf"}')

UPLOAD_URL=$(printf '%s' "$UPLOAD" | python3 -c "import json,sys; print(json.load(sys.stdin)['uploadUrl'])")
TOKEN=$(printf '%s' "$UPLOAD" | python3 -c "import json,sys; print(json.load(sys.stdin)['uploadToken'])")

curl -sS -X PUT "$UPLOAD_URL" \
  -H "Authorization: Bearer $SINGLEFAX_API_KEY" \
  -H "Content-Type: application/pdf" \
  --data-binary @document.pdf

curl -sS https://api.singlefax.com/api/v1/faxes \
  -H "Authorization: Bearer $SINGLEFAX_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d "{\"to\":\"+14155552671\",\"uploadToken\":\"$TOKEN\"}"
```

upload-send.mjs複製

```
import { readFile } from 'node:fs/promises'
import { randomUUID } from 'node:crypto'

const api = 'https://api.singlefax.com'
const key = process.env.SINGLEFAX_API_KEY
const auth = { Authorization: `Bearer ${key}` }
const pdf = await readFile('./document.pdf')

const upload = await fetch(`${api}/api/v1/uploads`, {
  method: 'POST',
  headers: { ...auth, 'Content-Type': 'application/json' },
  body: JSON.stringify({ contentType: 'application/pdf', maxBytes: pdf.byteLength }),
}).then((r) => r.json())

await fetch(upload.uploadUrl, {
  method: 'PUT',
  headers: { ...auth, 'Content-Type': 'application/pdf' },
  body: pdf,
})

const fax = await fetch(`${api}/api/v1/faxes`, {
  method: 'POST',
  headers: {
    ...auth,
    'Content-Type': 'application/json',
    'Idempotency-Key': randomUUID(),
  },
  body: JSON.stringify({ to: '+14155552671', uploadToken: upload.uploadToken }),
}).then((r) => r.json())

console.log(fax)
```

upload\_send.py複製

```
import json, os, urllib.request, uuid
from pathlib import Path

API = "https://api.singlefax.com"
KEY = os.environ["SINGLEFAX_API_KEY"]
pdf = Path("document.pdf").read_bytes()

def request(url, *, data=None, method="GET", headers=None, content_type="application/json"):
    req = urllib.request.Request(
        url,
        data=data,
        headers={
            "Authorization": f"Bearer {KEY}",
            "Content-Type": content_type,
            **(headers or {}),
        },
        method=method,
    )
    with urllib.request.urlopen(req) as res:
        return res.read()

upload = json.loads(request(
    f"{API}/api/v1/uploads",
    method="POST",
    data=json.dumps({"contentType": "application/pdf", "maxBytes": len(pdf)}).encode(),
))
request(upload["uploadUrl"], method="PUT", data=pdf, content_type="application/pdf")
fax = request(
    f"{API}/api/v1/faxes",
    method="POST",
    data=json.dumps({"to": "+14155552671", "uploadToken": upload["uploadToken"]}).encode(),
    headers={"Idempotency-Key": str(uuid.uuid4())},
)
print(fax.decode())
```

upload\_send.go複製

```
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	key := os.Getenv("SINGLEFAX_API_KEY")
	pdf, err := os.ReadFile("document.pdf")
	if err != nil {
		panic(err)
	}

	upBody, _ := json.Marshal(map[string]any{"contentType": "application/pdf", "maxBytes": len(pdf)})
	upReq, _ := http.NewRequest("POST", "https://api.singlefax.com/api/v1/uploads", bytes.NewReader(upBody))
	upReq.Header.Set("Authorization", "Bearer "+key)
	upReq.Header.Set("Content-Type", "application/json")
	upRes, err := http.DefaultClient.Do(upReq)
	if err != nil {
		panic(err)
	}
	defer upRes.Body.Close()
	var upload struct {
		UploadToken string `json:"uploadToken"`
		UploadUrl   string `json:"uploadUrl"`
	}
	json.NewDecoder(upRes.Body).Decode(&upload)

	put, _ := http.NewRequest("PUT", upload.UploadUrl, bytes.NewReader(pdf))
	put.Header.Set("Authorization", "Bearer "+key)
	put.Header.Set("Content-Type", "application/pdf")
	if _, err := http.DefaultClient.Do(put); err != nil {
		panic(err)
	}

	sendBody, _ := json.Marshal(map[string]string{"to": "+14155552671", "uploadToken": upload.UploadToken})
	faxReq, _ := http.NewRequest("POST", "https://api.singlefax.com/api/v1/faxes", bytes.NewReader(sendBody))
	faxReq.Header.Set("Authorization", "Bearer "+key)
	faxReq.Header.Set("Content-Type", "application/json")
	faxReq.Header.Set("Idempotency-Key", "send-document-1")
	faxRes, err := http.DefaultClient.Do(faxReq)
	if err != nil {
		panic(err)
	}
	defer faxRes.Body.Close()
	out, _ := io.ReadAll(faxRes.Body)
	fmt.Println(string(out))
}
```

upload-send.php複製

```
<?php
$key = getenv('SINGLEFAX_API_KEY');
$pdf = file_get_contents('document.pdf');

$ch = curl_init('https://api.singlefax.com/api/v1/uploads');
curl_setopt_array($ch, [
  CURLOPT_POST => true,
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer $key",
    'Content-Type: application/json',
  ],
  CURLOPT_POSTFIELDS => json_encode(['contentType' => 'application/pdf', 'maxBytes' => strlen($pdf)]),
  CURLOPT_RETURNTRANSFER => true,
]);
$upload = json_decode(curl_exec($ch), true);

$ch = curl_init($upload['uploadUrl']);
curl_setopt_array($ch, [
  CURLOPT_CUSTOMREQUEST => 'PUT',
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer $key",
    'Content-Type: application/pdf',
  ],
  CURLOPT_POSTFIELDS => $pdf,
  CURLOPT_RETURNTRANSFER => true,
]);
curl_exec($ch);

$ch = curl_init('https://api.singlefax.com/api/v1/faxes');
curl_setopt_array($ch, [
  CURLOPT_POST => true,
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer $key",
    'Content-Type: application/json',
    'Idempotency-Key: send-document-1',
  ],
  CURLOPT_POSTFIELDS => json_encode(['to' => '+14155552671', 'uploadToken' => $upload['uploadToken']]),
  CURLOPT_RETURNTRANSFER => true,
]);
echo curl_exec($ch);
```

## REST 參考文件

| 方法 | 路徑 | 驗證 | 備註 |
| --- | --- | --- | --- |
| POST | /api/v1/faxes | fax:send | Idempotency-Key required. JSON { to, base64 \| uploadToken } or multipart file. |
| GET | /api/v1/faxes | fax:read | List. Query limit, offset. |
| GET | /api/v1/faxes/{id} | fax:read | Status including latest delivery attempt. |
| POST | /api/v1/faxes/quote | fax:read | { to, pages? \| base64? }, quote without charging. |
| POST | /api/v1/uploads | fax:send | Returns uploadToken + uploadUrl. PUT the bytes, then send with uploadToken. |
| GET | /api/v1/credits | credits:read | Prepaid balance. |
| POST | /api/v1/credits/checkout | credits:checkout | { amountCents }. Stripe Checkout for a credit pack. |
| GET | /api/v1/received-faxes | inbox:read | Inbound inbox list. Query limit, cursor. No transcripts in list. |
| GET | /api/v1/received-faxes/{id} | inbox:read | Inbound detail with bounded transcript slice. HIPAA Secure content is omitted. |
| GET | /api/v1/numbers | fax:read | Active fax numbers. |
| POST | /api/v1/numbers | credits:checkout | { sku?, country?, state? }, default inbound\_30day. Returns checkoutUrl + reserved phoneNumber. |
| GET | /api/v1/skus | public | Catalog. Same shape as MCP list\_skus. |
| POST | /api/v1/checkout | credits:checkout | { sku }, credit\_pack, inbound, subscriptions, lifetime. |

完整結構： [openapi.json](https://singlefax.com/openapi.json)。不相容變更： [版本政策](https://singlefax.com/zh-tw/%E7%89%88%E6%9C%AC%E7%AE%A1%E7%90%86)（90 天 Sunset 期）。此額度 API 的 HTTP 402 是餘額不足，MPP 402 僅適用 `POST /api/v1/machine/faxes`。

## Webhook

已簽章的 `fax.queued`、`fax.delivered`、`fax.failed`、`credits.low_balance` 事件。請針對原始主體驗證 `SingleFax-Signature`（`t=,v1=`），採 `timestamp.payload` 的 HMAC-SHA256。於 [控制台 Webhook](https://singlefax.com/zh-tw/%E7%99%BB%E5%85%A5?redirect=/dashboard/webhooks) 新增端點。

JavaScriptPython

verify.mjs複製

```
import { createHmac, timingSafeEqual } from 'node:crypto'

export function verifySingleFaxSignature(rawBody, signatureHeader, secret, toleranceSeconds = 300) {
  const parts = Object.fromEntries(signatureHeader.split(',').map((kv) => kv.split('=')))
  const timestamp = Number(parts.t)
  if (!Number.isFinite(timestamp) || !parts.v1) return false
  if (Math.abs(Math.floor(Date.now() / 1000) - timestamp) > toleranceSeconds) return false
  const expected = createHmac('sha256', secret).update(`${timestamp}.${rawBody}`).digest('hex')
  const a = Buffer.from(parts.v1)
  const b = Buffer.from(expected)
  return a.length === b.length && timingSafeEqual(a, b)
}
```

verify.py複製

```
import hashlib, hmac, time

def verify_singlefax_signature(payload: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    timestamp = int(parts["t"])
    if abs(int(time.time()) - timestamp) > tolerance:
        return False
    expected = hmac.new(
        secret.encode(),
        f"{timestamp}.".encode() + payload,
        hashlib.sha256,
    ).hexdigest()
    return hmac.compare_digest(expected, parts["v1"])
```

## 限制

- API 金鑰保留在伺服器，不要在網頁嵌入 `sf_live_`。
- 勿傳 PHI。適用機構使用網站 HIPAA Secure 模式及電子 BAA。
- 目的地須為有效 E.164。支援 PDF、Word、Excel、PowerPoint、RTF、純文字與圖片，MIME 類型見 OpenAPI。不要先轉 PDF，傳送前由我們轉換。
- 聊天 MCP 與 Stripe MPP： [/agents](https://singlefax.com/zh-tw/ai-%E4%BB%A3%E7%90%86)、 [mpp.md](https://singlefax.com/mpp.md)、 [MPP 與 Instant Checkout 比較](https://singlefax.com/blog/stripe-machine-payments-protocol)。

## 常見問題

CLI、REST 或 MCP？

傳送前需要先儲值嗎？

可以使用 sf\_test\_ 金鑰嗎？

有官方 SDK 嗎？

這是 HIPAA 服務嗎？

## 機器可讀文件

提供爬蟲與程式代理使用的純 Markdown 及 OpenAPI，內容事實與本頁相同。

[驗證指南](https://singlefax.com/zh-tw/%E8%BA%AB%E5%88%86%E9%A9%97%E8%AD%89) [OpenAPI 參考文件](https://singlefax.com/zh-tw/openapi) [developers.md](https://singlefax.com/developers.md) [openapi.json](https://singlefax.com/openapi.json) [auth.md](https://singlefax.com/auth.md) [llms.txt](https://singlefax.com/llms.txt) [MCP／代理](https://singlefax.com/zh-tw/ai-%E4%BB%A3%E7%90%86) [MPP 與 Instant Checkout 比較](https://singlefax.com/blog/stripe-machine-payments-protocol) [versioning.md](https://singlefax.com/versioning.md)

[singlefax](https://singlefax.com/zh-tw)

單次傳送，需要時接收。

[![前往 App Store 下載 SingleFax](https://singlefax.com/images/app-store-badge.svg)](https://apps.apple.com/app/id6810689541) [![在 Google Play 取得](https://singlefax.com/images/google-play-badge.png)](https://play.google.com/store/apps/details?id=com.monocube.singlefax)

[加到 Chrome](https://chromewebstore.google.com/detail/singlefax-fax-a-document/ojpmpilgkmjcfebhpkdmmjlkbcifkkej) [SingleFax 的 LinkedIn](https://www.linkedin.com/company/singlefax/) [SingleFax 的 Facebook](https://www.facebook.com/singlefax) [SingleFax 的 Instagram](https://www.instagram.com/singlefax.app) [SingleFax 的 Threads](https://www.threads.com/@singlefax.app) [SingleFax 的 YouTube](https://www.youtube.com/@singlefax) [SingleFax 的 GitHub](https://github.com/SingleFax)

## 傳真服務

- [傳送傳真](https://singlefax.com/zh-tw/%E5%82%B3%E9%80%81%E5%82%B3%E7%9C%9F?type=send)
- [接收傳真](https://singlefax.com/zh-tw/%E5%82%B3%E9%80%81%E5%82%B3%E7%9C%9F?type=receive)
- [免費 24 小時號碼](https://singlefax.com/zh-tw/%E5%85%8D%E8%B2%BB%E5%82%B3%E7%9C%9F%E8%99%9F%E7%A2%BC)
- [永久號碼](https://singlefax.com/zh-tw/%E6%B0%B8%E4%B9%85%E5%82%B3%E7%9C%9F%E8%99%9F%E7%A2%BC)
- [號碼攜碼](https://singlefax.com/zh-tw/%E8%99%9F%E7%A2%BC%E6%94%9C%E7%A2%BC)
- [測試傳真](https://singlefax.com/zh-tw/%E6%B8%AC%E8%A9%A6%E5%82%B3%E7%9C%9F%E8%99%9F%E7%A2%BC)
- [企業方案](https://singlefax.com/zh-tw/%E4%BC%81%E6%A5%AD%E6%96%B9%E6%A1%88)
- [HIPAA Secure](https://singlefax.com/zh-tw/hipaa-%E5%82%B3%E7%9C%9F)
- [線上傳真](https://singlefax.com/zh-tw/%E7%B7%9A%E4%B8%8A%E5%82%B3%E7%9C%9F)
- [電子郵件轉傳真](https://singlefax.com/zh-tw/%E9%9B%BB%E5%AD%90%E9%83%B5%E4%BB%B6%E8%BD%89%E5%82%B3%E7%9C%9F)
- [WhatsApp 傳真](https://singlefax.com/zh-tw/whatsapp-%E5%82%B3%E7%9C%9F)

## IRS 表格申報

- [所有 IRS 申報表格](https://singlefax.com/zh-tw/irs-%E7%94%B3%E5%A0%B1)
- [EIN · SS-4 表格](https://singlefax.com/zh-tw/%E7%94%B3%E8%AB%8B-ein)
- [5472 表格](https://singlefax.com/zh-tw/%E6%8F%90%E4%BA%A4-5472-%E8%A1%A8%E6%A0%BC)
- [7004 表格](https://singlefax.com/zh-tw/%E6%8F%90%E4%BA%A4-7004-%E8%A1%A8%E6%A0%BC)
- [2553 表格](https://singlefax.com/zh-tw/%E6%8F%90%E4%BA%A4-2553-%E8%A1%A8%E6%A0%BC)
- [2848 表格](https://singlefax.com/zh-tw/%E6%8F%90%E4%BA%A4-2848-%E8%A1%A8%E6%A0%BC)
- [4506-T 表格](https://singlefax.com/zh-tw/%E6%8F%90%E4%BA%A4-4506-t-%E8%A1%A8%E6%A0%BC)
- [8821 表格](https://singlefax.com/zh-tw/%E6%8F%90%E4%BA%A4-8821-%E8%A1%A8%E6%A0%BC)
- [8802 表格](https://singlefax.com/zh-tw/%E6%8F%90%E4%BA%A4-8802-%E8%A1%A8%E6%A0%BC)
- [8655 表格](https://singlefax.com/zh-tw/%E6%8F%90%E4%BA%A4-8655-%E8%A1%A8%E6%A0%BC)
- [3911 表格](https://singlefax.com/zh-tw/%E6%8F%90%E4%BA%A4-3911-%E8%A1%A8%E6%A0%BC)
- [8233 表格](https://singlefax.com/zh-tw/%E6%8F%90%E4%BA%A4-8233-%E8%A1%A8%E6%A0%BC)
- [NY POA-1](https://singlefax.com/zh-tw/%E6%8F%90%E4%BA%A4-ny-poa-1-%E8%A1%A8%E6%A0%BC)

## 工具與資源

- [免費傳真工具](https://singlefax.com/zh-tw/%E5%85%8D%E8%B2%BB%E5%82%B3%E7%9C%9F%E5%B7%A5%E5%85%B7)
- [附近的傳真服務](https://singlefax.com/fax-near-me)
- [準備傳真 PDF](https://singlefax.com/zh-tw/%E6%BA%96%E5%82%99%E5%82%B3%E7%9C%9F)
- [可列印測試頁](https://singlefax.com/zh-tw/%E5%82%B3%E7%9C%9F%E6%B8%AC%E8%A9%A6%E9%A0%81)
- [傳真封面](https://singlefax.com/zh-tw/%E5%82%B3%E7%9C%9F%E5%B0%81%E9%9D%A2)
- [行動應用程式](https://singlefax.com/zh-tw/%E8%A1%8C%E5%8B%95%E6%87%89%E7%94%A8%E7%A8%8B%E5%BC%8F)
- [Chrome 擴充功能](https://singlefax.com/zh-tw/chrome-%E6%93%B4%E5%85%85%E5%8A%9F%E8%83%BD)
- [開發人員](https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1)
- [AI 傳真代理](https://singlefax.com/zh-tw/ai-%E4%BB%A3%E7%90%86)
- [版本管理](https://singlefax.com/zh-tw/%E7%89%88%E6%9C%AC%E7%AE%A1%E7%90%86)
- [美國眾議院傳真號碼目錄](https://singlefax.com/zh-tw/%E5%82%B3%E7%9C%9F%E7%9B%AE%E9%8C%84/%E7%BE%8E%E5%9C%8B%E7%9C%BE%E8%AD%B0%E9%99%A2)
- [美國參議院傳真號碼目錄](https://singlefax.com/zh-tw/%E5%82%B3%E7%9C%9F%E7%9B%AE%E9%8C%84/%E7%BE%8E%E5%9C%8B%E5%8F%83%E8%AD%B0%E9%99%A2)
- [美國州長傳真號碼目錄](https://singlefax.com/zh-tw/%E5%82%B3%E7%9C%9F%E7%9B%AE%E9%8C%84/%E7%BE%8E%E5%9C%8B%E5%B7%9E%E9%95%B7)

## SingleFax

- [價格](https://singlefax.com/zh-tw/%E5%83%B9%E6%A0%BC)
- [部落格](https://singlefax.com/zh-tw/blog)
- [關於我們](https://singlefax.com/zh-tw/%E9%97%9C%E6%96%BC%E6%88%91%E5%80%91)
- [聯絡我們](https://singlefax.com/zh-tw/%E8%81%AF%E7%B5%A1%E6%88%91%E5%80%91)
- [支援](https://singlefax.com/zh-tw/%E6%94%AF%E6%8F%B4)
- [常見問題](https://singlefax.com/zh-tw/%E6%94%AF%E6%8F%B4#faq)

© 2026 SingleFax

[隱私權](https://singlefax.com/zh-tw/%E9%9A%B1%E7%A7%81%E6%AC%8A%E6%94%BF%E7%AD%96) [條款](https://singlefax.com/zh-tw/%E6%9C%8D%E5%8B%99%E6%A2%9D%E6%AC%BE) [退款](https://singlefax.com/zh-tw/%E9%80%80%E6%AC%BE%E6%94%BF%E7%AD%96) [檢舉濫用](https://singlefax.com/zh-tw/%E6%AA%A2%E8%88%89%E6%BF%AB%E7%94%A8)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://singlefax.com/zh-tw#website","@type":"WebSite","description":"透過 SingleFax，需要時就能用手機或電腦收發傳真，無需註冊或建立帳號。","inLanguage":"zh-Hant-TW","name":"SingleFax－無需訂閱，隨時收發傳真","url":"https://singlefax.com/zh-tw","translationOfWork":{"@id":"https://singlefax.com/#website"}},{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#webpage","description":"使用 SingleFax REST API 及 npm CLI 從後端傳真。提供預付餘額、API 金鑰、OpenAPI，以及 curl、Node、Python、Go、PHP 範例。","name":"API 文件與 CLI：Node、Python、Go、PHP","url":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#breadcrumb"},"isPartOf":{"@id":"https://singlefax.com/zh-tw#website"},"mainEntity":[{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#/schema/question/1"},{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#/schema/question/2"},{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#/schema/question/3"},{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#/schema/question/4"},{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#/schema/question/5"}],"potentialAction":[{"@type":"ReadAction","target":["https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1"]}]},{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"首頁","item":"https://singlefax.com/zh-tw","position":1},{"@type":"ListItem","name":"開發人員","item":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1","position":2}]},{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#/schema/question/1","@type":"Question","inLanguage":"zh-Hant-TW","name":"CLI、REST 或 MCP？","acceptedAnswer":{"@type":"Answer","text":"自有後端請用 npm CLI 或 REST，搭配 API 金鑰及預付餘額。傳原始 Word、Excel、PDF 或圖片，不要先轉 PDF。聊天應用程式（Cursor、Claude、Codex、ChatGPT）應使用 /agents 的 MCP。具有 Stripe Shared Payment Token 或 Tempo USDC 錢包的自主代理使用 MPP（HTTP 402）、/agents 及 /blog/stripe-machine-payments-protocol。"}},{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#/schema/question/2","@type":"Question","inLanguage":"zh-Hant-TW","name":"傳送前需要先儲值嗎？","acceptedAnswer":{"@type":"Answer","text":"API 金鑰傳送需要。先建立金鑰，從控制台或 POST /api/v1/credits/checkout 購買額度，再傳送。/api/v1/faxes 的 HTTP 402 代表餘額不足，不是 MPP 付款挑戰。"}},{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#/schema/question/3","@type":"Question","inLanguage":"zh-Hant-TW","name":"可以使用 sf_test_ 金鑰嗎？","acceptedAnswer":{"@type":"Answer","text":"測試金鑰不能傳送真實傳真。正式送達請用 sf_live_。金鑰應留在伺服器，切勿放進瀏覽器或行動應用程式。"}},{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#/schema/question/4","@type":"Question","inLanguage":"zh-Hant-TW","name":"有官方 SDK 嗎？","acceptedAnswer":{"@type":"Answer","text":"官方套件為 npm CLI @singlefax/cli。Python、Go、PHP 範例使用標準 HTTP 用戶端，沒有獨立的 Python、Go 或 Ruby SDK 套件。可使用 /openapi.json 搭配 OpenAPI 工具產生用戶端。"}},{"@id":"https://singlefax.com/zh-tw/%E9%96%8B%E7%99%BC%E4%BA%BA%E5%93%A1#/schema/question/5","@type":"Question","inLanguage":"zh-Hant-TW","name":"這是 HIPAA 服務嗎？","acceptedAnswer":{"@type":"Answer","text":"不是。勿透過公開 API、CLI、MCP 或 MPP 傳送 PHI。適用機構應使用網站 HIPAA Secure 模式及電子 BAA。"}}]}
```