GET
/
v1
/
datasets
/
{dataset_id}
/
files
Get dataset files
curl --request GET \
  --url https://api.gbase.ai/v1/datasets/{dataset_id}/files
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "title": "<string>",
      "filename": "<string>",
      "file_type": "<string>",
      "file_status": "ready",
      "file_size": 0,
      "token_count": 0,
      "characters_count": 0,
      "failed_reason": "<string>",
      "index_ids": "<any>",
      "resources": "<any>",
      "content_hash": "<string>",
      "source_type": "<string>",
      "learn_type": 100,
      "dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "tokens": 123,
      "lark_file": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z",
        "name": "<string>",
        "type": "<string>",
        "token": "<string>",
        "parent_token": "<string>",
        "created_time": "<string>",
        "modified_time": "<string>",
        "owner_id": "<string>",
        "url": "<string>",
        "vector_file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      }
    }
  ],
  "total": 1,
  "page": 2,
  "size": 2,
  "pages": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
string<uuid>
required

Query Parameters

file_type
default:website

An enumeration.

Available options:
file,
website,
sitemap,
gitbook,
faq,
api,
integration
source_type
string
file_status
enum<string>

An enumeration.

Available options:
crawled,
process,
complete,
fail,
exceeded,
deleted,
ready
query
string
learn_type_filter
integer
default:0
integration_rule_id
string<uuid>
file_ids
string[]

list of file IDs to retrieve

start_time
string<date-time>
end_time
string<date-time>
page
integer
default:1
Required range: x >= 1
size
integer
default:50
Required range: 1 <= x <= 1000
order_by
string

Response

200
application/json

Successful Response

The response is of type object.