CorfedoCorfedoDocs
ReferenceAPI referenceSearch and read

Lookup Scope

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

POST
/api/v1/scope/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
prefix?string
target?ScopeNameTarget
Value in"repositories""contexts""all""owners"
limit?integer
Formatint32
Range-2147483648 <= value <= 2147483647

Response Body

OK

application/json
  1. response
matches?array<||>
Example Request
curl -X POST 'https://example.com/api/v1/scope/lookup' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "matches": [    {      "kind": "repository",      "repositoryId": "string",      "provider": "string",      "forgeHost": "string",      "name": "string"    }  ]}