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

# List Prompt Sentiment

> Get prompts with the average sentiment of their scored responses in the date range, the number of responses, and the brands those responses mention. Sorted by average sentiment, most negative first by default.



## OpenAPI

````yaml /v2/openapi.json get /prompt-sentiment
openapi: 3.0.0
info:
  title: Promptwatch API v2
  description: >-
    API v2 for customer integrations with Promptwatch monitoring platform. This
    version provides improved structure, additional endpoints, and enhanced
    functionality.
  version: 2.0.0
  contact:
    name: Promptwatch Support
    email: support@promptwatch.com
    url: https://promptwatch.com
  license:
    name: Commercial
    url: https://promptwatch.com/terms-and-conditions
servers:
  - url: https://server.promptwatch.com/api/v2
    description: Promptwatch API v2
security: []
tags:
  - name: Authentication
    description: API key validation and authentication
  - name: Content
    description: >-
      AI content generation and content refresh. Create content asynchronously
      and poll for results.
  - name: Content Agent
    description: >-
      Content Agent (automated content) lifecycle: project settings, scheduled
      slots, review (accept/decline), and publish.
  - name: Content Gap
    description: Content gap analysis and recommendations
  - name: Publishing
    description: >-
      Publish content to a connected CMS, or record a live URL, and track the
      published page
  - name: IndexNow
    description: Submit pages to search engines through IndexNow and track each submission
  - name: Models
    description: Available LLM models
  - name: Monitors
    description: Monitor management and CRUD operations
  - name: Page Tracker
    description: Track URLs and inspect citation stats, responses, and prompts
  - name: Prompts
    description: Prompt management and operations
  - name: Query Fanouts
    description: ChatGPT query fanout keywords
  - name: Responses
    description: LLM response data and analytics
  - name: Tags
    description: Tag management for prompts
  - name: Topics
    description: Topic management for prompts
  - name: Actions
    description: Action items (GEO suggestions and tasks)
  - name: Personas
    description: Persona configuration for monitors
  - name: Brands
    description: Brand management for competitive analysis
  - name: Brand Book
    description: Brand name, website, aliases, and the copy used to describe the brand
  - name: Visibility
    description: >-
      Brand visibility time series, competitor heatmaps, and performance
      heatmaps
  - name: Events
    description: >-
      Dated project events such as prompts added and actions completed, for
      annotating time series
  - name: Citations
    description: Citation analytics from AI responses
  - name: Analytics
    description: Visitor analytics, AI crawler logs, sentiment, and brand visibility trends
  - name: Search Insights
    description: >-
      Google Search Console and Bing Webmaster performance for the project
      website
  - name: Projects
    description: Project management (organization-level keys only)
  - name: Usage
    description: Plan usage and limits (organization-level keys only)
  - name: Sitemap
    description: Sitemap feeds, crawler settings, crawl progress, and discovered URLs
  - name: Site Health
    description: Deprecated. Legacy SEO issue pages. Use Site Audit for the current checks.
  - name: Site Audit
    description: >-
      Site audit runs, issue lists, link and content insights, and per-URL
      history
  - name: Socials
    description: >-
      Social media citations (Reddit posts, YouTube videos, LinkedIn posts, and
      Instagram posts) found in LLM responses
  - name: Ads Radar
    description: Sponsored ads captured in AI answers
  - name: Shopping
    description: Product appearances in AI shopping answers and tracked products
