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

# Get Interaction Detail

> Get full interaction detail including the conversation transcript, participant info, and metadata. Returns all message types including tool calls and observations for complete diagnostic visibility.

Available on all plans.



## OpenAPI

````yaml https://www.greenflash.ai/api/openapi get /interactions/{interactionId}
openapi: 3.1.0
info:
  title: Greenflash API Reference
  version: 1.0.0
  description: >-
    Greenflash endpoints for capturing interactions, managing prompts, and
    identifying users.
servers:
  - url: https://www.greenflash.ai/api/v1
    description: Greenflash API v1
security: []
tags:
  - name: Interactions
    description: Capture interactions between users and AI
  - name: Business Events
    description: Capture business events
  - name: Analytics
    description: Understand chat and agentic interactions analyses
  - name: Inbox
    description: Review flagged conversations
  - name: Segments
    description: Manage user segments
  - name: Prompts
    description: Manage prompts
  - name: Chat
    description: Stream chat and agentic conversations
  - name: Models
    description: Manage AI models
  - name: Products
    description: Manage products
  - name: Users
    description: Manage users
  - name: Organizations
    description: Manage organizations
paths:
  /interactions/{interactionId}:
    get:
      tags:
        - Interactions
      summary: Get Interaction Detail
      description: >-
        Get full interaction detail including the conversation transcript,
        participant info, and metadata. Returns all message types including tool
        calls and observations for complete diagnostic visibility.


        Available on all plans.
      parameters:
        - schema:
            type: string
            format: uuid
            description: The interaction ID to retrieve
          required: true
          description: The interaction ID to retrieve
          name: interactionId
          in: path
      responses:
        '200':
          description: Interaction detail with messages
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InteractionDetail'
        '404':
          description: Interaction not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Whether the API call was successful (false for errors).
                  error:
                    type: string
                    description: Error message describing what went wrong.
                description: Error response for get interaction detail operations.
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Whether the API call was successful (false for errors).
                  error:
                    type: string
                    description: Error message describing what went wrong.
                description: Error response for get interaction detail operations.
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Greenflash from 'greenflash';


            const client = new Greenflash({
              apiKey: process.env['GREENFLASH_API_KEY'], // This is the default and can be omitted
            });


            const interactionDetail = await
            client.interactions.get('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');


            console.log(interactionDetail.id);
        - lang: Python
          source: |-
            import os
            from greenflash import Greenflash

            client = Greenflash(
                api_key=os.environ.get("GREENFLASH_API_KEY"),  # This is the default and can be omitted
            )
            interaction_detail = client.interactions.get(
                "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            )
            print(interaction_detail.id)
components:
  schemas:
    InteractionDetail:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: The interaction ID.
        externalId:
          type:
            - string
            - 'null'
          description: Your external identifier for the interaction.
        participantId:
          type: string
          format: uuid
          description: The user who participated in this interaction.
        externalParticipantId:
          type:
            - string
            - 'null'
          description: Your external identifier for the participant.
        organizationId:
          type:
            - string
            - 'null'
          format: uuid
          description: The organization ID.
        organizationExternalId:
          type:
            - string
            - 'null'
          description: Your external identifier for the organization.
        productId:
          type: string
          format: uuid
          description: The product ID.
        versionId:
          type: string
          format: uuid
          description: The version ID.
        model:
          type:
            - string
            - 'null'
          description: The AI model used.
        properties:
          type: object
          additionalProperties: {}
          description: Custom interaction properties.
        rating:
          type:
            - number
            - 'null'
          description: User rating for this interaction.
        ratingMin:
          type:
            - number
            - 'null'
          description: Minimum rating value.
        ratingMax:
          type:
            - number
            - 'null'
          description: Maximum rating value.
        feedback:
          type:
            - string
            - 'null'
          description: User feedback text.
        createdAt:
          type: string
          format: date-time
          description: When the interaction was created.
        updatedAt:
          type: string
          format: date-time
          description: When the interaction was last updated.
        participant:
          type:
            - object
            - 'null'
          properties:
            id:
              type: string
              format: uuid
              description: The participant ID.
            externalId:
              type:
                - string
                - 'null'
              description: Your external identifier for the participant.
            name:
              type:
                - string
                - 'null'
              description: The participant name.
            email:
              type:
                - string
                - 'null'
              description: The participant email.
          required:
            - id
            - externalId
            - name
            - email
          description: Resolved participant details.
        messages:
          type: array
          items:
            type: object
            properties:
              role:
                type: string
                enum:
                  - user
                  - assistant
                  - system
                  - tool_call
                  - observation
                  - final_response
                description: The message role.
              content:
                type: string
                description: The message content.
              timestamp:
                type:
                  - string
                  - 'null'
                format: date-time
                description: When the message was sent.
            required:
              - role
              - content
              - timestamp
          description: Conversation messages in chronological order.
      required:
        - id
        - externalId
        - participantId
        - externalParticipantId
        - organizationId
        - organizationExternalId
        - productId
        - versionId
        - model
        - rating
        - ratingMin
        - ratingMax
        - feedback
        - createdAt
        - updatedAt
        - participant
        - messages
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````