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

# Get a collected answer

> Integrate with the version 1 visibility and analytics endpoints.

Required scopes: `read`.


## OpenAPI

````yaml GET /api/v1/prompt-runs/{id}
openapi: 3.1.1
info:
  title: chatobserver public API
  version: '2026-09-09'
  description: >-
    Track AI visibility, manage prompts, inspect collected answers and
    citations, and integrate workspace data with your own tools. Visibility
    endpoints use workspace API keys. Data endpoints use scoped service-account
    keys; spreadsheet client endpoints use authorised client sessions. See the
    authentication guide for each credential type.
  contact:
    name: chatobserver support
    url: https://chatobserver.com/contact
    email: support@chatobserver.com
servers:
  - url: https://app.chatobserver.com
    description: Production API
security:
  - WorkspaceKey: []
  - BearerKey: []
tags:
  - name: Workspace
    description: Validate access and list the workspace project and available platforms.
  - name: Prompts
    description: Create, schedule, organise, activate and retrieve tracked prompts.
  - name: Answers
    description: Retrieve collected AI answers, their analysis and visibility trends.
  - name: Brands
    description: Manage brands and compare their visibility in AI answers.
  - name: Sources and citations
    description: Analyse cited domains, pages and ownership across answers.
  - name: Visitor analytics
    description: Read website visitor and crawler analytics for the workspace.
  - name: Content opportunities
    description: Retrieve content-gap findings and recommendations for tracked prompts.
  - name: Usage
    description: Read workspace consumption and allowance summaries.
  - name: Data connections
    description: Discover authorised connections, source accounts and connector catalogues.
  - name: Data queries
    description: >-
      Create versioned queries, publish definitions and inspect integration
      contracts.
  - name: Data operations
    description: >-
      Execute, validate, cancel and inspect operations and page through result
      rows.
  - name: Data delivery
    description: Manage schedules, transfers, destinations and import workflows.
  - name: Data definitions
    description: Manage reusable definitions and their immutable versions.
  - name: Data webhooks
    description: >-
      Configure event delivery, inspect deliveries, replay events and rotate
      secrets.
  - name: Client authorisation
    description: Authorise spreadsheet clients using a user-approved challenge exchange.
  - name: Spreadsheet clients
    description: >-
      Access document-bound client sessions, queries, schedules, bindings and
      write claims.
  - name: AI visibility audits
    description: Create website visibility audits and retrieve their report links.
  - name: Version 1
    description: Integrate with the version 1 visibility and analytics endpoints.
paths:
  /api/v1/prompt-runs/{id}:
    get:
      tags:
        - Version 1
      summary: Get a collected answer
      description: >-
        Integrate with the version 1 visibility and analytics endpoints.
        Required scopes: `read`.
      operationId: getV1PromptRunsId
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Resource identifier returned by the API.
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getV1PromptRunsIdResponse200'
        '400':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getV1PromptRunsIdResponse400'
        '404':
          description: Successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getV1PromptRunsIdResponse404'
        default:
          description: >-
            Request failed. Inspect the error code and request identifier; retry
            only when the failure is retryable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    getV1PromptRunsIdResponse200:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: number
            promptId:
              anyOf:
                - type: 'null'
                - type: number
            promptTitle:
              type: string
            status:
              type: string
            trigger:
              type: string
            startedAt:
              anyOf:
                - type: 'null'
                - type: string
            completedAt:
              anyOf:
                - type: 'null'
                - type: string
            analysisStatus:
              type: string
            analysisSummary: {}
            analysisCompletedAt:
              anyOf:
                - type: 'null'
                - type: string
            errorReason:
              anyOf:
                - type: 'null'
                - type: string
            createdAt:
              type: string
            updatedAt:
              type: string
            sources:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: number
                  kind:
                    type: string
                  position:
                    anyOf:
                      - type: 'null'
                      - type: number
                  url:
                    type: string
                  rootDomain:
                    anyOf:
                      - type: 'null'
                      - type: string
                  path:
                    anyOf:
                      - type: 'null'
                      - type: string
                  title:
                    anyOf:
                      - type: 'null'
                      - type: string
                  anchorText:
                    anyOf:
                      - type: 'null'
                      - type: string
                  section:
                    anyOf:
                      - type: 'null'
                      - type: string
                  description:
                    anyOf:
                      - type: 'null'
                      - type: string
                  createdAt:
                    anyOf:
                      - type: 'null'
                      - type: string
                required:
                  - id
                  - kind
                  - position
                  - url
                  - rootDomain
                  - path
                  - title
                  - anchorText
                  - section
                  - description
                  - createdAt
            commerce:
              anyOf:
                - type: 'null'
                - type: object
                  properties:
                    extractionStatus:
                      enum:
                        - complete
                        - invalid_payload
                        - unsupported
                      type: string
                    shoppingProductCount:
                      type: number
                    sponsoredAdCount:
                      type: number
                    observedAt:
                      type: string
                    placements:
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: number
                          kind:
                            enum:
                              - shopping_product
                              - sponsored_ad
                            type: string
                          position:
                            type: number
                          title:
                            anyOf:
                              - type: 'null'
                              - type: string
                          description:
                            anyOf:
                              - type: 'null'
                              - type: string
                          targetUrl:
                            anyOf:
                              - type: 'null'
                              - type: string
                          targetDomain:
                            anyOf:
                              - type: 'null'
                              - type: string
                          price:
                            anyOf:
                              - type: 'null'
                              - type: number
                          priceDisplay:
                            anyOf:
                              - type: 'null'
                              - type: string
                          currency:
                            anyOf:
                              - type: 'null'
                              - type: string
                          rating:
                            anyOf:
                              - type: 'null'
                              - type: number
                          advertiserName:
                            anyOf:
                              - type: 'null'
                              - type: string
                          advertiserUrl:
                            anyOf:
                              - type: 'null'
                              - type: string
                          advertiserDomain:
                            anyOf:
                              - type: 'null'
                              - type: string
                          matchKind:
                            enum:
                              - unmatched
                              - workspace_brand
                              - competitor
                              - catalog_product
                            type: string
                          isOwnBrand:
                            anyOf:
                              - type: boolean
                                const: false
                              - type: boolean
                                const: true
                        required:
                          - id
                          - kind
                          - position
                          - title
                          - description
                          - targetUrl
                          - targetDomain
                          - price
                          - priceDisplay
                          - currency
                          - rating
                          - advertiserName
                          - advertiserUrl
                          - advertiserDomain
                          - matchKind
                          - isOwnBrand
                  required:
                    - extractionStatus
                    - shoppingProductCount
                    - sponsoredAdCount
                    - observedAt
                    - placements
          required:
            - id
            - promptId
            - promptTitle
            - status
            - trigger
            - startedAt
            - completedAt
            - analysisStatus
            - analysisSummary
            - analysisCompletedAt
            - errorReason
            - createdAt
            - updatedAt
            - sources
            - commerce
      required:
        - data
    getV1PromptRunsIdResponse400:
      type: object
      properties:
        error:
          type: string
      required:
        - error
    getV1PromptRunsIdResponse404:
      type: object
      properties:
        error:
          type: string
      required:
        - error
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          required:
            - code
            - message
        requestId:
          type: string
      required:
        - error
        - requestId
  securitySchemes:
    WorkspaceKey:
      type: apiKey
      in: header
      name: x-chatobserver-key
      description: >-
        A workspace API key. Data endpoints require a service-account key with
        the specified scopes.
    BearerKey:
      type: http
      scheme: bearer
      description: The workspace or service-account API key as a bearer token.

````