---
updatedAt: 2026-10-16T12:45:16.000Z
---

# Create a user

This operation enables you to create a new user.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "x-explorer-enabled": false,
  "info": {
    "title": "User API (Legacy)",
    "license": {
      "name": "(c) Copyright 2021 WhiteHat Security"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://sentinel.whitehatsec.com"
    }
  ],
  "paths": {
    "/api/user": {
      "post": {
        "tags": [
          "User API v1.0"
        ],
        "summary": "Create a user",
        "description": "This operation enables you to create a new user.",
        "operationId": "createUser",
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "description": "Selects the requested response representation format.",
            "style": "form",
            "explode": true,
            "required": false,
            "schema": {
              "type": "string",
              "default": "application/xml",
              "example": "application/json",
              "enum": [
                "application/json",
                "application/xml"
              ]
            }
          }
        ],
        "requestBody": {
          "description": "Holds the sentinel user information.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserRequestObj"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Provides the sentinel user information.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserGetResponseObj"
                }
              },
              "application/xml": {
                "example": "XML preview is currently not supported."
              }
            }
          },
          "400": {
            "description": "BadRequestResponse indicates a request with invalid parameters.",
            "content": {}
          },
          "401": {
            "description": "UnauthorizedResponse signals an unauthorized API access.",
            "content": {}
          },
          "403": {
            "description": "ForbiddenResponse signals a request for a resource that does not exist or is not authorized.",
            "content": {}
          },
          "500": {
            "description": "GenericError generic error.",
            "content": {}
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {
      "UserGetResponseObj": {
        "type": "object",
        "properties": {
          "last_name": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "last_viewed_messages": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "client_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "email_address": {
            "type": "string"
          },
          "client": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "show_cvss": {
            "type": "string"
          },
          "immediate_severity_email": {
            "type": "string"
          },
          "last_login": {
            "type": "string"
          },
          "monthly_email": {
            "type": "boolean"
          },
          "username": {
            "type": "string"
          },
          "action_items_email": {
            "type": "boolean"
          },
          "daily_email": {
            "type": "boolean"
          },
          "weekly_email": {
            "type": "boolean"
          },
          "expose_hostnames": {
            "type": "boolean"
          },
          "email_preferences": {
            "properties": {
              "immediate_credential": {
                "type": "number"
              },
              "immediate_schedule": {
                "type": "number"
              },
              "daily_closed_vuln": {
                "type": "number"
              },
              "immediate_open_vuln": {
                "type": "number"
              },
              "immediate_closed_vuln": {
                "type": "number"
              },
              "weekly_schedule": {
                "type": "number"
              },
              "immediate_manual_scan_complete": {
                "type": "number"
              },
              "weekly_credential": {
                "type": "number"
              }
            },
            "type": "object"
          },
          "company": {
            "type": "string"
          },
          "lockedout": {
            "type": "number"
          },
          "immediate_email": {
            "type": "boolean"
          },
          "href": {
            "type": "string"
          },
          "entity_role_id": {
            "type": "string"
          },
          "has_api_key": {
            "type": "number"
          },
          "zipcode": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "creation_time": {
            "type": "string"
          },
          "fax": {
            "type": "string"
          },
          "job_title": {
            "type": "string"
          },
          "middle_initial": {
            "type": "string"
          },
          "mobile": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "require_mfa": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        }
      },
      "UserRequestObj": {
        "type": "object",
        "required": [
          "username",
          "client_id",
          "type"
        ],
        "properties": {
          "action_items_email": {
            "type": "number",
            "description": "If this field is set, the user will receive action items emails.",
            "enum": [
              0,
              1
            ]
          },
          "address": {
            "type": "string",
            "description": "The user's mailing address."
          },
          "city": {
            "type": "string",
            "description": "The city in which the user resides or works."
          },
          "client_id": {
            "type": "number",
            "description": "New user's Client ID."
          },
          "company": {
            "type": "string",
            "description": "The company the user works for."
          },
          "country": {
            "type": "string",
            "description": "The country in which the user resides or works."
          },
          "expose_hostnames": {
            "type": "number",
            "description": "If this field is set, hostnames of sites the user has an association with will be exposed in emails sent to the user.",
            "enum": [
              0,
              1
            ]
          },
          "fax": {
            "type": "number",
            "description": "A fax number where the user or user's company can be reached."
          },
          "first_name": {
            "type": "string",
            "description": "The user's first name."
          },
          "immediate_email": {
            "type": "number",
            "description": "If this field is set, the user will receive hourly emails on new vulnerabilities.",
            "enum": [
              0,
              1
            ]
          },
          "job_title": {
            "type": "string",
            "description": "The user's job title."
          },
          "last_name": {
            "type": "string",
            "description": "The user's last name."
          },
          "middle_initial": {
            "type": "string",
            "description": "First initial of the user's middle name. NOTE: Only a single character is acceptable for this field. If more characters are used, no data will be inserted into this field."
          },
          "monthly_email": {
            "type": "number",
            "description": "If this field is set, the user will receive monthly summary emails on vulnerabilities and other issues.",
            "enum": [
              0,
              1
            ]
          },
          "notes": {
            "type": "string",
            "description": "Any additional notes about the user."
          },
          "phone": {
            "type": "number",
            "description": "A phone number where the user can be reached."
          },
          "require_mfa": {
            "type": "number",
            "description": "If this field is set, multi-factor authentication for Sentinel login is required for this user.",
            "enum": [
              0,
              1
            ]
          },
          "role": {
            "type": "string",
            "description": "New user's Sentinel role. If not specified, defaults to 'Viewer'."
          },
          "state": {
            "type": "string",
            "description": "The state in which the user resides or works."
          },
          "timezone": {
            "type": "string",
            "description": "The user's time zone. Only valid time zones with the accepted timezone format are allowed. EXAMPLE: 'America/New_York'"
          },
          "type": {
            "type": "string",
            "description": "New user's type. Currently, this should always be 'sentinel'."
          },
          "update_email": {
            "type": "number",
            "description": "If this field is set, the user will receive daily emails on new vulnerabilities.",
            "enum": [
              0,
              1
            ]
          },
          "username": {
            "type": "string",
            "description": "New user's username. This should be a well-formed, valid email address."
          },
          "weekly_email": {
            "type": "number",
            "description": "If this field is set, the user will receive weekly summary emails on vulnerabilities and other issues.",
            "enum": [
              0,
              1
            ]
          },
          "zipcode": {
            "type": "number",
            "description": "The zip code associated with the user's address."
          }
        }
      }
    }
  }
}
```