Search a project's knowledge
Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.
GET
Search every knowledge source of the project at once: its synced and uploaded files, each attached tool (5 s each) and its shared Google Drive. Up to 8 hits, interleaved per source, each with its passage; a source that didn't answer in time is named in slow. Requires coding:repos:read.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
coding_repository_id*stringFormat
uuidq*stringLength
1 <= length <= 300source?|nullcustomer_id?|nullRequest fulfilled, document follows
application/json- response
failed?array<string>hits*array<>note?string|nullslow?array<string>curl -X GET 'https://api.syndai.ai/api/v1/external/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/knowledge/search?q=string'Example Response
{ "failed": [ "string" ], "hits": [ { "offset": 0, "ref": "string", "source": "string", "text": "string", "title": "string", "url": "string" } ], "note": "string", "slow": [ "string" ]}