Auth

Switch the dashboard session between test and live mode

Changed on

Updates dashboard_sessions.livemode for the cookie session. All subsequent requests inherit the new mode via session middleware, so customers / invoices / subscriptions / API keys reads filter to the active mode without per-call mode parameters. The same operator flips back and forth without re-authenticating.

post/v1/auth/mode

Request

  • Base URL: http://localhost:8080
  • URL: http://localhost:8080/v1/auth/mode
  • Auth: HTTP bearer

Request body

livemodeboolean required

Response

Mode updated

livemodeboolean required

Changes