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

# Latest Content Coverage

> Get the latest content coverage result for a prompt. Returns null if the prompt exists but has no content coverage yet.



## OpenAPI

````yaml /v2/openapi.json get /content-gap/prompts/{promptId}/latest
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:
    get:
      tags:
        - Content Gap
      summary: Latest Content Coverage
      description: >-
        Get the latest content coverage result for a prompt. Returns null if the
        prompt exists but has no content coverage yet.
      operationId: getContentGapLatest
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: promptId
          required: true
          description: Prompt identifier
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                nullable: true
                type: object
                example:
                  id: 6ba7b826-9dad-11d1-80b4-00c04fd430c8
                  contentCoverageScore: 0.64
                  explanation: >-
                    Illustrative: key product claims are partially supported
                    on-site.
                  report: |-
                    ## Coverage summary

                    Example markdown sections only.
                  sources:
                    - url: https://docs.example.com/security
                      title: Security overview
                      snippet: Illustrative snippet text.
                  queryFanouts:
                    - crm for agencies
                    - compare CRM features
                  sitemapTotalUrls: 500
                  sitemapCrawledUrls: 412
                  createdAt: '2026-03-28T12:00:00.000Z'
                  recommendations:
                    - id: 6ba7b827-9dad-11d1-80b4-00c04fd430c8
                      title: Add integration comparison table
                      action: CREATE
                      details: Illustrative recommendation body.
                      priority: 1
                      impact: HIGH
                      effort: MODERATE
                      contentType: ARTICLE
                      queryFanouts:
                        - crm integrations
                      suggestedSections:
                        - Overview
                        - FAQ
                      targetSources:
                        - url: https://competitor.example/compare
                          title: Competitor page
                          snippet: Illustrative.
                properties:
                  id:
                    type: string
                    format: uuid
                    description: Coverage run identifier
                  contentCoverageScore:
                    type: number
                    description: Aggregate coverage score
                  explanation:
                    type: string
                    description: Plain-language summary
                  report:
                    type: string
                    description: Markdown report body
                  sources:
                    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: Cited URLs from analysis
                  queryFanouts:
                    type: array
                    items:
                      type: string
                    description: Expanded queries used in analysis
                  sitemapTotalUrls:
                    type: number
                    description: URLs in sitemap at run time
                  sitemapCrawledUrls:
                    type: number
                    description: URLs crawled for this run
                  createdAt:
                    type: string
                    format: date-time
                    description: When this run completed
                  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: Structured recommendations
                required:
                  - id
                  - contentCoverageScore
                  - explanation
                  - report
                  - sources
                  - queryFanouts
                  - sitemapTotalUrls
                  - sitemapCrawledUrls
                  - createdAt
                  - 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.

````