Skip to Content
Code Fundi for VS Code · Cursor: install the extension →

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

ParameterTypeDescription
scopeenumprivate (default) or public.
searchstringOptional name substring (max 200).
limitintPage size 1–100, default 20.
offsetintZero-based offset.
order_bystringSort field (default created_at).
orderenumasc | desc (default desc).

Response: repository list with pagination and plan-related meta such as max_repos_allowed when present.

repos.sh
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

FieldRequiredTypeDescription
urlyesstringGitHub repository URL.
branchnostringBranch to index.
updatenobooleanDefault 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.

index-new.sh
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

FieldRequiredTypeDescription
urlyesstringSame URL passed to /v2/repos/index/new.

Response data

FieldTypeDescription
updatingbooleantrue while indexing is in progress.
statusboolean / flagActive status for the source.
namestringOptional display name.
last_updatedstringOptional timestamp.
repos-status.sh
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.

Last updated on