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

# Per-Content Prompt Citation Breakdown

> For a single tracked content item, returns every prompt whose AI responses cite the URL — with citations, citation %, and estimated impressions for the date range.

Use this to drill into a specific URL after `POST /api/v1/content`. Works for both 1st-party (topic-attached) and 3rd-party / Reddit content without topic assignment.

When the URL exists but has no normalized form (legacy unnormalized rows) the response is a successful 200 with `prompts: []`. Unknown `content_id` returns 404.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/content/prompts
openapi: 3.1.0
info:
  title: AthenaHQ API
  description: >-
    AthenaHQ API provides programmatic access to manage your websites and
    prompts for AI-powered content optimization.
  version: 1.0.0
  contact:
    email: support@athenahq.ai
servers:
  - url: https://api.athenahq.ai
    description: Production server
security:
  - apiKey: []
tags:
  - name: Basics
    description: Core API operations for managing websites and prompts
  - name: Metrics
    description: Metrics and analytics endpoints for tracking AI visibility
  - name: Billing
    description: Billing and credits endpoints for managing usage
  - name: Team Management
    description: Endpoints for managing team members and invitations
  - name: Groups
    description: Endpoints for managing groups of websites
  - name: Content
    description: >-
      Endpoints for accessing Content Hub data — tabs, tracked URLs, and per-URL
      prompt breakdowns.
  - name: Pitch Workspace
    description: >-
      Endpoints for accessing pitch workspace reports — org-scoped pitch runs
      with competitors, prompts, attributes, and aggregate metrics.
paths:
  /api/v1/content/prompts:
    post:
      tags:
        - Content
      summary: Per-Content Prompt Citation Breakdown
      description: >-
        For a single tracked content item, returns every prompt whose AI
        responses cite the URL — with citations, citation %, and estimated
        impressions for the date range.


        Use this to drill into a specific URL after `POST /api/v1/content`.
        Works for both 1st-party (topic-attached) and 3rd-party / Reddit content
        without topic assignment.


        When the URL exists but has no normalized form (legacy unnormalized
        rows) the response is a successful 200 with `prompts: []`. Unknown
        `content_id` returns 404.
      operationId: getContentPromptBreakdown
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContentPromptBreakdownRequest'
      responses:
        '200':
          description: Successful response with the list of citing prompts.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentPromptBreakdownResponse'
              example:
                content_id: 11111111-2222-3333-4444-555555555555
                content_url: example.com/blog/crm-roundup
                content_normalized_url: example.com/blog/crm-roundup
                prompts:
                  - prompt_id: 22222222-3333-4444-5555-666666666666
                    prompt: what are the best CRMs for early-stage startups?
                    citation_percent: 33.3
                    citations: 5
                    estimated_impressions: 1200
        '400':
          description: Bad request — invalid parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_website_id:
                  value:
                    error: website_id is required
                invalid_website_id:
                  value:
                    error: website_id must be a uuid
        '401':
          description: Unauthorized — invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — you don't have access to this website.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Unauthorized access to this website
        '404':
          description: Content not found for this website.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Content not found
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    ContentPromptBreakdownRequest:
      type: object
      description: >-
        Request body for drilling into the prompts that cite a single content
        item.
      required:
        - website_id
        - content_id
        - filters
      properties:
        website_id:
          type: string
          format: uuid
          description: >-
            The website that owns the content item. Must match the content's
            website.
          example: 123e4567-e89b-12d3-a456-426614174000
        content_id:
          type: string
          format: uuid
          description: >-
            The `content_id` returned by `POST /api/v1/content`. The endpoint
            resolves this server-side to a normalized URL and queries every
            prompt whose responses cite it.
          example: 11111111-2222-3333-4444-555555555555
        filters:
          $ref: '#/components/schemas/ApiFilters'
        mentioned:
          type: boolean
          description: >-
            If `true`, only count responses that mention your brand. If `false`,
            only responses that don't. Omit to count every response.
      example:
        website_id: 123e4567-e89b-12d3-a456-426614174000
        content_id: 11111111-2222-3333-4444-555555555555
        filters:
          start_date: '2024-01-01T00:00:00.000Z'
          end_date: '2024-01-31T23:59:59.999Z'
    ContentPromptBreakdownResponse:
      type: object
      required:
        - content_id
        - content_url
        - content_normalized_url
        - prompts
      properties:
        content_id:
          type: string
          format: uuid
          description: The `content_id` that was queried.
        content_url:
          type: string
          nullable: true
          description: The content's display URL (may be null for legacy rows).
        content_normalized_url:
          type: string
          nullable: true
          description: >-
            The content's normalized URL — the value joined against citation
            data. `null` for legacy rows that were never normalized; in that
            case `prompts` is always `[]`.
        prompts:
          type: array
          items:
            $ref: '#/components/schemas/ContentPrompt'
    Error:
      type: object
      description: Error response object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message describing what went wrong
          example: Unauthorized
    ApiFilters:
      type: object
      description: >-
        Filters for querying responses and metrics. Pass location filters in the
        JSON body as `filters.location_ids`.
      required:
        - start_date
      properties:
        start_date:
          type: string
          format: date-time
          description: Filter start date (UTC)
          example: '2024-01-01T00:00:00.000Z'
        end_date:
          type: string
          format: date-time
          description: Filter end date (UTC)
          example: '2024-12-31T23:59:59.999Z'
        models:
          type: array
          description: Filter by AI models
          items:
            type: string
            enum:
              - chatgpt
              - perplexity
              - gemini
              - google_ai_overview
              - copilot
              - claude
              - ai_mode
              - grok
              - deepseek
          example:
            - chatgpt
            - perplexity
        prompt_ids:
          type: array
          description: Filter by specific prompt IDs
          items:
            type: string
            format: uuid
        competitor_ids:
          type: array
          description: Filter by specific competitor IDs
          items:
            type: string
            format: uuid
        location_ids:
          type: array
          description: >-
            Filter by location IDs. Pass this in the JSON body as
            `filters.location_ids`, even when filtering by a single location.
            Use IDs returned by `GET /api/v1/locations`.
          items:
            type: string
            format: uuid
          example:
            - 123e4567-e89b-12d3-a456-426614174111
        prompt_status:
          type: string
          enum:
            - active
            - paused
          description: Filter by prompt status
        prompt_type:
          type: string
          enum:
            - branded
            - non_branded
          description: Filter by prompt type
    ContentPrompt:
      type: object
      description: A prompt whose AI responses cite the requested content.
      required:
        - prompt_id
        - prompt
        - citation_percent
        - citations
        - estimated_impressions
      properties:
        prompt_id:
          type: string
          format: uuid
          description: Unique identifier for the prompt.
          example: 22222222-3333-4444-5555-666666666666
        prompt:
          type: string
          description: Prompt text.
          example: what are the best CRMs for early-stage startups?
        citation_percent:
          type: number
          description: >-
            Percentage of this prompt's responses (in the date range) that cite
            the content URL.
          example: 33.3
        citations:
          type: number
          description: >-
            Count of this prompt's responses (in the date range) that cite the
            content URL.
          example: 5
        estimated_impressions:
          type: number
          nullable: true
          description: >-
            Estimated impressions attributable to this prompt across the date
            range. May be null when impression modeling is not available.
          example: 1200
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. You can create one
        [here](https://app.athenahq.ai/organization?tab=api).

````