Skip to main content
Everything Greenflash knows about your AI product is available through the API. Embed analytics in your own product, build custom dashboards, automate workflows, or power AI-assisted experiences through the chat endpoint.

Authentication

Every request requires your API key in the Authorization header:
Generate keys at Settings → Connect → API keys.

What’s Available

Data Endpoints (All Plans)

Core data — your conversations, users, organizations, and configuration. Available on every plan, including Free.

Analytics Endpoints (Growth+)

Computed insights, AI-generated summaries, and aggregated metrics. These require a Growth or Enterprise plan.

Chat Endpoint (Growth+)


Analysis Modes

Analytics endpoints support two modes. Pick the one that matches your use case.

Simple Mode

Fast. No rate limits. Returns numeric aggregates only — averages, counts, distributions. Ideal for dashboards, polling, and high-frequency requests.

Insights Mode

Deep. Rate limited. Full AI analysis including topic extraction, keyword analysis, and generated summaries. Default when no mode is specified.

Chat Endpoint

The chat endpoint is the same Greenflash AI assistant available in-app and via Slack — now accessible through the API. It streams responses using Server-Sent Events (SSE).
SSE event types: Multi-turn conversations: Capture the conversationId from the done event and pass it back in subsequent requests along with a messages array to maintain context.

Example: End-to-End Setup

Here’s the full loop — create a user, log a conversation, then retrieve analytics.

1. Identify a user

2. Log a conversation

3. Retrieve analytics

4. Ask the AI agent

The chat agent investigates your data, surfaces root causes with evidence, and recommends specific fixes.

Pagination

All list endpoints use Link header pagination (RFC 8288).
  • Response body: a flat JSON array of items
  • Pagination info: returned in the Link HTTP header
  • No rel="next" link means you’re on the last page

Rate Limits

Insights mode analytics are rate limited on a rolling hourly window: Simple mode analytics are not rate limited. Caching: Repeated requests with the same parameters return cached results without consuming your rate limit. Use consistent query parameters to maximize cache hits.
Use mode=simple for dashboards and high-frequency polling. Reserve mode=insights for deep analysis.

White Labeling

Embed Greenflash analytics directly in your product under your own brand. Deliver user- or organization-specific insights powered by Greenflash, with full control over branding and domain.
  • Brand control — Remove all Greenflash branding for a fully native experience
  • Tenant isolation — Per-customer domains and isolated analytics environments
  • Dual modes — Use simple for real-time dashboards, insights for deep analysis
Available on the Enterprise plan. Contact us to get started.

Error Handling


Next Steps

API Reference

Full endpoint documentation with request/response schemas.

SDK Quickstart

Get your first insight in under 5 minutes.

Claude Code Skill

Use Greenflash directly from your coding agent.

Business Events

Link conversations to real business outcomes.