Skip to main content
POST
Submit text to humanize and Wibble returns a job you poll for the result or track by webhook.

Request options

These notes add product context for the request body. The full schema, types, and defaults are generated below.
  • text is the only required field: the text to rewrite, preserving its meaning and intent. It needs at least 10 words, and can be up to 50,000 characters and 2,000 words. Supported languages today are English.
  • mode (default refine) chooses how the text is humanized. refine gives polished, natural writing that keeps your meaning and voice, and stays closest to your original wording. rewrite reworks the text from the ground up and stays further from the original. Both cost the same. See Modes.
  • auto_detect_language and use_british_spellings are legacy fields with no effect on Refine or Rewrite. They’re still accepted, and still part of the idempotency match, so send the same values on every retry of a request.
Send an Idempotency-Key header to make a submission safe to retry. The same key with an identical body returns the original job instead of creating a new one. After a failed job, resubmit with a new key. See Idempotency.Set webhook_url to a public HTTPS endpoint to be notified when the job finishes, so you do not have to poll. See Webhooks.

Authorizations

Authorization
string
header
required

API key authentication. Pass your key as Authorization: Bearer <key>. Keys look like wib_live_... and are created in the Wibble dashboard. A key must have the humanize scope to use these endpoints.

Headers

Idempotency-Key
string

Optional key to make submissions idempotent. Trimmed and truncated to the first 256 characters. Reusing the same key with the same request body returns the original job (HTTP 200); reusing it with a different body within the 24-hour retention window returns HTTP 409. Reuse a key only to retry a request whose response you never got. To try again after a failed job, use a new key.

Maximum string length: 256

Body

application/json
text
string
required

The text to humanize. Must have at least 10 words (separated by whitespace), be at most 50,000 characters, and resolve to at most 2,000 words.

Required string length: 1 - 50000
Example:

"The mitochondria is the powerhouse of the cell, producing most of its energy."

mode
enum<string>
default:refine

How the text is humanized. refine (the default) gives polished, natural writing that keeps your meaning and voice, and stays closest to your original wording. rewrite reworks the text from the ground up: it changes much more of the wording and sentence structure than refine, so it stays further from the original. Both modes cost the same. Any other value returns 400 validation_error.

Available options:
refine,
rewrite
Example:

"refine"

auto_detect_language
boolean
default:true

Legacy, no effect. Still accepted, but refine and rewrite ignore it. It's still part of the idempotency match, so send the same value on every retry of a request.

use_british_spellings
boolean
default:false

Legacy, no effect. Still accepted, but refine and rewrite ignore it. It's still part of the idempotency match, so send the same value on every retry of a request.

webhook_url
string<uri>

Optional HTTPS URL to receive a webhook when the job finishes. Must be HTTPS, must not include credentials, and must not resolve to a private, loopback, or otherwise blocked address.

Maximum string length: 2048
Example:

"https://example.com/webhooks/wibble"

Response

Idempotent replay. The supplied Idempotency-Key matched a request with an identical body from the last 24 hours, so that request's job is returned and no new words are reserved. This response doesn't include X-Wibble-Balance-Remaining.

If the job is still queued, Wibble queues it again when it can. If that fails, the body also has "enqueue_retry_failed": true and the job stays queued: keep polling. It either runs or fails with job_expired, and an expired job is refunded.

A failed job is final, and replaying its key returns it unchanged. To try again, resubmit with a new Idempotency-Key.

The job returned by POST /humanize, on a new job (HTTP 202) or an idempotent replay (HTTP 200). Same fields as Job, plus enqueue_retry_failed in two rare cases.

id
string<uuid>
required

Unique job identifier.

Example:

"7b42f1d6-0a8c-4e8f-9a21-c6d9f47c2b10"

status
enum<string>
required

Current job status. Terminal states are succeeded and failed.

Available options:
queued,
running,
succeeded,
failed
mode
enum<string>
required

The job's mode: refine or rewrite. Jobs created before modes existed show humanize.

Available options:
refine,
rewrite,
humanize
Example:

"refine"

input_words
integer
required

Number of words counted in the input text.

Example:

13

words_reserved
integer
required

Number of API words reserved from the account balance for this job.

Example:

13

words_charged
integer
required

Net words charged (words_reserved minus refunds, floored at 0). For a failed job this is 0 because reserved words are refunded.

Example:

13

status_url
string<uri>
required

Absolute URL for polling this job.

Example:

"https://www.wibbleai.com/api/v1/humanize/7b42f1d6-0a8c-4e8f-9a21-c6d9f47c2b10"

current_stage
string | null
required

An informal progress label while the job is queued or running, such as starting_humanization (queued, not started yet) or humanizing, or null if unavailable. Not a stable enum: labels can change, so don't branch on them.

Example:

"humanizing"

detected_language
string | null
required

Always null for refine and rewrite jobs. Jobs created before modes existed may show their detected input language, such as en.

Example:

null

created_at
string<date-time>
required

ISO 8601 timestamp when the job was created.

Example:

"2026-06-14T12:00:00.000Z"

completed_at
string<date-time> | null
required

ISO 8601 timestamp when the job completed, or null if not finished.

Example:

null

output
string

The humanized text. Present only when status is succeeded; omitted otherwise.

Example:

"Mitochondria are the cell's powerhouses, producing most of its energy."

error
object

Present only when the job status is failed; omitted otherwise. A failed job is final, and its reserved words are refunded. To try again, resubmit with a new Idempotency-Key.

enqueue_retry_failed
boolean

Present, and true, only when Wibble couldn't confirm the job was queued: on a 200 replay of a job still queued, or on a 202 whose enqueue reported an error that didn't stop the job. Keep polling: the job runs (or has already finished), or fails with job_expired, and an expired job is refunded.

Example:

true