C#
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); } }
{ "worksheet_query_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "<string>", "error": "<string>", "created_at": "2023-11-07T05:31:56Z", "finished_at": "2023-11-07T05:31:56Z" }
Get the status of a query.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The query task UUID.
The status of the query task.
An error message if the query failed.
When the query was created.
When the query finished.