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

# Get conversation context

> Return the contextual data attached to a conversation (notes, key-value attributes, and related entities) without re-fetching the conversation itself. Useful when your integration already has the conversation row cached and only needs the side data. Requires the `conversation:read` scope.



## OpenAPI

````yaml /openapi.yaml get /v1/conversation/{id}/context
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/conversation/{id}/context:
    get:
      tags:
        - Conversations
      summary: Get conversation context
      description: >-
        Return the contextual data attached to a conversation (notes, key-value
        attributes, and related entities) without re-fetching the conversation
        itself. Useful when your integration already has the conversation row
        cached and only needs the side data. Requires the `conversation:read`
        scope.
      operationId: getConversationContext
      parameters:
        - schema:
            type: string
            format: uuid
            example: 57f2d879-20f8-4106-9abb-44fa099e0448
          required: true
          name: id
          in: path
          description: Id of the conversation, as returned by `GET /v1/conversation/list`.
      responses:
        '200':
          description: Conversation context
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationContext'
              example:
                subject: Gate camera offline
                status: open
                type: support_ticket
                urgency: urgent
                labels:
                  - VIP
                requester: Jordan Rivera
                participants:
                  agents:
                    - Priya Shah
                  clients:
                    - name: Jordan Rivera
                      primaryPhoneNumber: '+15125550187'
                      primaryEmail: jordan.rivera@example.com
                messages:
                  - author: Jordan Rivera
                    role: Client
                    createdAt: '2026-10-20T13:05:12.000Z'
                    text: >-
                      The camera over the back gate has been offline since this
                      morning.
                    isInternal: false
                  - author: Priya Shah
                    role: Advanced Support
                    createdAt: '2026-10-20T14:22:48.000Z'
                    text: >-
                      Power cycled the PoE switch remotely; camera still not
                      responding. Scheduling a tech.
                    isInternal: true
                sites:
                  - id: ovaid-2b6d4d8e-9f1a-4b2c-8d4e-5f6011223344
                    address: 1200 Barton Springs Rd, Suite 300, Austin, TX 78704
                    serviceLevel: Priority
                    associatedConversations:
                      - friendlyId: C-10311
                        subject: Front door reader not unlocking
                        status: solved
                        statusLastUpdatedAt: '2026-09-02T18:30:00.000Z'
                        issue: Badge reader at the front door rejected valid badges.
                        resolution: Replaced the reader power supply.
                        shortSummary: Front door reader fixed by replacing its power supply.
        '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:
    ConversationContext:
      type: object
      properties:
        subject:
          type: string
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
        status:
          type: string
        type:
          type: string
        urgency:
          type: string
        labels:
          type: array
          items:
            type: string
        requester:
          type: string
        participants:
          type: object
          properties:
            agents:
              type: array
              items:
                type: string
            clients:
              type: array
              items:
                $ref: '#/components/schemas/ConversationContextClient'
        sites:
          type: array
          items:
            $ref: '#/components/schemas/ConversationContextSite'
    ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - error
    Message:
      type: object
      properties:
        author:
          type: string
        role:
          type: string
        createdAt:
          type: string
        text:
          type: string
        rawBody:
          type: string
        isInternal:
          type: boolean
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/Attachment'
        inReplyTo:
          type: object
          properties:
            author:
              type: string
            createdAt:
              type: string
          required:
            - author
            - createdAt
          description: 'Set on a reply: the author and time of the message it replies to.'
        isThreadResolution:
          type: boolean
          enum:
            - true
          description: Set on the reply that resolved its thread.
      required:
        - author
        - role
        - createdAt
        - text
        - isInternal
    ConversationContextClient:
      type: object
      properties:
        name:
          type: string
        primaryPhoneNumber:
          type: string
        primaryEmail:
          type: string
      required:
        - name
    ConversationContextSite:
      type: object
      properties:
        id:
          type: string
        address:
          type: string
        serviceLevel:
          type: string
        associatedConversations:
          type: array
          items:
            $ref: '#/components/schemas/AssociatedConversationInContext'
      required:
        - address
        - serviceLevel
    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
    Attachment:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        content:
          type: string
        transcriptionId:
          type: string
      required:
        - type
        - title
        - content
    AssociatedConversationInContext:
      type: object
      properties:
        friendlyId:
          type: string
        subject:
          type: string
        status:
          type: string
        statusLastUpdatedAt:
          type:
            - string
            - 'null'
        issue:
          type:
            - string
            - 'null'
        resolution:
          type:
            - string
            - 'null'
        shortSummary:
          type:
            - string
            - 'null'
      required:
        - friendlyId
        - subject
        - status
        - statusLastUpdatedAt
        - issue
        - resolution
        - shortSummary
  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.