Dataset
Get Datasets
Retrieve datasets associated with a knowledgebase
GET
Get Datasets
Retrieves all datasets associated with a specific knowledgebase.
Endpoint
Path Parameters
The ID of the knowledgebase to get datasets from
Headers
Your project API key for authentication
Response
Returns an array of dataset objects.
Unique identifier for the dataset
Name of the uploaded file
URL to access the dataset file
File extension type (e.g., “pdf”, “txt”)
Size of the file in bytes
Timestamp when the dataset was created
Timestamp when the dataset was last updated
Example response:
Error Responses
Status Code | Description |
---|---|
401 | Invalid API key |
404 | Knowledgebase not found |
500 | Internal server error |
Usage Notes
- The response includes all datasets that have been uploaded to the knowledgebase
- File URLs are temporary and may expire after a certain period
- The size is reported in bytes
- Timestamps are in ISO 8601 format