Syncs an asset with its source, re-fetching it and re-indexing what changed.
Starts an asynchronous sync against the asset's stored source configuration: fetches current documents, diffs against what is already indexed, and re-embeds documents that changed, failed or are missing. Returns immediately with a `LongOperation`; clients poll `GET /assets/{asset}/operations/{operation}` until state is `Completed` or `Failed`. When `documentIds` is supplied only the listed documents are synced (useful for webhook-driven incremental updates); otherwise the full source is re-scanned. With `full: true` every document is deleted and re-embedded, and search has gaps until the sync finishes. A sync writes to the index and can spend embedding credits. Concurrent syncs for the same asset are rate-limited.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The asset ID.
uuidThe tenant identifier
Optional body. When documentIds is provided, only those documents are synced; full rebuilds
the whole index.
Sync only these documents. When omitted, the whole source is re-scanned.
Delete every document and re-embed them all. Search has gaps until the sync finishes. Defaults to
false, which keeps unchanged documents.
Response Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/assets/497f6eca-6276-4993-bfeb-53cbbbba6f08:sync" \ -H "Content-Type: application/json" \ -d '{}'{
"asset": {
"id": "string",
"displayName": "string",
"description": "string",
"type": "string",
"vectorized": false,
"config": {
"sourceType": "string",
"parameters": {}
},
"integrationId": "string",
"assetLink": "string",
"createdAt": 0,
"modifiedAt": 0,
"autoUpdate": false,
"autoUpdateConfig": {
"strategy": "WEBHOOK",
"provider": "string",
"externalContext": "string",
"filter": "string",
"pollFrequency": "DAILY",
"pollDay": "string",
"pollDayOfMonth": 0,
"pollHour": "string",
"pollMinute": "string",
"timezone": "string"
},
"lastPolledAt": 0,
"embeddingLlmConfigId": "string",
"integrationConfigId": "string",
"networkId": "00000000-0000-0000-0000-000000000000",
"sharingReview": "AWAITING_REVIEW",
"sharingReviewedBy": "string",
"sharingReviewedAt": 0,
"supportsAutoUpdate": false,
"supportsWebhookRegistration": false,
"supportsPollSchedule": false,
"embedding": {
"provider": "string",
"model": "string",
"chunkSize": 0,
"chunkOverlap": 0
},
"budget": {
"tokenBudget": 0,
"monthlyTokenBudget": 0,
"dailyTokenBudget": 0,
"totalTokenCount": 0,
"lifetimeTokensUsed": 0,
"monthlyTokensUsed": 0,
"dailyTokensUsed": 0,
"costBudget": 0,
"monthlyCostBudget": 0,
"dailyCostBudget": 0,
"totalCost": 0,
"monthlyCostUsed": 0,
"dailyCostUsed": 0,
"pricePerMillionTokens": 0
},
"embeddingStatus": "PENDING",
"errorCategory": "CREDENTIALS",
"errorMessage": "string",
"errorNextStep": "string",
"sourceHealth": "HEALTHY",
"sourceHealthChangedAt": 0,
"lastSyncedAt": 0
},
"longOperation": {
"name": "string",
"status": "PENDING",
"resourceName": "string",
"resourceType": "string",
"startedAt": 0,
"completedAt": 0,
"error": "string",
"metadata": {}
}
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Lists supported content types for file upload ingestion.
Returns the MIME types and file extensions that `POST /assets:file` will accept. Use this to validate uploads client-side before submitting the multipart request. The list reflects parser availability in the RAG service and is identical for all tenants.
Gets token and chunk usage statistics for an asset.
Returns aggregate counts across the asset's current index: indexed documents, chunks, and embedded tokens, plus `totalFileSize` — the summed size in bytes of the asset's documents, in any ingestion status. Useful for billing dashboards and for sizing decisions before changing the token budget via `PATCH /assets/{asset}`. Reflects the current state of the index, not lifetime totals — deleted documents are excluded. For per-operation cost detail use `GET /assets/{asset}/operations`.