FastGPTFastGPT

List Datasets (Deprecated)

Legacy endpoint to list accessible datasets without pagination (deprecated; migrate to POST /api/core/dataset/listV2).

⚠️

Deprecated Endpoint : POST /api/core/dataset/list is deprecated. Migrate to List Datasets (V2) ( POST /api/core/dataset/listV2 ) for paginated queries and datasetIds batch lookup.

Endpoint Overview

  • Method : POST
  • Path : /api/core/dataset/list
  • Module : Datasets / Datasets
  • Authentication : Authorization: Bearer <apiKey>—Personal API Key (access scoped by team member permissions) (see API Getting Started )
  • Interactive Try-It-Out : Open in Scalar API Explorer (self-hosted instances: replace the origin with <instance>/apidoc/systemopenapi#tag/%E7%9F%A5%E8%AF%86%E5%BA%93%E7%AE%A1%E7%90%86/POST/core/dataset/list )

Description & Notes

Deprecated; use POST /core/dataset/listV2 instead. Retained for backward compatibility and returns an array of accessible datasets filtered by type or keyword, whereas V2 returns { list, total } .

Request Parameters

Request Body ( application/json )

FieldTypeRequiredDefaultConstraints & Description
parentIdstring | nullNo-Parent folder ID; null or omitted queries the root folder
typestring | arrayNo-Dataset type filter
searchKeystringNo-Search keyword matching dataset name and introduction
sortstring (enum)No"updateTimeDesc"Sort order; defaults to most recently updated descending. Allowed values: updateTimeDesc (Sort by update time descending (most recently modified first, default)), createTimeDesc (Sort by creation time descending (newest first)), createTimeAsc (Sort by creation time ascending (oldest first))
tmbIdsstring[]No-Filter by creator member IDs; an empty array returns an empty list

Request Examples

Replace YOUR_API_KEY and placeholder IDs before running. Self-hosted users should replace the base URL with <instance>/api .

cURL Example

curl --fail-with-body -X POST "https://cloud.fastgpt.io/api/core/dataset/list" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{}'

Minimal Valid JSON Body

{}

Response Schema & Examples

Successful /api/* calls return the standard FastGPT envelope { "code": 200, "statusText": "", "message": "", "data": ... } , where data matches the 200 schema below (when a payload schema is declared; otherwise refer to the status description for runtime data semantics).

HTTP 200

Successfully returned dataset list

Content-Type : application/json

Root Type : Array ( object[] ). Each array item has the following fields:

FieldTypeRequiredDefaultConstraints & Description
_idstringYes-Dataset ID. pattern: ^[0-9a-fA-F]{24}$
tmbIdstringYes-Team member ID. pattern: ^[0-9a-fA-F]{24}$
avatarstringYes"/icon/logo.svg"Avatar
createTimestringYes-Creation time
updateTimestringYes-Update time
namestringYes-Name
introstringYes-Introduction
typestring (enum)Yes-Dataset type. Allowed values: folder , dataset , websiteDataset , externalFile , apiDataset , feishu , yuque , dingtalk
permissionobjectYes-Serialized permission object JSON structure
permission.roleintegerYes-Permission role bitmask value. min: -9007199254740991; max: 9007199254740991
permission.isOwnerbooleanYes-Whether the caller has owner permission
permission.hasManagePerbooleanYes-Whether the caller has manage permission
permission.hasWritePerbooleanYes-Whether the caller has write permission
permission.hasReadPerbooleanYes-Whether the caller has read permission
permission.hasManageRolebooleanYes-Whether manage role bit is set
permission.hasWriteRolebooleanYes-Whether write role bit is set
permission.hasReadRolebooleanYes-Whether read role bit is set
appCountintegerNo-Count of published apps referencing this dataset (returned only to non-folder owners when enabled). min: 0; max: 9007199254740991
fileCountintegerNo-Total non-folder collection count across all depths (unfiltered by file permissions; returned only when withFileCount is requested on non-folder datasets). min: 0; max: 9007199254740991
vectorModelobjectNo-Embedding model info (empty for folders or deleted models; inactive models still return display metadata)
vectorModel.pricingobjectNo-Credit price per fixed billing unit; omitted if free
vectorModel.pricing.unitPricenumberNo-Composite credit price per million units (tokens/TTS) or per 60 seconds (STT). min: 0
vectorModel.providerstringYes-minLength: 1
vectorModel.modelstringYes-minLength: 1
vectorModel.namestringYes-minLength: 1
vectorModel.scopestring (enum)Yes"system"Allowed values: system , team
vectorModel.sortOrderintegerNo-Display rank within the same scope (smaller numbers appear first). min: 0; max: 9007199254740991
vectorModel.tmbIdstring | nullNo--
vectorModel.teamIdstring | nullNo--
vectorModel.isActivebooleanNo--
vectorModel.isUpcomingDeprecationbooleanNo-Whether the model is scheduled for deprecation
vectorModel.requestUrlstringNo--
vectorModel.requestAuthstringNo--
vectorModel.testModebooleanNo--
vectorModel.type"embedding"Yes-Fixed: "embedding"
vectorModel.configobjectYes--
vectorModel.config.defaultTokennumberYes--
vectorModel.config.maxTokennumberYes--
vectorModel.config.weightnumberYes0-
vectorModel.config.hiddenbooleanNo--
vectorModel.config.visionbooleanNo--
vectorModel.config.normalizationbooleanNo--
vectorModel.config.batchSizenumberNo--
vectorModel.config.defaultConfigobjectNo--
vectorModel.config.dbConfigobjectNo--
vectorModel.config.queryConfigobjectNo--
vectorModel.modelIdstringYes--
vectorModel.avatarstringNo--
inheritPermissionbooleanYes-Whether permissions are inherited from parent
privatebooleanNo-Whether access is private to the owner
folderAccessModestring (enum)No-Folder access mode; navigate allows traversing readable descendants without granting direct read permission. Allowed values: read , navigate
sourceMemberobjectNo-Source member
sourceMember.namestringYes-Member name
sourceMember.avatarstring | nullNo-Member avatar
sourceMember.statusstring (enum)Yes-Member status. Allowed values: active , leave , forbidden
Edit on GitHub

Last updated

On this page

Put your business knowledge to work with AI

Import company documents and build accurate, reliable, traceable AI answers.