List a repository's files
Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.
GET
Every file on the default branch of a Syndai-hosted repository, as path and size in bytes, sorted by path; folders are the paths' prefixes. Files that may hold credentials (.env, private keys and the like) and anything under .syndai/ are never listed. A GitHub repository returns provider: github, no entries and web_url, its page on GitHub. 404 for a repository that is not yours; 503 when the files can't be read right now.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
coding_repository_id*stringFormat
uuidcustomer_id?|nullRequest fulfilled, document follows
application/json- response
entries*array<>provider*stringweb_url?string|nullcurl -X GET 'https://api.syndai.ai/api/v1/external/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/files'Example Response
{ "entries": [ { "path": "string", "size": 0 } ], "provider": "string", "web_url": "string"}