<@U04S8PLJWMT> , what is the sync api endpoint to ...
# replication-ask-ai
a
@kapa.ai , what is the sync api endpoint to fetch the latest sync_id , currently using /jobs/list
k
To fetch the latest sync job information (including the job ID), you can use the Airbyte Public API's
GET /jobs
endpoint
with filtering by
connectionId
. This will return a list of jobs, and you can sort/limit to get the latest one. Endpoint:
Copy code
GET https://api.airbyte.com/v1/jobs
Key query parameters: Example cURL:
Copy code
curl -X GET "https://api.airbyte.com/v1/jobs?connectionId=<your-connection-id>&jobType=sync&limit=1" \
  -H "accept: application/json" \
  -H "Authorization: Bearer {YourApiKey}"
This returns a response with job details including
jobId
,
status
,
startTime
,
rowsSynced
,
bytesSynced
, and
duration
. [listJobs API] Once you have the
jobId
, you can also fetch details for a specific job using:
Copy code
GET https://api.airbyte.com/v1/jobs/{jobId}
[getJob API] > Note: The
configId
used in the older internal
/api/v1/jobs/list
endpoint is equivalent to the
connectionId
. The public API (
/v1/jobs
) is the recommended approach. [sync history forum] šŸ‘ 0 button šŸ‘Ž 0 button ā„¹ļø Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help., with interactive elements
a
jobs/list endpoint gives me records emitted per stream to know which stream changed how to limit that @kapa.ai
k
Based on the knowledge sources available, I don't have enough information to provide a confident answer about limiting records emitted per stream from the
/jobs/list
endpoint, or filtering sync results by specific streams. What the Airbyte Public API's
GET /jobs
endpoint does support for filtering/limiting is: •
connectionId
– filter by connection •
jobType
– filter by
sync
or
reset
•
status
– filter by job status •
limit
/
offset
– paginate results •
createdAtStart
/
createdAtEnd
– filter by date range •
orderBy
– sort results [listJobs API] However, the knowledge sources do not mention a way to filter or limit results at the stream level within the jobs API response. Stream-level metrics (records emitted per stream) are not described as filterable parameters in the available documentation. For this use case, I'd suggest: 1. Checking the Airbyte API reference directly for any stream-level filtering options not covered here. 2. Posting your question on the Airbyte community forum or Slack, where the team or community members may have a workaround. šŸ‘ 0 button šŸ‘Ž 0 button ā„¹ļø Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
The knowledge sources provided do not contain enough information to answer your specific question about filtering or limiting per-stream records emitted data from the
GET /jobs
(listJobs) endpoint. From what the knowledge sources do show, the
GET /jobs
endpoint supports these filtering/limiting parameters: •
connectionId
– filter by connection •
jobType
– filter by
sync
or
reset
•
limit
– limit number of jobs returned (max 100) •
status
– filter by job status •
createdAtStart
/
createdAtEnd
– filter by creation date range •
orderBy
– sort results [listJobs API] However, the knowledge sources do not mention any parameter to filter or limit results at the per-stream level within a job response. The per-stream breakdown (records emitted per stream) is not described in detail in the available documentation. For more granular per-stream information, I'd recommend checking the Airbyte API reference documentation directly or reaching out to Airbyte support, as this level of detail is beyond what the available knowledge sources cover. šŸ‘ 0 button šŸ‘Ž 0 button ā„¹ļø Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.