> ## 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 site

> Create a new site for the partner the API key belongs to. The public `site` contract maps onto the internal Address-backed create flow. `customProperties` accepts the custom properties defined for your partner, keyed by property id; send `null` to clear one. Requires the `site:write` scope. Supports `include=clients` to expand the created site.



## OpenAPI

````yaml /openapi.yaml post /v1/site
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/site:
    post:
      tags:
        - Sites
      summary: Create a site
      description: >-
        Create a new site for the partner the API key belongs to. The public
        `site` contract maps onto the internal Address-backed create flow.
        `customProperties` accepts the custom properties defined for your
        partner, keyed by property id; send `null` to clear one. Requires the
        `site:write` scope. Supports `include=clients` to expand the created
        site.
      operationId: createSite
      parameters:
        - schema:
            type: string
            description: >-
              Comma-separated list of related resources to expand in the
              response. Allowed values: `clients`, `projects`, `subscription`.
            example: clients,projects,subscription
          required: false
          description: >-
            Comma-separated list of related resources to expand in the response.
            Allowed values: `clients`, `projects`, `subscription`.
          name: include
          in: query
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSitePayload'
      responses:
        '201':
          description: Created site
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Site'
              example:
                id: ovaid-2b6d4d8e-9f1a-4b2c-8d4e-5f6011223344
                address1: 1200 Barton Springs Rd
                address2: Suite 300
                city: Austin
                state: TX
                zip: '78704'
                tosAccepted: '2025-06-18T14:05:42.000Z'
                serviceLevel: Priority
                clientSegment: Commercial
                cppExpDate: '2025-09-18T00:00:00.000Z'
                businessName: Rivera Dental
                brandId: b7c8d9e0-f1a2-4b3c-8d4e-5f6a7b8c9d0e
                primaryClientId: ovcid-61f936b9-6f97-438e-856d-1d99c69304f3
                primaryProjectId: ovprjid-7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a
                createdAt: '2025-06-18T14:02:11.000Z'
                updatedAt: '2026-10-01T16:45:00.000Z'
                sla: 4
                platformSlaId: priority
                isMonitored: true
                accountManager:
                  id: e5f6a7b8-c9d0-4e1f-a2b3-c4d5e6f7a8b9
                  firstName: Marcus
                  lastName: Lee
                membershipRegistered: true
                clients:
                  - id: ovcid-61f936b9-6f97-438e-856d-1d99c69304f3
                    partnerName: Rivera Dental
                    name: Jordan Rivera
                    firstName: Jordan
                    lastName: Rivera
                    marketingOptOut: false
                    emails:
                      - id: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
                        value: jordan.rivera@example.com
                        label: Work
                        isPrimary: true
                    phoneNumbers:
                      - id: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e
                        value: '+15125550187'
                        label: Mobile
                        isPrimary: true
                    isPrimary: true
                projects:
                  - id: ovprjid-7d8e9f0a-1b2c-4d3e-8f4a-5b6c7d8e9f0a
                    name: Security camera upgrade
                    isPrimary: true
                    stage: Active Project
                    estimatedDay1: '2026-11-10T00:00:00.000Z'
                    day1StartDate: '2026-11-12T00:00:00.000Z'
                    warrantyExpiration: '2027-11-12T00:00:00.000Z'
                    signingDate: '2026-10-02T00:00:00.000Z'
                subscription:
                  id: f6a7b8c9-d0e1-4f2a-b3c4-d5e6f7a8b9c0
                  stripeSubscriptionId: sub_1NqLmE2eZvKYlo2C0Ux1YzAb
                  status: active
                  phase: active
                  pausedUntil: null
                  product:
                    displayName: Priority Membership
                    type: membership
                customProperties:
                  ca_region: east
                  ca_warranty_count: 2
                  ca_onsite_required: 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'
        '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:
    CreateSitePayload:
      type: object
      properties:
        businessName:
          type: string
          minLength: 1
        address1:
          type: string
          minLength: 1
          example: 1234 Elm Street
        address2:
          type: string
        city:
          type: string
          minLength: 1
          example: Austin
        state:
          type: string
          minLength: 1
          example: TX
        zip:
          type: string
        isMonitored:
          type: boolean
        siteNotes:
          type: string
        clientSegmentId:
          type: string
          minLength: 1
        primaryClientId:
          $ref: '#/components/schemas/ClientId'
        tosAccepted:
          type: boolean
        platformSlaId:
          $ref: '#/components/schemas/PlatformSlaId'
        ownerId:
          $ref: '#/components/schemas/UserId'
        customProperties:
          $ref: '#/components/schemas/CustomPropertiesWrite'
        clientIds:
          type: array
          items:
            $ref: '#/components/schemas/ClientId'
      required:
        - address1
        - city
        - state
      additionalProperties: false
    Site:
      type: object
      properties:
        id:
          type: string
        address1:
          type:
            - string
            - 'null'
        address2:
          type:
            - string
            - 'null'
        city:
          type:
            - string
            - 'null'
        state:
          type:
            - string
            - 'null'
        zip:
          type:
            - string
            - 'null'
        tosAccepted:
          type: string
        serviceLevel:
          $ref: '#/components/schemas/ServiceLevel'
        clientSegment:
          type: string
        cppExpDate:
          type: string
          format: date-time
        businessName:
          type: string
        brandId:
          type: string
        primaryClientId:
          type: string
        primaryProjectId:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        sla:
          type: number
        platformSlaId:
          anyOf:
            - $ref: '#/components/schemas/PlatformSlaId'
            - type: 'null'
        isMonitored:
          type: boolean
        accountManager:
          $ref: '#/components/schemas/AccountManager'
        membershipRegistered:
          type: boolean
        clients:
          type: array
          items:
            $ref: '#/components/schemas/AddressClient'
        projects:
          type: array
          items:
            $ref: '#/components/schemas/AddressProject'
        subscription:
          $ref: '#/components/schemas/SiteSubscription'
        customProperties:
          $ref: '#/components/schemas/CustomProperties'
      required:
        - id
        - address1
        - address2
        - city
        - state
        - zip
        - platformSlaId
        - customProperties
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - error
    ClientId:
      type: string
      pattern: ^ovcid-.*$
    PlatformSlaId:
      type: string
      enum:
        - essentials
        - essentials_plus
        - priority
        - security_only
        - proactive
        - signature
    UserId:
      type: string
      minLength: 1
      description: >-
        Platform user id. Newer ids are `ovuid-<uuid>`; legacy users may have
        bare (e.g. numeric) ids.
      example: ovuid-2b6d4d8e-9f1a-4b2c-8d4e-5f6011223344
    CustomPropertiesWrite:
      type: object
      additionalProperties: {}
      description: >-
        Custom property values, keyed by property id. Ids and value types come
        from the properties defined for your partner, so this object cannot be
        described field by field here: an unknown id or a value that does not
        match the property type is rejected with 400. Only the ids you send are
        modified — omit a property to leave it untouched. To clear one, send
        `null`; a blank string and an empty array count as empty too, for every
        property type alike.
      example:
        warranty_count: 5
        region: east
        onsite_required: true
    ServiceLevel:
      type: string
      enum:
        - Inactive
        - Non-Member
        - Warranty Essentials
        - CPP Essentials
        - Essentials
        - CPP Essentials Plus
        - Essentials Plus
        - CPP Priority
        - Priority
        - CPP Proactive
        - Proactive
        - CPP Signature
        - Signature
        - Secure
        - OV - Internal
        - Legacy
    AccountManager:
      type: object
      properties:
        id:
          type: string
          format: uuid
        firstName:
          type: string
        lastName:
          type: string
      required:
        - id
        - firstName
        - lastName
      additionalProperties: false
    AddressClient:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/ClientId'
        partnerName:
          type: string
        name:
          type: string
        firstName:
          type: string
        lastName:
          type: string
        marketingOptOut:
          type: boolean
        emails:
          type: array
          items:
            $ref: '#/components/schemas/ClientEmail'
        phoneNumbers:
          type: array
          items:
            $ref: '#/components/schemas/ClientPhoneNumber'
        isPrimary:
          type: boolean
      required:
        - id
        - name
        - firstName
        - lastName
      additionalProperties: false
    AddressProject:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/ProjectId'
        name:
          type:
            - string
            - 'null'
        isPrimary:
          type: boolean
        stage:
          $ref: '#/components/schemas/ProjectStage'
        estimatedDay1:
          type:
            - string
            - 'null'
          format: date
        day1StartDate:
          type:
            - string
            - 'null'
          format: date
        warrantyExpiration:
          type:
            - string
            - 'null'
          format: date
        signingDate:
          type:
            - string
            - 'null'
          format: date
      required:
        - id
        - name
      additionalProperties: false
    SiteSubscription:
      type:
        - object
        - 'null'
      properties:
        id:
          type: string
          format: uuid
        stripeSubscriptionId:
          type: string
          description: >-
            Identifier of the subscription in the billing provider, for
            reconciliation against the records a partner sees in its own
            connected account.
          example: sub_1NqLmE2eZvKYlo2C0Ux1YzAb
        status:
          $ref: '#/components/schemas/SiteSubscriptionStatus'
        phase:
          $ref: '#/components/schemas/SiteSubscriptionPhase'
        pausedUntil:
          type:
            - string
            - 'null'
          format: date-time
          description: When a paused subscription resumes; `null` if it is not paused.
        product:
          $ref: '#/components/schemas/SiteSubscriptionProduct'
      required:
        - id
        - stripeSubscriptionId
        - status
        - phase
        - pausedUntil
        - product
      description: >-
        A site's current subscription. Pricing and billing-period dates are not
        part of this payload: the platform stores neither, they live in the
        billing provider only.
    CustomProperties:
      type: object
      additionalProperties:
        anyOf:
          - type: string
          - type: number
          - type: boolean
          - type: array
            items:
              type: string
      description: >-
        Custom property values, keyed by property id. Ids and value types come
        from the properties defined for your partner, so this object cannot be
        described field by field here — call the custom-property list endpoint
        to resolve an id to its name and type. A property never given a value
        takes the default configured for it, and is left out rather than
        returned as `null` when there is no default either. A value stored
        before its property was changed — an option renamed or removed, the type
        switched — is returned as stored, so it may not match the type the
        property has today; an absent key is the only reliable sign that nothing
        is set.
      example:
        warranty_count: 5
        region: east
        onsite_required: true
    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
    ClientEmail:
      type: object
      properties:
        id:
          type: string
          format: uuid
        value:
          type: string
          format: email
        label:
          type: string
        isPrimary:
          type: boolean
      required:
        - id
        - value
      additionalProperties: false
    ClientPhoneNumber:
      type: object
      properties:
        id:
          type: string
          format: uuid
        value:
          type: string
        ext:
          type: number
        label:
          type: string
        isPrimary:
          type: boolean
      required:
        - id
        - value
      additionalProperties: false
    ProjectId:
      type: string
      pattern: ^ovprjid-.*$
      description: Project id, of the form `ovprjid-<uuidv4>`.
      example: ovprjid-2b6d4d8e-9f1a-4b2c-8d4e-5f6011223344
    ProjectStage:
      type: string
      enum:
        - Proposal
        - Active Project
        - Service Client
        - Lost Proposal
    SiteSubscriptionStatus:
      type:
        - string
        - 'null'
      enum:
        - incomplete
        - incomplete_expired
        - trialing
        - active
        - past_due
        - canceled
        - unpaid
        - paused
        - null
      description: >-
        Billing status of the subscription. `null` if the platform never
        recorded one.
    SiteSubscriptionPhase:
      type: string
      enum:
        - trial
        - active
        - psm
      description: >-
        Lifecycle phase of the subscription: `trial` (introductory period),
        `active` (regular recurring billing), `psm` (pre-sold membership
        period).
    SiteSubscriptionProduct:
      type:
        - object
        - 'null'
      properties:
        displayName:
          type: string
        type:
          type: string
      required:
        - displayName
        - type
      description: The partner product the subscription is sold under.
  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.