Skip to main content
The Krastie REST API lets Business and Enterprise customers automate AI visibility reporting, pull workspace analytics, and integrate content workflows into their stack.
API access requires a Business or Enterprise plan. Startup and free trial accounts cannot call the REST API, even with a valid key.

What you can build

Start with the AI visibility endpoints — they are the core of the API.

Plan eligibility

Requests authenticated with an API key on a lower plan receive:

Base URL

All documented routes are prefixed with /v1.

Authentication

Send your API key in the api-key request header on every call:
Keys use the krastie_ prefix, expire 30 days after generation, and are shown only once when created. Store them securely.

Create and manage keys

Key management uses your logged-in Krastie session (cookie auth), not the API key itself. Generate key response (200):

Usage and limits

  • Each successful AI text or chat request consumes 1 AI credit from your monthly plan allowance.
  • Visibility report refresh limits vary by plan. See the pricing page.
  • Image generation increments image-generation usage separately.
  • When credits are exhausted, endpoints return 403 with a plan-specific limit message.
  • Usage resets monthly for paid plans.
Premium models (o1, o3-mini, gpt-5, gpt-4.5) require a paid plan (Startup or above), not just API access.

Response headers

All /v1 routes include:

Error format

Errors return JSON with message and usually errCode:

Supported models

Text and chat endpoints accept model IDs from supported providers:
  • OpenAI: gpt-4o, gpt-4o-mini, gpt-4.1, o1, o3-mini, and related GPT-family IDs
  • Anthropic: Claude models (IDs containing claude)
  • Google: Gemini models (IDs containing gemini)
Pass the same model identifiers you use in the Krastie app.

Quick start

  1. Upgrade to Business or Enterprise.
  2. Log in at app.krastie.ai and generate an API key under account settings.
  3. Run a visibility report:

API sections

AI visibility

Reports, prefill, history, and workspace context.

AI traffic

Track visits from AI assistants and pull traffic analytics.

AI generation

Content generation, SEO scoring, and improvement.

Chat sessions

Assistant with visibility-aware workspace context.

Brand voice

Manage brand voices for consistent content.

Support

Questions about API access, Enterprise limits, or custom integrations: info@krastie.ai