Overview
Start an asynchronous sync job that pulls the latest data from the connected source. The job runs in the background and you can monitor its progress using the jobs endpoint.
For continuous sync connections, this performs an incremental sync by default. Use force_full_sync=true to perform a complete re-sync of all data.
Path Parameters
Unique UUID identifier of the source connection to syncExample: “550e8400-e29b-41d4-a716-446655440000”
Query Parameters
Force a full sync ignoring cursor dataOnly applies to continuous sync connections. Non-continuous connections always perform full syncs.
Response
Returns a sync job object.
Unique UUID identifier of the sync job
ID of the source connection this job belongs to
Current status: PENDING, RUNNING, COMPLETED, FAILED, CANCELLED, or CANCELLING
When the job started execution (ISO 8601)
When the job finished (ISO 8601). Null if still running.
Total execution time in seconds. Null if still running.
Number of new entities created during this sync
Number of existing entities updated during this sync
Number of entities removed during this sync
Number of entities that failed to process
Error message if the job failed
Example Request
curl -X POST "https://api.airweave.ai/v1/source-connections/550e8400-e29b-41d4-a716-446655440000/run" \
-H "Authorization: Bearer YOUR_API_KEY"
Example Response
{
"id": "770e8400-e29b-41d4-a716-446655440002",
"source_connection_id": "550e8400-e29b-41d4-a716-446655440000",
"status": "PENDING",
"started_at": null,
"completed_at": null,
"duration_seconds": null,
"entities_inserted": 0,
"entities_updated": 0,
"entities_deleted": 0,
"entities_failed": 0,
"error": null,
"error_details": null
}
Job Statuses
- PENDING: Job is queued, waiting for the worker to pick it up
- RUNNING: Sync is actively pulling and processing data
- COMPLETED: Sync finished successfully
- FAILED: Sync encountered an unrecoverable error
- CANCELLING: Cancellation has been requested. Worker is stopping.
- CANCELLED: Sync was cancelled
Error Responses
Source connection with the specified ID does not exist
A sync is already running for this connection