POST /v1/core/password-generate

Password generator

Built from a cryptographic random source, with the entropy in bits reported so you can judge it.

Generate a strong password now No key, no code — 1 credit either way.

curl -X POST "$DOATHING_API/v1/core/password-generate" \
  -H "x-api-key: $DOATHING_KEY" \
  -H "content-type: application/json" \
  -d '{"options": {"length": 24, "exclude_ambiguous": true}}'

Built from a cryptographic random source, with the entropy in bits reported so you can judge it.

Generate passwords or passphrases from a CSPRNG, reporting entropy in bits.

Response

The result carries your remaining balance alongside it, so you can track spend without a second call.

{
  "passwords": [
    "xR7#kmQv…"
  ],
  "entropy_bits": 152.4,
  "alphabet_size": 82,
  "request_id": "37f01edb-0163-42a1-ac51-0acaef979800",
  "credits_remaining": 96
}

Cost

1 credit per call, whether it is run from the site or from the API — the credential differs, the price does not. A new account starts with 20 credits.

A rejected request still costs a credit: the authorizer decrements before the tool validates. A call rejected for a missing or invalid key is free.

Parameters

Generated from the endpoint’s own validation, so this is exactly what it accepts. A body field goes at the top level; an option goes inside options.

NameInTypeDefaultNotes
modeoptionsstring"password"password or passphrase. one of password, passphrase
lowercaseoptionsbooleantrueInclude a-z.
uppercaseoptionsbooleantrueInclude A-Z.
digitsoptionsbooleantrueInclude 0-9.
symbolsoptionsbooleantrueInclude punctuation.
exclude_ambiguousoptionsbooleanfalseDrop I, l, 1, O and 0.
countoptionsinteger1How many to generate. 1 to 100
lengthoptionsinteger20Characters, for password mode. 4 to 256
wordsoptionsinteger4Words, for passphrase mode. 2 to 16
separatoroptionsstring"-"