Skip to main content
POST
/
api
/
setup-super-admin
POST /api/setup-super-admin
curl --request POST \
  --url https://api.example.com/api/setup-super-admin
One-time setup endpoint to create super admin accounts. Usage: POST /api/setup-super-admin with body { "password": "OpenDispatch123!" } This endpoint should be called once during initial setup. It will create the super admin accounts if they don’t already exist. Security Note: After running this once, consider removing this file or adding additional protection.

Response

Returns unknown on success.

Example

curl -X POST https://your-domain.com/api/setup-super-admin \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"