> ## Documentation Index
> Fetch the complete documentation index at: https://docs.provisionapp.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a user

> Creates an active platform user (a ProVision agent) on the partner the API key belongs to, and emails them an invitation with a temporary password. The email must not belong to any existing ProVision user, otherwise the call fails with 409 `CONFLICT`. `userGroupIds` optionally grants user groups at creation; only the groups returned by `GET /v1/user-group/list` can be granted: an unknown group is rejected with 404, and a private group or a platform group your partner is not entitled to with 403. When any group is rejected no user is created. The response always includes `userGroups`; groups that ProVision grants automatically after creation may appear on a later `GET /v1/user/{id}`. Requires the `user:write` scope.



## OpenAPI

````yaml /openapi.yaml post /v1/user
openapi: 3.1.0
info:
  title: ProVision Public API
  version: 1.0.0
  description: >-
    Use the ProVision Public API to integrate with ProVision conversations,
    clients, sites, projects, users, labels, and signal incidents. All endpoints
    accept and return JSON, are authenticated with an `x-api-key` header, and
    are scoped to a single partner tenant.
  contact:
    email: help@onevisionresources.com
    name: OneVision Resources Support
  license:
    name: Proprietary
servers:
  - url: https://connect.provisionapp.io
    description: Production
security: []
tags:
  - name: Conversations
    description: >-
      Support conversations: list and read them, create new ones, update status
      and urgency, read messages, post internal notes, and link sites and
      labels.
  - name: Clients
    description: >-
      The people your team supports: list, read, create, and update clients, and
      link them to their sites.
  - name: Sites
    description: >-
      The addresses your team services: list, read, create, and update sites,
      and apply labels.
  - name: Site files
    description: >-
      Documentation attached to a site, such as plans, photos, and manuals:
      list, download, upload, and delete.
  - name: Projects
    description: >-
      Installation projects at a site. Available to partners with access to
      ProVision Projects.
  - name: Users
    description: The platform users on your team, who can be assignees and message senders.
  - name: User groups
    description: >-
      The groups that bundle permissions for platform users: list the public
      groups available to your team.
  - name: Labels
    description: >-
      The public labels your team can apply to conversations, sites, and
      client-site links.
  - name: Signal incidents
    description: >-
      Raised when a conversation pages someone, and open until an agent resolves
      it: list and resolve them.
  - name: System
    description: Service health, for checking that your API key and network path work.
paths:
  /v1/user:
    post:
      tags:
        - Users
      summary: Create a user
      description: >-
        Creates an active platform user (a ProVision agent) on the partner the
        API key belongs to, and emails them an invitation with a temporary
        password. The email must not belong to any existing ProVision user,
        otherwise the call fails with 409 `CONFLICT`. `userGroupIds` optionally
        grants user groups at creation; only the groups returned by `GET
        /v1/user-group/list` can be granted: an unknown group is rejected with
        404, and a private group or a platform group your partner is not
        entitled to with 403. When any group is rejected no user is created. The
        response always includes `userGroups`; groups that ProVision grants
        automatically after creation may appear on a later `GET /v1/user/{id}`.
        Requires the `user:write` scope.
      operationId: createUser
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUserBody'
            example:
              firstName: Priya
              lastName: Shah
              email: priya.shah@example.com
              phoneNumber: '+15125550142'
              userGroupIds:
                - conversations_full_access
      responses:
        '201':
          description: Created user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
              example:
                id: ovuid-2b6d4d8e-9f1a-4b2c-8d4e-5f6011223344
                firstName: Priya
                lastName: Shah
                email: priya.shah@example.com
                phoneNumber: '+15125550142'
                isActive: true
                createdAt: '2025-03-04T15:20:00.000Z'
                updatedAt: '2026-09-12T09:41:27.000Z'
                conversationAssigneeGroups:
                  - conversationAssigneeGroupId: 4e5f6a7b-8c9d-4e0f-a1b2-c3d4e5f6a7b8
                    name: Tier 2 support
                userGroups:
                  - id: conversations_full_access
                    name: Conversations full access
                    description: Read and manage every conversation
                    isPlatform: true
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - OpenApiKeyAuth: []
components:
  schemas:
    CreateUserBody:
      type: object
      properties:
        firstName:
          type: string
          minLength: 1
          example: Priya
        lastName:
          type: string
          minLength: 1
          example: Shah
        email:
          type: string
          format: email
          description: >-
            Email the user signs in with. Must not belong to any existing
            ProVision user. The invitation with a temporary password is sent
            here.
          example: priya.shah@example.com
        phoneNumber:
          type: string
          pattern: ^\+1\d{10}$
          description: 'US phone number in E.164 format: `+1` followed by 10 digits.'
          example: '+15125550142'
        userGroupIds:
          type: array
          items:
            $ref: '#/components/schemas/UserGroupId'
          maxItems: 50
          description: >-
            Ids of the user groups to grant, as returned by `GET
            /v1/user-group/list`. Duplicates are ignored.
      required:
        - firstName
        - lastName
        - email
      additionalProperties: false
    User:
      type: object
      properties:
        id:
          type: string
        firstName:
          type: string
        lastName:
          type: string
        email:
          type: string
          format: email
        phoneNumber:
          type: string
        isActive:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        conversationAssigneeGroups:
          type: array
          items:
            $ref: '#/components/schemas/ConversationAssigneeGroup'
        userGroups:
          type: array
          items:
            $ref: '#/components/schemas/UserGroup'
          description: >-
            The user groups the user belongs to, private groups included.
            Platform groups appear only when the partner has access to platform
            user groups. Returned only with `include=userGroups`.
      required:
        - id
        - firstName
        - lastName
        - email
        - isActive
        - createdAt
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - error
    UserGroupId:
      type: string
      minLength: 1
      description: User group id, a stable text key such as `conversations_full_access`.
      example: conversations_full_access
    ConversationAssigneeGroup:
      type:
        - object
        - 'null'
      properties:
        conversationAssigneeGroupId:
          type: string
          format: uuid
        name:
          type: string
      required:
        - conversationAssigneeGroupId
        - name
      additionalProperties: false
    UserGroup:
      type: object
      properties:
        id:
          type: string
          description: >-
            User group id, a stable text key such as
            `conversations_full_access`.
        name:
          type:
            - string
            - 'null'
        description:
          type:
            - string
            - 'null'
        isPlatform:
          type: boolean
          description: >-
            True for a group maintained by ProVision and shared across partners;
            false for a group that belongs to your partner.
      required:
        - id
        - name
        - description
        - isPlatform
      additionalProperties: false
    ApiError:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable error code
          example: NOT_FOUND
        message:
          type: string
          description: Human-readable error description
      required:
        - code
        - message
  securitySchemes:
    OpenApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Send the API key in the x-api-key header.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.