Syndai Docs

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
/api/v1/external/coding/repos/{coding_repository_id}/files

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.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

coding_repository_id*string
Formatuuid

Query Parameters

customer_id?|null

Response Body

Request fulfilled, document follows

application/json
  1. response
entries*array<>
provider*string
web_url?string|null
Example Request
curl -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"}
Was this page helpful?