Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cf0.ai/llms.txt

Use this file to discover all available pages before exploring further.

The cf0 REST API lets you build integrations on top of cf0’s financial research platform. You can stream AI research sessions, retrieve generated reports, search global SEC and regulatory filings, manage uploaded documents, and create or invoke reusable research workflow skills.

Base URL

All endpoints are served from:
https://api.cf0.ai

Request format

Send JSON bodies with Content-Type: application/json. File upload endpoints use multipart/form-data — see Documents API for details.

Response format

All endpoints return JSON. The chat endpoint (POST /api/lab/chat) returns a Server-Sent Events stream with Content-Type: text/event-stream. The filings ingestion progress endpoint (GET /api/filings/ingest/stream) also streams SSE.

Authentication

Every request requires a Bearer token in the Authorization header:
Authorization: Bearer <your-token>
See Authentication for how to obtain and use your token.

Error responses

Error responses follow a consistent shape:
{
  "detail": "Human-readable error description"
}
Common HTTP status codes:
CodeMeaning
400Bad request — missing or invalid parameters
401Unauthorized — missing or invalid token
403Forbidden — valid token but insufficient permissions (e.g. org required)
404Resource not found
409Conflict — resource already exists
413Payload too large
422Validation error — request body failed schema validation
429Rate limit exceeded
500Internal server error
502Upstream service error (e.g. LLM call failed)
503Service unavailable

Rate limits

Endpoints that trigger AI inference are rate-limited per user:
EndpointLimit
POST /api/lab/chat12 requests per minute
Section rewrite10 requests per minute
Section edit6 requests per minute
Requests that exceed the limit receive HTTP 429.

Endpoint reference

Lab

Start streaming chat sessions and manage research threads.

Reports

List, retrieve, edit, and delete generated research reports.

Filings

Search companies and read SEC and global regulatory filings.

Documents

Upload, list, and manage files in your research workspace.

Skills

Create and invoke reusable research workflow templates.

Authentication

Bearer token authentication for all API requests.