Store Visibility Report
π΅ POST - Store Visibility Report
Store Visibility Report
Store daily visibility report with sampled prompts and pass/fail results.
POST
Store Visibility Report
Overview
This endpoint stores the daily visibility report after the cron job analyzes sampled prompts. It updates the prompts with visibility results andlast_tested_at timestamp.
Request Body
Organization identifier
Array of prompt results from visibility analysis:
prompt_id: Prompt ID (integer)prompt: The prompt text (string)entity_id: Entity UUID (string)entity_name: Entity name (string)entity_type:"business"or"product"(string)platforms: Object with platform visibility results (boolean for each platform)
Optional date in YYYY-MM-DD format. Defaults to today.
Response
"success" or "error"The date of the report (YYYY-MM-DD)
Number of prompts processed
Summary of results:
total_checked: Number of prompts checkedplatforms_breakdown: Object with count per platform (e.g.,{"chatgpt": 7, "claude": 6, ...})
Example Request
Example Response
Actions Performed
- Update entity_prompts_tracker with visibility results (pass/fail per platform)
- Set last_tested_at timestamp so tested prompts appear first in UI
- Upsert visibility_reports row for the day with summary
Pass/Fail Paradigm
Each platform shows a simple pass/fail result:- true: The entity was mentioned/recommended by this AI platform
- false: The entity was not found in the AI platformβs response
- null: Not yet tested (shows as β-β in the UI)