Skip to content

Authentication and Access

/signup

bash
curl https://ops.minusonedb.com/signup \
  -d "username=youremail@email.com&password=passphrase"
bash
m1 signup
ParameterTypeRequired
usernameStringYes
passwordStringYes
  • Rights: none
  • Verb: POST

Creates a user for you on ops. If successful, you can immediately authenticate using the username and password you supplied.

/auth

bash
curl https://ops.minusonedb.com/auth \
  -d "username=admin@email.com&password=passphrase"
bash
m1 auth
ParameterTypeRequired
usernameStringYes
passwordStringYes
  • Rights: none
  • Verb: POST

Log in and retrieve a token for service access.

200 OKReturns an authentication token

/user/code

bash
curl https://ops.minusonedb.com/user/code \
  -d "username=youremail@email.com"
bash
m1 ops user/code -username youremail@email.com
ParameterTypeRequired
usernameStringYes. The account email address.
  • Rights: none
  • Verb: POST

Email the user a one-time verification code — the forgotten-password workflow. The code expires in 5 minutes and can be used once. The response is 200 OK whether or not the username exists, so the endpoint does not reveal which addresses have accounts.

Use the emailed code to authenticate via /auth, then set a new password with /user/password.

200 OK with no body — returned even for unknown usernames.

/user/password

bash
curl https://ops.minusonedb.com/user/password \
  -d "password=newPassphrase" \
  -H "m1-auth-token: $myToken"
bash
m1 ops user/password -password newPassphrase
ParameterTypeRequired
passwordStringYes
usernameStringNo. Specify user if admin is changing another user's password.
  • Rights: none, admin if setting on behalf of another user
  • Verb: POST

Change user password. A correct auth token must be included in the request.