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

# List Verified Questions

> List the workspace's verified questions, last edited first unless sort says otherwise. Filter by search, agentContext (all, on, off), ids or version; each row says whether it is in agent context and how many test cases use it, and counts gives the totals per agentContext filter.



## OpenAPI

````yaml get /v2/api/projects/{projectId}/workspaces/{workspaceId}/verified-questions
openapi: 3.1.0
info:
  title: Upsolve API
  version: 1.5.0
servers:
  - url: https://api.upsolve.ai
security: []
tags: []
paths:
  /v2/api/projects/{projectId}/workspaces/{workspaceId}/verified-questions:
    get:
      summary: List the workspace's verified questions, last edi…
      description: >-
        List the workspace's verified questions, last edited first unless sort
        says otherwise. Filter by search, agentContext (all, on, off), ids or
        version; each row says whether it is in agent context and how many test
        cases use it, and counts gives the totals per agentContext filter.
      operationId: GetV2ApiProjectsProjectIdWorkspacesWorkspaceIdVerifiedQuestions
      parameters:
        - name: apiKey
          in: query
          required: false
          description: >-
            Upsolve API key, generated under Account → Developer settings in the
            Upsolve Hub. Keys are user-scoped: pass organizationId alongside the
            key to select which org to act on.
          schema:
            type: string
            minLength: 1
            description: >-
              Upsolve API key, generated under Account → Developer settings in
              the Upsolve Hub. Keys are user-scoped: pass organizationId
              alongside the key to select which org to act on.
            examples:
              - up_embed_************
          examples:
            example1:
              value: up_embed_************
        - name: organizationId
          in: query
          required: false
          description: >-
            Your Upsolve organization's UUID — the org that owns the API key and
            project. This is NOT a project organization: do not pass a value
            registered via /projects/register-organization, and do not pass an
            `externalId` (only `projectOrganizationId` accepts those). Omit it
            when using an org-bound API key — the org is read from the key and
            any value sent here is ignored. Required only for user-scoped API
            keys (created under Account → Developer settings) and for the
            Supabase JWT path, where the org is ambiguous and membership is
            verified against it.
          schema:
            description: >-
              Your Upsolve organization's UUID — the org that owns the API key
              and project. This is NOT a project organization: do not pass a
              value registered via /projects/register-organization, and do not
              pass an `externalId` (only `projectOrganizationId` accepts those).
              Omit it when using an org-bound API key — the org is read from the
              key and any value sent here is ignored. Required only for
              user-scoped API keys (created under Account → Developer settings)
              and for the Supabase JWT path, where the org is ambiguous and
              membership is verified against it.
            examples:
              - 123e4567-e89b-12d3-a456-426614174000
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
          examples:
            example1:
              value: 123e4567-e89b-12d3-a456-426614174000
        - name: projectId
          in: path
          required: true
          description: The project the workspace belongs to.
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
            description: The project the workspace belongs to.
        - name: workspaceId
          in: path
          required: true
          description: The workspace.
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
            description: The workspace.
        - name: ids
          in: query
          required: false
          description: >-
            Only these verified questions, each named by its id (key) or by the
            content id of the version the source holds (comma-separated on a
            GET).
          schema:
            description: >-
              Only these verified questions, each named by its id (key) or by
              the content id of the version the source holds (comma-separated on
              a GET).
            maxItems: 1000
            items:
              type: string
              format: uuid
              pattern: >-
                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
            format: array (preprocessed)
        - name: page
          in: query
          required: false
          description: 1-based page.
          schema:
            description: 1-based page.
            type: integer
            minimum: 1
            maximum: 9007199254740991
        - name: pageSize
          in: query
          required: false
          description: Rows per page (max 100).
          schema:
            description: Rows per page (max 100).
            type: integer
            minimum: 1
            maximum: 9007199254740991
        - name: search
          in: query
          required: false
          description: Matches the question, its SQL or its chart definition.
          schema:
            description: Matches the question, its SQL or its chart definition.
            type: string
        - name: agentContext
          in: query
          required: false
          description: >-
            all (default): every question. on: only those in agent context. off:
            only those used by tests alone.
          schema:
            description: >-
              all (default): every question. on: only those in agent context.
              off: only those used by tests alone.
            type: string
            enum:
              - all
              - 'on'
              - 'off'
        - name: exampleQuestion
          in: query
          required: false
          description: >-
            true: only the questions marked Use as example question. Omitted or
            false: no such filter.
          schema:
            description: >-
              true: only the questions marked Use as example question. Omitted
              or false: no such filter.
            anyOf:
              - type: boolean
              - type: string
                enum:
                  - 'true'
                  - 'false'
        - name: sort
          in: query
          required: false
          description: >-
            updated (default): most recently edited first. newest: most recently
            created first. oldest: earliest created first.
          schema:
            description: >-
              updated (default): most recently edited first. newest: most
              recently created first. oldest: earliest created first.
            type: string
            enum:
              - updated
              - newest
              - oldest
        - name: version
          in: query
          required: false
          description: >-
            draft (default): the questions the working copy holds, each at the
            version the draft serves. A number: the questions that published
            workspace version pinned, each at the version it pinned. Also
            decides useAsAgentContext.
          schema:
            description: >-
              draft (default): the questions the working copy holds, each at the
              version the draft serves. A number: the questions that published
              workspace version pinned, each at the version it pinned. Also
              decides useAsAgentContext.
            anyOf:
              - type: string
                const: draft
              - type: integer
                minimum: 1
                maximum: 9007199254740991
      responses:
        '200':
          description: >-
            GET
            /v2/api/projects/:projectId/workspaces/:workspaceId/verified-questions
            Positive response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: success
                  data:
                    type: object
                    properties:
                      verifiedQuestions:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: >-
                                The verified question's id: its key, stable
                                across versions.
                            versionId:
                              type: string
                              description: The content id of the version shown.
                            version:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              description: >-
                                That version's number, counted per question from
                                1.
                            published:
                              type: boolean
                              description: >-
                                Whether this version has been published. A
                                published version never changes: an edit saves a
                                new one.
                            hasUnpublishedChanges:
                              type: boolean
                              description: >-
                                Whether the draft's version differs from what
                                was last published.
                            lockVersion:
                              type:
                                - integer
                                - 'null'
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                            question:
                              type: string
                              description: The question the agent is asked.
                            sql_query:
                              type: string
                              description: >-
                                The full reference SQL that verifiably answers
                                it.
                            referenceSummary:
                              type: string
                              description: >-
                                The reference SQL on one line, shortened with an
                                ellipsis: what a table cell shows.
                            chart_definition:
                              type: string
                              description: >-
                                The reference chart definition, or an empty
                                string.
                            useAsAgentContext:
                              type: boolean
                              description: >-
                                Whether the agent sees this version as a worked
                                example, in the draft or the workspace version
                                asked for. False: used only by tests.
                            useAsExampleQuestion:
                              type: boolean
                              description: >-
                                Whether this version is offered as a starter
                                question (Use as example question).
                            usedInCases:
                              type: integer
                              minimum: -9007199254740991
                              maximum: 9007199254740991
                              description: >-
                                How many of the draft's test cases have a step
                                that asks it.
                            workspace_id:
                              type: string
                              description: The workspace it belongs to.
                            organization_id:
                              type: string
                              description: The organization it belongs to.
                            preview:
                              type: array
                              items: {}
                              description: >-
                                Sampled rows stored with the SQL, for the chart
                                preview.
                            createdAt:
                              type: string
                              description: When the question was created (ISO 8601).
                            updatedAt:
                              type: string
                              description: When this version was last written (ISO 8601).
                          required:
                            - id
                            - versionId
                            - version
                            - published
                            - hasUnpublishedChanges
                            - lockVersion
                            - question
                            - sql_query
                            - referenceSummary
                            - chart_definition
                            - useAsAgentContext
                            - useAsExampleQuestion
                            - usedInCases
                            - workspace_id
                            - organization_id
                            - preview
                            - createdAt
                            - updatedAt
                          additionalProperties: {}
                          description: One version of a verified question.
                        description: One page, in the order sort asked for.
                      counts:
                        type: object
                        properties:
                          all:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                            description: Questions the search matches.
                          inAgentContext:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                            description: Of those, how many are in agent context.
                          testOnly:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                            description: Of those, how many are used by tests alone.
                        required:
                          - all
                          - inAgentContext
                          - testOnly
                        additionalProperties: false
                        description: >-
                          Counts for the agent-context filter, with the search
                          applied and the filter itself not.
                      totalCount:
                        type: number
                        description: Questions matching every filter.
                      totalPages:
                        type: number
                        description: Pages at this page size.
                      currentPage:
                        type: number
                        description: The page returned.
                      pageSize:
                        type: number
                        description: Rows per page.
                    required:
                      - verifiedQuestions
                      - counts
                      - totalCount
                      - totalPages
                      - currentPage
                      - pageSize
                    additionalProperties: false
                required:
                  - status
                  - data
                additionalProperties: false
        '400':
          description: >-
            GET
            /v2/api/projects/:projectId/workspaces/:workspaceId/verified-questions
            Negative response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    const: error
                  error:
                    type: object
                    properties:
                      message:
                        type: string
                      code:
                        type: string
                      details:
                        type: object
                        propertyNames:
                          type: string
                        additionalProperties: {}
                    required:
                      - message
                    additionalProperties: false
                required:
                  - status
                  - error
                additionalProperties: false
      security:
        - APIKEY_2: []
components:
  securitySchemes:
    APIKEY_2:
      type: apiKey
      in: query
      name: apiKey

````

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