Read Chunks
POST /api/v1/code/chunks. Request parameters and response schemas.
POST
corfedoOAuth corfedo:repositories:code:readheader
AuthorizationBearer <token>Corfedo-issued bearer credential for the workspace's API resource, such as https://workspace.corfedo.example/api; the workspace host is the issuer. Public clients identify themselves with a Client ID Metadata Document URL and use PKCE S256; service clients use private_key_jwt. Browser cookies and MCP-resource credentials are not accepted.
Scope: corfedo:repositories:code:read
application/json- body
repository*stringpath*stringrevision?null|stringspans?array<>contextLines?|Format
int32Range
-2147483648 <= value <= 2147483647maximumChunks?|Format
int32Range
-2147483648 <= value <= 2147483647maximumBytes?|Format
int32Range
-2147483648 <= value <= 2147483647deadlineMilliseconds?|Format
int32Range
-2147483648 <= value <= 2147483647maximumWorkUnits?|Canonical UInt64 decimal string (0 through 18446744073709551615).
Match
^(0|[1-9][0-9]*)$Length
length <= 20OK
application/json- response
status*CodeReadStatusValue in
"found""notFound""stale""unavailable"repository*stringpath*stringrevision?null|stringcurrentRevision?null|stringchunks?array<>truncated?booleanexecution?null|curl -X POST 'https://example.com/api/v1/code/chunks' \ -H 'Content-Type: application/json' \ -d '{ "repository": "string", "path": "string"}'Example Response
{ "status": "found", "repository": "string", "path": "string", "revision": null, "currentRevision": null, "chunks": [ { "bytes": { "start": "string", "end": "string" }, "lines": { "start": 0, "end": 0 }, "content": "string", "highlights": [ { "start": "string", "end": "string" } ] } ], "truncated": true, "execution": null}