HTTP API
Base address, credentials, versioning, failures and pages of Corfedo's public HTTP API.
The HTTP API serves search, code reads, dependencies, security findings, saved contexts and Corfedo AI. Each operation and its schemas are in the API reference. The Connect › HTTP API page in your workspace shows your addresses.
Address and credentials
| Value | Example |
|---|---|
| API base URL | https://corfedo.example.com/api/v1 |
| Token issuer | https://corfedo.example.com/ |
| Audience | https://corfedo.example.com/api |
Every operation needs a Corfedo-issued credential for the workspace's API, with the scope the operation names. Browser cookies and MCP credentials are not accepted. The SDKs get and renew the credential from an API key file or a browser sign-in. Use one unless you implement the token flow yourself. See Authentication.
Requests and responses
- Requests are JSON, at most 256 KiB, more for AI messages and tool results, and closed: an unknown field, value or kind is rejected.
- Responses can gain fields, enum values and union kinds. Skip fields you do not know and keep unknown values as text.
- 64-bit numbers are decimal strings. Lines are one-based and inclusive. Byte ranges are half-open UTF-8 offsets.
- Dependency and security reads answer
Accept: text/plainwith the same text Corfedo's tools return.
Failures
A failure has an HTTP status, a code, a message and a correlationId. Include the correlationId when you report a problem. invalid_argument and ambiguous_repository need a changed request, resource_exhausted and unavailable a retry after retryAfterSeconds. Errors lists every code with what to do.
Pages
A page that has more results returns a continuation. Send it back with the same request to read the next page. A continuation stays on the revision its first page read. When that revision is no longer served, a file, tree or symbol read answers stale with the currentRevision, and a search lists the repository in repositories with failure: staleSnapshot. Start again without the continuation.