API Reference

API Overview

Introduction to the EpicContext REST API for programmatic access to your product context documentation.

The EpicContext API gives you programmatic access to your product context. Use it to integrate with CI/CD pipelines, custom tools, or build your own workflows.

Base URL

All API requests use the following base URL:

https://epiccontext.com/api/v1

Authentication

All API requests require an API key passed in the X-API-Key header:

curl -H "X-API-Key: your-api-key" \
  https://epiccontext.com/api/v1/projects/YOUR_PROJECT_ID/blocks

Keep your API key secure. Never commit it to version control or expose it in client-side code.

See the Authentication guide for details on generating and managing API keys.

Response Format

All responses are JSON with a consistent structure:

{
  "data": { ... },
  "error": null
}

Error responses include an error message:

{
  "data": null,
  "error": "Block not found"
}

Rate Limits

The API enforces rate limits to ensure fair usage:

PlanRequests/minuteRequests/day
Free601,000
Pro30010,000
EnterpriseCustomCustom

Rate limit headers are included in every response:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 58
X-RateLimit-Reset: 1708300800

Common Operations

OperationMethodEndpoint
List blocksGET/projects/{id}/blocks
Get blockGET/projects/{id}/blocks/{key}
Full exportGET/projects/{id}/export
Sync contentPOST/projects/{id}/sync

Public Endpoints

Some endpoints don't require authentication:

  • llms.txtGET /api/projects/{id}/llms.txt
  • MarkdownGET /api/projects/{id}/markdown
  • Context JSONGET /api/projects/{id}/context

These are designed for AI agents and other tools that need read-only access to your product context.

Next Steps

Last updated: 2026-02-21