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

# List sites

> List the sites belonging to the partner the API key belongs to. Supports pagination (`limit`, `offset`), full-text `search`, `filters` (a URL-encoded JSON array of `{ attribute, operator, value }` conditions over the supported site fields), `sort`, and `include` to expand related resources. Requires the `site:read` scope.



## OpenAPI

````yaml /openapi.yaml get /v1/site/list
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, users, and addresses. All endpoints accept and return JSON, are
    authenticated with an `x-api-key` header, and are scoped to a single partner
    tenant.
  contact:
    email: support@onevisionresources.com
    name: OneVision Resources Support
  license:
    name: Proprietary
servers:
  - url: https://connect.provisionapp.io
    description: Production
security: []
paths:
  /v1/site/list:
    get:
      tags:
        - site
      summary: List sites
      description: >-
        List the sites belonging to the partner the API key belongs to. Supports
        pagination (`limit`, `offset`), full-text `search`, `filters` (a
        URL-encoded JSON array of `{ attribute, operator, value }` conditions
        over the supported site fields), `sort`, and `include` to expand related
        resources. Requires the `site:read` scope.
      operationId: listSites
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          required: false
          name: limit
          in: query
        - schema:
            type:
              - integer
              - 'null'
            minimum: 0
            default: 0
          required: false
          name: offset
          in: query
        - schema:
            type: string
          required: false
          name: search
          in: query
        - schema:
            type: string
          required: false
          name: include
          in: query
        - schema:
            type: string
            description: >-
              A URL-encoded JSON array of filter conditions, all AND-ed
              together. Each condition is `{ "attribute", "operator", "value",
              "valueType"? }`. Allowed attributes: id, address1, address2, city,
              state, zip, businessName, brandId, isMonitored, sla, createdAt,
              updatedAt. Allowed operators: =, !=, in, not_in, ilike, not_ilike,
              <, <=, >, >=, is_null, is_not_null. `value` is always a string;
              set `valueType` (one of boolean, number, number[], string,
              string[]) to coerce it — e.g. `"boolean"` for a true/false
              attribute or `"string[]"` for the `in` operator.
          required: false
          description: >-
            A URL-encoded JSON array of filter conditions, all AND-ed together.
            Each condition is `{ "attribute", "operator", "value", "valueType"?
            }`. Allowed attributes: id, address1, address2, city, state, zip,
            businessName, brandId, isMonitored, sla, createdAt, updatedAt.
            Allowed operators: =, !=, in, not_in, ilike, not_ilike, <, <=, >,
            >=, is_null, is_not_null. `value` is always a string; set
            `valueType` (one of boolean, number, number[], string, string[]) to
            coerce it — e.g. `"boolean"` for a true/false attribute or
            `"string[]"` for the `in` operator.
          name: filters
          in: query
          examples:
            equals:
              summary: Exact match
              value: '[{"attribute":"id","operator":"=","value":"example"}]'
            anyOf:
              summary: Match any of several values (`in`)
              value: >-
                [{"attribute":"id","operator":"in","value":"a,b,c","valueType":"string[]"}]
            contains:
              summary: Case-insensitive contains (`ilike`)
              value: '[{"attribute":"id","operator":"ilike","value":"%term%"}]'
            isSet:
              summary: Attribute is not null (`is_not_null`)
              value: '[{"attribute":"id","operator":"is_not_null","value":""}]'
            dateRange:
              summary: Range — multiple conditions are AND-ed
              value: >-
                [{"attribute":"createdAt","operator":">=","value":"2026-01-01T00:00:00.000Z"},{"attribute":"createdAt","operator":"<=","value":"2026-12-31T23:59:59.000Z"}]
        - schema:
            type: string
            description: >-
              Comma-separated list of fields to sort by, applied in order;
              prefix a field with `-` for descending. Allowed fields: address1,
              city, state, businessName, isMonitored, sla, createdAt, updatedAt.
          required: false
          description: >-
            Comma-separated list of fields to sort by, applied in order; prefix
            a field with `-` for descending. Allowed fields: address1, city,
            state, businessName, isMonitored, sla, createdAt, updatedAt.
          name: sort
          in: query
          examples:
            descending:
              summary: Single field, descending
              value: '-address1'
            multiple:
              summary: Multiple keys (first descending, then ascending)
              value: '-address1,city'
      responses:
        '200':
          description: Paginated list of sites
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SiteList'
        '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:
    SiteList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Site'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
      required:
        - data
        - meta
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - error
    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
        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'
        customProperties:
          $ref: '#/components/schemas/CustomProperties'
      required:
        - id
        - address1
        - address2
        - city
        - state
        - zip
    PaginationMeta:
      type: object
      properties:
        total:
          type: integer
          description: Total number of matching records
        limit:
          type: integer
          description: Page size used for this response
        offset:
          type: integer
          description: Offset used for this response
      required:
        - total
        - limit
        - offset
    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
    ServiceLevel:
      type: string
      enum:
        - Inactive
        - Non-Member
        - Warranty 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:
          type: string
          format: uuid
        name:
          type: string
        isPrimary:
          type: boolean
        stage:
          type: string
        estimatedDay1:
          type: string
          format: date
        day1StartDate:
          type: string
          format: date
        warrantyExpiration:
          type: string
          format: date
        signingDate:
          type: string
          format: date
      required:
        - id
        - name
      additionalProperties: false
    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
    ClientId:
      type: string
      pattern: ^ovcid-.*$
    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
  securitySchemes:
    OpenApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Send the API key in the x-api-key header.

````