Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 25 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@
# Fax for Agents examples

Runnable examples against the sandbox of Fax for Agents, <https://faxforagents.com>.
<p align="center">
<a href="https://faxforagents.com"><img src="https://faxforagents.com/brand/logo-512.png" width="88" alt="Fax for Agents"></a>
</p>

<h1 align="center">Fax for Agents examples</h1>

<p align="center">Runnable examples against the sandbox of <a href="https://faxforagents.com">Fax for Agents</a>, the fax API built for AI agents.</p>

<p align="center">
<a href="https://faxforagents.com">Website</a> ·
<a href="https://faxforagents.com/docs/quickstart/">Quickstart</a> ·
<a href="https://faxforagents.com/docs/api/">API reference</a> ·
<a href="https://faxforagents.com/docs/sdks/">SDKs</a> ·
<a href="https://faxforagents.com/mcp/">MCP</a> ·
<a href="https://app.faxforagents.com">Dashboard</a> ·
<a href="https://faxforagents.com/pricing/">Pricing</a> ·
<a href="https://faxforagents.com/changelog/">Changelog</a> ·
<a href="https://gitlab.com/faxforagents/examples">GitLab</a>
</p>

<p align="center">
<a href="https://github.com/faxforagents/examples/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/faxforagents/examples/ci.yml?branch=main&label=ci" alt="CI"></a>
<a href="https://github.com/faxforagents/examples/blob/main/LICENSE"><img src="https://img.shields.io/badge/licence-MIT-1f6feb" alt="MIT licence"></a>
<a href="https://faxforagents.com/docs/sandbox/"><img src="https://img.shields.io/badge/sandbox-no%20cost-2ea043" alt="Sandbox, no cost"></a>
</p>

Fax for Agents is a fax API, a hosted MCP server and SDKs built so AI agents can send and receive
faxes. It is made by JSB Holdings LLC and built by [Synapse](https://synapsereality.io/).
The repository is mirrored on [GitLab](https://gitlab.com/faxforagents/examples).

Every example needs a test key (`ffa_test_...`), created at <https://app.faxforagents.com>, in
`FAXFORAGENTS_API_KEY`. A test API key reaches the sandbox only. No carrier, no cost, the destination
Expand Down
19 changes: 14 additions & 5 deletions scripts/truthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
# not on the card. Provenance: faxforagents/openapi scripts/truthcheck.sh (2026-10-28). The
# examples are copy a customer reads, so nothing is exempt.
#
# The price card (price_version launch-v1, 2026-10-28): $0.039 per page sent, $0.019 per page
# The price card (price_version launch-v2, effective 2026-10-31): $0.039 per page sent, $0.019 per page
# received, $2 per number per month, $19 per month workspace. Any other dollar amount in copy is stale
# or invented. Claims the product does not make: HIPAA, "the first", "cheapest". Competitors are never
# named. CHANGELOG.md is exempt from the price rule (dated entries quote the card as it stood).
# One fax by card (published 2026-11-11): $2.49 for up to 5 pages to a US or Canadian number, cover
# included, $0.49 per extra page. A file that states either amount states that date too (rule 6).
set -u
cd "$(dirname "$0")/.." || exit 1

Expand All @@ -23,10 +25,10 @@ flag() {
prices=$(printf '%s\n' "$FILES" | xargs grep -noE '\$[0-9][0-9,]*(\.[0-9]+)?.?' 2>/dev/null \
| grep -vE '\$[0-9]+[")}]$' \
| sed -E 's/([0-9])[^0-9]$/\1/' \
| grep -vE ':\$(0\.039|0\.019|2|2\.00|19|19\.00)$' || true)
| grep -vE ':\$(0\.039|0\.019|2|2\.00|19|19\.00|2\.49|0\.49)$' || true)
if [ -n "$prices" ]; then
printf '%s\n' "$prices" >&2
flag "a dollar amount that is not on the price card (0.039, 0.019, 2, 19)"
flag "a dollar amount that is not on the price card (0.039, 0.019, 2, 19, and 2.49, 0.49 for one fax by card)"
fi

# 2) Claims the product does not make.
Expand Down Expand Up @@ -58,11 +60,18 @@ fi

# 5) Anchors that have to be present wherever prices are described.
if printf '%s\n' "$FILES" | xargs grep -lq '\$0\.039' 2>/dev/null; then
if ! printf '%s\n' "$FILES" | xargs grep -q '2026-10-28' 2>/dev/null; then
flag "a price is stated without its date (2026-10-28)"
if ! printf '%s\n' "$FILES" | xargs grep -q '2026-10-31' 2>/dev/null; then
flag "a price is stated without its date (2026-10-31)"
fi
fi

# 6) A one-time amount is stated only in a file that also states the day it was published.
for f in $(printf '%s\n' "$FILES" | xargs grep -lE '\$(2\.49|0\.49)' 2>/dev/null); do
if ! grep -q '2026-11-11' "$f"; then
flag "$f states a one-time price without its date (2026-11-11)"
fi
done

if [ "$fail" -eq 0 ]; then
echo "truthcheck: OK"
fi
Expand Down
Loading