/v1/ai/generate
AI visibility endpoints measure how your website and competitors appear across AI models. These are the primary API routes for integrating Krastie into analytics dashboards, agency workflows, or custom reporting tools.
Each report refresh counts toward your plan’s AI refresh usage usage. See the pricing page for refresh limits on your plan.
POST /seo-site-report
Start a new visibility report or refresh an existing one.
Body:
| Field | Type | Required | Description |
|---|---|---|---|
websiteurl | string | Yes* | Site to analyze (*required for new reports) |
competitors | string[] | No | Competitor domains for comparison |
prompts | string[] | No | Natural-language queries to test |
refresh | boolean | No | Set true to refresh the latest report |
POST /seo-site-report/prefill
Suggest competitors and prompts before running a full report.
Body:
| Field | Type | Required | Description |
|---|---|---|---|
websiteurl | string | Yes | Site to analyze |
GET /seo-site-report
Fetch the latest visibility report for the authenticated workspace.
GET /seo-site-report/history
Retrieve historical visibility data to track mention rates, citation rates, and competitor positioning over time.
GET /assistant/context
Returns workspace summary data available to the assistant, including visibility metrics, traffic, and documents.
useWorkspaceContext: true.
Report data model
Reports typically include:| Field | Description |
|---|---|
| Visibility score | Aggregate performance across prompts and models |
| Prompt results | Per-query mention and citation status |
| Competitor metrics | Side-by-side comparison data |
| Model breakdown | Results segmented by AI provider |
| Recommendations | Prioritized actions with difficulty ratings |
Workflow example
Related endpoints
Content tools that support visibility improvements are documented separately:- AI generation endpoints — Content generation, SEO scoring, and improvement
- Chat sessions — Assistant with workspace visibility context