Get Enterprise Search Index Status
curl --request GET \
--url https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connector_status": {
"cc_pair_id": 125,
"name": "Datagol-Workspace_File_Connector-{workspaceId}",
"cc_pair_status": "PAUSED",
"access_type": "public",
"last_finished_status": "success",
"last_status": "success",
"last_success": "2026-05-29T12:22:50.515871Z",
"docs_indexed": 2,
"in_progress": true,
"in_repeated_error_state": false,
"latest_index_attempt": {
"id": 396,
"status": "success",
"from_beginning": true,
"new_docs_indexed": 1,
"total_docs_indexed": 2,
"docs_removed_from_index": 0,
"error_msg": null,
"error_count": 0,
"time_started": "2026-05-29T12:22:50.457155+00:00",
"time_updated": "2026-05-29T12:22:57.745602+00:00",
"poll_range_start": "1970-01-01T00:00:00Z",
"poll_range_end": "2026-05-29T12:22:50.515871Z"
}
},
"file_level_indexing_status": {}
}Enterprise Search
Get Enterprise Search Index Status
1️⃣ Overview
Purpose:
Retrieves the current indexing status of the enterprise search connector for a specific workspace.
Use this endpoint to monitor whether indexing is in progress, completed, or failed.
2️⃣ Endpoint
GET /ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status
3️⃣ Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | ✅ Yes | The ID of the workspace to check the index status for |
4️⃣ Authentication
Requires authentication using:
Authorization: Bearer <token>
5️⃣ Request Headers
| Header | Required |
|---|---|
| Authorization | ✅ Yes |
6️⃣ Example Request
curl --location 'https://ai.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status' \
--header 'Authorization: Bearer <token>'
7️⃣ Behavior Summary
Returns the current indexing status of the enterprise search connector for the specified workspace.
Typically used to poll the status after triggering a re-index via the Re-index Workspace Files endpoint.
GET
/
ai
/
api
/
v2
/
enterprise-search
/
connector
/
dg-s3-workspace
/
{workspaceId}
/
status
Get Enterprise Search Index Status
curl --request GET \
--url https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status \
--header 'Authorization: Bearer <token>'import requests
url = "https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://be.datagol.ai/ai/api/v2/enterprise-search/connector/dg-s3-workspace/{workspaceId}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"connector_status": {
"cc_pair_id": 125,
"name": "Datagol-Workspace_File_Connector-{workspaceId}",
"cc_pair_status": "PAUSED",
"access_type": "public",
"last_finished_status": "success",
"last_status": "success",
"last_success": "2026-05-29T12:22:50.515871Z",
"docs_indexed": 2,
"in_progress": true,
"in_repeated_error_state": false,
"latest_index_attempt": {
"id": 396,
"status": "success",
"from_beginning": true,
"new_docs_indexed": 1,
"total_docs_indexed": 2,
"docs_removed_from_index": 0,
"error_msg": null,
"error_count": 0,
"time_started": "2026-05-29T12:22:50.457155+00:00",
"time_updated": "2026-05-29T12:22:57.745602+00:00",
"poll_range_start": "1970-01-01T00:00:00Z",
"poll_range_end": "2026-05-29T12:22:50.515871Z"
}
},
"file_level_indexing_status": {}
}Authorizations
This API uses OAuth 2.0 with the authorization code grant flow.
Path Parameters
The ID of the workspace to check the index status for