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

V2 Files

Base URL: https://api.codefundi.app. Path repo_id: UUID or percent-encoded URL.

Product guide: Repo to Markdown.


GET /v2/files/{repo_id}

Summary: Paginated file list with documentation hints. Credits: 1 credit / request.

Query parameters

ParameterTypeDescription
limitintPage size 1–100, default 20.
offsetintOffset.
order_bystringDefault file_path.
orderenumasc | desc.
searchstringMatch file_name or file_path.

Response: paginated file items (id, file_name, file_path, description, dependencies, total_lines, and related fields).

files-list.sh
curl -sS -G "https://api.codefundi.app/v2/files/550e8400-e29b-41d4-a716-446655440000" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "limit=50" \ --data-urlencode "order_by=file_path" \ --data-urlencode "order=asc"

GET /v2/files/{repo_id}/{file_id}

Summary: Markdown documentation for one file.

Path: file_id may be a UUID or a URL-encoded file_path.

Query: fields

ValueNotes
basicLightweight fields.
summaryMid depth.
fullDefault; rich documentation.

Credits: 2 credits / file when documentation is ready. If the file is still processing, the response indicates processing and is not charged.

Check meta.processing, meta.fields_applied, and meta.credits_used on success.

file-doc.sh
curl -sS "https://api.codefundi.app/v2/files/550e8400-e29b-41d4-a716-446655440000/660e8400-e29b-41d4-a716-446655440001?fields=full" \ -H "X-API-Key: YOUR_API_KEY"
Last updated on