Pranay S
11/12/2025, 7:19 AMhttps://api.airbyte.com/v1/jobs
now the sync has started but i also want some loading or atleast an estimate timer, or anything of that sort to keep the ui dynamic.
is there a way i can do that?
im aware of the endpoint https://api.airbyte.com/v1/jobs/jobId which will give me current status of the job, but calling it again and again until it shows completed is abit hectic. is there a more elegant way to deal with it?kapa.ai
11/12/2025, 7:19 AM/jobs/{jobId}) at regular intervals. This is the approach shown in the official Airbyte tutorial, where the job status is checked every 10 seconds until it is no longer "running"—at which point you can update your UI with the final status and details of the sync. Here’s a code example from the tutorial: csharp while(jobStatus == "running") { // Gets status of the job client = new RestClient("https://api.airbyte.com/v1/jobs/" + jobId); request = new RestRequest(); request.AddHeader("accept", "application/json"); request.AddHeader("content-type", "application/json"); request.AddHeader("Authorization", "Bearer {YourApiKey}"); dynamic statusResponse = client.ExecuteGet(request); // Deserialize response to get the status of the job apiResponse = JsonConvert.DeserializeObject(statusResponse.Content); jobStatus = apiResponse.status; // Waits 10 seconds.. Thread.Sleep(10000); // Print info in console depending on the status if (jobStatus == "running") { Console.WriteLine("Job running..."); } else { Console.WriteLine("Job Finished..."); // Print sync details... } } This polling approach is standard and currently the only documented method for dynamically updating your UI with job progress using the Airbyte API. There is no mention in the official documentation of a push-based or websocket mechanism for real-time updates, nor an endpoint that provides an estimated time to completion or a progress percentage. However, you can use the job details (such as rowsSynced, bytesSynced, and duration) returned by the status endpoint to provide more dynamic feedback in your UI as the job progresses. If you want to make the UI more dynamic, you could: - Poll more frequently for faster updates (with consideration for rate limits). - Display a loading spinner or progress bar based on the job status and available metrics. - Show the last updated time, rows/bytes synced, and duration as they update. But fundamentally, polling the job status endpoint is the recommended and supported approach at this time [Create and Monitor a Data Pipeline Using the Airbyte API](https://airbyte.com/tutorials/create-and-monitor-a-data-pipeline-using-the-airbyte-api). If Airbyte introduces a more elegant, event-driven solution in the future, it will likely be announced in their release notes or API documentation. For now, polling remains the best practice.