Skip to main content
POST
/
v1
/
files
List indexed files for a repository
curl --request POST \
  --url https://api.sharc.dev/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "collection": "<string>",
  "limit": 123,
  "offset": 123
}
'
{
  "files": [
    {
      "relativePath": "<string>",
      "chunkCount": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Pass your key in Authorization: Bearer .

Body

application/json
collection
string
required
limit
integer
offset
integer

Response

200 - application/json

File list

files
object[]