Skip to main content
GET
/
api
/
dataset
/
organization
/
{organization_id}
Get Datasets from Organization
curl --request GET \
  --url https://api.trieve.ai/api/dataset/organization/{organization_id} \
  --header 'Authorization: <api-key>' \
  --header 'TR-Organization: <tr-organization>'
[
  {
    "dataset": {
      "created_at": "2021-01-01 00:00:00.000",
      "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
      "name": "Trieve",
      "organization_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
      "server_configuration": {},
      "updated_at": "2021-01-01 00:00:00.000"
    },
    "dataset_usage": {
      "chunk_count": 100,
      "dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
      "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3"
    }
  }
]

Authorizations

Authorization
string
header
required

Headers

TR-Organization
string<uuid>
required

The organization id to use for the request

Path Parameters

organization_id
string<uuid>
required

id of the organization you want to retrieve datasets for

Query Parameters

limit
integer | null

The number of records to return

offset
integer | null

The number of records to skip

Response

Datasets retrieved successfully

dataset
object
required
Example:
{
"created_at": "2021-01-01 00:00:00.000",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"name": "Trieve",
"organization_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"tracking_id": "3",
"updated_at": "2021-01-01 00:00:00.000"
}
dataset_usage
object
required
Example:
{
"chunk_count": 100,
"dataset_id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
"id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3"
}
I