Authentication
All API requests require an API key passed via the x-api-key header.
Getting Your API Key
- Sign in at app.knowcap.ai
- Navigate to Settings → API Keys
- Generate a new key and copy it immediately — it won't be shown again
curl https://app.knowcap.ai/api/projects \
-H "x-api-key: YOUR_API_KEY"
⚡ Rate Limits
API requests are rate-limited. If you receive a 429 status code, back off and retry with exponential delay.
Returns the currently authenticated user's profile, including account details and subscription status.
curl https://app.knowcap.ai/api/users/me \
-H "x-api-key: YOUR_API_KEY"
{
"id": "usr_a1b2c3d4",
"email": "you@example.com",
"name": "Jane Doe",
"plan": "pro",
"createdAt": "2026-01-15T08:30:00Z"
}
Retrieve a list of all projects belonging to the authenticated user. Each project contains one or more sources.
curl https://app.knowcap.ai/api/projects \
-H "x-api-key: YOUR_API_KEY"
[
{
"id": "prj_x9k2m1",
"name": "Product Research",
"sourceCount": 12,
"createdAt": "2026-02-01T10:00:00Z",
"updatedAt": "2026-03-20T14:30:00Z"
}
]
List all sources within a specific project. Sources can be text entries, ingested URLs, uploaded files, or recordings.
| Name | Type | Description |
|---|---|---|
| id required | string | The project ID |
curl https://app.knowcap.ai/api/sources/project/prj_x9k2m1 \
-H "x-api-key: YOUR_API_KEY"
[
{
"id": "src_f3g7h2",
"type": "url",
"title": "Market Analysis Report",
"url": "https://example.com/report",
"tags": ["research", "Q1"],
"status": "completed",
"createdAt": "2026-02-05T09:15:00Z"
}
]
Retrieve transcript chunks for a specific source. Returns an array of text segments with timestamps (when available) from audio/video sources, or full text content for text-based sources.
| Name | Type | Description |
|---|---|---|
| id required | string | The source ID |
curl https://app.knowcap.ai/api/sources/src_f3g7h2/transcriptions \
-H "x-api-key: YOUR_API_KEY"
{
"sourceId": "src_f3g7h2",
"chunks": [
{
"index": 0,
"text": "The market grew 23% year over year...",
"startTime": 0.0,
"endTime": 4.5
},
{
"index": 1,
"text": "Key drivers include AI adoption...",
"startTime": 4.5,
"endTime": 9.2
}
]
}
Create a new text source within a project. The text content will be processed and made searchable within your knowledge base.
| Field | Type | Description |
|---|---|---|
| projectId required | string | Target project ID |
| title required | string | Display title for the source |
| content required | string | The text content to ingest |
| tags | string[] | Optional tags for organization |
curl -X POST https://app.knowcap.ai/api/sources/text \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "projectId": "prj_x9k2m1", "title": "Meeting Notes — March 2026", "content": "Discussed Q1 targets and product roadmap...", "tags": ["meetings", "Q1"] }'
{
"id": "src_n4p8q1",
"type": "text",
"title": "Meeting Notes — March 2026",
"status": "processing",
"createdAt": "2026-03-31T12:00:00Z"
}
Ingest a URL as a source. Knowcap will fetch the page content, extract text, and process it into your knowledge base. Supports articles, documentation pages, blog posts, and more.
| Field | Type | Description |
|---|---|---|
| projectId required | string | Target project ID |
| url required | string | The URL to ingest |
| tags | string[] | Optional tags for organization |
curl -X POST https://app.knowcap.ai/api/sources/url \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "projectId": "prj_x9k2m1", "url": "https://example.com/interesting-article", "tags": ["research"] }'
{
"id": "src_r7t2w5",
"type": "url",
"url": "https://example.com/interesting-article",
"status": "processing",
"createdAt": "2026-03-31T12:05:00Z"
}
Update metadata for an existing source. Use this to modify tags, title, or other mutable properties. Only provided fields will be updated.
| Name | Type | Description |
|---|---|---|
| id required | string | The source ID |
| Field | Type | Description |
|---|---|---|
| title | string | New display title |
| tags | string[] | Replace tags array |
curl -X PATCH https://app.knowcap.ai/api/sources/src_f3g7h2 \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "Updated Report Title", "tags": ["research", "updated", "Q1"] }'
{
"id": "src_f3g7h2",
"type": "url",
"title": "Updated Report Title",
"tags": ["research", "updated", "Q1"],
"updatedAt": "2026-03-31T12:10:00Z"
}