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

# Get a retained AI response

> Reads one execution as evidence, including captured sponsored ads. Get executionId from the recent responses listing. This is an entity detail read, not a measurement query. Use visibility summary for advertising rates. retained=false means answer retention expired.



## OpenAPI

````yaml /openapi.json get /projects/{projectId}/visibility/responses/{executionId}
openapi: 3.1.0
info:
  title: DevTune API
  version: 2.0.0
  description: >-
    API for programmatic access to your AI visibility data, webhook
    subscriptions, and automation workflows. Use this API to integrate DevTune
    data into CI/CD pipelines, BI tools, AI agents, and operational systems.
servers:
  - url: https://devtune.ai/api/v2
    description: Production
security:
  - bearerAuth: []
paths:
  /projects/{projectId}/visibility/responses/{executionId}:
    get:
      summary: Get a retained AI response
      description: >-
        Reads one execution as evidence, including captured sponsored ads. Get
        executionId from the recent responses listing. This is an entity detail
        read, not a measurement query. Use visibility summary for advertising
        rates. retained=false means answer retention expired.
      operationId: getVisibilityResponse
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: executionId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Retained response evidence
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      executionId:
                        type: string
                        format: uuid
                      promptId:
                        type: string
                        format: uuid
                      platform:
                        type: string
                      answerText:
                        type:
                          - string
                          - 'null'
                      completedAt:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      retained:
                        type: boolean
                      adCaptureMeasured:
                        type: boolean
                        description: >-
                          Whether this successful capture included explicit
                          supported ad data. False is unmeasured, not ad-free.
                      ads:
                        type: array
                        items:
                          type: object
                          properties:
                            title:
                              type: string
                            description:
                              type: string
                            domain:
                              type: string
                            name:
                              type: string
                            body:
                              type: string
                            url:
                              type: string
        '400':
          description: Invalid execution ID
        '404':
          description: Response not found in this project
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key with dtk_live_ prefix. Obtain it from API Keys in the account
        sidebar. New keys start with all supported scopes selected for the
        chosen project, and you can narrow them to specific read/write scopes as
        needed.

````