curl --request POST \
--url https://pria.praxislxp.com/api/user/files/{fileId}/reprocess \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '{
"mode": "full"
}'import requests
url = "https://pria.praxislxp.com/api/user/files/{fileId}/reprocess"
payload = { "mode": "full" }
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({mode: 'full'})
};
fetch('https://pria.praxislxp.com/api/user/files/{fileId}/reprocess', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/user/files/{fileId}/reprocess",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mode' => 'full'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/user/files/{fileId}/reprocess"
payload := strings.NewReader("{\n \"mode\": \"full\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pria.praxislxp.com/api/user/files/{fileId}/reprocess")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"full\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/files/{fileId}/reprocess")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mode\": \"full\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"queued": true,
"mode": "full",
"message": "File re-queued for processing",
"uploadId": "<string>",
"ingestion": {
"phase": "queued",
"attempts": 0,
"enqueuedAt": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "<string>",
"error": "<string>"
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "File is already being processed (phase: extract)",
"ingestion": {}
}{
"success": false,
"message": "Ingestion queue is not enabled"
}Re-queue an existing file for ingestion
Re-enqueues an existing Upload record through the asynchronous ingestion pipeline
(extract → chunk → sanitize → embed → finalize) without re-downloading the source file.
Unlike /reingest/{fileId} which re-fetches the source URL, this endpoint operates
on the file already on disk.
Returns 409 if the file is already being processed (phase not in done/error).
curl --request POST \
--url https://pria.praxislxp.com/api/user/files/{fileId}/reprocess \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '{
"mode": "full"
}'import requests
url = "https://pria.praxislxp.com/api/user/files/{fileId}/reprocess"
payload = { "mode": "full" }
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({mode: 'full'})
};
fetch('https://pria.praxislxp.com/api/user/files/{fileId}/reprocess', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/user/files/{fileId}/reprocess",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'mode' => 'full'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/user/files/{fileId}/reprocess"
payload := strings.NewReader("{\n \"mode\": \"full\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pria.praxislxp.com/api/user/files/{fileId}/reprocess")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"full\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/files/{fileId}/reprocess")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mode\": \"full\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"queued": true,
"mode": "full",
"message": "File re-queued for processing",
"uploadId": "<string>",
"ingestion": {
"phase": "queued",
"attempts": 0,
"enqueuedAt": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "<string>",
"error": "<string>"
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "File is already being processed (phase: extract)",
"ingestion": {}
}{
"success": false,
"message": "Ingestion queue is not enabled"
}Authorizations
JWT token passed in x-access-token header
Path Parameters
The file ID to re-queue
Body
full wipes all chunks/embeddings and restarts from the queued phase.
embed keeps existing chunks but clears the embedded flag + provider-specific vector fields
and resumes at the embed phase — useful after changing the embedding model.
full, embed Response
File has been queued for reprocessing
true
true
The reprocess mode that was applied
full, embed "full"
"File re-queued for processing"
MongoDB ObjectId of the re-queued Upload record
Show child attributes
Show child attributes
Was this page helpful?