CorfedoCorfedoDocs
ReferenceAPI referenceSearch and read

List File Symbols

POST /api/v1/code/symbols. Request parameters and response schemas.

POST
/api/v1/code/symbols

Authorization

corfedoOAuth corfedo:repositories:code:read
headerAuthorizationBearer <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

Request Body

application/json
  1. body
repository*string
path*string
revision?null|string
pageSize?|
Formatint32
Range-2147483648 <= value <= 2147483647
deadlineMilliseconds?|
Formatint32
Range-2147483648 <= value <= 2147483647
maximumWorkUnits?|

Canonical UInt64 decimal string (0 through 18446744073709551615).

Match^(0|[1-9][0-9]*)$
Lengthlength <= 20
continuation?null|string

Response Body

OK

application/json
  1. response
status*CodeReadStatus
Value in"found""notFound""stale""unavailable"
repository*string
path*string
revision?null|string
currentRevision?null|string
symbols?array<>
execution?null|
continuation?null|string
Example Request
curl -X POST 'https://example.com/api/v1/code/symbols' \  -H 'Content-Type: application/json' \  -d '{  "repository": "string",  "path": "string"}'
Example Response
{  "status": "found",  "repository": "string",  "path": "string",  "revision": null,  "currentRevision": null,  "symbols": [    {      "id": 0,      "name": "string",      "kind": "function",      "bytes": {        "start": "string",        "end": "string"      },      "lines": {        "start": 0,        "end": 0      },      "parentId": null    }  ],  "execution": null,  "continuation": null}