paths:
  /prompt-sentiment:
    get:
      tags:
        - Analytics
      summary: List Prompt Sentiment
      description: >-
        Get prompts with the average sentiment of their scored responses in the
        date range, the number of responses, and the brands those responses
        mention. Sorted by average sentiment, most negative first by default.
      operationId: listPromptSentiment
      parameters:
        - schema:
            type: string
            format: date
          in: query
          name: startDate
          required: false
          description: Start date (YYYY-MM-DD). Defaults to today. Max range 92 days.
        - schema:
            type: string
            format: date
          in: query
          name: endDate
          required: false
          description: End date (YYYY-MM-DD). Defaults to today. Max range 92 days.
        - schema:
            type: integer
            default: 1
            minimum: 1
          in: query
          name: page
          required: false
          description: Page number (1-based)
        - schema:
            type: integer
            default: 25
            minimum: 1
            maximum: 100
          in: query
          name: size
          required: false
          description: Page size
        - schema:
            type: string
          in: query
          name: query
          required: false
          description: Case-insensitive search on prompt text
        - schema:
            anyOf:
              - type: string
              - type: array
                items:
                  type: string
          in: query
          name: models
          required: false
          description: Model filter; repeat the parameter for multiple values
        - schema:
            anyOf:
              - type: string
                enum:
                  - ORGANIC
                  - BRAND_SPECIFIC
                  - COMPETITOR_COMPARISON
              - type: array
                items:
                  type: string
                  enum:
                    - ORGANIC
                    - BRAND_SPECIFIC
                    - COMPETITOR_COMPARISON
          in: query
          name: promptTypes
          required: false
          description: Prompt type filter; repeat the parameter for multiple values
        - schema:
            anyOf:
              - type: string
                enum:
                  - BRANDED
                  - INFORMATIONAL
                  - NAVIGATIONAL
                  - COMMERCIAL
                  - TRANSACTIONAL
              - type: array
                items:
                  type: string
                  enum:
                    - BRANDED
                    - INFORMATIONAL
                    - NAVIGATIONAL
                    - COMMERCIAL
                    - TRANSACTIONAL
          in: query
          name: intentTypes
          required: false
          description: Intent type filter; repeat the parameter for multiple values
        - schema:
            anyOf:
              - type: string
                format: uuid
              - type: array
                items:
                  type: string
                  format: uuid
          in: query
          name: tagIds
          required: false
          description: >-
            Filter by prompt tag IDs. Matches prompts with any of the given
            tags. Repeat for multiple: tagIds=uuid1&tagIds=uuid2
        - schema:
            anyOf:
              - type: string
                format: uuid
              - type: array
                items:
                  type: string
                  format: uuid
          in: query
          name: topicIds
          required: false
          description: >-
            Filter by prompt topic IDs. Matches prompts with any of the given
            topics. Repeat for multiple: topicIds=uuid1&topicIds=uuid2
        - schema:
            anyOf:
              - type: string
                enum:
                  - lt-30
                  - gt-30
                  - gt-50
                  - gt-75
              - type: array
                items:
                  type: string
                  enum:
                    - lt-30
                    - gt-30
                    - gt-50
                    - gt-75
          in: query
          name: sentimentScoreRanges
          required: false
          description: >-
            Keep prompts whose average sentiment falls in any of these bands:
            lt-30 (below 30), gt-30 (30 to under 50), gt-50 (50 to under 75),
            gt-75 (75 and up). Repeat for multiple.
        - schema:
            type: string
            enum:
              - asc
              - desc
            default: asc
          in: query
          name: sortOrder
          required: false
          description: >-
            Order prompts by average sentiment. Defaults to asc, most negative
            first.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  prompts:
                    - id: 6ba7b82e-9dad-11d1-80b4-00c04fd430c8
                      prompt: >-
                        What is the best workflow automation tool for finance
                        teams?
                      type: ORGANIC
                      intent: COMMERCIAL
                      languageCode: en-US
                      topics:
                        - id: 6ba7b850-9dad-11d1-80b4-00c04fd430c8
                          name: Finance automation
                      averageSentiment: 42.5
                      responseCount: 12
                      mentionedOurBrand: true
                      brandMentions:
                        - brandId: 6ba7b840-9dad-11d1-80b4-00c04fd430c8
                          brandName: Example Brand
                          brandDomain: example.com
                          relation: SELF
                          visibilityScore: 64
                          position: 2
                          sentiment: NEUTRAL
                          toneOfVoice: PROFESSIONAL
                  total: 1
                  page: 1
                  size: 25
                  totalPages: 1
                properties:
                  prompts:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: Prompt identifier
                        prompt:
                          type: string
                          description: The prompt text
                        type:
                          type: string
                          enum:
                            - ORGANIC
                            - BRAND_SPECIFIC
                            - COMPETITOR_COMPARISON
                          description: Type of prompt
                        intent:
                          type: string
                          enum:
                            - BRANDED
                            - INFORMATIONAL
                            - NAVIGATIONAL
                            - COMMERCIAL
                            - TRANSACTIONAL
                          nullable: true
                          description: Intent of the prompt
                        languageCode:
                          type: string
                          description: Language of the prompt, e.g. en-US
                        topics:
                          type: array
                          description: Topics the prompt belongs to
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                format: uuid
                                description: Topic identifier
                              name:
                                type: string
                                description: Topic name
                            required:
                              - id
                              - name
                            additionalProperties: false
                        averageSentiment:
                          type: number
                          nullable: true
                          description: >-
                            Average sentiment score of the prompt's scored
                            responses in the date range (0-100, higher is more
                            positive)
                        responseCount:
                          type: integer
                          description: Number of scored responses in the date range
                        mentionedOurBrand:
                          type: boolean
                          description: >-
                            True when at least one of these responses mentions
                            your brand
                        brandMentions:
                          type: array
                          items:
                            type: object
                            properties:
                              brandId:
                                type: string
                                format: uuid
                                description: Brand identifier
                              brandName:
                                type: string
                                description: Brand name as shown in the project
                              brandDomain:
                                type: string
                                nullable: true
                                description: Primary brand domain
                              relation:
                                type: string
                                enum:
                                  - SELF
                                  - DIRECT_COMPETITOR
                                  - OTHER
                                  - IGNORED
                                description: Brand relation to the project
                              visibilityScore:
                                type: number
                                description: >-
                                  Average visibility score of this brand across
                                  the prompt's responses in the date range
                                  (0-100)
                              position:
                                type: number
                                nullable: true
                                description: >-
                                  Position of the brand in its first mention in
                                  the date range (1st, 2nd, etc.)
                              sentiment:
                                type: string
                                enum:
                                  - POSITIVE
                                  - NEGATIVE
                                  - NEUTRAL
                                nullable: true
                                description: >-
                                  Sentiment toward the brand in its first
                                  mention in the date range
                              toneOfVoice:
                                type: string
                                nullable: true
                                description: >-
                                  Tone of voice of the brand's first mention in
                                  the date range
                            required:
                              - brandId
                              - brandName
                              - brandDomain
                              - relation
                              - visibilityScore
                              - position
                              - sentiment
                              - toneOfVoice
                            additionalProperties: false
                          description: >-
                            One entry per brand mentioned in the prompt's
                            responses in the date range, your brand first. Not
                            capped.
                      required:
                        - id
                        - prompt
                        - type
                        - intent
                        - languageCode
                        - topics
                        - averageSentiment
                        - responseCount
                        - mentionedOurBrand
                        - brandMentions
                      additionalProperties: false
                    description: Prompts with their average sentiment
                  total:
                    type: integer
                    description: Total items matching the request
                  page:
                    type: integer
                    description: Page number (1-based)
                  size:
                    type: integer
                    description: Page size
                  totalPages:
                    type: integer
                    description: Total pages for this page size
                required:
                  - prompts
                  - total
                  - page
                  - size
                  - totalPages
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  error: Bad Request
                  code: DATE_RANGE_TOO_LARGE
                  message: Date range cannot exceed 92 days
                properties:
                  error:
                    type: string
                    description: Error label
                  code:
                    type: string
                    description: Optional machine-readable code (e.g. DATE_RANGE_TOO_LARGE)
                  message:
                    type: string
                    description: Reason the request was rejected
                required:
                  - error
                  - message
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  error: Unauthorized
                  message: Missing or invalid X-API-Key header.
                properties:
                  error:
                    type: string
                    description: Error category (often aligned with HTTP semantics)
                  code:
                    type: string
                    description: Optional machine-readable code
                  message:
                    type: string
                    description: Human-readable explanation
                  details:
                    type: object
                    description: Optional structured detail (e.g. validation)
                    additionalProperties: true
                required:
                  - error
                  - message
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  code: INTERNAL_ERROR
                  message: An unexpected error occurred while computing sentiment.
                properties:
                  code:
                    type: string
                    description: Error code indicating the type of error
                    enum:
                      - INTERNAL_ERROR
                    example: INTERNAL_ERROR
                  message:
                    type: string
                    description: Human-readable error message
                    example: An unexpected error occurred
                required:
                  - code
                  - message
                additionalProperties: false
              example:
                code: INTERNAL_ERROR
                message: An unexpected error occurred
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Get yours from the Promptwatch dashboard
        under Settings > API Keys.

````

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