{
  "language": "cli",
  "release": "trimmed-2026-11-15",
  "samples": {
    "batchEnrollments": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh enrollments batch \\\n  --operation remind \\\n  --select.enrollment-ids enr_01JD8K2M4N6P8Q0R2S4T6V8W0X \\\n  | jq -r '.results[] | [.enrollmentId, .outcome] | @tsv'",
    "batchUpsertLearners": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh learners batch-upsert \\\n  -d 'items:=[{\"externalId\":\"hr-1042\",\"email\":\"dana.whitfield@example.com\",\"name\":\"Dana Whitfield\"}]' \\\n  --wait \\\n  | jq .response",
    "cancelEnrollment": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh enrollments cancel enr_01JD8K2M4N6P8Q0R2S4T6V8W0X \\\n  --refund \\\n  | jq -r .status",
    "createEnrollment": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh enrollments create \\\n  --email dana.whitfield@example.com \\\n  --course-id hipaa-2026 \\\n  | jq -r .enrollmentId",
    "createLearner": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh learners create \\\n  --email dana.whitfield@example.com \\\n  --name \"Dana Whitfield\" \\\n  | jq -r .learnerId",
    "createLearnerLaunchLink": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh learners create-launch-link sub_01JD80AB2C3D4E5F6G7H8J9K0M \\\n  | jq -r .url",
    "createWebhookSubscription": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh webhook-subscriptions create \\\n  --endpoint-url https://example.com/webhooks/teachmehipaa \\\n  --event-types learner.certified \\\n  | jq -r .secret",
    "deleteWebhookSubscription": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh webhook-subscriptions delete whs_01JD8Q5R7S9T1V3W5X7Y9Z1A3B \\\n  && echo deleted",
    "downloadCertificatePdf": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh certificates download-pdf cert_01JD8F3G5H7J9K1M3N5P7Q9R1S \\\n  -o certificate.pdf",
    "exportCertificates": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh certificates export --format csv -o certificates.csv",
    "exportEnrollments": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh enrollments export --format csv -o enrollments.csv",
    "exportLearners": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh learners export --format csv --status expired -o learners.csv",
    "getCertificate": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh certificates retrieve cert_01JD8F3G5H7J9K1M3N5P7Q9R1S \\\n  | jq -r .expiresAt",
    "getCertificateCredentials": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh certificates retrieve-links cert_01JD8F3G5H7J9K1M3N5P7Q9R1S \\\n  | jq -r .shortLink",
    "getCertificateVerification": "# Public: works before tmh login.\ntmh certificate-verifications retrieve a7Kq2Z | jq -r .status",
    "getComplianceSummary": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh compliance retrieve --course-id hipaa-2026 | jq .compliantRate",
    "getCourse": "# Public: works before tmh login.\ntmh courses retrieve hipaa-2026 | jq -r .title",
    "getEnrollment": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh enrollments retrieve enr_01JD8K2M4N6P8Q0R2S4T6V8W0X \\\n  | jq -r .effectiveStatus",
    "getLearner": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh learners retrieve sub_01JD80AB2C3D4E5F6G7H8J9K0M | jq -r .status",
    "getMember": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh members retrieve sub_01JD80AB2C3D4E5F6G7H8J9K0M | jq -r .role",
    "getOperation": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh operations retrieve op_01JD8T4V6W8X0Y2Z4A6B8C0D2E | jq .done",
    "getSeatInventory": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh seats retrieve | jq .available",
    "getWebhookSubscription": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh webhook-subscriptions retrieve whs_01JD8Q5R7S9T1V3W5X7Y9Z1A3B \\\n  | jq -r '.eventTypes[]'",
    "importEnrollments": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh enrollments import --file roster.csv --wait | jq .response",
    "introspectAccessToken": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh auth introspect | jq -r '.scopes[]'",
    "listAuditEvents": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh audit-events list \\\n  --type learner.updated \\\n  | jq -r '.items[] | [.at, .type, .actorSubjectId] | @tsv'",
    "listCertificates": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh certificates list \\\n  --subject-id sub_01JD80AB2C3D4E5F6G7H8J9K0M \\\n  | jq -r '.items[] | [.certificateId, .status, .expiresAt] | @tsv'",
    "listCourses": "# Public: works before tmh login.\ntmh courses list | jq -r '.items[] | [.courseId, .title] | @tsv'",
    "listEnrollments": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh enrollments list \\\n  --status CERTIFIED \\\n  | jq -r '.items[] | [.enrollmentId, .subjectId, .expiresAt] | @tsv'",
    "listLearners": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh learners list \\\n  --status in_progress \\\n  | jq -r '.items[] | [.learnerId, .email, .status] | @tsv'",
    "listMembers": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh members list \\\n  --role admin \\\n  | jq -r '.items[] | [.email, .name] | @tsv'",
    "listOrgEvents": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh events list \\\n  --type learner.certified \\\n  | jq -r '.items[] | [.occurredAt, .eventId, .data.email] | @tsv'",
    "listWebhookSubscriptions": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh webhook-subscriptions list \\\n  | jq -r '.items[] | [.subscriptionId, .endpointUrl, .enabled] | @tsv'",
    "offboardLearner": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh learners offboard sub_01JD80AB2C3D4E5F6G7H8J9K0M | jq -r .status",
    "redriveWebhookSubscription": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh webhook-subscriptions redrive whs_01JD8Q5R7S9T1V3W5X7Y9Z1A3B \\\n  --wait \\\n  | jq .response",
    "remindEnrollment": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh enrollments remind enr_01JD8K2M4N6P8Q0R2S4T6V8W0X | jq -r .action",
    "remindLearner": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh learners remind sub_01JD80AB2C3D4E5F6G7H8J9K0M | jq -r .action",
    "renewEnrollment": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh enrollments renew enr_01JD8K2M4N6P8Q0R2S4T6V8W0X | jq .cycle",
    "resendEnrollmentInvite": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh enrollments resend-invite enr_01JD8K2M4N6P8Q0R2S4T6V8W0X \\\n  | jq -r .action",
    "testWebhookSubscription": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh webhook-subscriptions test whs_01JD8Q5R7S9T1V3W5X7Y9Z1A3B \\\n  --wait \\\n  | jq .response",
    "updateLearner": "# Runs as your sandbox profile (tmh login). Add --live for Live.\netag=$(tmh learners retrieve sub_01JD80AB2C3D4E5F6G7H8J9K0M \\\n  --show-headers 2>&1 >/dev/null | sed -n 's/^< Etag: //p')\ntmh learners update sub_01JD80AB2C3D4E5F6G7H8J9K0M \\\n  --name \"Dana Whitfield\" \\\n  --if-match \"$etag\" \\\n  | jq -r .name",
    "updateWebhookSubscription": "# Runs as your sandbox profile (tmh login). Add --live for Live.\netag=$(tmh webhook-subscriptions retrieve whs_01JD8Q5R7S9T1V3W5X7Y9Z1A3B \\\n  --show-headers 2>&1 >/dev/null | sed -n 's/^< Etag: //p')\ntmh webhook-subscriptions update whs_01JD8Q5R7S9T1V3W5X7Y9Z1A3B \\\n  --enabled=false \\\n  --if-match \"$etag\" \\\n  | jq .enabled",
    "upsertLearnerByExternalId": "# Runs as your sandbox profile (tmh login). Add --live for Live.\ntmh learners upsert-by-external-id hr-1042 \\\n  --email dana.whitfield@example.com \\\n  --name \"Dana Whitfield\" \\\n  | jq -r .learnerId"
  }
}
