> ## 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, 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/conversation/{id}/context:
    get:
      tags:
        - conversation
      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
      responses:
        '200':
          description: Conversation context
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationContext'
        '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'
      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.

````