CLI

ohfax โ€” a thin REST client. No fax logic of its own.

Commands

ohfax quote <number> <file.pdf>       Price a fax. Sends nothing.
ohfax send  <number> <file.pdf>       Quote, then send and charge.
ohfax status <fax_id>                 Check delivery state.
ohfax receipt <fax_id>                Fetch the delivery receipt.

Environment

OHFAX_API_KEY   Required for send.
OHFAX_URL       Override the API base URL (default points at production).

For this deployment, set:

export OHFAX_URL=https://app.ohfax.com
export OHFAX_API_KEY=afx_live_...

Options

  • --idempotency-key <k> โ€” reuse a key to retry a send safely.
  • --json โ€” emit raw JSON.
  • --wait โ€” after sending, poll until the fax is final.

Example

export OHFAX_API_KEY=afx_live_...
export OHFAX_URL=https://app.ohfax.com
ohfax send --to 512-555-0123 --file doc.pdf

Create the key at Account.

Next: Webhooks ยท API