Skip to content
Last updated

Rewind cursors to re-sync data or erase destination data for selected streams.

Refresh connection

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.

Path Parameters

connection_id string required

The connection ID to refresh.

Request Body

streams array required

Stream names to refresh.

remove_records boolean optional · Defaults to false

Whether to remove existing records before re-syncing.


Clear connection

POSThttps://api.aitronos.com/v1/organizations/{organization_id}/knowledge/connectors/connections/{connection_id}/clear

Erases destination data for selected streams without re-syncing.

Request Body

streams array required

Stream names to clear.


Returns

A status object indicating the refresh or clear operation has been initiated.

cURL — Refresh
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}'