Explicitly initialize standalone Device Intelligence for an existing customer-hosted workflow session configured with a standalone Device Intelligence node. Call after creating the session and before completing the workflow; no request body or customer_hosted header is required. Adding the node alone does not start SDK capture in a custom frontend. Call this operation from the customer's backend or backend-for-frontend using the customer's private Workflow API credentials. Never expose those credentials in browser code. Do not cache bootstrap responses; they carry Cache-Control: no-store. Omit x-hf-device-context on the first bootstrap request for a page lifecycle. The backend must forward the x-hf-device-context response value to the browser on both 200 and 204 responses and return the shortCode when present. The browser must send the context value back through the customer's backend for later bootstrap requests, and the backend must forward it in the x-hf-device-context request header. When this operation returns 200, pass the response shortCode to the regular @trulioo/trulioo SDK in the browser, then call Trulioo.initialize(shortCode), Trulioo.initializeDeviceIntelligence(), and Trulioo.submitDeviceIntelligenceEvent(). A 200 response confirms initialization only, not successful device capture or an available risk result. Match the hosted Workflow Studio retry behaviour by starting only one asynchronous capture per shortCode and allowing the rest of the workflow UI to become ready without waiting for capture. If any SDK operation throws, or submitDeviceIntelligenceEvent returns TruliooSendDeviceInformationStatus.Failed, the browser should ask the customer's backend to report the failure through the existing POST /device-intelligence/failure/{flowId} operation with the same x-hf-session. That existing operation returns 204 and is session-scoped; it does not correlate failures to individual browser contexts. Do not report capture failure when bootstrap returns 204. Do not automatically retry a failed SDK capture; reset the Trulioo SDK after either success or failure. Retain the device-context value in browser page memory, scoped to the flow and session. Do not persist it across page reloads: a reload starts a new browser context and requests a fresh capture. Remove the in-memory context when the workflow reaches its end. A 204 response contains no shortCode: do not start SDK capture for that response or interpret it as successful capture. It can indicate no eligible standalone DI node, an already claimed context, a completed or abandoned session, the browser-context limit being reached, or a handled initialization failure. A repeated request with the same context does not replay a previously issued shortCode. API-only execution without browser bootstrap retains the existing NOT_CAPTURED behaviour.
post
https://api.trulioo.com/wfs/interpreter-v2/device-intelligence/bootstrap/

