Skip to main content
GET
/
folders
/
{id}
/
files
List files in a folder
curl --request GET \
  --url https://app.generalcounsel.ai/api/external/v1/folders/{id}/files \
  --header 'Authorization: <api-key>'
{
  "files": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "size": 123,
      "content_type": "<string>",
      "status": "extracting",
      "created_at": "<string>"
    }
  ],
  "pagination": {
    "limit": 123,
    "offset": 123,
    "has_more": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.gc.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key for authentication. Format: gcai_xxxxxxxxx

Create API keys in the GC AI app under Settings → Organization → API Keys.

Path Parameters

id
string<uuid>
required

The folder ID

Query Parameters

limit
integer

Max files to return (default 100, max 500)

Required range: 0 < x <= 500
offset
integer

Number of files to skip (default 0)

Required range: x >= 0

Response

Paginated list of files

files
object[]
required
pagination
object
required