GET /api/v1/password
Generate passwords or passphrases. Free, and no key needed for everyday use. Add your free API key for bigger batches and a higher rate limit. Password requests never use up your key's 100 secure-link requests.
| Passwords per request | Requests per minute | |
|---|---|---|
| No key | Up to 10 | 60, per IP address |
| With your free key | Up to 100 | 300, per key |
| Param | Default | Description |
|---|---|---|
length | 16 | 8 to 64 characters |
uppercase | true | Mix in capital letters (at least one). false gives lowercase letters only |
numbers | true | Include at least one digit |
symbols | true | Include at least one of ! @ # $ % & * - _ + = ? |
passphrase | false | Words from the EFF short list, hyphenated, plus a two-digit number |
words | 5 | 4 to 6 words (passphrase mode only) |
count | 1 | How many to make: 1 to 10, or 1 to 100 with your API key |
A single password (defaults)
curl "https://pass.new/api/v1/password"
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
{
"passwords": ["W%Q5*%t#3Yeqm?YA"],
"entropy_bits": 99.4,
"options": {
"passphrase": false,
"length": 16,
"uppercase": true,
"numbers": true,
"symbols": true
}
}
Three 24-character passwords without symbols
curl "https://pass.new/api/v1/password?length=24&symbols=false&count=3"
{
"passwords": [
"j7Ibk4QMojfdG12T1EboOmvP",
"a9ZxcXAHI4KJMOr7qFt2iWcc",
"xE3o7xY2XfOcrDEVmiEY2fPd"
],
"entropy_bits": 142.9,
"options": {
"passphrase": false,
"length": 24,
"uppercase": true,
"numbers": true,
"symbols": false
}
}
Memorable passphrases
curl "https://pass.new/api/v1/password?passphrase=true&words=4&count=2"
{
"passwords": [
"curl-owl-hut-chief-77",
"pep-tall-heat-rank-64"
],
"entropy_bits": 47.9,
"options": { "passphrase": true, "words": 4 }
}
100 passwords at once, with your key
curl "https://pass.new/api/v1/password?count=100" -H "X-API-Key: pn_YOUR_KEY"
X-RateLimit-Limit: 300
X-RateLimit-Remaining: 299
{
"passwords": ["k#8Tq2vM!xR4pLw9", "…98 more…", "Zf3@nB7c-Yh1sQe5"],
"entropy_bits": 99.4,
"options": { … }
}
Without a key, asking for more than 10 returns 400 with a message saying how to add your key.