Dan Martyr
01/12/2023, 8:12 PM'Authorization': "Basic YWlyYnl0ZTpwYXNzd29yZA==", so I've tried various combinations along the lines of:
curl --request POST localhost:8000/api/v1/connections/sync --header "Authorization: 'Basic YWlyYnl0ZTpwYXNzd29yZA=='" --data "{connectionId: abc123-def456-99999-99999}"
Can anyone point out the obvious flaw here? TIA!Dan Martyr
01/12/2023, 8:19 PMAirbyte Open Source doesn't require an API Token for Authentication. All endpoints are acccessible without the token. but the page it links to https://airbyte-public-api-docs.s3.us-east-2.amazonaws.com/rapidoc-api-docs.html says When authenticating to the Configuration API, you must use Basic Authentication etc. So do I need to use a token or not? Confused noob is confused.Macharia Muguku
01/13/2023, 8:16 AMusername:password
curl --location --request POST '<http://localhost:8000/api/v1/connections/list>' \
--header 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
--header 'Content-Type: application/json' \
--data-raw '{
"workspaceId": "095869d2-7fee-46bf-936e-300e6e827011"
}'
P:S, You can use postman too with basic authNataly Merezhuk (Airbyte)
01/13/2023, 3:05 PMDan Martyr
01/13/2023, 4:38 PMChÃnh Bùi Quang
08/24/2023, 2:41 AMkapa.ai
08/24/2023, 2:42 AM/v1/jobs/list endpoint to fetch all the jobs ran for a specific connection. This was mentioned in a [forum discussion](https://discuss.airbyte.io/t/2235) on the Airbyte community forum. Here is an example of how you can monitor a job using the Airbyte API, as shown in this [tutorial](https://airbyte.com/tutorials/create-and-monitor-a-data-pipeline-using-the-airbyte-api): csharp while(jobStatus == "running") { //Gets status of the job client = new RestClient("<https://api.airbyte.com/v1/jobs/>" + jobId);//We add the 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); //Prints info in console depending on the status if (jobStatus == "running") { Console.WriteLine("Job running..."); } else { Console.WriteLine("Job Finished..."); Console.WriteLine(" "); Console.WriteLine("Sync details:"); Console.WriteLine(" JobId:" + apiResponse.jobId); Console.WriteLine(" Status:" + jobStatus); Console.WriteLine(" Rows/Bytes Synced:" + apiResponse.rowsSynced + "/" + apiResponse.bytesSynced); Console.WriteLine(" Sync Start Time:" + apiResponse.startTime); Console.WriteLine(" Sync Last Updated:" + apiResponse.lastUpdatedAt); Console.WriteLine(" Sync Duration:" + apiResponse.duration); } } Please replace {YourApiKey} with your actual API key. This code checks the status of the job every 10 seconds and prints the job details once the job is finished. You can find more details about the Airbyte API in the [API documentation](https://airbyte-public-api-docs.s3.us-east-2.amazonaws.com/rapidoc-api-docs.html#servers).