Database
Query Status
Get the status of a query task.
GET
/
v1
/
database
/
query
/
{query_task_id}
/
status
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
string queryTaskId = "YOUR_QUERY_TASK_ID"; // Replace with your query task ID
string token = "YOUR_API_TOKEN"; // Replace with your API token
string url = $"https://api.roe-ai.com/v1/database/query/{queryTaskId}/status/";
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
HttpResponseMessage response = await client.GetAsync(url);
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
}
{
"query_task_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "SUCCESS"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200
application/json
Query status
The response is of type object
.
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
string queryTaskId = "YOUR_QUERY_TASK_ID"; // Replace with your query task ID
string token = "YOUR_API_TOKEN"; // Replace with your API token
string url = $"https://api.roe-ai.com/v1/database/query/{queryTaskId}/status/";
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
HttpResponseMessage response = await client.GetAsync(url);
string responseBody = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseBody);
}
}
{
"query_task_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "SUCCESS"
}