Get Source Sync History
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/sources/{source_id}/sync-history \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/sources/{source_id}/sync-history"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/sources/{source_id}/sync-history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"object": "sync_history",
"status": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"documents_synced": 123,
"error_message": "<string>"
}
],
"has_more": true,
"total": 123,
"object": "list"
}Sources
Get Source Sync History
Get sync history for a knowledge source.
GET
/
api
/
v1
/
sources
/
{source_id}
/
sync-history
Get Source Sync History
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/sources/{source_id}/sync-history \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/sources/{source_id}/sync-history"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/sources/{source_id}/sync-history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"object": "sync_history",
"status": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"documents_synced": 123,
"error_message": "<string>"
}
],
"has_more": true,
"total": 123,
"object": "list"
}