cURL
curl --request POST \ --url http://localhost:63372/api/captain/auth/setup \ --header 'Content-Type: application/json' \ --data ' { "code": "ABC123", "password": "your-secure-password" } '
{ "ok": true }
Complete initial setup with a setup code. Only works when no password has been set yet. Sets captain_session cookie on success.
One-time setup code displayed on first run
"ABC123"
Password to set for the Captain dashboard
"your-secure-password"
Setup complete. Sets captain_session cookie.
true