tmh is the TeachMeHIPAA Developer API on the command line. The topic pages
below open with a synopsis of the commands they cover; prose follows. New
here: install, then login, then
recipes.
| Page | Covers |
|---|---|
| install | go install, make build, release channels, checksum verification, Docker, tmh completion |
| login | tmh login, logout, whoami; the sandbox and live profiles; CI credentials; Scopes; public operations |
| requests | Positional ids, flags, -d and --data, --if-match, idempotency keys, retries, raw get/post/put/patch/delete, tmh open |
| output | JSON on stdout, pages, --all, --ndjson, --verbose, --show-headers |
| operations | --wait, CSV exports with -o, Certificate PDFs, CSV imports with --preview, batch changes |
| events | events list, events tail --forward-to, events resend, the local Signing secret and signature, Webhook subscriptions, Test deliveries |
| exit-codes | Exit codes 0 to 7 and 130, error output, request ids, case $? |
| environment | Environment variables, global flags, config.toml and state.toml, privacy, the version check |
| recipes | jq pipelines, CSV files, while read loops over pages, tailing Events, CI gates |
cobra/doc.code-samples.json: the same examples, one
per operationId, for the cli tab of the API reference. Generated from
the SDK IR with make generate.Scripts in examples/. Each reads
TMH_CLIENT_ID and TMH_CLIENT_SECRET and targets the Sandbox:
| Script | Does |
|---|---|
quickstart.sh |
Prints the Compliance summary and five Learners |
sync-roster.sh |
Syncs a roster CSV with learners upsert-by-external-id |
export-certificates.sh |
Exports Certificates to CSV with --wait -o, optionally with PDFs |
webhook-dev-loop.sh |
Forwards Events to a local handler with events tail --forward-to |
These explain how tmh is built and why. Using it doesn’t need them.
adr/: architecture
decision records, such as
generated surface from a shared IR,
the Organization bound to the client,
webhook verification needs the path,
no telemetry, no body logging and
a standalone Go binary with events tail.
Superseded records stay, marked as such.design/: the design review that settled
the interface of the CLI and the SDKs.research/: research into the Stripe CLI, whose
conventions tmh follows where they fit.agents/: conventions for coding agents in this
repository: domain docs, the issue tracker, triage labels.