Register a New User

Endpoint: /api/v1/users/register

  • Method: POST
  • Description: This endpoint is used to register a new user by accepting JSON data containing user details and creating a new user account.
  • Headers:
    • X-ORG-CODE (string): Required. The organization's unique code.
      Request Body:
    • UserRegisterRequest: The model containing details for user registration.
    • Responses:
      • 200 OK: Successful operation, returns a UserRegisterResponse.
      • 400 Bad Request: The request was invalid, returns an Error object.
      • 500 Internal Server Error: The server encountered an unexpected condition, returns an Error object.
      • Security: Requires authentication via test-cognito-auth