Skip to main content
This guide takes you from an API key to a humanized result. You submit text, wait for the job to finish, then read the output.

Prerequisites

Before you begin, you need:
Keep your API key on the server. Anyone with the key can spend your account’s API words.

Get started

1

Submit a job

Send your text to POST /humanize, with an optional mode: refine (the default) or rewrite. The text needs at least 10 words. Wibble reserves the required API words and responds with HTTP 202 and a job in status queued. See Modes for how the two differ.
The response includes the job id and a status_url to poll:
Response
The X-Wibble-Balance-Remaining response header shows your API word balance after this job’s reservation.
2

Wait for the result

Poll GET /humanize/{id} until status is succeeded or failed. A single lookup looks like this:
curl
In practice, loop until the job reaches a terminal status. Poll every 10 seconds or slower, with some random jitter, and stop on succeeded or failed. Lookups are limited to 120 requests per minute per key, so keep the interval at or above the recommended value.
A job that never finishes is marked failed with the error code job_expired (about an hour after submission if it never starts, or after about 45 minutes without progress), and its reserved words are refunded. Treat a failed status as terminal and stop polling.
3

Read the output

A succeeded job returns the humanized text in output:
Response
If a job failed, read the error object for the reason. The reserved words are refunded automatically. A failed job is final: to try again, submit the text as a new job, with a new Idempotency-Key if you use one.

Skip polling with a webhook

Instead of polling, pass a webhook_url when you submit. Wibble sends a signed POST to that URL when the job finishes.
curl
Verify the signature before trusting a delivery. See Webhooks for the payload, delivery behavior, and verification steps. Keep polling available as a fallback.
Send an Idempotency-Key header with each submission. If you never get the response, after a network error or timeout, retry with the same key and body: you get the original job back instead of a duplicate. See Idempotency for how safe retries work.
You submitted text, waited for the job to reach succeeded, and read the humanized output. You now have the full request-and-poll loop working.

Next steps

Humanization

What the humanizer does, the two modes, the request options, supported languages, and responsible use.

API reference

The full job lifecycle, limits, error codes, and webhooks.