Public Runtime API v1 (1.0.0-dev-pilot) • Docs 1.0.1-dev-pilot Custom Transactions V2: Planned (Not Deployed) @trustlith/sdk-js: Local Prototype Only

Cryptographic Authentication & Authorization Developer Center

Integrate Trustlith hardware-backed ES256 authentication (login and fund_transfer) across the full customer journey: developer app setup, connectivity checks, end-user Account Settings → Security QR onboarding, test prompts, and fail-closed session enforcement. Need an app-specific kit? Sign in to Developer Portal to generate one without embedding secrets.

AI Integration Prompt
Read https://developers.trustlith.com/TRUSTLITH-INTEGRATION.md (or TRUSTLITH-INTEGRATION.md at the repository root) and integrate the full Trustlith Public Runtime API v1 customer journey into our application—without enabling global mandatory authentication before end-user onboarding and connectivity work.

Requirements:
1. Developer Setup vs End-User Onboarding: Place all Trustlith API calls strictly on the backend using TRUSTLITH_API_BASE_URL, TRUSTLITH_API_KEY, and APP_PUBLIC_ORIGIN. Never expose API keys or enrollmentToken client-side, and never invent undocumented APIs (V1 requires manually mapped DEV users in Portal -> Users; auto user provisioning is not supported yet).
2. Availability & Rollout Safety: Implement a GET /health availability probe (remembering /health is unauthenticated and proves Runtime availability only, NOT API key validity; verify keys via authenticated endpoints) and configurable TRUSTLITH_ENFORCEMENT_MODE ("optional" | "designated" | "required") defaulting to "optional" or "designated". Do NOT lock out unenrolled users globally during setup.
3. End-User Account Settings -> Security UI: Build an authenticated Account Settings -> Security page supporting programmatic QR enrollment (POST /v1/enrollments + POST /v1/enrollment-handoffs FIRST_DEVICE), cryptographic confirmation via a live login test prompt (POST /v1/challenges), cancel (POST /v1/challenges/:id/cancel), and account-level activation only after APPROVED confirmation.
4. Fail-Closed Session-Bound Security: Never send tenantId or applicationId in POST /v1/challenges; exact-match context.origin; use action: "login" or "fund_transfer" (with transactionContext.type: "fund_transfer") and never call unimplemented V2 routes such as /consume. Bind every challengeId to the server session + immutable payload, prevent direct API bypass on protected routes, enforce single-use consumption in your customer database (V1 Runtime /status does not consume APPROVED challenges), and fail closed unless GET /v1/challenges/:id/status confirms APPROVED when required.
5. Device/Recovery Clarity & Tests: Reflect in docs/UI that V1 device management uses Developer Portal while self-service recovery/device removal APIs are planned. Add tests covering availability/credential checks, QR handoff, enrollment confirmation, optional/designated/required policies, fail-closed errors, and bypass prevention.

Integrate Manually (Human Developers)

Integrate with an AI Coding Agent