Toggle the authenticated user's login_notification preference (OTP-gated)

Two-call flow with the same payload. Empty code validates the payload and issues an OTP challenge — response has data.type = "challenge" and carries expiration_at/resend_at/factor. Populated code re-validates, verifies the OTP, applies the toggle, and returns the persisted value — response has data.type = "user". Both flows return 201 (challenge) / 200 (apply); clients discriminate on data.type.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Toggle payload (same shape for both calls; only code differs)

data
object
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json