Browse the docs

POST /signins/sign-in-now

Opens a site's login page in a background tab of the connected browser.

Details #

Body: {"url": "https://github.com/login"}. Opens the page in a background tab and waits for it to load; the tab stays open while the person signs in. Answers {"tabId": 12, "browser": "chrome"}. Finish with POST /signins/sign-in-now/finish. 409 when no browser is connected or the page didn't load.

Parameters #

curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X POST http://localhost/signins/sign-in-now

Open a site's login page in a background tab. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.

See also #