Skip to main content
GET
/
local-folders
List local folders
curl --request GET \
  --url https://apigcp.trynia.ai/v2/local-folders \
  --header 'Authorization: Bearer <token>'
{
  "local_folders": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "display_name": "<string>",
      "status": "processing",
      "folder_path": "<string>",
      "file_count": 0,
      "chunk_count": 0,
      "created_at": "<string>",
      "updated_at": "<string>",
      "error": "<string>",
      "classification": {
        "categories": [
          "<string>"
        ],
        "distribution": {},
        "total_classified": 123,
        "status": "pending",
        "progress": 123,
        "classified_at": "<string>"
      },
      "source_subtype": "database",
      "db_type": "<string>",
      "continuous_sync": {
        "enabled": true,
        "last_sync": "<string>",
        "sync_cursor": {}
      },
      "category_id": "<string>"
    }
  ],
  "total": 123
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Query Parameters

limit
integer
default:50

Maximum folders to return

offset
integer
default:0

Pagination offset

status
enum<string>

Filter by status

Available options:
processing,
completed,
indexed,
failed

Response

List of local folders

local_folders
object[]
total
integer

Total number of local folders