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

# Answer Research

> Answer from accessible indexed research with validated source citations.



## OpenAPI

````yaml /api-reference/openapi.json post /api/public/v1/research/answer/
openapi: 3.1.0
info:
  title: User Intuition Public API
  description: >-
    ## Public Integration API


    Programmatic access to User Intuition for external integrators: manage
    studies, participants, interviews, reports, and panels.


    ### Authentication


    All endpoints require a Bearer token — either an API key (prefixed `ui_sk_`,
    created in the dashboard) or a dashboard JWT:


    ```

    Authorization: Bearer <ui_sk_… or JWT>

    ```


    ### Base URLs


    - **Production:** `https://api.userintuition.ai`

    - **Staging:** `https://staging.userintuition.ai`


    ### Support


    For API support, contact support@userintuition.ai
  version: 1.0.0
  contact:
    name: User Intuition Support
    email: support@userintuition.ai
servers:
  - url: https://api.userintuition.ai
    description: Production
  - url: https://staging.userintuition.ai
    description: Staging
security:
  - BearerAuth: []
paths:
  /api/public/v1/research/answer/:
    post:
      tags:
        - public-research-search
      summary: Answer Research
      description: Answer from accessible indexed research with validated source citations.
      operationId: answerResearch
      parameters:
        - name: X-UI-Organization-ID
          in: header
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 128
              - type: 'null'
            description: >-
              Choose an organization you belong to for scoped reads, writes, and
              billing. Users can belong to multiple organizations. Platform
              administrators may select any organization in this app.
            title: X-Ui-Organization-Id
          description: >-
            Choose an organization you belong to for scoped reads, writes, and
            billing. Users can belong to multiple organizations. Platform
            administrators may select any organization in this app.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicResearchAnswerRequest'
            examples:
              Answer from study evidence:
                summary: Ask a question across indexed studies
                description: >-
                  Returns generated statements with numbered citations to
                  accessible canonical research records.
                value:
                  question: What concerns did participants raise about pricing?
                  filters:
                    study_ids:
                      - 11111111-2222-3333-4444-555555555555
                    content_types:
                      - study_finding
                      - participant_response
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicResearchAnswerResponse'
        '422':
          description: Public API error. X-Request-ID matches error.request_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorResponse'
        default:
          description: Public API error. X-Request-ID matches error.request_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiErrorResponse'
components:
  schemas:
    PublicResearchAnswerRequest:
      properties:
        question:
          type: string
          maxLength: 2000
          minLength: 1
          title: Question
        filters:
          $ref: '#/components/schemas/PublicResearchSearchFilters'
      type: object
      required:
        - question
        - filters
      title: PublicResearchAnswerRequest
    PublicResearchAnswerResponse:
      properties:
        answer:
          type: string
          title: Answer
        citations:
          items:
            $ref: '#/components/schemas/PublicResearchAnswerCitation'
          type: array
          title: Citations
        insufficient_evidence:
          type: boolean
          title: Insufficient Evidence
        studies:
          items:
            $ref: '#/components/schemas/PublicResearchAnswerStudyStatus'
          type: array
          title: Studies
      type: object
      required:
        - answer
        - insufficient_evidence
      title: PublicResearchAnswerResponse
    PublicApiErrorResponse:
      type: object
      required:
        - detail
        - error
      properties:
        detail:
          description: Legacy error detail; may be a string, list, or object.
        error:
          $ref: '#/components/schemas/PublicApiError'
    PublicResearchSearchFilters:
      properties:
        study_ids:
          items:
            type: string
          type: array
          maxItems: 20
          minItems: 1
          title: Study Ids
        content_types:
          anyOf:
            - items:
                type: string
                enum:
                  - study_plan
                  - study_finding
                  - participant_profile
                  - participant_response
                  - recommended_next_step
              type: array
            - type: 'null'
          title: Content Types
        research_date_from:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Research Date From
          description: >-
            Include research whose interview period overlaps this UTC date or
            later; legacy undated records are excluded
        research_date_to:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Research Date To
          description: >-
            Include research whose interview period overlaps this UTC date or
            earlier; legacy undated records are excluded
      type: object
      required:
        - study_ids
      title: PublicResearchSearchFilters
    PublicResearchAnswerCitation:
      properties:
        number:
          type: integer
          title: Number
        content_id:
          type: string
          title: Content Id
        study_id:
          type: string
          title: Study Id
        content_type:
          type: string
          enum:
            - study_plan
            - study_finding
            - participant_profile
            - participant_response
            - recommended_next_step
          title: Content Type
        report_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Report Id
        interview_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Interview Id
      type: object
      required:
        - number
        - content_id
        - study_id
        - content_type
      title: PublicResearchAnswerCitation
    PublicResearchAnswerStudyStatus:
      properties:
        study_id:
          type: string
          title: Study Id
        index_status:
          type: string
          enum:
            - ready
            - updating
            - not_indexed
          title: Index Status
        latest_report_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Latest Report Id
        indexed_report_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Indexed Report Id
      type: object
      required:
        - study_id
        - index_status
      title: PublicResearchAnswerStudyStatus
    PublicApiError:
      type: object
      required:
        - code
        - message
        - field
        - request_id
        - outcome
        - recovery_action
        - docs_url
      properties:
        code:
          type: string
        message:
          type: string
        field:
          anyOf:
            - type: string
            - type: 'null'
        request_id:
          type: string
          format: uuid
        outcome:
          type: string
          enum:
            - not_started
            - failed
            - unknown
        recovery_action:
          type: string
        docs_url:
          type: string
          format: uri
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Authenticate with an API key (prefixed `ui_sk_`) or a JWT token from the
        dashboard.

````

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