Bibhor Dhungel
10/27/2023, 5:32 AMkapa.ai
10/27/2023, 5:33 AMcsharp //Gets status of the job var client = new RestClient("<https://api.airbyte.com/v1/jobs/>" + jobId); //We add the jobId var 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 var apiResponse = JsonConvert.DeserializeObject(statusResponse.Content); string jobStatus = apiResponse.status; This code snippet is in C# and it retrieves the status of a specific job by its ID. You would need to replace {YourApiKey} with your actual API key and jobId with the ID of the job you want to monitor. Please note that this code checks the status of a specific job, not the entire job history of a connection. The exact API endpoint to retrieve the job history of a connection is not provided in the extracts. For more detailed and accurate information, I recommend checking the official Airbyte API documentation or reaching out to the Airbyte support team. Sources: - [Create and Monitor a Data Pipeline Using the Airbyte API](https://airbyte.com/tutorials/create-and-monitor-a-data-pipeline-using-the-airbyte-api) - [Review the sync history](https://docs.airbyte.com/cloud/managing-airbyte-cloud/review-sync-history)