CorfedoCorfedoDocs
ReferenceAPI referenceSearch and read

Lookup Symbols

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

POST
/api/v1/symbols/lookup

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
name*string
match?SymbolNameMatch
Value in"exact""contains""regex"
caseSensitive?boolean
kind?null|
scope?null|
options?

Response Body

OK

application/json
  1. response
status*CodeSearchStatus
Value in"complete""partial""unavailable"
matches?array<>
execution?null|
scope?null|
coverage?
repositories?array<>
hasMore?boolean
scopeReduced?boolean
outputTruncated?boolean
Example Request
curl -X POST 'https://example.com/api/v1/symbols/lookup' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "status": "complete",  "matches": [    {      "repository": "string",      "repositoryId": "string",      "path": null,      "revision": "string",      "status": "found",      "snippet": null,      "symbol": null    }  ],  "execution": null,  "scope": null,  "coverage": {    "total": -2147483648,    "complete": -2147483648,    "partial": -2147483648,    "unavailable": -2147483648  },  "repositories": [    {      "repositoryId": "string",      "repository": "string",      "state": "complete",      "failure": "none",      "partialReasons": [        "deadline"      ]    }  ],  "hasMore": true,  "scopeReduced": true,  "outputTruncated": true}