Skip to main content
POST
Use this route when the upstream content behind existing sources has changed and you want Fini to re-fetch those sources.
Refreshing sources is the first step in the knowledge-refresh workflow. After the refresh completes, use List sources with changed=true, then call Bulk generate knowledge on those changed source IDs.

Headers

string
required
Bearer token containing your Fini workspace API key. Format: Bearer fini_... The key needs write scope.
string
required
application/json

Body parameters

array
required
Existing source IDs to requeue for refresh.

Response

The response is a top-level array of source IDs accepted for refresh.
array
Source IDs that were queued for refresh.
Raw-file sources cannot be refreshed through this route. Delete and re-upload them instead.

Errors

The request body is malformed, documentIds is missing or empty, one of the source IDs does not exist, or you tried to refresh a raw-file source.
The API key is missing, malformed, revoked, or invalid.
The API key does not include the write scope, or the source IDs belong to a different workspace.
Fini failed while queueing or processing the refresh. Retry once, then inspect the affected IDs in List sources.