# User Registration **POST /auth/register** Registers a new user. In a real app, this might require admin privileges or an invitation system. ## Servers - http://api.example.com: http://api.example.com () ## Parameters ### Body: application/json (object) User Registration Details - **email** (string) - **first_name** (string) - **last_name** (string) - **organization_id** (integer) Made optional, otherwise: `binding:"required"` - **password** (string) - **role** (string) ## Responses ### 201 message: User registered successfully, user_id: uint64 #### Body: application/json (object) object ### 400 Invalid request data or registration failed (e.g., email exists) #### Body: application/json (object) - ***** (string) [Powered by Bump.sh](https://bump.sh)