A Quote Is Not a Completed Job: Reading the Skavio Agent Tools Lifecycle
When an API returns a price, it has done arithmetic — not work. Skavio Agent Tools is an asynchronous, company-scoped processing API, and a common integration mistake is treating its commercial checkpoint as an operational result. This guide separates the two and shows how to reconcile the space between them without inventing facts your system does not have.
Two events that look similar in a log and mean different things
A quoted job and a completed job are recorded at different moments by different parts of the system, and they answer different questions. A quote answers "what would this cost, and is the request acceptable?" A completion answers "did the processing succeed, and can I retrieve the output?" A log line that shows a quote has been issued tells you the server priced the request. It tells you nothing about whether a single page was read, transcribed or converted. The distinction matters commercially as well as technically. Skavio Agent Tools runs on a shared prepaid credit wallet, and Skavio's documented job rules state that the server quote at submission is authoritative and credits are reserved atomically. That reservation is an accounting control, not evidence of delivery. If your internal dashboard collapses quote, reservation and result into one status, operators can start treating a reservation as finished work — and downstream records can be wrong before anyone notices.
- A quote is a commercial checkpoint produced before any processing output exists.
- A completion is an operational event backed by a retrievable result or a verified signed webhook.
- A credit reservation controls spend; it does not demonstrate that a job succeeded.
- Keep the quote timestamp and the completion timestamp as separate fields in your own records.
What the quote and reservation can and cannot support
The quote is genuinely useful. It lets a client show a cost estimate before committing, and it gives you a stable reference if a disputed charge ever needs review. Because the server quote at submission is described as authoritative, an integration should persist that value rather than recompute it locally from file size or duration — local arithmetic can drift from the server's basis when the rules behind that basis change. What the quote cannot support is any statement about the output. It cannot support "the invoice was extracted", "the recording was transcribed" or "the file was converted". It also cannot support a revenue statement. Credit consumption, provider cost and cash received are separate records, and a quote belongs to none of them as a finished fact. Treat it as an intent to spend, recorded with a timestamp, and nothing more.
- Persist the server-issued quote rather than a locally derived estimate.
- Record who or what triggered the submission, and under which company-scoped key.
- Never derive a delivery status from a quote or an estimate.
- Do not treat a reservation as revenue, and do not treat usage as cash received.
The middle: queued work, active jobs and honest status
Agent Tools is asynchronous. Work enters a queue, and company-level limits apply to both queued and active jobs, so a client should expect to observe intermediate states rather than assume that submission equals output. The practical consequence is that your integration needs a status vocabulary it can defend. Queued and processing are legitimate states to display to an operator, provided they are displayed as pending rather than as done. Where the API exposes job states, map them explicitly in your client instead of inferring status from elapsed time. Check the published Agent Tools documentation for the exact state names your client must handle. Do not hard-code a guess, and do not render a client-side polling timeout as a failed job: a client that times out has learned nothing definitive about the job.
- Expect intermediate states; an asynchronous job is not an instant answer.
- Company queued-job and active-job limits shape how you batch submissions.
- Map job states explicitly from the documentation rather than inferring them.
- A client-side timeout is an unknown outcome, not a failed job.
Completion: the result, the download and the webhook
A job becomes a completed job when processing has succeeded and the requester can act on the outcome — for example, by retrieving an authenticated result or by verifying a signed completion webhook on a receiving server. Both paths are trustworthy only if access control holds. Agent Tools is company-scoped: keys belong to a company, jobs are company-isolated, and downloads are authenticated. A result URL passed through a chat thread, or a key embedded in browser code, breaks that boundary regardless of how correct the processing was. Webhook handling needs its own discipline. Verify the signature before acting on the payload and treat an unverified webhook as an unauthenticated request from the internet. When verification passes, reconcile the event against the job identifier you already stored, so a replayed or duplicated delivery cannot create a second downstream record.
- Establish completion from the job outcome plus an authenticated retrieval or a verified signed webhook.
- Check the webhook signature before any business logic runs.
- Match inbound events to a stored job identifier instead of trusting payload order.
- Keep keys server-side and scope them to the company that owns the work.
Failure, retries and a reconciliation checklist
Not every job completes. Skavio's documented job rules state that a successful job settles once and that a permanent failure releases the reservation. Your integration should still record the terminal outcome rather than assume it, because that behavior matters only if your client persists what actually happened. Distinguish a permanent processing failure from a transport problem: the first is an outcome; the second is an absence of information. This is where idempotency earns its place. Stable request identifiers and idempotent job submissions help prevent duplicate work and duplicate credit consumption when a network retry follows an ambiguous response. A retry that reuses the original identifier is a recovery attempt; a retry with a fresh identifier is a second job and will be treated as one. Keep the two apart deliberately.
- Log the quote, job identifier, idempotency key, terminal outcome and settlement or release.
- Separate permanent processing failure from client or network ambiguity.
- Reuse the original idempotency key on retries so recovery does not become a new job.
- Keep processing usage records apart from cash receipts and revenue reporting.
- Trial credit eligibility is determined by the live backend; do not design around an assumed allowance.