Skip to main content
POST
/
organization
/
rag
/
sources
/
retrain
Retrain multiple URL sources
curl --request POST \
  --url https://api.getfernand.com/organization/rag/sources/retrain \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "uuids": [
    "a1b2c3d4e5f6g7h8i9j0",
    "b2c3d4e5f6g7h8i9j0k1"
  ]
}
'
{}
Refreshes multiple URL sources by re-fetching their content. Only processes URL sources that haven’t been updated in the last 5 minutes to prevent rapid retries. Useful for updating stale content.

Authorizations

X-API-Key
string
header
required

Authenticate your account by including your secret key in API requests. You can manage your API keys in the Dashboard.

Authentication to the API is performed by using the HTTP Header X-API-Key.

Body

application/json
uuids
string[]
required

Array of source UUIDs to retrain.

Example:
[
"a1b2c3d4e5f6g7h8i9j0",
"b2c3d4e5f6g7h8i9j0k1"
]

Response

202 - application/json

Sources queued for retraining.

The response is of type object.