# Password Generator API

> Password Generator is a password generator API that creates random passwords, pronounceable passwords and multi-word passphrases from length, complexity and character-set rules, up to 100 per call. Each comes back with its length and the settings used to build it.

**Endpoint:** `GET https://api.apiverve.com/v1/passwordgenerator`  
**Category:** Data Generation  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/passwordgenerator

## Overview

An API password generator for signup suggestions, account provisioning and secret rotation. Choose a type: random uses a complexity preset (simple is lowercase only unless you add digits or capitals, medium adds digits and capitals, strong adds symbols, maximum guarantees one of each), custom builds from the character sets you switch on, pronounceable strings syllables together, and passphrase joins dictionary words with your separator. Lengths run from 4 to 128 characters and every type draws from a cryptographically secure random source. You can leave out look-alike characters such as l, 1, O and 0, or the quotes, slashes and brackets that need escaping in shells. Every plan gets up to 100 passwords per call; paid plans add a strength analysis with a score, feedback and an entropy estimate.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/passwordgenerator?count=10&length=30&complexity=strong&type=random&includeNumbers=true&includeSymbols=true&includeUppercase=true&includeLowercase=true&excludeSimilar=true&excludeAmbiguous=true&mixedCase=true&strict=true&wordCount=4&separator=-&capitalize=true&analyze=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `count` | integer | No | The number of passwords to generate. default 1. range 1-100 |
| `length` | integer | No | The length of the password to generate. default 12. range 4-128 |
| `complexity` | string | No | The complexity of the password. Only applies when type is random. default medium. One of: simple, medium, strong, maximum |
| `type` | string | No | The kind of password to generate. random uses the complexity preset, pronounceable builds readable syllables, passphrase joins dictionary words, and custom honours the include/exclude switches below. default random. One of: random, pronounceable, passphrase, custom |
| `includeNumbers` | boolean | No | Include digits. Applies to custom and pronounceable, and to random at simple complexity. default false |
| `includeSymbols` | boolean | No | Include punctuation symbols. Applies to custom, and to random at medium complexity. default false |
| `includeUppercase` | boolean | No | Include uppercase letters. Applies to custom, and to random at simple complexity. default false |
| `includeLowercase` | boolean | No | Include lowercase letters in a custom password. Set false to build from the other character sets only. default true |
| `excludeSimilar` | boolean | No | Exclude characters that are easy to confuse when read aloud or typed (i, l, 1, L, o, 0, O). default false |
| `excludeAmbiguous` | boolean | No | Exclude brackets, slashes, quotes and other characters that need escaping in shells and config files. default false |
| `mixedCase` | boolean | No | Randomly capitalise letters in a pronounceable password. default false |
| `strict` | boolean | No | Guarantee at least one character from every enabled set rather than leaving it to chance. default false |
| `wordCount` | integer | No | How many words a passphrase contains. Only applies when type is passphrase. default 4. range 2-12 |
| `separator` | string | No | The character placed between passphrase words. Only applies when type is passphrase. default - |
| `capitalize` | boolean | No | Capitalise each word of a passphrase. Only applies when type is passphrase. default false |
| `analyze` | boolean | No | Return a strength analysis alongside each password. default false. Premium field |

## Response fields

  - `passwords.0.password` — string · The generated password string
  - `passwords.0.length` — number · Length of the generated password
  - `passwords.0.metadata` — object · Metadata about the password generation
    - `passwords.0.metadata.type` — string · Type of password generation method used
    - `passwords.0.metadata.complexity` — string · Complexity level of the password · (premium)
  - `passwords.0.analysis` — object · Strength analysis for the password. Returned only when analyze is true, and holds score, strength, feedback and entropy · (premium)
- `count` — number · Total count of passwords generated

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "passwords": [
      {
        "password": "aOwqDh0ZK*P;!M|%oiFYJ!IK%TMXQO",
        "length": 30,
        "metadata": {
          "type": "random",
          "complexity": "strong"
        },
        "analysis": null
      },
      {
        "password": "Wo:)*V2nMakoVI78[fKu|QDI.E45p|",
        "length": 30,
        "metadata": {
          "type": "random",
          "complexity": "strong"
        },
        "analysis": null
      },
      {
        "password": "%XqlsK2qN.9>*&jk6gYIG.[aE,hiRc",
        "length": 30,
        "metadata": {
          "type": "random",
          "complexity": "strong"
        },
        "analysis": null
      },
      {
        "password": "WQNY0{R~(G99uc&i62Mve).n<|xt=F",
        "length": 30,
        "metadata": {
          "type": "random",
          "complexity": "strong"
        },
        "analysis": null
      },
      {
        "password": "2$m-&z9!5$c3QlxQP{h#@0x~'M/h]T",
        "length": 30,
        "metadata": {
          "type": "random",
          "complexity": "strong"
        },
        "analysis": null
      },
      {
        "password": "y]e_H)/z2yzbr{4C&hHOb[Q:#/$Hml",
        "length": 30,
        "metadata": {
          "type": "random",
          "complexity": "strong"
        },
        "analysis": null
      },
      {
        "password": "+iZ,<<+_MR:jJ,JbXTN*3Z,xLo'=@E",
        "length": 30,
        "metadata": {
          "type": "random",
          "complexity": "strong"
        },
        "analysis": null
      },
      {
        "password": "x=e6H^U;ajD+)h5Z8$7Wy)^Ob8ERw'",
        "length": 30,
        "metadata": {
          "type": "random",
          "complexity": "strong"
        },
        "analysis": null
      },
      {
        "password": "+p!SGSnR*JNl}/[#oVQy~ZxtoZU}F+",
        "length": 30,
        "metadata": {
          "type": "random",
          "complexity": "strong"
        },
        "analysis": null
      },
      {
        "password": "%h:23-bMb0;?QWL)chKm8{>%)mN:EO",
        "length": 30,
        "metadata": {
          "type": "random",
          "complexity": "strong"
        },
        "analysis": null
      }
    ],
    "count": 10
  }
}
```

## Use cases

- **Employee Account Provisioning** — IT administrators create temporary credentials for new staff accounts matching internal length rules before users complete their initial login.
- **Database Credential Rotation** — When rotating secrets in CI/CD pipelines, DevOps engineers produce symbol-free strings to prevent shell escaping errors in connection strings.
- **Signup Form Suggestions** — Recommend readable, multi-word passphrases to customers during registration so they adopt strong credentials that remain memorable.
- **Help Desk Resets** — Help desk staff generate pronounceable strings for callers locked out of internal systems, avoiding ambiguous characters during phone readbacks.

## SDKs

- **npm** — `npm install @apiverve/passwordgenerator` (https://www.npmjs.com/package/@apiverve/passwordgenerator)
- **PyPI** — `pip install apiverve-passwordgenerator` (https://pypi.org/project/apiverve-passwordgenerator/)
- **NuGet** — `dotnet add package APIVerve.API.PasswordGenerator` (https://www.nuget.org/packages/APIVerve.API.PasswordGenerator)
- **Source** — https://github.com/apiverve/passwordgenerator-api

## More

- Full reference: https://docs.apiverve.com/ref/passwordgenerator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
