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:
| Plan | Requests/minute | Requests/day |
|---|---|---|
| Free | 60 | 1,000 |
| Pro | 300 | 10,000 |
| Enterprise | Custom | Custom |
Rate limit headers are included in every response:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 58
X-RateLimit-Reset: 1708300800
Common Operations
| Operation | Method | Endpoint |
|---|---|---|
| List blocks | GET | /projects/{id}/blocks |
| Get block | GET | /projects/{id}/blocks/{key} |
| Full export | GET | /projects/{id}/export |
| Sync content | POST | /projects/{id}/sync |
Public Endpoints
Some endpoints don't require authentication:
- llms.txt —
GET /api/projects/{id}/llms.txt - Markdown —
GET /api/projects/{id}/markdown - Context JSON —
GET /api/projects/{id}/context
These are designed for AI agents and other tools that need read-only access to your product context.
Next Steps
- Set up API authentication
- See the full endpoint reference
Last updated: 2026-02-21