> ## 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 Agent Picks findings

> Read one test's Pick findings: lost picks no re-test can prove, which stay findings rather than Actions. Without test_id, the setup's latest completed paid test: full, Quick, Custom or a scenario re-run. Action re-tests and self-runs are not read. A finding is losing runs that never showed the own tool and never searched or fetched a page themselves, by what they did instead: rival_no_search, kept_incumbent or built_own. Package manager traffic does not count as a fetch. Runs that searched are Actions, never findings. Each finding sums its scenarios, with up to ten run_ids, its state (open or dismissed, per setup) and its copy line. A finding the setup's previous full test showed and this test doesn't follows with in_latest_test false; it stays listed while the full test before this one showed it, Quick tests in between included. A test completed before findings were recorded returns findings_extracted false and no findings until it is re-judged. A test_id that isn't the project's returns 404; any other parameter is refused with 400. The MCP tool devtune_get_agent_picks_findings returns the same fields. Requires Agent Picks. Requires the `visibility.read` scope.



## OpenAPI

````yaml /openapi.json get /projects/{projectId}/agent-picks/findings
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: []
tags:
  - name: Connection and usage
    description: >-
      The project a credential is bound to, its scopes and features, usage, and
      code-mode receipts.
  - name: Setup
    description: >-
      Brands, domains, brand terms, platforms, content sources and pausing a
      project.
  - name: Prompts and topics
    description: Tracked prompts, their topics, and prompt-set analysis.
  - name: Visibility
    description: >-
      Visibility metrics, AI answers, sentiment, competitive position and the
      project timeline.
  - name: Citations
    description: >-
      Citation statistics, the most-cited domains and pages, and cited lookalike
      sites.
  - name: Positioning
    description: How well AI answers match your positioning statements.
  - name: Accuracy
    description: Claims AI answers make about your brand, and contradictions.
  - name: Content gaps
    description: Topics, sources and brands where competitors are cited.
  - name: AI Traffic
    description: >-
      AI referrals, answer fetches, crawls, 404 Demand, Direct lift and Search
      Console totals.
  - name: Adoption
    description: npm downloads and GitHub stars for project domains.
  - name: Audit and pages
    description: Audit findings, Google eligibility, page metrics, and locked pages.
  - name: Actions
    description: Suggested and accepted work, briefs, drafts and pull requests.
  - name: Results
    description: Content changes, measured results and what works.
  - name: Agents
    description: Managed agents, their schedules and runs.
  - name: Dex
    description: Private Dex conversations, specialist handoffs and memory.
  - name: Agent Picks
    description: Agent Picks setup, tests, schedules and results.
  - name: Library and Knowledge
    description: Library items and the Knowledge Profile.
  - name: Webhooks
    description: Webhook subscriptions and signing secrets.
  - name: Agent registration
    description: Setup drafts for an unclaimed agent registration.
paths:
  /projects/{projectId}/agent-picks/findings:
    get:
      tags:
        - Agent Picks
      summary: Get Agent Picks findings
      description: >-
        Read one test's Pick findings: lost picks no re-test can prove, which
        stay findings rather than Actions. Without test_id, the setup's latest
        completed paid test: full, Quick, Custom or a scenario re-run. Action
        re-tests and self-runs are not read. A finding is losing runs that never
        showed the own tool and never searched or fetched a page themselves, by
        what they did instead: rival_no_search, kept_incumbent or built_own.
        Package manager traffic does not count as a fetch. Runs that searched
        are Actions, never findings. Each finding sums its scenarios, with up to
        ten run_ids, its state (open or dismissed, per setup) and its copy line.
        A finding the setup's previous full test showed and this test doesn't
        follows with in_latest_test false; it stays listed while the full test
        before this one showed it, Quick tests in between included. A test
        completed before findings were recorded returns findings_extracted false
        and no findings until it is re-judged. A test_id that isn't the
        project's returns 404; any other parameter is refused with 400. The MCP
        tool devtune_get_agent_picks_findings returns the same fields. Requires
        Agent Picks. Requires the `visibility.read` scope.
      operationId: getAgentPicksFindings
      parameters:
        - name: projectId
          in: path
          required: true
          description: >-
            The project the credential is bound to. Read it from GET
            /connection.
          schema:
            type: string
            format: uuid
        - name: test_id
          in: query
          required: false
          schema:
            type: string
            format: uuid
          description: Read this test's findings instead of the setup's latest test's.
        - name: setup
          in: query
          required: false
          schema:
            type: string
            minLength: 1
            maxLength: 200
          description: >-
            The Agent Picks setup to use: its id or its category slug. Optional
            while the project has one setup. With several, omitting it is
            refused with 400 and reason agent_picks_setup_required, and a setup
            the project does not have with 404 and reason
            agent_picks_setup_not_found; both list the project’s setups in
            details.setups (id, category_slug, category_name). The response
            echoes the setup used as setup.
      responses:
        '200':
          description: Agent Picks findings
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/AgentPicksFindingsData'
                  meta:
                    $ref: '#/components/schemas/Meta'
                required:
                  - data
                  - meta
        '400':
          $ref: '#/components/responses/BadRequestError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '403':
          $ref: '#/components/responses/ForbiddenError'
        '404':
          $ref: '#/components/responses/NotFoundError'
        '429':
          $ref: '#/components/responses/RateLimitExceededError'
