Rewind cursors to re-sync data or erase destination data for selected streams.
POSThttps://api.aitronos.com/v1/organizations/{organization_id}/knowledge/connectors/connections/{connection_id}/refresh
Rewinds the cursor and re-syncs selected streams. Optionally removes existing records before re-syncing.
connection_id string required
The connection ID to refresh.
streams array required
Stream names to refresh.
remove_records boolean optional · Defaults to false
Whether to remove existing records before re-syncing.
POSThttps://api.aitronos.com/v1/organizations/{organization_id}/knowledge/connectors/connections/{connection_id}/clear
Erases destination data for selected streams without re-syncing.
streams array required
Stream names to clear.
A status object indicating the refresh or clear operation has been initiated.
cURL — Refresh
- Bash
- Bash
- Python
- Python
- JavaScript
curl -X POST "https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/connectors/connections/conn_abc123/refresh" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"streams": ["users", "orders"], "remove_records": false}'