Developer API

KLI Prompts API

Read-only catalog API for 397 prompts (34 India-tuned). No API key, no signup. CORS-enabled. Best-effort uptime on Cloudflare Workers.

Quickstart

Three curls

Search, fetch a single prompt, and read dataset metadata. Open a terminal and try them.

# Search — return India-tuned HR prompts about offer letters
curl 'https://prompts.krakelabsindia.com/api/prompts?q=offer+letter&category=hr&india=1'

# Fetch a single prompt with its full template
curl 'https://prompts.krakelabsindia.com/api/prompts/cold-email'

# Catalog metadata
curl 'https://prompts.krakelabsindia.com/api/meta'
Reference

Endpoints

MethodPathParamsDescription
GET/api/promptsq, category, role, india, limit (1-100, default 25), offset, include_templateSearch + filter the catalog. Returns paginated results without the full template body by default.
GET/api/prompts/{slug}slug (path)Single prompt with full prompt_template, fields, example_output.
GET/api/metaCounts, categories, top roles, KLI tool cross-links.
GET/openapi.jsonOpenAPI 3.1 spec. Drop into Swagger Editor or Postman.

Sample response — search

$ curl 'https://prompts.krakelabsindia.com/api/prompts?q=cold+email&limit=1'

{
  "query": { "q": "cold email", "category": null, "role": null, "india": false, "limit": 1, "offset": 0 },
  "total": 6,
  "returned": 1,
  "results": [
    {
      "slug": "cold-email",
      "title": "Cold Email",
      "short_description": "Generate a Cold Email tailored to your inputs.",
      "category": "sales",
      "job_roles": ["Sales Rep", "Founder"],
      "india_specific": false,
      "related_kli_tool": null,
      "fields": [...],
      "url": "https://prompts.krakelabsindia.com/p/cold-email"
    }
  ]
}

Sample response — single prompt

$ curl 'https://prompts.krakelabsindia.com/api/prompts/cold-email'

{
  "slug": "cold-email",
  "title": "Cold Email",
  "short_description": "...",
  "category": "sales",
  "job_roles": ["Sales Rep", "Founder"],
  "india_specific": false,
  "related_kli_tool": null,
  "fields": [{"name": "recipient", "label": "Recipient", "type": "text", "required": true}, ...],
  "prompt_template": "Write a cold email to {{recipient}} about ...",
  "example_output": null,
  "url": "https://prompts.krakelabsindia.com/p/cold-email"
}
Catalog scope

What's in and what's out

We surface only the quality: "extracted" set — 397 prompts taken directly from running KLI tool source.

21 more KLI tools exist but don't use an LLM (they're deterministic). We track them as deferred in /api/metaand do not return them via the catalog API. If you want the list, ask us — we don't pretend deterministic tools are prompts.

34 of the visible prompts reference Indian acts, rates, forms or context — these are the ones with india_specific: true.

Cross-links

KLI tools these prompts power

Some prompts are extracted from a specific KLI product. Their related_kli_tool field links back so consumers can offer the tool as an alternative to copy-paste.

Fair use

How to be a good citizen

No API key required for now. Treat this as a goodwill resource:

  • Cache aggressively. The catalog only updates when KLI tool source changes — safe to cache for ~24h. Our GET endpoints already set Cache-Control: public, max-age=3600.
  • Don't hammer. Soft cap of ~30 req/min per IP.
  • Credit the source. Links back to prompts.krakelabsindia.com in your UI are appreciated.
  • No SLA. Best-effort free service on Cloudflare Workers.

Want a drop-in UI widget?

The embed widget gives any HTML page a working prompt-search box with two lines.

See the embed widget →
Machine-readable

OpenAPI 3.1 spec

GET /openapi.json