v1
latestOpenAPI 3.0.02026-08-04184091.2 KBknowledgebases
Retrieve a knowledgebase datasource sync history
Retrieves detailed sync history for a specified datasource.
get/api/v1/knowledgebases/{id}/datasources/{datasourceId}/histories/{syncId}
Path parameters
datasourceIdstring uuid required
Example:f256b3e4-03e0-4f74-ae46-a4d43882ee5d
The id of the datasource.
idstring uuid required
Example:f256b3e4-03e0-4f74-ae46-a4d43882ee5d
The id of the knowledgebase the datasource belongs to.
syncIdstring uuid required
Example:f256b3e4-03e0-4f74-ae46-a4d43882ee5d
The sync identifier.
Response
List of sync items ordered by the start time.
Example response
{
"id": "f256b3e4-03e0-4f74-ae46-a4d43882ee5d",
"error": "unsupported file extension",
"chunks": 10,
"source": "myfile.pdf",
"syncId": "f256b3e4-03e0-4f74-ae46-a4d43882ee5d",
"duration": {
"embed": 996,
"store": 3653363805,
"download": 207
},
"fileSize": 123044444,
"syncedAt": "2021-10-02T14:20:50.52Z",
"chunkSize": 14721,
"errorCode": "parse_failed",
"fileStartedAt": "2021-10-02T14:20:50.52Z",
"fileCompletedAt": "2021-10-02T14:21:50.52Z",
"fileLastModified": "2024-02-16T20:06:02Z"
}