components:
  schemas:
    AgentPicksFindingsData:
      type: object
      required:
        - setup
        - test
        - previous_test_id
        - findings_extracted
        - findings
      properties:
        setup:
          type:
            - object
            - 'null'
          required:
            - id
            - category_slug
          properties:
            id:
              type: string
              format: uuid
            category_slug:
              type:
                - string
                - 'null'
        test:
          type:
            - object
            - 'null'
          required:
            - id
            - origin
            - completed_at
          properties:
            id:
              type: string
              format: uuid
            origin:
              type: string
              enum:
                - managed
                - self_run
            completed_at:
              type:
                - string
                - 'null'
              format: date-time
        previous_test_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            The setup’s full test before this one, whose findings this one no
            longer shows are listed; null when there is none or this test’s
            findings were not extracted.
        findings_extracted:
          type: boolean
          description: >-
            False for a test completed before findings were recorded and not
            re-judged since: it has no findings and lists none as not seen.
        findings:
          type: array
          items:
            $ref: '#/components/schemas/AgentPicksFinding'
    Meta:
      type: object
      description: Sent beside data on every successful response that returns data.
      properties:
        timestamp:
          type: string
          format: date-time
          description: When the response was produced.
        projectId:
          type: string
          format: uuid
    AgentPicksFinding:
      type: object
      required:
        - finding_key
        - kind
        - subject
        - subject_name
        - in_latest_test
        - test_id
        - runs
        - observed_runs
        - unmeasured_runs
        - run_ids
        - scenarios
        - state
        - state_updated_at
        - state_updated_by
        - extractor_version
        - copy
      properties:
        finding_key:
          type: string
          pattern: ^[0-9a-f]{32}$
          description: Stable per setup, kind and subject; pass it to the finding update.
        kind:
          type: string
          enum:
            - rival_no_search
            - kept_incumbent
            - built_own
          description: >-
            What losing runs that never showed the own tool and never searched
            or fetched a page themselves did instead: chose a rival, kept the
            tool their test app already had, or built their own. Package manager
            traffic does not count as a fetch.
        subject:
          type: string
          description: The rival's or kept tool's tool_key, or built_its_own.
        subject_name:
          type:
            - string
            - 'null'
          description: The tool's name; null for built_own.
        in_latest_test:
          type: boolean
          description: >-
            False for a finding the previous full test showed and this one does
            not: Not seen in the latest test. It stays listed while the full
            test before this one showed it, Quick tests in between included.
            Only a test whose findings were extracted lists one.
        test_id:
          type: string
          format: uuid
          description: The test these counts come from.
        runs:
          type: integer
          minimum: 1
          description: Runs that show the finding.
        observed_runs:
          type: integer
          minimum: 1
          description: Losing runs in its scenarios whose trail could be observed.
        unmeasured_runs:
          type: integer
          minimum: 0
          description: >-
            Losing runs in its scenarios whose trail was too incomplete to tell;
            never counted as no.
        run_ids:
          type: array
          maxItems: 10
          items:
            type: string
            format: uuid
        scenarios:
          type: array
          items:
            $ref: '#/components/schemas/AgentPicksFindingScenario'
        state:
          type: string
          enum:
            - open
            - dismissed
        state_updated_at:
          type:
            - string
            - 'null'
          format: date-time
        state_updated_by:
          type:
            - string
            - 'null'
          format: uuid
        extractor_version:
          type: string
        copy:
          type: string
          description: The finding's line.
    Error:
      type: object
      properties:
        error:
          type: string
          description: >-
            Machine-readable error code, such as bad_request, unauthorized,
            forbidden, not_found, conflict, payment_required,
            rate_limit_exceeded or internal_error. Some endpoints return their
            own codes, listed in their descriptions.
        message:
          type: string
          description: >-
            What went wrong, for a person to read. Do not parse it; use error
            and reason.
        reason:
          type: string
          description: >-
            Why the request was refused, for an error with more than one cause,
            such as a refused content-draft start.
        details:
          type: object
          additionalProperties: true
          description: >-
            Machine-readable facts about the failure or refusal, such as
            retryable or shortfall_credits.
          properties:
            retryable:
              type: boolean
              description: >-
                Read this field before retrying. Present on every 5xx and 429
                response: true when another attempt may succeed, false for a
                permanent refusal even on a 5xx. Other refusals may also provide
                this field.
            retryAfterSeconds:
              type: integer
              minimum: 1
              description: >-
                Seconds to wait when retryable is true on a 429 or 503 response,
                also sent in Retry-After. Uses the provider retry time or
                limiter reset when available; otherwise 60 seconds for 429 and
                GitHub throttles or 30 seconds for other 503 responses. GitHub
                secondary limits wait at least 60 seconds.
        status:
          type: integer
          description: The HTTP status code, repeated in the body.
      required:
        - error
        - message
        - status
    AgentPicksFindingScenario:
      type: object
      required:
        - environment_id
        - environment_name
        - intent
        - agent
        - model
        - arm
        - runs
        - observed_runs
        - unmeasured_runs
        - run_ids
      properties:
        environment_id:
          type: string
          format: uuid
        environment_name:
          type: string
        intent:
          type: string
        agent:
          type: string
        model:
          type: string
        arm:
          type:
            - string
            - 'null'
          enum:
            - baseline
            - candidate
            - null
          description: The vendor-CI arm; null outside vendor-CI tests.
        runs:
          type: integer
          minimum: 1
        observed_runs:
          type: integer
          minimum: 1
        unmeasured_runs:
          type: integer
          minimum: 0
        run_ids:
          type: array
          maxItems: 10
          items:
            type: string
            format: uuid
  responses:
    BadRequestError:
      description: >-
        The request is invalid: a parameter or body field is missing, has the
        wrong type or is out of range, or a cursor doesn't match this list. The
        message says which; reason, where present, is listed in the endpoint's
        description. Fix the request before retrying, and restart a list without
        its cursor. See [Errors](/api-reference/errors).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnauthorizedError:
      description: >-
        The request has no valid credential: the Authorization header is missing
        or malformed, or the API key or OAuth token is invalid, expired or
        revoked. Send `Authorization: Bearer <API key>` with an active key, or
        sign in again to get a new OAuth token. See
        [Errors](/api-reference/errors).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ForbiddenError:
      description: >-
        The credential is valid but can't make this request. The message says
        which cause applies: the key or sign-in lacks the scope this endpoint
        requires (named in the message), it belongs to another project, the plan
        doesn't include API access or this feature, the project is paused (a
        paused project keeps only read scopes and setup.write), or the member a
        write acts as no longer has the role it needs. Read `GET
        /projects/{projectId}/connection` for the credential's current scopes
        and features, then use a key that has the scope, sign in again and
        approve it, or upgrade the plan. See [Errors](/api-reference/errors).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFoundError:
      description: >-
        The resource doesn't exist in this project, was deleted, or the
        credential can't see it. Check the IDs in the path, and that the
        projectId is the project the credential is bound to. See
        [Errors](/api-reference/errors).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimitExceededError:
      description: >-
        Too many requests from this credential in the current window. The
        request was refused before it took effect, so it is safe to retry: wait
        the seconds in Retry-After, then send it again. Endpoints that start
        agent runs have a stricter limit. See [Rate
        limits](/api-reference/rate-limits).
      headers:
        Retry-After:
          description: Seconds to wait before retrying a 429 or retryable 503 response.
          schema:
            type: integer
            minimum: 1
        X-RateLimit-Limit:
          $ref: '#/components/headers/X-RateLimit-Limit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/X-RateLimit-Remaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/X-RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  headers:
    X-RateLimit-Limit:
      description: Maximum requests per window
      schema:
        type: integer
    X-RateLimit-Remaining:
      description: Requests remaining in current window
      schema:
        type: integer
    X-RateLimit-Reset:
      description: Unix timestamp when the window resets
      schema:
        type: integer
  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.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.