POST /humanize, Wibble reserves the required API words, creates a job, and returns it with status queued. The job moves through its lifecycle in the background, and you read the result once it finishes.
The async model
Humanization takes time. Rewriting text well is not instant, and the work runs on Wibble’s infrastructure rather than in the request that submitted it. Instead of holding the HTTP connection open until the rewrite is done,POST /humanize returns immediately with HTTP 202 and a job in status queued. Your request never blocks waiting for the engine.
You learn the outcome in one of two ways:
- Poll
GET /humanize/{id}until the job reaches a terminal status. - Register a webhook by passing
webhook_urlon submit, and Wibble notifies you when the job finishes.
type field, but omit transient polling fields such as current_stage and detected_language.
Statuses
A job is always in exactly one of four statuses. Two are terminal: once a job reachessucceeded or failed, it stays there and the status will not change.
When you poll or handle a webhook, branch on
status. Treat any status other than succeeded and failed as “not done yet.”
current_stage is informational
While a job isqueued or running, current_stage carries a short, human-readable label describing what the engine is doing right now, such as starting_humanization (queued, not started yet) or humanizing. It exists to give you something to show in a progress UI or a log line.
Polling vs webhooks
Both approaches deliver the same result state. Choose based on how your code is structured.Polling
Best for scripts, short-lived processes, and anywhere you cannot accept an inbound HTTP request. You stay in control of timing and need no public endpoint.
Webhooks
Best for servers that can receive an HTTPS callback. You avoid repeated lookups and learn the result as soon as the job finishes.
GET requests are limited to 120 per minute per key, shared by every job you track with that key, so polling faster risks 429 rate_limited responses.
Poll a job
The job object
BothPOST /humanize and GET /humanize/{id} return the same polling job object. Webhook payloads contain the terminal job fields you need to process the result plus a type field, but do not include current_stage or detected_language.
The job identifier, for example
7b42f1d6-0a8c-4e8f-9a21-c6d9f47c2b10. Use it to retrieve the job.The job’s mode:
refine or rewrite. Jobs created before modes existed show humanize. See Modes.The net words billed: reserved words minus any refund, floored at 0. A
failed job is charged 0. See Words and billing.An informational, human-readable progress label, or
null. Not a stable enum. Display it if useful, but do not branch on it.Always
null for Refine and Rewrite jobs. Jobs created before modes existed may show their detected input language, for example en.When the job reached a terminal status, as an ISO 8601 timestamp.
null until the job finishes.The failure reason, with
code and message. Present only when status is failed. See Errors.Succeeded job
output appears only on succeeded jobs, and error appears only on failed jobs. Read status first, then read the field that matches.Expiry
A job that never reaches a terminal status on its own is failed with the error codejob_expired: about an hour after submission if it never starts, or after about 45 minutes without progress once it has started (up to 4 hours in rare cases). These checks run every 15 minutes, so the failure can show up a little after those times. The reserved words are refunded, so an expired job is charged 0, the same as any other failure.
Expired job
succeeded or failed.
Next steps
Retrieve a job
Reference for
GET /humanize/{id}.Webhooks
Get notified when a job finishes, and verify deliveries.
Words and billing
How words are reserved, charged, and refunded.
Errors
Error codes and how to handle them.