Jobs & Batches Endpoint Reference
Reference for 1 Jobs & Batches endpoint of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.
Track async processing jobs, poll for completion, retrieve result grids, and manage batch inference runs at 50% cost.
Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.
DELETE
/v1/jobs/{id}/documents/{documentId}Required scope: runs:write
Path parameters
id*string (uuid)
documentId*string (uuid)
curl
curl -X DELETE 'https://api.talonic.com/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6/documents/3fa85f64-5717-4562-b3fc-2c963f66afa6' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6/documents/3fa85f64-5717-4562-b3fc-2c963f66afa6", {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
},
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();Response 200 — Removed
{}- 400 — The request is invalid.
- 401 — Missing or invalid API key.
- 403 — The API key does not have the required scope.
- 404 — The requested resource was not found.
- 429 — Daily rate limit exceeded.