---
title: "Add a user"
method: POST
path: "/api-public/v1/user"
tags: ["Users"]
---

# Add a user

`POST /api-public/v1/user`

__NOTE: Use of the admin parameter is deprecated.  All calls to add a user will set admin to false.

Add a user to your organization

This API may be called a maximum of 2 times per second.

## Headers

- `X-VO-Api-Id` string, required
- `X-VO-Api-Key` string, required

## Request body

- object — The user information
  - `firstName` string, required
  - `lastName` string, required
  - `username` string, required
  - `email` string, email, required
  - `admin` boolean
  - `expirationHours` number — The validity duration for the invitatation/set password link sent to the added user.
  - `stakeholder` boolean

## Response `200`

Some details about the user that was added

- AddUserResponse — Some info about the user
  - `firstName` string
  - `lastName` string
  - `username` string
  - `email` string
  - `createdAt` string
  - `passwordLastUpdated` string
  - `verified` boolean — Whether or not this user has set their password (will always be false)
  - `_selfUrl` string

## Other responses

- `400` — Problem with the request arguments. The response payload may include an error message.
- `401` — Authentication parameters missing
- `403` — Authentication failed or rate-limit reached
- `404` — User not found
- `409` — The requested username or email address is not available
- `422` — unresolved $ref
- `500` — Internal Server Error

---

[API](https://skmtc.net/victorops/apis/victorops-api.md) · [All operations](https://skmtc.net/victorops/apis/victorops-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/victorops/victorops-api/revisions/7a7391256058/schema)
