Read a knowledge document
Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.
GET
Syndai's view of a synced or uploaded file: its title, path, source and text (up to 2 MB). This is what an agent's citation of the file opens, so every project member can read it. Requires coding:repos:read.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
coding_repository_id*stringFormat
uuidfile_id*stringFormat
uuidcustomer_id?|nullRequest fulfilled, document follows
application/json- response
id*stringFormat
uuidkind*stringmodified_at?|nullpath*stringsource*stringsource_url?string|nullstatus*stringtext*stringtitle*stringtruncated?booleanDefault
falsetrust*stringcurl -X GET 'https://api.syndai.ai/api/v1/external/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/knowledge/docs/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "string", "modified_at": "2019-08-24T14:15:22Z", "path": "string", "source": "string", "source_url": "string", "status": "string", "text": "string", "title": "string", "truncated": false, "trust": "string"}