> ## 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.

# Content Recommendations

> Get content recommendations from the latest content gap analysis for a prompt



## OpenAPI

````yaml /v2/openapi.json get /content-gap/prompts/{promptId}/latest/recommendations
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: team@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 optimization. Create content asynchronously and
      poll for results.
  - name: Content Gap
    description: Content gap analysis and recommendations
  - 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: Visibility
    description: Brand visibility time series and competitor heatmaps
  - name: Citations
    description: Citation analytics from AI responses
  - name: Analytics
    description: Visitor analytics, AI crawler logs, sentiment, and brand visibility trends
  - name: Projects
    description: Project management (organization-level keys only)
  - name: Sitemap
    description: Sitemap crawl progress and discovered URLs
  - name: Site Health
    description: >-
      Crawled pages with SEO issues (titles, meta descriptions, H1, thin
      content)
  - name: Socials
    description: >-
      Social media citations (Reddit posts and YouTube videos) found in LLM
      responses
paths:
  /content-gap/prompts/{promptId}/latest/recommendations:
    get:
      tags:
        - Content Gap
      summary: Content Recommendations
      description: >-
        Get content recommendations from the latest content gap analysis for a
        prompt
      operationId: getContentGapRecommendations
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: promptId
          required: true
          description: Prompt identifier
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  promptId: 6ba7b823-9dad-11d1-80b4-00c04fd430c8
                  prompt: Best CRM for 50-person services firms?
                  contentCoverageScore: 0.64
                  recommendations:
                    - id: 6ba7b827-9dad-11d1-80b4-00c04fd430c8
                      title: Publish integrations matrix
                      action: OPTIMIZE
                      details: Illustrative detail text.
                      priority: 2
                      impact: MEDIUM
                      effort: QUICK_WIN
                      contentType: LISTICLE
                      queryFanouts:
                        - crm integrations list
                      suggestedSections:
                        - Compare
                        - Sources
                      targetSources:
                        - url: https://docs.example.com/integrations
                          title: Integrations
                          snippet: Illustrative.
                properties:
                  promptId:
                    type: string
                    format: uuid
                    description: Prompt identifier
                  prompt:
                    type: string
                    description: Prompt text
                  contentCoverageScore:
                    type: number
                    nullable: true
                    description: Latest score; null if never analyzed
                  recommendations:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: Resource identifier
                        title:
                          type: string
                          description: Recommendation headline
                        action:
                          type: string
                          enum:
                            - CREATE
                            - OPTIMIZE
                          description: Suggested action
                        details:
                          type: string
                          description: Rationale and next steps
                        priority:
                          type: number
                          description: Sort order (lower is higher priority)
                        impact:
                          type: string
                          enum:
                            - HIGH
                            - MEDIUM
                            - LOW
                          nullable: true
                          description: Expected impact
                        effort:
                          type: string
                          enum:
                            - QUICK_WIN
                            - MODERATE
                            - SIGNIFICANT
                          nullable: true
                          description: Implementation effort
                        contentType:
                          type: string
                          enum:
                            - ARTICLE
                            - BLOG_POST
                            - OPINION
                            - LISTICLE
                            - HOW_TO
                            - REVIEW
                            - COMPARISON
                            - CASE_STUDY
                            - INTERVIEW
                            - DOCUMENTATION
                            - WIKI
                            - PRODUCT_PAGE
                            - LANDING_PAGE
                            - PRESS_RELEASE
                            - GENERIC_CONTENT
                            - PRODUCT_COMPARISON
                          nullable: true
                          description: Suggested content format
                        queryFanouts:
                          type: array
                          items:
                            type: string
                          description: Related query variants
                        suggestedSections:
                          type: array
                          items:
                            type: string
                          description: Proposed outline sections
                        targetSources:
                          type: array
                          items:
                            type: object
                            properties:
                              url:
                                type: string
                                description: Source page URL
                              title:
                                type: string
                                description: Page title
                              snippet:
                                type: string
                                description: Relevant excerpt
                            required:
                              - url
                              - title
                              - snippet
                            additionalProperties: false
                          description: Sources to reference or beat
                      required:
                        - id
                        - title
                        - action
                        - details
                        - priority
                        - targetSources
                        - queryFanouts
                        - suggestedSections
                      additionalProperties: false
                    description: Recommendations from the latest run
                required:
                  - promptId
                  - prompt
                  - contentCoverageScore
                  - recommendations
                additionalProperties: false
        '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
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  code: CONTENT_GAP_PROMPT_NOT_FOUND
                  message: Prompt not found
                properties:
                  code:
                    type: string
                    description: Domain error code
                    enum:
                      - CONTENT_GAP_PROMPT_NOT_FOUND
                      - CONTENT_GAP_PROJECT_MISSING
                      - CONTENT_GAP_WEBSITE_NOT_CONFIGURED
                      - INTERNAL_ERROR
                  message:
                    type: string
                    description: Human-readable explanation
                required:
                  - code
                  - message
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                example:
                  code: CONTENT_GAP_PROMPT_NOT_FOUND
                  message: Prompt not found
                properties:
                  code:
                    type: string
                    description: Domain error code
                    enum:
                      - CONTENT_GAP_PROMPT_NOT_FOUND
                      - CONTENT_GAP_PROJECT_MISSING
                      - CONTENT_GAP_WEBSITE_NOT_CONFIGURED
                      - INTERNAL_ERROR
                  message:
                    type: string
                    description: Human-readable explanation
                required:
                  - code
                  - message
                additionalProperties: false
      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.

````