Skip to content

Create a new user

Request

Accepts a JSON payload to register a new user with required and optional user data.

Security
PublicApiKey
Bodyapplication/jsonrequired
usernamestringrequired
lastNamestring
firstNamestring
passwordstringrequired
emailstring, (email)required
organizationIdstring
vatNumberstring
curl -i -X POST \
  https://omnizon-public-api.redocly.app/_mock/openapi/rest/v1/users/new \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "username": "string",
    "lastName": "string",
    "firstName": "string",
    "password": "string",
    "email": "user@example.com",
    "organizationId": "string",
    "vatNumber": "string"
  }'

Responses

User created successfully.

Bodyapplication/json
userIdstringrequired

Unique identifier for the user account.

Example:"6787a98e15306d37eed688a8"
Response
{ "userId": "6787a98e15306d37eed688a8" }