Auth

Create an operator account. Password must meet dashboard password policy. Requires the deployment's admin secret in x-admin-secret unless user_auth.signup_requires_admin_secret is set to false in config (it defaults to true).

post/auth/signup

Request

  • Base URL
    http://localhost:8080
  • URL
    http://localhost:8080/auth/signup
  • Auth
    API key in header x-admin-secret

Request body

emailstring required
passwordstring required
merchant_idstring nullable

Attach the new user to an existing merchant.

Example request

{
  "email": "operator@example.com",
  "password": "StrongPass#123",
  "merchant_id": "merchant_demo"
}

Response

Authenticated user

tokenstring
user_idstring
emailstring
merchant_idstring
rolestring

Changes