JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.ingest.requeue();
console.log(response.results);curl https://api.morphik.ai/ingest/requeue \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $MORPHIK_API_KEY" \
-d '{}'{
"results": [
{
"external_id": "<string>",
"status": "<string>",
"message": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Ingestion
Requeue Ingest Jobs
Requeue ingestion jobs for documents stuck in processing or marked as failed.
POST
/
ingest
/
requeue
JavaScript
import Morphik from 'morphik';
const client = new Morphik({
apiKey: process.env['MORPHIK_API_KEY'], // This is the default and can be omitted
});
const response = await client.ingest.requeue();
console.log(response.results);curl https://api.morphik.ai/ingest/requeue \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $MORPHIK_API_KEY" \
-d '{}'{
"results": [
{
"external_id": "<string>",
"status": "<string>",
"message": "<string>"
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
Body
application/json
Request payload for requeueing ingestion jobs.
Collection of jobs to requeue, each with optional ColPali override.
Show child attributes
Show child attributes
When true, requeue every accessible document whose status matches statuses (defaults to processing/failed).
Processing statuses to include when include_all is true. Defaults to ['processing', 'failed'].
Maximum number of documents to auto-select from the provided statuses when include_all is true.
Required range:
x >= 1Response
Successful Response
Response payload for requeueing ingestion jobs.
Per-document outcomes
Show child attributes
Show child attributes
Was this page helpful?

