V2 Repositories
Base URL: https://api.codefundi.app. Path repo_id accepts a UUID or a percent-encoded repository URL.
Product guide: Index codebase.
GET /v2/repos
Summary: Paginated list of indexed repositories for the caller. Credits: 1 credit / request.
Query parameters
| Parameter | Type | Description |
|---|---|---|
scope | enum | private (default) or public. |
search | string | Optional name substring (max 200). |
limit | int | Page size 1–100, default 20. |
offset | int | Zero-based offset. |
order_by | string | Sort field (default created_at). |
order | enum | asc | desc (default desc). |
Response: repository list with pagination and plan-related meta such as max_repos_allowed when present.
cURL
curl -sS -G "https://api.codefundi.app/v2/repos" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "scope=private" \
--data-urlencode "limit=20" \
--data-urlencode "offset=0"GET /v2/public/repos
Summary: Public repository catalog for discovery. No API key required for standard access. Anonymous callers may be rate-limited.
Query: limit (1–500), offset, since (ISO), file_count (optional top files).
POST /v2/repos/index/new
Summary: Queue indexing for a GitHub URL. Private repos use your linked GitHub account when present; public repos may index without a token.
Request body
| Field | Required | Type | Description |
|---|---|---|---|
url | yes | string | GitHub repository URL. |
branch | no | string | Branch to index. |
update | no | boolean | Default false. Set true to refresh an existing index. |
Credits: 0 credits to queue indexing. Plan limits still apply to how many repositories you can keep indexed. See Credits and tiers.
Response: includes repository identity, file totals, and an initial file tree/index payload when available.
cURL
curl -sS -X POST "https://api.codefundi.app/v2/repos/index/new" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d "{\"url\":\"https://github.com/org/repo\",\"branch\":\"main\",\"update\":false}"POST /v2/repos/status
Summary: Poll indexing state for a repository URL. Credits: 1 credit / request.
Request body
| Field | Required | Type | Description |
|---|---|---|---|
url | yes | string | Same URL passed to /v2/repos/index/new. |
Response data
| Field | Type | Description |
|---|---|---|
updating | boolean | true while indexing is in progress. |
status | boolean / flag | Active status for the source. |
name | string | Optional display name. |
last_updated | string | Optional timestamp. |
cURL
curl -sS -X POST "https://api.codefundi.app/v2/repos/status" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d "{\"url\":\"https://github.com/org/repo\"}"Deprecated: GET /v2/repos/{repo_id}/readme
Deprecated. Use GET /v2/repos/{repo_id}/blueprint instead.
Related intel routes
- Blast radius:
POST …/radius,GET …/map - Blueprint and scope:
GET …/blueprint,POST …/scope - Files: list and file Markdown documentation