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>"
}
]
}Body
application/json
Request payload for requeueing ingestion jobs.
Was this page helpful?

