Request a code for an email, then retrieve the current 6-digit code from GET /api/lab/inbox — the side channel a real test reads programmatically. Submit it to set the session cookie.
This is the classic API + UI hybrid dance: the UI triggers the request, but the secret travels through a separate channel that your automation must poll and read.