<@U04SE163WC8> using the API how do I get job hist...
# replication-ask-ai
b
@kapa.ai using the API how do I get job history for a particular connection
k
To get the job history for a particular connection using the Airbyte API, you would need to make a GET request to the jobs endpoint with the specific job ID. However, the extracts provided do not contain the exact API endpoint or the complete code to retrieve the job history for a specific connection. Here is a general example of how you might retrieve the status of a specific job, based on the information provided in the extracts:
Copy code
csharp //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)